24#ifndef __ODGISUBENTITYTRAITSDATA_H__
25#define __ODGISUBENTITYTRAITSDATA_H__
107 OdDbStub* m_lineTypeId;
110 double m_lineTypeScale;
113 OdDbStub* m_plotStyleNameId;
114 OdDbStub* m_materialId;
116 OdDbStub* m_visualStyleId;
185 , m_lineWeight(
OdDb::kLnWt000)
186 , m_lineTypeScale(1.0)
188 , m_plotStyleNameType(
OdDb::kPlotStyleNameIsDictDefault)
189 , m_plotStyleNameId(NULL)
192 , m_visualStyleId(NULL)
193 , m_cmTransparency(
OdUInt8(0xFF))
198 , m_lsModifiers(NULL)
281 OdDbStub*
layer()
const;
621 return (!bHighlighted) ? visFlags : (visFlags >> 2);
661 return m_lineTypeScale;
669 return m_plotStyleNameType;
673 return m_plotStyleNameId;
685 return m_visualStyleId;
689 return m_cmTransparency;
705 return m_shadowFlags;
717 return m_cmSecondaryColor;
721 return m_lsModifiers;
752 if( !m_pAuxData.
isNull() )
756 if( !pLayerOverrides.
isNull() )
758 OdDbStub* pOverride = pLayerOverrides->getLayerOverride(layerId);
771 m_lineTypeId = lineTypeId;
796 m_materialId = materialId;
804 m_visualStyleId = visualStyleId;
840 m_lsModifiers = pLSMod;
849 m_pAuxData = pAuxData;
#define SETBIT(flags, bit, value)
#define GETBIT(flags, bit)
void setColorIndex(OdInt16 colorIndex)
OdInt16 colorIndex() const
virtual OdGiLayerOverridesPtr getLevelOverrides() const =0
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
@ kGeomDisplayHighlighted
@ kGeomAllVisibilityFlags
OdGiAuxiliaryDataPtr auxData() 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
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)
OdUInt32 lockFlags() const
void setDrawFlags(OdUInt32 drawFlags)
double lineTypeScale() const
void setAuxData(const OdGiAuxiliaryDataPtr &pAuxData)
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)
void setLockFlags(OdUInt32 lockFlags)
OdDbStub * lineType() const
OdGiSubEntityTraits::SelectionFlags selectionFlags() const
const OdCmTransparency & transparency() const
const OdGiMapper * mapper() const