CFx SDK Documentation
2020SP3
|
#include <GiVisualStyle.h>
Public Types | |
enum | Type { kFlat, kFlatWithEdges, kGouraud, kGouraudWithEdges, k2DWireframe, k3DWireframe, kHidden, kBasic, kRealistic, kConceptual, kCustom, kDim, kBrighten, kThicken, kLinePattern, kFacePattern, kColorChange, kFaceOnly, kEdgeOnly, kDisplayOnly, kJitterOff, kOverhangOff, kEdgeColorOff, kShadesOfGray, kSketchy, kXRay, kShadedWithEdges, kShaded, kByViewport, kByLayer, kByBlock, kEmptyStyle } |
typedef OdGiVisualStyleProperties::Property | Property |
typedef OdGiVisualStyleOperations::Operation | Operation |
Static Public Member Functions | |
static OdGiVariant::VariantType | propertyType (Property prop) |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
This class defines a collection of visual properties that can be applied to graphical entities.
Corresponding C++ library: TD_Gi <group OdGi_Classes>
Definition at line 995 of file GiVisualStyle.h.
Definition at line 1112 of file GiVisualStyle.h.
Definition at line 1111 of file GiVisualStyle.h.
Describes the type of visual style.
Definition at line 1003 of file GiVisualStyle.h.
Sets up all properties of this visual style to values predefined for the specified visual style type.
type | [in] Visual style type. |
|
pure virtual |
Returns a reference to OdGiDisplayStyle of this visual style.
Implemented in OdGiVisualStyleDataContainer.
|
pure virtual |
Returns a reference to OdGiDisplayStyle of this visual style.
Implemented in OdGiVisualStyleDataContainer, and OdGiVisualStyleDataContainer.
|
pure virtual |
Returns a reference to OdGiEdgeStyle of this visual style.
Implemented in OdGiVisualStyleDataContainer.
|
pure virtual |
Returns a reference to OdGiEdgeStyle of this visual style.
Implemented in OdGiVisualStyleDataContainer, and OdGiVisualStyleDataContainer.
|
pure virtual |
Returns a reference to OdGiFaceStyle of this visual style.
Implemented in OdGiVisualStyleDataContainer.
|
pure virtual |
Returns a reference to OdGiFaceStyle of this visual style.
Implemented in OdGiVisualStyleDataContainer, and OdGiVisualStyleDataContainer.
OdGiVisualStyle::ODRX_DECLARE_MEMBERS | ( | OdGiVisualStyle | ) |
Gets the operation associated with the given property of the visual style.
prop | [in] Property for which the associated operation value is to be returned. |
Implemented in OdGiVisualStyleDataContainer.
OdGiVisualStyle& OdGiVisualStyle::operator= | ( | const OdGiVisualStyle & | visualStyle | ) |
bool OdGiVisualStyle::operator== | ( | const OdGiVisualStyle & | visualStyle | ) | const |
|
static |
Returns the data type of the given visual style property.
prop | [in] Visual style property. |
|
pure virtual |
Copies all properties of OdGiDisplayStyle into this visual style.
style | [in] Collection of display properties. |
Implemented in OdGiVisualStyleDataContainer.
|
pure virtual |
Copies all properties of OdGiEdgeStyle into this visual style.
style | [in] Collection of edge properties. |
Implemented in OdGiVisualStyleDataContainer.
|
pure virtual |
Copies all properties of OdGiFaceStyle into this visual style.
style | [in] Collection of face properties. |
Implemented in OdGiVisualStyleDataContainer.
|
virtual |
Sets a boolean property of the visual style.
prop | [in] Property to set. |
bVal | [in] Property value to set. |
op | [in] Operation to use for setting the property. |
|
virtual |
Sets a color property of the visual style.
prop | [in] Color property to set. |
pColor | [in] Reference to the color value to set. |
op | [in] Operation to use for setting the property. |
|
virtual |
Sets a color property of the visual style.
prop | [in] Color property to set. |
pColor | [in] Reference to the color value to set. |
op | [in] Operation to use for setting the property. |
|
pure virtual |
Sets a property of the visual style.
prop | [in] Property to set. |
pVal | [in] Pointer to the OdGiVariant property value to set. |
op | [in] Operation to use for setting the property. |
Implemented in OdGiVisualStyleDataContainer.
|
virtual |
Sets a string property of the visual style.
prop | [in] String property to set. |
pStr | [in] Reference to string value to set. |
op | [in] Operation to use for setting the property. |
|
virtual |
Sets a double property of the visual style.
prop | [in] Property to set. |
bVal | [in] Property value to set. |
op | [in] Operation to use for setting the property. |
|
virtual |
Sets a color property of the visual style.
prop | [in] Color property to set. |
red | [in] Red color component value. Valid values are from 0.0 to 1.0. |
green | [in] Green component value. Valid values are from 0.0 to 1.0. |
blue | [in] Blue component value. Valid values are from 0.0 to 1.0. |
op | [in] Operation to use for setting the property. |
|
virtual |
Sets an integer property of the visual style.
prop | [in] Property to set. |
nVal | [in] Property value to set. |
op | [in] Operation to use for setting the property. |
Sets the operation associated with the given property.
prop | [in] The property for which the operation is to set. |
op | [in] The operation to use for setting the property. |
Implemented in OdGiVisualStyleDataContainer.
|
virtual |
Sets a property flag into the visual style (for properties which are bitfield enumerations).
flagProp | [in] Bitfield enumeration property to set. |
flagVal | [in] Bit flag enumeration property to set into the visual style. |
bEnable | [in] Bool value set to true to enable the flag, false to disable. |
|
pure virtual |
Sets the given visual style type. Multiple properties are modified to change the visual style into the specified type.
type | [in] Type of the visual style to set. All available types are defined in the Type enumeration. |
Implemented in OdGiVisualStyleDataContainer.
|
pure virtual |
Gets a property of the visual style.
prop | [in] Property to get. |
pOp | [out] Pointer to the operation used for the property. If NULL, nothing is returned. |
Implemented in OdGiVisualStyleDataContainer.
Returns whether the given property flag from the visual style is enabled (for properties which are bitfield enumerations).
flagProp | [in] Bitfield enumeration property. |
flagVal | [in] Bit flag enumeration property to check if it's enable. |
|
pure virtual |
Returns the current visual style type.
Implemented in OdGiVisualStyleDataContainer.