24 #ifndef __ODGISUBENTITYTRAITSDATA_H__
25 #define __ODGISUBENTITYTRAITSDATA_H__
80 OdDbStub* m_lineTypeId;
83 double m_lineTypeScale;
86 OdDbStub* m_plotStyleNameId;
87 OdDbStub* m_materialId;
89 OdDbStub* m_visualStyleId;
99 kSelectionGeom = 0x100,
129 , m_lineTypeScale(1.0)
132 , m_plotStyleNameId(
NULL)
135 , m_visualStyleId(
NULL)
136 , m_cmTransparency(
OdUInt8(0xFF))
140 , m_lsModifiers(
NULL)
157 OdDbStub*
layer()
const;
226 return (!bHighlighted) ? visFlags : (visFlags >> 2);
266 return m_lineTypeScale;
274 return m_plotStyleNameType;
278 return m_plotStyleNameId;
290 return m_visualStyleId;
294 return m_cmTransparency;
302 return GETBIT(m_selFlags, kSelectionGeom);
306 return m_shadowFlags;
310 return GETBIT(m_selFlags, kSectionable);
318 return m_cmSecondaryColor;
322 return m_lsModifiers;
352 m_lineTypeId = lineTypeId;
377 m_materialId = materialId;
385 m_visualStyleId = visualStyleId;
397 SETBIT(m_selFlags, kSelectionGeom, bSelectionFlag);
405 SETBIT(m_selFlags, kSectionable, bSectionableFlag);
417 m_lsModifiers = pLSMod;
#define SETBIT(flags, bit, value)
#define GETBIT(flags, bit)
void setColorIndex(OdInt16 colorIndex)
OdInt16 colorIndex() const
OdGiSubEntityTraits::ShadowFlags shadowFlags() const
bool isLayerFrozen() const
OdUInt16 geomVisibilityFlags() const
const OdCmEntityColor & secondaryTrueColor() const
OdDbStub * visualStyle() const
void setSelFlags(OdUInt16 selFlags)
OdGiFillType fillType() const
bool selectionGeom() const
OdDb::PlotStyleNameType plotStyleNameType() const
const OdGiDgLinetypeModifiers * lineStyleModifiers() const
bool isLayerVisible() const
OdUInt16 selFlags() const
void setPlotStyleName(OdDb::PlotStyleNameType plotStyleNameType, OdDbStub *pPlotStyleNameId)
void setLayer(OdDbStub *layerId)
OdUInt32 drawFlags() const
@ kGeomDisplayHighlighted
@ kGeomAllVisibilityFlags
void setLineType(OdDbStub *lineTypeId)
void setVisualStyle(OdDbStub *visualStyleId)
void setSelectionGeom(bool bSelectionFlag)
void setColor(OdUInt16 colorIndex)
void setTransparency(const OdCmTransparency &transparency)
OdDbStub * plotStyleNameId() const
void setMapper(const OdGiMapper *pMapper)
void setFillType(OdGiFillType fillType)
OdGiSubEntityTraitsData()
void setMaterial(OdDbStub *materialId)
void setSelectionFlags(OdGiSubEntityTraits::SelectionFlags selectionFlags)
OdDbStub * material() const
void setTrueColor(const OdCmEntityColor &trueColor)
void setThickness(double thickness)
void setDrawFlags(OdUInt32 drawFlags)
double lineTypeScale() const
void setFlags(OdUInt16 flags)
OdDb::LineWeight lineWeight() const
void setSectionable(bool bSectionableFlag)
void setSecondaryTrueColor(const OdCmEntityColor &trueColor)
void setShadowFlags(OdGiSubEntityTraits::ShadowFlags shadowFlags)
void setFill(const OdGiFill *pFill)
const OdGiFill * fill() const
const OdCmEntityColor & trueColor() const
void setLineWeight(OdDb::LineWeight lineWeight)
void setLineTypeScale(double lineTypeScale)
void setLineStyleModifiers(const OdGiDgLinetypeModifiers *pLSMod)
OdDbStub * lineType() const
OdGiSubEntityTraits::SelectionFlags selectionFlags() const
const OdCmTransparency & transparency() const
const OdGiMapper * mapper() const
@ kPlotStyleNameIsDictDefault