24#ifndef __ODGIVISUALSTYLE_H__
25#define __ODGIVISUALSTYLE_H__
65 kPerVertexLighting = 2,
278 kNoEdgeModifiers = 0x000,
285 kAlwaysOnTop = 0x040,
322 kDoubleShortDash = 7,
323 kDoubleMediumDash = 8,
325 kMediumLongDash = 10,
640 virtual void setHaloGap(
int nHaloGap,
bool bEnableModifier) = 0;
722 kShadowsGroundPlane = 1,
724 kShadowsFullAndGround = 3
1400 void configureForFlat();
1401 void configureForFlatWithEdges();
1402 void configureForGouraud();
1403 void configureForGouraudWithEdges();
1404 void configureForBasic();
1405 void configureFor2DWireframe();
1406 void configureFor3DWireframe();
1407 void configureForHidden();
1408 void configureForRealistic();
1409 void configureForConceptual();
1410 void configureForDim();
1411 void configureForBrighten();
1412 void configureForThicken();
1413 void configureForLinePattern();
1414 void configureForFacePattern();
1415 void configureForColorChange();
1418 void configureForFaceOnly();
1419 void configureForEdgeOnly();
1420 void configureForDisplayOnly();
1422 void configureForJitterOff();
1423 void configureForOverhangOff();
1424 void configureForEdgeColorOff();
1425 void configureForShadesOfGray();
1426 void configureForSketchy();
1427 void configureForXRay();
1428 void configureForShadedWithEdges();
1429 void configureForShaded();
1430 void configureForByViewport();
1431 void configureForByLayer();
1432 void configureForByBlock();
1433 void configureForEmptyStyle();
1436 void configureForAc27(
bool b2d =
false);
1439 void configureForInit();
OdSmartPtr< OdGiEdgeStyle > OdGiEdgeStylePtr
OdSmartPtr< OdGiFaceStyle > OdGiFaceStylePtr
OdSmartPtr< OdGiVisualStyleTraits > OdGiVisualStyleTraitsPtr
OdSmartPtr< OdGiVisualStyle > OdGiVisualStylePtr
OdSmartPtr< OdGiDisplayStyle > OdGiDisplayStylePtr
virtual void setShadowType(ShadowType type)=0
virtual void setDisplaySettings(unsigned long nSettings)=0
OdGiDisplayStyle & operator=(const OdGiDisplayStyle &style)
virtual ShadowType shadowType() const =0
virtual void setDisplaySettingsFlag(DisplaySettings flag, bool bEnable)=0
virtual unsigned long displaySettings() const =0
virtual double brightness() const =0
virtual bool isDisplaySettingsFlagSet(DisplaySettings flag) const =0
virtual void setBrightness(double value)=0
bool operator==(const OdGiDisplayStyle &style) const
ODRX_DECLARE_MEMBERS(OdGiDisplayStyle)
void set(const OdGiDisplayStyle &style)
virtual short silhouetteWidth() const =0
void set(const OdGiEdgeStyle &style)
virtual OdCmColorBase & edgeColor()=0
virtual OdCmColorBase & silhouetteColor()=0
virtual void setIntersectionLinetype(LineType ltype)=0
virtual unsigned long edgeModifiers() const =0
virtual double creaseAngle() const =0
virtual void setIsolines(unsigned short nIsolines)=0
virtual EdgeModel edgeModel() const =0
virtual LineType obscuredLinetype() const =0
virtual void setEdgeModifiers(unsigned long nModifiers)=0
OdGiEdgeStyle & operator=(const OdGiEdgeStyle &style)
virtual void setJitterAmount(JitterAmount amount, bool bEnableModifier)=0
virtual LineType intersectionLinetype() const =0
virtual void setSilhouetteWidth(short nWidth)=0
virtual int haloGap() const =0
virtual void setObscuredColor(const OdCmColorBase &color)=0
virtual JitterAmount jitterAmount() const =0
virtual void setObscuredLinetype(LineType ltype)=0
virtual void setIntersectionColor(const OdCmColorBase &color)=0
virtual void setEdgeWidth(int nWidth, bool bEnableModifier)=0
virtual void setHaloGap(int nHaloGap, bool bEnableModifier)=0
virtual bool isEdgeStyleFlagSet(EdgeStyle flag) const =0
virtual void setEdgeStyleFlag(EdgeStyle flag, bool bEnable)=0
virtual void setEdgeColor(const OdCmColorBase &color, bool bEnableModifier)=0
virtual int edgeWidth() const =0
virtual int overhangAmount() const =0
ODRX_DECLARE_MEMBERS(OdGiEdgeStyle)
virtual void setHidePrecision(bool bHidePrecision)=0
virtual unsigned short isolines() const =0
virtual void setOpacityLevel(double nLevel, bool bEnableModifier)=0
virtual void setWiggleAmount(WiggleAmount amount, bool bEnableModifier)=0
virtual EdgeStyleApply edgeStyleApply() const =0
bool operator==(const OdGiEdgeStyle &style) const
virtual const OdCmColorBase & intersectionColor() const =0
virtual WiggleAmount wiggleAmount() const =0
virtual double opacityLevel() const =0
virtual void setCreaseAngle(double nAngle)=0
virtual const OdCmColorBase & edgeColor() const =0
virtual bool isEdgeModifierFlagSet(EdgeModifier flag) const =0
virtual const OdCmColorBase & silhouetteColor() const =0
virtual void setEdgeStyles(unsigned long nStyles)=0
virtual void setOverhangAmount(int nAmount, bool bEnableModifier)=0
virtual const OdCmColorBase & obscuredColor() const =0
virtual OdCmColorBase & obscuredColor()=0
virtual unsigned long edgeStyles() const =0
virtual void setEdgeStyleApply(EdgeStyleApply apply)=0
virtual void setEdgeModifierFlag(EdgeModifier flag, bool bEnable)=0
virtual OdCmColorBase & intersectionColor()=0
virtual void setEdgeModel(EdgeModel model)=0
virtual void setSilhouetteColor(const OdCmColorBase &color)=0
virtual bool hidePrecision() const =0
virtual void setLightingModel(LightingModel lightingModel)=0
virtual void setMonoColor(const OdCmColorBase &color, bool bEnableMode)=0
virtual void setFaceColorMode(FaceColorMode mode)=0
virtual void setOpacityLevel(double nLevel, bool bEnableModifier)=0
virtual FaceColorMode faceColorMode() const =0
virtual OdCmColorBase & monoColor()=0
virtual void setFaceModifierFlag(FaceModifier flag, bool bEnable)=0
virtual void setSpecularAmount(double nAmount, bool bEnableModifier)=0
virtual LightingModel lightingModel() const =0
void set(const OdGiFaceStyle &style)
bool operator==(const OdGiFaceStyle &style) const
virtual const OdCmColorBase & monoColor() const =0
virtual double opacityLevel() const =0
virtual void setFaceModifiers(unsigned long nModifiers)=0
virtual double specularAmount() const =0
virtual unsigned long faceModifiers() const =0
OdGiFaceStyle & operator=(const OdGiFaceStyle &style)
ODRX_DECLARE_MEMBERS(OdGiFaceStyle)
virtual LightingQuality lightingQuality() const =0
virtual bool isFaceModifierFlagSet(FaceModifier flag) const =0
virtual void setLightingQuality(LightingQuality lightingQuality)=0
OdGiVisualStyle & operator=(const OdGiVisualStyle &visualStyle)
virtual void setFaceStyle(const OdGiFaceStyle &style)=0
virtual bool setTrait(Property prop, bool bVal, Operation op=OdGiVisualStyleOperations::kSet)
virtual const OdGiFaceStyle & faceStyle(void) const =0
void configureForType(Type type)
static OdGiVariant::VariantType propertyType(Property prop)
virtual void setEdgeStyle(const OdGiEdgeStyle &style)=0
virtual bool setTrait(Property prop, double dVal, Operation op=OdGiVisualStyleOperations::kSet)
virtual bool setTrait(Property prop, double red, double green, double blue, Operation op=OdGiVisualStyleOperations::kSet)
bool operator==(const OdGiVisualStyle &visualStyle) const
virtual bool setTrait(Property prop, OdInt32 nVal, Operation op=OdGiVisualStyleOperations::kSet)
virtual const OdGiEdgeStyle & edgeStyle(void) const =0
virtual const OdGiDisplayStyle & displayStyle(void) const =0
virtual bool setTrait(Property prop, Operation op)=0
virtual Type type() const =0
virtual bool setType(Type type)=0
virtual void setDisplayStyle(const OdGiDisplayStyle &style)=0
virtual bool setTrait(Property prop, const OdGiVariant *pVal, Operation op=OdGiVisualStyleOperations::kSet)=0
virtual bool setTrait(Property prop, const OdString &pStr, Operation op=OdGiVisualStyleOperations::kSet)
virtual bool traitFlag(Property flagProp, OdUInt32 flagVal) const
OdGiVisualStyleProperties::Property Property
virtual OdGiDisplayStyle & displayStyle(void)=0
virtual OdGiEdgeStyle & edgeStyle(void)=0
virtual bool setTraitFlag(Property flagProp, OdUInt32 flagVal, bool bEnable=true)
virtual bool setTrait(Property prop, const OdCmEntityColor &pColor, Operation op=OdGiVisualStyleOperations::kSet)
virtual OdGiFaceStyle & faceStyle(void)=0
OdGiVisualStyleOperations::Operation Operation
virtual bool setTrait(Property prop, const OdCmColorBase &pColor, Operation op=OdGiVisualStyleOperations::kSet)
virtual Operation operation(Property prop) const =0
ODRX_DECLARE_MEMBERS(OdGiVisualStyle)
virtual OdGiVariantPtr trait(Property prop, Operation *pOp=NULL) const =0
ODRX_DECLARE_MEMBERS(OdGiVisualStyleTraits)
virtual void setOdGiVisualStyle(const OdGiVisualStyle &visualStyle)=0
virtual const OdGiVisualStyle & odgiVisualStyle() const =0
GLuint GLsizei GLsizei GLint GLenum * type
GLsizei const GLfloat * value
@ kEdgeIntersectionLinePattern
@ kEdgeObscuredLinePattern