CFx SDK Documentation  2022 SP0
Protected Member Functions | List of all members
OdGiSubEntityTraits_ Class Referenceabstract

#include <GiLayerTraitsData.h>

Inheritance diagram for OdGiSubEntityTraits_:
OdGiDummySubEntityTraits< OdGiSubEntityTraits > OdGiSubEntityTraits OdGiDrawableTraits OdRxObject OdGiLayerTraitsTaker OdGiLayerTraitsTakerView

Protected Member Functions

OdUInt16 color () const
 

Additional Inherited Members

- Public Types inherited from OdGiSubEntityTraits
enum  DrawFlags {
  kNoDrawFlags = 0x0000 , kDrawBackfaces = 0x0001 , kDrawHatchGroup = 0x0002 , kDrawFrontfacesOnly = 0x0004 ,
  kDrawGradientFill = 0x0008 , kDrawSolidFill = 0x0010 , kDrawNoLineWeight = 0x0020 , kDrawNoPlotstyle = 0x0080 ,
  kDrawContourFill = 0x08000 , kDisableLayoutCache = 0x10000 , kDrawBoundaryForClipping = 0x20000 , kDrawBoundaryForClippingDrw = 0x40000 ,
  kClipSetIsEmpty = 0x80000 , kInternalDrawFlags = kDisableLayoutCache | kClipSetIsEmpty , kDrawPolygonFill = 0x100000 , kExcludeFromViewExt = 0x200000 ,
  kDrawDgLsPolyWithoutBreaks = 0x400000 , kPolygonProcessing = 0x800000 , kDisableAutoGenerateNormals = 0x1000000 , kDisableFillModeCheck = 0x2000000 ,
  kDrawUnderlayReference = 0x4000000 , kFxNoFillOnSelect = 0x08000000 , kInheritableDrawFlags
}
 
enum  ShadowFlags { kShadowsCastAndReceive = 0 , kShadowsDoesNotCast = 1 , kShadowsDoesNotReceive = 2 , kShadowsIgnore = kShadowsDoesNotCast | kShadowsDoesNotReceive }
 
enum  SelectionFlags { kNoSelectionFlags = 0 , kSelectionIgnore = 1 , kHighlightingGeometry = 2 , kFxSubentitySelection = 0x80 }
 
enum  SubEntityHints {
  kHint2DAttributes = 1 , kHint3DAttributes = 2 , kHintAllAttributes = kHint2DAttributes | kHint3DAttributes , kHintSnapModeOn = 4 ,
  kHintDefaultState = kHintAllAttributes
}
 
- Public Member Functions inherited from OdGiDummySubEntityTraits< OdGiSubEntityTraits >
void setColor (OdUInt16)
 
void setTrueColor (const OdCmEntityColor &)
 
void setLayer (OdDbStub *)
 
void setLineType (OdDbStub *)
 
void setSelectionMarker (OdGsMarker)
 
void setFillType (OdGiFillType)
 
void setFillPlane (const OdGeVector3d *=0)
 
void setLineWeight (OdDb::LineWeight)
 
void setLineTypeScale (double=1.0)
 
void setThickness (double)
 
void setPlotStyleName (OdDb::PlotStyleNameType, OdDbStub *=0)
 
void setMaterial (OdDbStub *)
 
void setMapper (const OdGiMapper *)
 
void setVisualStyle (const OdDbStub *)
 
void setTransparency (const OdCmTransparency &)
 
void setDrawFlags (OdUInt32)
 
void setSelectionGeom (bool)
 
void setShadowFlags (OdGiSubEntityTraits::ShadowFlags)
 
void setSectionable (bool)
 
void setSelectionFlags (OdGiSubEntityTraits::SelectionFlags)
 
OdUInt16 color () const
 
OdCmEntityColor trueColor () const
 
OdDbStub * layer () const
 
OdDbStub * lineType () const
 
OdGiFillType fillType () const
 
bool fillPlane (OdGeVector3d &)
 
OdDb::LineWeight lineWeight () const
 
double lineTypeScale () const
 
double thickness () const
 
OdDb::PlotStyleNameType plotStyleNameType () const
 
OdDbStub * plotStyleNameId () const
 
OdDbStub * material () const
 
const OdGiMappermapper () const
 
void addLight (const OdDbStub *)
 
OdCmTransparency transparency () const
 
OdUInt32 drawFlags () const
 
bool selectionGeom () const
 
OdGiSubEntityTraits::ShadowFlags shadowFlags () const
 
bool sectionable () const
 
OdGiSubEntityTraits::SelectionFlags selectionFlags () const
 
- Public Member Functions inherited from OdGiSubEntityTraits
 ODRX_DECLARE_MEMBERS (OdGiSubEntityTraits)
 
virtual OdDbStub * visualStyle () const
 
virtual void setSecondaryTrueColor (const OdCmEntityColor &color)
 
virtual OdCmEntityColor secondaryTrueColor () const
 
virtual void setLineStyleModifiers (const OdGiDgLinetypeModifiers *pLSMod)
 
virtual const OdGiDgLinetypeModifierslineStyleModifiers () const
 
virtual void setFill (const OdGiFill *pFill)
 
virtual const OdGiFillfill () const
 
virtual bool pushLineweightOverride (const OdGiLineweightOverride *pOverride)
 
virtual void popLineweightOverride ()
 
virtual OdUInt32 setupForEntity () const
 
- Public Member Functions inherited from OdGiDrawableTraits
 ODRX_DECLARE_MEMBERS (OdGiDrawableTraits)
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () 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
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Detailed Description

This class provides an implementation of the OdGisubEntityTraits::color() function.

See also
TD_Gi

<group OdGi_Classes>

Definition at line 60 of file GiLayerTraitsData.h.

Member Function Documentation

◆ color()

OdUInt16 OdGiSubEntityTraits_::color ( ) const
inlineprotectedvirtual

Returns the current color index (ACI).

Remarks
color() returns one of the following:

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

Implements OdGiSubEntityTraits.

Definition at line 64 of file GiLayerTraitsData.h.


The documentation for this class was generated from the following file: