|
CFx SDK Documentation
2022 SP0
|
#include <GiVisualStyle.h>
Public Types | |
| enum | LightingModel { kInvisible = 0 , kConstant = 1 , kPhong = 2 , kGooch = 3 } |
| enum | LightingQuality { kNoLighting = 0 , kPerFaceLighting = 1 , kPerVertexLighting = 2 , kPerPixelLighting = 3 } |
| enum | FaceColorMode { kNoColorMode = 0 , kObjectColor = 1 , kBackgroundColor = 2 , kMono = 3 , kTint = 4 , kDesaturate = 5 } |
| enum | FaceModifier { kNoFaceModifiers = 0 , kOpacity = 1 , kSpecular = 2 } |
Public Member Functions | |
| ODRX_DECLARE_MEMBERS (OdGiFaceStyle) | |
| void | set (const OdGiFaceStyle &style) |
| OdGiFaceStyle & | operator= (const OdGiFaceStyle &style) |
| bool | operator== (const OdGiFaceStyle &style) const |
| virtual void | setLightingModel (LightingModel lightingModel)=0 |
| virtual LightingModel | lightingModel () const =0 |
| virtual void | setLightingQuality (LightingQuality lightingQuality)=0 |
| virtual LightingQuality | lightingQuality () const =0 |
| virtual void | setFaceColorMode (FaceColorMode mode)=0 |
| virtual FaceColorMode | faceColorMode () const =0 |
| virtual void | setFaceModifiers (unsigned long nModifiers)=0 |
| virtual void | setFaceModifierFlag (FaceModifier flag, bool bEnable)=0 |
| virtual unsigned long | faceModifiers () const =0 |
| virtual bool | isFaceModifierFlagSet (FaceModifier flag) const =0 |
| virtual void | setOpacityLevel (double nLevel, bool bEnableModifier)=0 |
| virtual double | opacityLevel () const =0 |
| virtual void | setSpecularAmount (double nAmount, bool bEnableModifier)=0 |
| virtual double | specularAmount () const =0 |
| virtual void | setMonoColor (const OdCmColorBase &color, bool bEnableMode)=0 |
| virtual const OdCmColorBase & | monoColor () const =0 |
| virtual OdCmColorBase & | monoColor ()=0 |
Public Member Functions inherited from OdRxObject | |
| ODRX_HEAP_OPERATORS () | |
| OdRxObject () | |
| virtual | ~OdRxObject () |
| virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
| virtual OdRxObject * | x (const OdRxClass *pClass) const |
| virtual OdRxClass * | isA () const |
| virtual void | addRef ()=0 |
| virtual void | release ()=0 |
| virtual long | numRefs () const |
| bool | isKindOf (const OdRxClass *pClass) const |
| virtual OdRxObjectPtr | clone () const |
| virtual void | copyFrom (const OdRxObject *pSource) |
| virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
| virtual bool | isEqualTo (const OdRxObject *pOther) const |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
| static OdRxObjectPtr | cast (const OdRxObject *pointer) |
| static OdRxClass * | desc () |
This class represents a set of visual style properties that can be applied to the faces of graphical entities.
Corresponding C++ library: TD_Gi <group OdGi_Classes>
Definition at line 40 of file GiVisualStyle.h.
Defines modifications that affect the color of a face before any lighting and shading calculations have been performed.
| Enumerator | |
|---|---|
| kNoColorMode | |
| kObjectColor | |
| kBackgroundColor | |
| kMono | |
| kTint | |
| kDesaturate | |
Definition at line 70 of file GiVisualStyle.h.
Defines the modifiers applied to the faces using this face style.
| Enumerator | |
|---|---|
| kNoFaceModifiers | |
| kOpacity | |
| kSpecular | |
Definition at line 83 of file GiVisualStyle.h.
Defines the lighting model of the face style to apply to the faces of graphical entities.
| Enumerator | |
|---|---|
| kInvisible | |
| kConstant | |
| kPhong | |
| kGooch | |
Definition at line 48 of file GiVisualStyle.h.
Defines the calculation method used for application of lighting effects to faces.
| Enumerator | |
|---|---|
| kNoLighting | |
| kPerFaceLighting | |
| kPerVertexLighting | |
| kPerPixelLighting | |
Definition at line 59 of file GiVisualStyle.h.
|
pure virtual |
Returns the currently used face color mode value.
Implemented in OdGiVisualStyleDataContainer::OdGiFaceStyleDataContainer.
|
pure virtual |
Returns the collection of currently used face modifier flags.
Implemented in OdGiVisualStyleDataContainer::OdGiFaceStyleDataContainer.
|
pure virtual |
Returns whether the specified face modifier flag is enabled.
| flag | [in] Flag to be checked whether it's enabled or disabled. |
Implemented in OdGiVisualStyleDataContainer::OdGiFaceStyleDataContainer.
|
pure virtual |
Returns the currently used lighting model of the face style.
Implemented in OdGiVisualStyleDataContainer::OdGiFaceStyleDataContainer.
|
pure virtual |
Returns the currently used lighting quality of the face style.
Implemented in OdGiVisualStyleDataContainer::OdGiFaceStyleDataContainer.
|
pure virtual |
Returns a color that is applied to produce a monochromatic effect on the faces.
Implemented in OdGiVisualStyleDataContainer::OdGiFaceStyleDataContainer.
|
pure virtual |
Returns a color that is applied to produce a monochromatic effect on the faces.
Implemented in OdGiVisualStyleDataContainer::OdGiFaceStyleDataContainer.
| OdGiFaceStyle::ODRX_DECLARE_MEMBERS | ( | OdGiFaceStyle | ) |
|
pure virtual |
Returns whether the opacity level is applied to faces.
Implemented in OdGiVisualStyleDataContainer::OdGiFaceStyleDataContainer.
| OdGiFaceStyle& OdGiFaceStyle::operator= | ( | const OdGiFaceStyle & | style | ) |
| bool OdGiFaceStyle::operator== | ( | const OdGiFaceStyle & | style | ) | const |
| void OdGiFaceStyle::set | ( | const OdGiFaceStyle & | style | ) |
Copies values from the given face style to this face style.
| style | [in] Reference to the OdGiFaceStyle to copy into this face style. |
|
pure virtual |
Sets the face color mode of the face style. All valid values are described in the FaceColorMode enum.
| mode | [in] Face color mode value to set. |
Implemented in OdGiVisualStyleDataContainer::OdGiFaceStyleDataContainer.
|
pure virtual |
Enables or disables the specified face modifier flag.
| flag | [in] Flag to enable or disable. |
| bEnable | [in] Value that indicates whether to enable or disable the specified flag. |
Implemented in OdGiVisualStyleDataContainer::OdGiFaceStyleDataContainer.
|
pure virtual |
Sets a collection of bitflags representing the face modifiers in effect.
| nModifiers | [in] Unsigned long value that represents a collection of bitwise flags defined in the FaceModifier enum. |
Implemented in OdGiVisualStyleDataContainer::OdGiFaceStyleDataContainer.
|
pure virtual |
Sets the lighting model to the given value. All valid values are described in the LightingModel enumeration.
| lightingModel | [in] Lighting model value to set. |
Implemented in OdGiVisualStyleDataContainer::OdGiFaceStyleDataContainer.
|
pure virtual |
Sets the lighting quality of faces to the given value. All valid values are described in the LightingQuality enum.
| lightingQuality | [in] Lighting quality value to set. |
Implemented in OdGiVisualStyleDataContainer::OdGiFaceStyleDataContainer.
|
pure virtual |
Sets the color that will be applied to produce a monochromatic effect on the faces.
| color | [in] Reference to an OdCmColorBase value to set. |
| bEnableMode | [in] Value that indicates whether to enable or disable the mono color mode. |
Implemented in OdGiVisualStyleDataContainer::OdGiFaceStyleDataContainer.
|
pure virtual |
Sets the opacity level of the faces.
| nLevel | [in] Opacity level to set. Must be in the range from 0.0 (faces are fully transparent) to 1.0 (no transparency). |
| bEnableModifier | [in] Value that indicates whether to enable or disable the opacity. |
Implemented in OdGiVisualStyleDataContainer::OdGiFaceStyleDataContainer.
|
pure virtual |
Sets the amount of specular highlight (indicating reflection and shininess values) of a faces material.
| nAmount | [in] Amount of specular highlight of a faces material to set. |
| bEnableModifier | [in] Value that indicates whether to enable or disable the specular highlight. |
Implemented in OdGiVisualStyleDataContainer::OdGiFaceStyleDataContainer.
|
pure virtual |
Returns the amount of specular highlight applied to a faces material.
Implemented in OdGiVisualStyleDataContainer::OdGiFaceStyleDataContainer.