CFx SDK Documentation
2023 SP0
|
#include <Gi.h>
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdGiSubEntityTraits) | |
virtual void | setColor (OdUInt16 color)=0 |
virtual void | setTrueColor (const OdCmEntityColor &color)=0 |
virtual void | setLayer (OdDbStub *layerId)=0 |
virtual void | setLineType (OdDbStub *lineTypeId)=0 |
virtual void | setSelectionMarker (OdGsMarker selectionMarker)=0 |
virtual void | setFillType (OdGiFillType fillType)=0 |
virtual void | setFillPlane (const OdGeVector3d *pNormal=0) |
virtual void | setLineWeight (OdDb::LineWeight lineWeight)=0 |
virtual void | setLineTypeScale (double lineTypeScale=1.0)=0 |
virtual void | setThickness (double thickness)=0 |
virtual void | setPlotStyleName (OdDb::PlotStyleNameType plotStyleNameType, OdDbStub *plotStyleNameId=0)=0 |
virtual void | setMaterial (OdDbStub *materialId)=0 |
virtual void | setMapper (const OdGiMapper *pMapper)=0 |
virtual void | setVisualStyle (const OdDbStub *visualStyleId) |
virtual void | setTransparency (const OdCmTransparency &transparency) |
virtual void | setDrawFlags (OdUInt32 drawFlags) |
virtual void | setSelectionGeom (bool bSelectionFlag) |
virtual void | setShadowFlags (ShadowFlags shadowFlags) |
virtual void | setSectionable (bool bSectionableFlag) |
virtual void | setSelectionFlags (SelectionFlags selectionFlags) |
virtual OdUInt16 | color () const =0 |
virtual OdCmEntityColor | trueColor () const =0 |
virtual OdDbStub * | layer () const =0 |
virtual OdDbStub * | lineType () const =0 |
virtual OdGiFillType | fillType () const =0 |
virtual bool | fillPlane (OdGeVector3d &normal) |
virtual OdDb::LineWeight | lineWeight () const =0 |
virtual double | lineTypeScale () const =0 |
virtual double | thickness () const =0 |
virtual OdDb::PlotStyleNameType | plotStyleNameType () const =0 |
virtual OdDbStub * | plotStyleNameId () const =0 |
virtual OdDbStub * | material () const =0 |
virtual const OdGiMapper * | mapper () const =0 |
virtual OdDbStub * | visualStyle () const |
virtual OdCmTransparency | transparency () const |
virtual OdUInt32 | drawFlags () const |
virtual bool | selectionGeom () const |
virtual ShadowFlags | shadowFlags () const |
virtual bool | sectionable () const |
virtual SelectionFlags | selectionFlags () const |
virtual void | setSecondaryTrueColor (const OdCmEntityColor &color) |
virtual OdCmEntityColor | secondaryTrueColor () const |
virtual void | setLineStyleModifiers (const OdGiDgLinetypeModifiers *pLSMod) |
virtual const OdGiDgLinetypeModifiers * | lineStyleModifiers () const |
virtual void | setFill (const OdGiFill *pFill) |
virtual const OdGiFill * | fill () const |
virtual bool | pushLineweightOverride (const OdGiLineweightOverride *pOverride) |
virtual void | popLineweightOverride () |
virtual OdUInt32 | setupForEntity () const |
virtual void | addLight (const OdDbStub *lightId) |
Public Member Functions inherited from OdGiDrawableTraits | |
ODRX_DECLARE_MEMBERS (OdGiDrawableTraits) | |
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 provides an interface to the graphical attributes of graphic primitives.
The functions in this class are implemented by the OdGiAbstractVectorizer class.
<group OdGi_Classes>
|
virtual |
Adds a light object to the model.
lightId | [in] Object ID of the light. |
Reimplemented in OdGiDummySubEntityTraits< OdGiSubEntityTraits >.
|
pure virtual |
Returns the current color index (ACI).
Value Description kACIbyBlock 0 ByBlock. kACIforeground 7 Foreground color. kACIbyLayer 256 ByLayer. kACIRed 1 Red. kACIYellow 2 Yellow. kACIGreen 3 Green. kACICyan 4 Cyan. kACIBlue 5 Blue. kACIMagenta 6 Magenta. .. 8-255 Defined by AcadPalette.h
Implemented in OdGiSubEntityTraits_, OdGiDummySubEntityTraits< OdGiSubEntityTraits >, and OdGiWorldDrawImpl.
|
virtual |
Return the current DrawFlags bitmask.
Reimplemented in OdGiLayerTraitsTaker, OdGiDummySubEntityTraits< OdGiSubEntityTraits >, and OdGiWorldDrawImpl.
|
virtual |
Return boundary filling parameters.
Reimplemented in OdGiLayerTraitsTaker, and OdGiWorldDrawImpl.
|
virtual |
Returns the normal to the current fill plane.
normal | [out] Receives the normal. |
Reimplemented in OdGiDummySubEntityTraits< OdGiSubEntityTraits >.
|
pure virtual |
Returns the current fill type.
Value Description kOdGiFillAlways 1 Fill closed graphic primitives. kOdGiFillNever 2 Don't fill closed graphic primitives.
Closed graphic primitives consist of the following: arcs with (OdGiArcType == kOdGiArcSector) || (OdGiArcType == kOdGiArcChord) circles meshes polygons shells
Implemented in OdGiLayerTraitsTaker, OdGiDummySubEntityTraits< OdGiSubEntityTraits >, and OdGiWorldDrawImpl.
|
pure virtual |
Returns the current layer.
Implemented in OdGiLayerTraitsTaker, OdGiDummySubEntityTraits< OdGiSubEntityTraits >, and OdGiWorldDrawImpl.
|
virtual |
Return pointer to the current Dgn Line Style modifiers structure.
Reimplemented in OdGiLayerTraitsTaker, and OdGiWorldDrawImpl.
|
pure virtual |
Returns the current linetype.
Implemented in OdGiLayerTraitsTaker, OdGiDummySubEntityTraits< OdGiSubEntityTraits >, and OdGiWorldDrawImpl.
|
pure virtual |
Returns the current linetype scale.
Implemented in OdGiLayerTraitsTaker, OdGiDummySubEntityTraits< OdGiSubEntityTraits >, and OdGiWorldDrawImpl.
|
pure virtual |
Returns the current lineweight.
Implemented in OdGiLayerTraitsTaker, OdGiDummySubEntityTraits< OdGiSubEntityTraits >, and OdGiWorldDrawImpl.
|
pure virtual |
Returns pointer to the current material mapper.
Implemented in OdGiLayerTraitsTaker, OdGiDummySubEntityTraits< OdGiSubEntityTraits >, and OdGiWorldDrawImpl.
|
pure virtual |
Returns the Object ID of the material.
Implemented in OdGiLayerTraitsTaker, OdGiDummySubEntityTraits< OdGiSubEntityTraits >, and OdGiWorldDrawImpl.
OdGiSubEntityTraits::ODRX_DECLARE_MEMBERS | ( | OdGiSubEntityTraits | ) |
|
pure virtual |
Returns object ID of the the plot style name.
Implemented in OdGiLayerTraitsTaker, OdGiDummySubEntityTraits< OdGiSubEntityTraits >, and OdGiWorldDrawImpl.
|
pure virtual |
Returns the current PlotStyleName type.
Value
kPlotStyleNameByLayer 0 kPlotStyleNameByBlock 1 kPlotStyleNameIsDictDefault 2 kPlotStyleNameById 3
Implemented in OdGiLayerTraitsTaker, OdGiDummySubEntityTraits< OdGiSubEntityTraits >, and OdGiWorldDrawImpl.
|
virtual |
Pop lineweight scale and style override from lineweight overrides stack.
Reimplemented in OdGiBaseVectorizerImpl.
|
virtual |
Push lineweight scale and style override into lineweight overrides stack.
pOverride | [in] New lineweight override. |
Reimplemented in OdGiBaseVectorizerImpl.
|
virtual |
Returns the current secondary color as an OdCmEntityColor instance.
Reimplemented in OdGiLayerTraitsTaker, and OdGiWorldDrawImpl.
|
virtual |
Return the current sectionable flag.
Reimplemented in OdGiLayerTraitsTaker, OdGiDummySubEntityTraits< OdGiSubEntityTraits >, and OdGiWorldDrawImpl.
|
virtual |
Return the current SelectionFlags.
Reimplemented in OdGiLayerTraitsTaker, OdGiDummySubEntityTraits< OdGiSubEntityTraits >, and OdGiWorldDrawImpl.
|
virtual |
Return the current selection geometry flag.
Reimplemented in OdGiLayerTraitsTaker, OdGiDummySubEntityTraits< OdGiSubEntityTraits >, and OdGiWorldDrawImpl.
Sets the current color index (ACI).
color | [in] Color index. |
Value Description kACIbyBlock 0 ByBlock. kACIforeground 7 Foreground color. kACIbyLayer 256 ByLayer. kACIRed 1 Red. kACIYellow 2 Yellow. kACIGreen 3 Green. kACICyan 4 Cyan. kACIBlue 5 Blue. kACIMagenta 6 Magenta. .. 8-255 Defined by AcadPalette.h
Implemented in OdGiDummySubEntityTraits< OdGiSubEntityTraits >, OdGiLayerTraitsTaker, OdGiBaseVectorizer, and OdGiWorldDrawImpl.
Sets the drawing flags.
drawFlags | [in] Input bitmask with DrawFlags. |
Reimplemented in OdGiDummySubEntityTraits< OdGiSubEntityTraits >, OdGiBaseVectorizer, and OdGiWorldDrawImpl.
Sets boundary filling.
pFill | [in] Boundary filling parameters. |
Reimplemented in OdGiBaseVectorizer, and OdGiWorldDrawImpl.
|
virtual |
Sets the current fill plane.
pNormal | [in] Pointer to the normal to the plane. |
Reimplemented in OdGiBaseVectorizerImpl, and OdGiDummySubEntityTraits< OdGiSubEntityTraits >.
|
pure virtual |
Sets the current fill type.
fillType | [in] Fill type. |
Value Description kOdGiFillAlways 1 Fill closed graphic primitives. kOdGiFillNever 2 Don't fill closed graphic primitives.
Closed graphic primitives consist of the following: arcs with (OdGiArcType == kOdGiArcSector) || (OdGiArcType == kOdGiArcChord) circles meshes polygons shells
Implemented in OdGiDummySubEntityTraits< OdGiSubEntityTraits >, OdGiBaseVectorizerImpl, OdGiBaseVectorizer, and OdGiWorldDrawImpl.
|
pure virtual |
Sets the current layer.
layerId | [in] Object ID of the LayerTableRecord. |
Implemented in OdGiBaseVectorizer, OdGiWorldDrawImpl, and OdGiDummySubEntityTraits< OdGiSubEntityTraits >.
|
virtual |
Sets Dgn Line Style modifiers.
pLSMod | [in] Pointer to structure with Dgn Line Style modifiers. |
Reimplemented in OdGiBaseVectorizer, and OdGiWorldDrawImpl.
|
pure virtual |
Sets the current linetype.
lineTypeId | [in] Object ID of the LinetypeTableRecord. |
Implemented in OdGiLayerTraitsTaker, OdGiBaseVectorizer, OdGiWorldDrawImpl, and OdGiDummySubEntityTraits< OdGiSubEntityTraits >.
|
pure virtual |
Sets the current linetype scale.
lineTypeScale | [in] Linetype scale factor. |
Implemented in OdGiDummySubEntityTraits< OdGiSubEntityTraits >, OdGiBaseVectorizer, and OdGiWorldDrawImpl.
|
pure virtual |
Sets the current lineweight.
lineWeight | [in] Lineweight. |
Implemented in OdGiDummySubEntityTraits< OdGiSubEntityTraits >, OdGiLayerTraitsTaker, OdGiBaseVectorizer, and OdGiWorldDrawImpl.
|
pure virtual |
Sets the current material mapper.
pMapper | [in] Pointer to the GI mapper object. |
Implemented in OdGiBaseVectorizer, OdGiWorldDrawImpl, and OdGiDummySubEntityTraits< OdGiSubEntityTraits >.
|
pure virtual |
Sets the current material.
materialId | [in] Object ID of the material. |
Implemented in OdGiLayerTraitsTaker, OdGiBaseVectorizer, OdGiWorldDrawImpl, and OdGiDummySubEntityTraits< OdGiSubEntityTraits >.
|
pure virtual |
Sets the current PlotStyleName.
plotStyleNameType | [in] Plot Style Name Type. |
plotStyleNameId | [in] Object ID of the Plot Style Name. |
plotStyleNameType must be one of the following:
Value
kPlotStyleNameByLayer 0 kPlotStyleNameByBlock 1 kPlotStyleNameIsDictDefault 2 kPlotStyleNameById 3
Implemented in OdGiDummySubEntityTraits< OdGiSubEntityTraits >, OdGiLayerTraitsTaker, OdGiBaseVectorizer, and OdGiWorldDrawImpl.
|
virtual |
Sets the current secondary color from an OdCmEntityColor instance.
color | [in] OdCmEntityColor object. |
Reimplemented in OdGiBaseVectorizer, and OdGiWorldDrawImpl.
|
virtual |
Sets sectionable flag.
bSectionableFlag | [in] New sectionable flag. |
Reimplemented in OdGiDummySubEntityTraits< OdGiSubEntityTraits >, OdGiBaseVectorizer, and OdGiWorldDrawImpl.
|
virtual |
Sets the selection flags.
selectionFlags | [in] Input SelectionFlags. |
Reimplemented in OdGiBaseVectorizer, OdGiWorldDrawImpl, and OdGiDummySubEntityTraits< OdGiSubEntityTraits >.
|
virtual |
Sets selection geometry flag.
bSelectionFlag | [in] New selection geometry flag. |
Reimplemented in OdGiDummySubEntityTraits< OdGiSubEntityTraits >, OdGiBaseVectorizer, and OdGiWorldDrawImpl.
|
pure virtual |
Sets the current selection marker.
marker | [in] Selection marker. |
Implemented in OdGiDummySubEntityTraits< OdGiSubEntityTraits >, OdGsBaseVectorizer, OdGiBaseVectorizer, and OdGiWorldDrawImpl.
|
virtual |
Sets the shadow flags.
shadowFlags | [in] Input ShadowFlags. |
Reimplemented in OdGiBaseVectorizer, OdGiWorldDrawImpl, and OdGiDummySubEntityTraits< OdGiSubEntityTraits >.
|
pure virtual |
Sets the current thickness.
thickness | [in] Thickness. |
Implemented in OdGiDummySubEntityTraits< OdGiSubEntityTraits >, OdGiBaseVectorizer, and OdGiWorldDrawImpl.
|
virtual |
Sets the current transparency.
transparency | [in] OdCmTransparency object. |
Reimplemented in OdGiLayerTraitsTaker, OdGiBaseVectorizer, OdGiWorldDrawImpl, and OdGiDummySubEntityTraits< OdGiSubEntityTraits >.
|
pure virtual |
Sets the current color from an OdCmEntityColor instance.
color | [in] OdCmEntityColor object. |
Implemented in OdGiBaseVectorizer, OdGiLayerTraitsTaker, OdGiWorldDrawImpl, and OdGiDummySubEntityTraits< OdGiSubEntityTraits >.
|
virtual |
Returns the set of SubEntityHints flags which can be used to provide more flexible tuning of subSetAttributes traits processing.
Reimplemented in OdGiBaseVectorizerImpl.
|
virtual |
Sets the current visual style.
visualStyleId | [in] Object ID of the visual style. |
Reimplemented in OdGiWorldDrawImpl, OdGiBaseVectorizer, and OdGiDummySubEntityTraits< OdGiSubEntityTraits >.
|
virtual |
Return the current ShadowFlags.
Reimplemented in OdGiLayerTraitsTaker, OdGiDummySubEntityTraits< OdGiSubEntityTraits >, and OdGiWorldDrawImpl.
|
pure virtual |
Returns the current thickness.
Implemented in OdGiLayerTraitsTaker, OdGiDummySubEntityTraits< OdGiSubEntityTraits >, and OdGiWorldDrawImpl.
|
virtual |
Returns the current transparency.
Reimplemented in OdGiLayerTraitsTaker, OdGiDummySubEntityTraits< OdGiSubEntityTraits >, and OdGiWorldDrawImpl.
|
pure virtual |
Returns the current color as an OdCmEntityColor instance.
Implemented in OdGiLayerTraitsTaker, OdGiDummySubEntityTraits< OdGiSubEntityTraits >, and OdGiWorldDrawImpl.
|
virtual |
Returns the Object ID of the visual style.
Reimplemented in OdGiLayerTraitsTaker, and OdGiWorldDrawImpl.