CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
OdGiLayerTraitsTaker Class Reference

#include <GiLayerTraitsData.h>

Inheritance diagram for OdGiLayerTraitsTaker:
OdGiLayerTraits_ OdGiDummyWorldDraw< OdGiDummyWorldGeometry< OdGiWorldDraw_ > > OdGiDummyViewportDraw< OdGiWrapperViewportGeometry< OdGiViewportDraw_ > > OdGiSubEntityTraits_ OdGiLayerTraitsData OdGiLayerTraits OdGiDummyCommonDraw< T > OdGiDummyCommonDraw< T > OdGiDummySubEntityTraits< OdGiSubEntityTraits > OdGiDrawableTraits OdGiSubEntityTraits OdRxObject OdGiDrawableTraits OdRxObject OdGiLayerTraitsTakerView

Public Member Functions

 OdGiLayerTraitsTaker ()
 
 OdGiLayerTraitsTaker (const OdGiBaseVectorizer *pRefView, OdGiContext *pContext=NULL)
 
void addRef ()
 
void release ()
 
void setRefView (const OdGiBaseVectorizer *pRefView)
 
void reset (const OdGiLayerTraitsData &ltData=OdGiLayerTraitsData())
 
OdDb::LineWeight lineweight () const
 
OdDbStub * linetype () const
 
OdDb::PlotStyleNameType plotStyleNameType () const
 
OdDbStub * plotStyleNameId () const
 
OdDbStub * materialId () const
 
void setColor (const OdCmEntityColor &color)
 
void setLineweight (OdDb::LineWeight lineweight)
 
void setLinetype (OdDbStub *pLinetypeId)
 
void setPlotStyleName (OdDb::PlotStyleNameType plotStyleNameType, OdDbStub *pPlotStyleNameId=0)
 
bool isOff () const
 
void setOff (bool bVal)
 
bool isPlottable () const
 
void setPlottable (bool bVal)
 
bool isLocked () const
 
void setLocked (bool bVal)
 
OdCmEntityColor trueColor () const
 
OdDbStub * layer () const
 
OdDbStub * lineType () const
 
OdGiFillType fillType () const
 
OdDb::LineWeight lineWeight () const
 
double lineTypeScale () const
 
double thickness () const
 
OdDbStub * material () const
 
const OdGiMappermapper () const
 
OdDbStub * visualStyle () const
 
OdCmTransparency transparency () const
 
OdUInt32 drawFlags () const
 
bool selectionGeom () const
 
ShadowFlags shadowFlags () const
 
bool sectionable () const
 
SelectionFlags selectionFlags () const
 
void setTrueColor (const OdCmEntityColor &color)
 
void setColor (OdUInt16 color)
 
void setLineType (OdDbStub *lineTypeId)
 
void setLineWeight (OdDb::LineWeight lineWeight)
 
void setMaterial (OdDbStub *pMaterialId)
 
void setTransparency (const OdCmTransparency &transparency)
 
OdCmEntityColor secondaryTrueColor () const
 
const OdGiDgLinetypeModifierslineStyleModifiers () const
 
const OdGiFillfill () const
 
OdGiRegenType regenType () const
 
bool regenAbort () const
 
OdGiSubEntityTraitssubEntityTraits () const
 
OdGiGeometryrawGeometry () const
 
bool isDragging () const
 
double deviation (const OdGiDeviationType deviationType, const OdGePoint3d &pointOnCurve) const
 
OdUInt32 numberOfIsolines () const
 
OdGiContextcontext () const
 
void setContext (OdGiContext *pContext)
 
OdGiViewportviewport () const
 
OdUInt32 sequenceNumber () const
 
bool isValidId (const OdUInt32 viewportId) const
 
OdDbStub * viewportObjectId () const
 
OdGeMatrix3d getModelToWorldTransform () const
 
OdGeMatrix3d getWorldToModelTransform () const
 
virtual OdGiAuxiliaryDataPtr auxData () const
 
virtual void setAuxData (const OdGiAuxiliaryDataPtr &pAuxData)
 
- Public Member Functions inherited from OdGiLayerTraits
 ODRX_DECLARE_MEMBERS (OdGiLayerTraits)
 
virtual OdCmEntityColor color () const =0
 
virtual OdDb::LineWeight lineweight () const =0
 
virtual OdDbStub * linetype () const =0
 
virtual OdDb::PlotStyleNameType plotStyleNameType () const =0
 
virtual OdDbStub * plotStyleNameId () const =0
 
virtual OdDbStub * materialId () const =0
 
virtual OdCmTransparency transparency () const =0
 
virtual void setColor (const OdCmEntityColor &color)=0
 
virtual void setLineweight (OdDb::LineWeight lineweight)=0
 
virtual void setLinetype (OdDbStub *pLinetypeId)=0
 
virtual void setPlotStyleName (OdDb::PlotStyleNameType plotStyleNameType, OdDbStub *pPlotStyleNameId=0)=0
 
virtual void setMaterial (OdDbStub *pMaterialId)=0
 
virtual void setTransparency (const OdCmTransparency &transparency)=0
 
- 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
 
virtual OdGiRegenType regenType () const
 
virtual bool regenAbort () const
 
virtual bool isDragging () const
 
virtual OdUInt32 numberOfIsolines () const
 
virtual double deviation (const OdGiDeviationType t, const OdGePoint3d &p) const
 
virtual OdGiViewportviewport () const
 
virtual OdUInt32 sequenceNumber () const
 
virtual bool isValidId (const OdUInt32 viewportId) const
 
virtual OdDbStub * viewportObjectId () const
 
- Public Member Functions inherited from OdGiDummySubEntityTraits< OdGiSubEntityTraits >
void setColor (OdUInt16 color)
 
void setTrueColor (const OdCmEntityColor &color)
 
void setLayer (OdDbStub *layerId)
 
void setLineType (OdDbStub *lineTypeId)
 
void setSelectionMarker (OdGsMarker selectionMarker)
 
void setFillType (OdGiFillType fillType)
 
void setFillPlane (const OdGeVector3d *pNormal=0)
 
void setLineWeight (OdDb::LineWeight lineWeight)
 
void setLineTypeScale (double lineTypeScale=1.0)
 
void setThickness (double thickness)
 
void setPlotStyleName (OdDb::PlotStyleNameType plotStyleNameType, OdDbStub *pPlotStyleNameId=0)
 
void setMaterial (OdDbStub *materialId)
 
void setMapper (const OdGiMapper *pMapper)
 
void setVisualStyle (const OdDbStub *visualStyleId)
 
void setTransparency (const OdCmTransparency &transparency)
 
void setDrawFlags (OdUInt32 drawFlags)
 
void setLockFlags (OdUInt32 lockFlags)
 
void setSelectionGeom (bool bSelectionFlag)
 
void setShadowFlags (OdGiSubEntityTraits::ShadowFlags shadowFlags)
 
void setSectionable (bool bSectionableFlag)
 
void setSelectionFlags (OdGiSubEntityTraits::SelectionFlags selectionFlags)
 
OdUInt16 color () const
 
OdCmEntityColor trueColor () const
 
OdDbStub * layer () const
 
OdDbStub * lineType () const
 
OdGiFillType fillType () const
 
bool fillPlane (OdGeVector3d &normal)
 
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
 
OdUInt32 lockFlags () 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 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 setLockFlags (OdUInt32 lockFlags)
 
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 OdGiMappermapper () const =0
 
virtual OdDbStub * visualStyle () const
 
virtual OdCmTransparency transparency () const
 
virtual OdUInt32 drawFlags () const
 
virtual OdUInt32 lockFlags () 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 OdGiDgLinetypeModifierslineStyleModifiers () const
 
virtual void setFill (const OdGiFill *pFill)
 
virtual const OdGiFillfill () const
 
virtual void setAuxData (const OdGiAuxiliaryDataPtr &pAuxData)
 
virtual OdGiAuxiliaryDataPtr auxData () const
 
virtual bool pushLineweightOverride (const OdGiLineweightOverride *pOverride)
 
virtual void popLineweightOverride ()
 
virtual bool pushPaletteOverride (const OdGiPalette *pOverride)
 
virtual void popPaletteOverride ()
 
virtual OdUInt32 setupForEntity () const
 
virtual void addLight (const OdDbStub *lightId)
 
- Public Member Functions inherited from OdGiLayerTraitsData
 OdGiLayerTraitsData ()
 
void operator= (const OdGiLayerTraitsData &other)
 
OdUInt32 flags () const
 
OdDb::LineWeight lineweight () const
 
OdDbStub * linetype () const
 
OdDb::PlotStyleNameType plotStyleNameType () const
 
OdDbStub * plotStyleNameId () const
 
const OdCmEntityColortrueColor () const
 
OdDbStub * materialId () const
 
OdCmTransparency transparency () const
 
void setTrueColor (const OdCmEntityColor &cl)
 
void setLineweight (OdDb::LineWeight lw)
 
void setLinetype (OdDbStub *id)
 
void setMaterial (OdDbStub *id)
 
void setTransparency (const OdCmTransparency &transparency)
 
bool isOff () const
 
void setOff (bool bVal)
 
bool isPlottable () const
 
void setPlottable (bool bVal)
 
bool isLocked () const
 
void setLocked (bool bVal)
 
bool isFrozen () const
 
bool isByBlock () const
 

Protected Member Functions

 ODRX_USING_HEAP_OPERATORS (OdGiDummyWorldDraw< OdGiDummyWorldGeometry< OdGiWorldDraw_ > >)
 
- Protected Member Functions inherited from OdGiLayerTraits_
OdCmEntityColor color () const
 
- Protected Member Functions inherited from OdGiSubEntityTraits_
OdUInt16 color () const
 

Additional Inherited Members

- Public Types inherited from OdGiLayerTraits
enum  {
  kByBlock = (OdGiDrawable::kLastFlag << 1) , kFrozen = (OdGiDrawable::kLastFlag << 2) , kOff = (OdGiDrawable::kLastFlag << 3) , kPlottable = (OdGiDrawable::kLastFlag << 4) ,
  kLocked = (OdGiDrawable::kLastFlag << 5)
}
 
- 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 , kDrawPolygonFill = 0x100000 , kExcludeFromViewExt = 0x200000 , kDrawDgLsPolyWithoutBreaks = 0x400000 ,
  kPolygonProcessing = 0x800000 , kDisableAutoGenerateNormals = 0x1000000 , kDisableFillModeCheck = 0x2000000 , kDrawUnderlayReference = 0x4000000 ,
  kLineStyleScaleOverride = 0x8000000 , kDisableDisplayClipping = 0x10000000 , kRegenTypeDependent2dDraw = 0x20000000 , kInternalDrawFlags = kDisableLayoutCache | kClipSetIsEmpty | kRegenTypeDependent2dDraw ,
  kDrawGeometryForExtents = 0x04000 , kFxNoFillOnSelect = 0x40000000 , kInheritableDrawFlags
}
 
enum  LockFlags {
  kNoLockFlags = 0x00000000 , kLockColors = 0x00000001 , kLockLineWeight = 0x00000002 , kLockLineType = 0x00000004 ,
  kLockLineTypeScale = 0x00000008 , kLockLayer = 0x00000010 , kLockByBlockLayer = 0x00000020 , kKeepAuxDataAndLockFlags = 0x00000040 ,
  kInheritableLockFlags = kLockColors | kLockLineWeight | kLockLineType | kLockLineTypeScale | kLockLayer | kKeepAuxDataAndLockFlags
}
 
enum  ShadowFlags { kShadowsCastAndReceive = 0 , kShadowsDoesNotCast = 1 , kShadowsDoesNotReceive = 2 , kShadowsIgnore = kShadowsDoesNotCast | kShadowsDoesNotReceive }
 
enum  SelectionFlags {
  kNoSelectionFlags = 0 , kSelectionIgnore = 1 , kHighlightingGeometry = 2 , kHiddenInHighlight = 4 ,
  kFxSubentitySelection = 0x80
}
 
enum  SubEntityHints {
  kHint2DAttributes = 1 , kHint3DAttributes = 2 , kHintAllAttributes = kHint2DAttributes | kHint3DAttributes , kHintSnapModeOn = 4 ,
  kHintDefaultState = kHintAllAttributes
}
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 
- Public Attributes inherited from OdGiLayerTraitsData
OdUInt32 m_flags
 
OdDb::LineWeight m_lineweight
 
OdDb::PlotStyleNameType m_plotStyleNameType
 
OdCmEntityColor m_color
 
OdDbStub * m_linetypeId
 
OdDbStub * m_plotStyleNameId
 
OdDbStub * m_materialId
 
OdCmTransparency m_cmTransparency
 

Detailed Description

This class implements OdGiLayerTraits, OdGiWorldDraw, and OdGIViewportDraw together as a single class that uses the OdDbLayerTableRecord::subSetAttributes(), OdDbLayerTableRecord::subWorldDraw(), and OdDbLayerTableRecord::subViewportDraw() functions to return layer trait values and store them temporarily.

See also
<link tv_working_with_attributes_layers, Work with Layers>

<group OdGi_Classes>

Definition at line 296 of file GiLayerTraitsData.h.

Constructor & Destructor Documentation

◆ OdGiLayerTraitsTaker() [1/2]

OdGiLayerTraitsTaker::OdGiLayerTraitsTaker ( )
inline

Default constructor for the OdGiLayerTraitsTaker class. Sets underlaying view and GI context to NULL.

Definition at line 764 of file GiLayerTraitsData.h.

◆ OdGiLayerTraitsTaker() [2/2]

OdGiLayerTraitsTaker::OdGiLayerTraitsTaker ( const OdGiBaseVectorizer pRefView,
OdGiContext pContext = NULL 
)
inline

Constructor for the OdGiLayerTraitsTaker class. Sets the object with the vectorizer and GI context.

Parameters
pRefView[in] Pointer to a vectorizer.
pContext[in] Pointer to GI context.

Definition at line 771 of file GiLayerTraitsData.h.

Member Function Documentation

◆ addRef()

void OdGiLayerTraitsTaker::addRef ( )
virtual

Adds one reference to this object.

Implements OdRxObject.

Reimplemented in OdGiLayerTraitsTakerView.

◆ auxData()

virtual OdGiAuxiliaryDataPtr OdGiLayerTraitsTaker::auxData ( ) const
inlinevirtual

Retrieves smart pointer to the auxiliary data for this object.

Reimplemented from OdGiSubEntityTraits.

Definition at line 741 of file GiLayerTraitsData.h.

◆ context()

OdGiContext * OdGiLayerTraitsTaker::context ( ) const

Retrieves context associated with this object.

◆ deviation()

double OdGiLayerTraitsTaker::deviation ( const OdGiDeviationType  deviationType,
const OdGePoint3d pointOnCurve 
) const
virtual

Retrieves the recommended maximum deviation of the current vectorization for the specified point on a curve.

Parameters
deviationType[in] Deviation type.
pointOnCurve[in] Point on a curve.
Returns
recommended maximum difference (with respect to the current active viewport) between the actual curve or surface, and the tessellated curve or surface.
Remarks
deviationType must be one of the following:

Value kOdGiMaxDevForCircle 0
kOdGiMaxDevForCurve 1
kOdGiMaxDevForBoundary 2
kOdGiMaxDevForIsoline 3 kOdGiMaxDevForFacet 4

Remarks
This method uses circle zoom percent as appropriate.

Reimplemented from OdGiDummyCommonDraw< T >.

Reimplemented in OdGiLayerTraitsTakerView.

◆ drawFlags()

OdUInt32 OdGiLayerTraitsTaker::drawFlags ( ) const
virtual

Retrieves draw flags for this layer.

Reimplemented from OdGiSubEntityTraits.

◆ fill()

const OdGiFill * OdGiLayerTraitsTaker::fill ( ) const
virtual

Retrieves pointer to the fill for this layer.

Reimplemented from OdGiSubEntityTraits.

◆ fillType()

OdGiFillType OdGiLayerTraitsTaker::fillType ( ) const
virtual

Retrieves fill type for a layer.

Implements OdGiSubEntityTraits.

◆ getModelToWorldTransform()

OdGeMatrix3d OdGiLayerTraitsTaker::getModelToWorldTransform ( ) const

Retrieves the model to world transformation matrix.

◆ getWorldToModelTransform()

OdGeMatrix3d OdGiLayerTraitsTaker::getWorldToModelTransform ( ) const

Retrieves the world to model transformation matrix.

◆ isDragging()

bool OdGiLayerTraitsTaker::isDragging ( ) const
virtual

Checks whether the associated vectorization process is the result of a "drag" operation.

Returns
true if vectorization process is the result of a "drag" operation, false otherwise.

Reimplemented from OdGiDummyCommonDraw< T >.

◆ isLocked()

bool OdGiLayerTraitsTaker::isLocked ( ) const
inline

Checks whether this layer is locked.

Returns
true if this layer is locked, false otherwise.

Definition at line 432 of file GiLayerTraitsData.h.

◆ isOff()

bool OdGiLayerTraitsTaker::isOff ( ) const
inline

Checks whether this layer is turned off.

Returns
true if this layer is off, false otherwise.

Definition at line 406 of file GiLayerTraitsData.h.

◆ isPlottable()

bool OdGiLayerTraitsTaker::isPlottable ( ) const
inline

Checks whether this layer is plottable.

Returns
true if this layer is plottable, false otherwise.

Definition at line 419 of file GiLayerTraitsData.h.

◆ isValidId()

bool OdGiLayerTraitsTaker::isValidId ( const OdUInt32  viewportId) const
virtual

Checks whether the identifier of an associated viewport is valid.

Parameters
viewportId[in] Identifier of a viewport to check.
Returns
true if the viewport identifier is valid, false otherwise.

Reimplemented from OdGiDummyViewportDraw< OdGiWrapperViewportGeometry< OdGiViewportDraw_ > >.

Reimplemented in OdGiLayerTraitsTakerView.

◆ layer()

OdDbStub * OdGiLayerTraitsTaker::layer ( ) const
virtual

Retrieves persistent layer identifier of the underlaying layer.

See also
<link tv_working_with_attributes_layers, Work with Layers>

Implements OdGiSubEntityTraits.

◆ lineStyleModifiers()

const OdGiDgLinetypeModifiers * OdGiLayerTraitsTaker::lineStyleModifiers ( ) const
virtual

Retrieves pointer to linetype modifiers for this layer.

Reimplemented from OdGiSubEntityTraits.

◆ linetype()

OdDbStub * OdGiLayerTraitsTaker::linetype ( ) const
virtual

Retrieves a pointer to persistent linetype identifier associated with the layer.

See also
<exref target="https://docs.opendesign.com/td/db_linetype.html">Working with Linetypes</exref>

Implements OdGiLayerTraits.

◆ lineType()

OdDbStub * OdGiLayerTraitsTaker::lineType ( ) const
virtual

Retrieves persistent linetype identifier.

See also
<exref target="https://docs.opendesign.com/td/db_linetype.html">Working with Linetypes</exref>

Implements OdGiSubEntityTraits.

◆ lineTypeScale()

double OdGiLayerTraitsTaker::lineTypeScale ( ) const
virtual

Retrieves linetype scale for a layer.

See also
<exref target="https://docs.opendesign.com/td/db_linetype_properties.html">Specific Properties of Linetypes</exref>

Implements OdGiSubEntityTraits.

◆ lineweight()

OdDb::LineWeight OdGiLayerTraitsTaker::lineweight ( ) const
virtual

Retrieves lineweight associated with this layer.

See also
<link tv_working_with_attributes_lineweights, Work with Lineweights>

Implements OdGiLayerTraits.

◆ lineWeight()

OdDb::LineWeight OdGiLayerTraitsTaker::lineWeight ( ) const
virtual

Retrieves lineweight for a layer.

See also
<link tv_working_with_attributes_lineweights, Work with Lineweights>

Implements OdGiSubEntityTraits.

◆ mapper()

const OdGiMapper * OdGiLayerTraitsTaker::mapper ( ) const
virtual

Retrieves pointer a mapper for this layer.

See also
<link tv_working_with_attributes_materials_mapping, Work with Mapping Properties>

Implements OdGiSubEntityTraits.

◆ material()

OdDbStub * OdGiLayerTraitsTaker::material ( ) const
virtual

Retrieves persistent material identifier.

See also
<link tv_working_with_attributes_materials, Work with Materials>

Implements OdGiSubEntityTraits.

◆ materialId()

OdDbStub * OdGiLayerTraitsTaker::materialId ( ) const
virtual

Retrieves pointer to persistent material identifier associated with the layer.

See also
<link tv_working_with_attributes_materials, Work with Materials>

Implements OdGiLayerTraits.

◆ numberOfIsolines()

OdUInt32 OdGiLayerTraitsTaker::numberOfIsolines ( ) const
virtual

Retrieves count of isolines that are used to represent an entity.

Remarks
Isolines are lines or curves which are used to represent the entity. For example, if an entity is a sphere and this method returns 3, the sphere should be displayed as 3 circles with a common center and planes that are perpendicular to each other.

Reimplemented from OdGiDummyCommonDraw< T >.

Reimplemented in OdGiLayerTraitsTakerView.

◆ ODRX_USING_HEAP_OPERATORS()

OdGiLayerTraitsTaker::ODRX_USING_HEAP_OPERATORS ( OdGiDummyWorldDraw< OdGiDummyWorldGeometry< OdGiWorldDraw_ > >  )
protected

◆ plotStyleNameId()

OdDbStub * OdGiLayerTraitsTaker::plotStyleNameId ( ) const
virtual

Retrieves pointer to persistent plot style name identifier associated with the layer.

Implements OdGiLayerTraits.

◆ plotStyleNameType()

OdDb::PlotStyleNameType OdGiLayerTraitsTaker::plotStyleNameType ( ) const
virtual

Retrieves plot style name type of this layer.

Implements OdGiLayerTraits.

◆ rawGeometry()

OdGiGeometry & OdGiLayerTraitsTaker::rawGeometry ( ) const

Retrieves geometry data for this layer.

◆ regenAbort()

bool OdGiLayerTraitsTaker::regenAbort ( ) const
virtual

Checks whether the vectorization process should be aborted.

Returns
true if vectorization process should be aborted, false otherwise.

Reimplemented from OdGiDummyCommonDraw< T >.

Reimplemented in OdGiLayerTraitsTakerView.

◆ regenType()

OdGiRegenType OdGiLayerTraitsTaker::regenType ( ) const
virtual

Retrieves regeneration type for this layer.

Reimplemented from OdGiDummyCommonDraw< T >.

Reimplemented in OdGiLayerTraitsTakerView.

◆ release()

void OdGiLayerTraitsTaker::release ( )
virtual

Removes one reference from this object.

Implements OdRxObject.

Reimplemented in OdGiLayerTraitsTakerView.

◆ reset()

void OdGiLayerTraitsTaker::reset ( const OdGiLayerTraitsData ltData = OdGiLayerTraitsData())
inline

Resets layer traits to default.

Definition at line 336 of file GiLayerTraitsData.h.

◆ secondaryTrueColor()

OdCmEntityColor OdGiLayerTraitsTaker::secondaryTrueColor ( ) const
virtual

Retrieves secondary color for this layer.

Reimplemented from OdGiSubEntityTraits.

◆ sectionable()

bool OdGiLayerTraitsTaker::sectionable ( ) const
virtual

Checks whether content of this layer is sectionable.

Returns
true if content of this layer is sectionable, false otherwise.
See also
<link tv_planarClip_sample, Planar Clipping Section Generation for a Custom Entity>

Reimplemented from OdGiSubEntityTraits.

◆ selectionFlags()

SelectionFlags OdGiLayerTraitsTaker::selectionFlags ( ) const
virtual

Retrieves shadow flags of for this layer.

Returns
true if geometry of this layer can be selected, false otherwise.

Reimplemented from OdGiSubEntityTraits.

◆ selectionGeom()

bool OdGiLayerTraitsTaker::selectionGeom ( ) const
virtual

Checks whether geometry of this layer can be selected.

Returns
true if geometry of this layer can be selected, false otherwise.
See also
<link tv_working_with_features_selections, Work with Selections>

Reimplemented from OdGiSubEntityTraits.

◆ sequenceNumber()

OdUInt32 OdGiLayerTraitsTaker::sequenceNumber ( ) const
virtual

Returns the number of viewports that have been deleted from the current database during this editing session.

Reimplemented from OdGiDummyViewportDraw< OdGiWrapperViewportGeometry< OdGiViewportDraw_ > >.

Reimplemented in OdGiLayerTraitsTakerView.

◆ setAuxData()

virtual void OdGiLayerTraitsTaker::setAuxData ( const OdGiAuxiliaryDataPtr pAuxData)
inlinevirtual

Sets the auxiliary data for this object.

Parameters
pAuxData[in] Smart pointer to the auxiliary data.

Reimplemented from OdGiSubEntityTraits.

Definition at line 748 of file GiLayerTraitsData.h.

◆ setColor() [1/2]

void OdGiLayerTraitsTaker::setColor ( const OdCmEntityColor color)
virtual

Sets color for this layer.

Parameters
color[in] Color to set.
See also
<exref target="https://docs.opendesign.com/td/cm.html">Working with Colors</exref>

Implements OdGiLayerTraits.

◆ setColor() [2/2]

void OdGiLayerTraitsTaker::setColor ( OdUInt16  color)
virtual

Sets color for this layer.

Parameters
color[in] Color to set.
See also
<exref target="https://docs.opendesign.com/td/cm.html">Working with Colors</exref>

Implements OdGiSubEntityTraits.

◆ setContext()

void OdGiLayerTraitsTaker::setContext ( OdGiContext pContext)
inline

Sets GI context for this object.

Parameters
pContext[in] Pointer to GI context.

Definition at line 758 of file GiLayerTraitsData.h.

◆ setLineType()

void OdGiLayerTraitsTaker::setLineType ( OdDbStub *  lineTypeId)
virtual

Sets linetype identifier for this layer.

Parameters
lineTypeId[in] Linetype identifier to set.
See also
<exref target="https://docs.opendesign.com/td/db_linetype.html">Working with Linetypes</exref>

Implements OdGiSubEntityTraits.

◆ setLinetype()

void OdGiLayerTraitsTaker::setLinetype ( OdDbStub *  pLinetypeId)
virtual

Sets linetype for this layer.

Parameters
pLinetypeId[in] Pointer to persistent identifier of a linetype to set.
See also
<exref target="https://docs.opendesign.com/td/db_linetype.html">Working with Linetypes</exref>

Implements OdGiLayerTraits.

◆ setLineweight()

void OdGiLayerTraitsTaker::setLineweight ( OdDb::LineWeight  lineweight)
virtual

Sets lineweight associated for this layer.

Parameters
lineweight[in] LineWeight to set.
See also
<link tv_working_with_attributes_lineweights, Work with Lineweights>

Implements OdGiLayerTraits.

◆ setLineWeight()

void OdGiLayerTraitsTaker::setLineWeight ( OdDb::LineWeight  lineWeight)
virtual

Sets lineweight for this layer.

Parameters
lineWeight[in] Lineweight to set.
See also
<link tv_working_with_attributes_lineweights, Work with Lineweights>

Implements OdGiSubEntityTraits.

◆ setLocked()

void OdGiLayerTraitsTaker::setLocked ( bool  bVal)
inline

Specifies whether this layer is locked.

Parameters
bVal[in] Flag that specifies whether this layer should be locked.

Definition at line 438 of file GiLayerTraitsData.h.

◆ setMaterial()

void OdGiLayerTraitsTaker::setMaterial ( OdDbStub *  pMaterialId)
virtual

Sets material for this layer.

Parameters
pMaterialId[in] Pointer to persistent material identifier.
See also
<link tv_working_with_attributes_materials, Work with Materials>

Implements OdGiLayerTraits.

◆ setOff()

void OdGiLayerTraitsTaker::setOff ( bool  bVal)
inline

Switches the layer on or off.

Parameters
bVal[in] Layer state.

Definition at line 412 of file GiLayerTraitsData.h.

◆ setPlotStyleName()

void OdGiLayerTraitsTaker::setPlotStyleName ( OdDb::PlotStyleNameType  plotStyleNameType,
OdDbStub *  pPlotStyleNameId = 0 
)
virtual

Sets plot style name for this layer.

Parameters
plotStyleNameType[in] Plot style name type.
pPlotStyleNameId[in] Pointer to persistent plot style name identifier.

Implements OdGiLayerTraits.

◆ setPlottable()

void OdGiLayerTraitsTaker::setPlottable ( bool  bVal)
inline

Specifies whether this layer is plottable.

Parameters
bVal[in] Flag that specifies whether this layer should be plottable.

Definition at line 425 of file GiLayerTraitsData.h.

◆ setRefView()

void OdGiLayerTraitsTaker::setRefView ( const OdGiBaseVectorizer pRefView)
inline

Definition at line 752 of file GiLayerTraitsData.h.

◆ setTransparency()

void OdGiLayerTraitsTaker::setTransparency ( const OdCmTransparency transparency)
virtual

Sets transparency for this layer.

Parameters
transparency[in] Transparency to set.
See also
<exref target="https://docs.opendesign.com/td/cm_transparency_alpha.html">Transparency Functionality as an Alpha-value</exref>
<exref target="https://docs.opendesign.com/td/cm_transparency_integer.html">Transparency Functionality as an Integer-value</exref>

Implements OdGiLayerTraits.

◆ setTrueColor()

void OdGiLayerTraitsTaker::setTrueColor ( const OdCmEntityColor color)
virtual

Sets color for this layer.

Parameters
color[in] Color to set.
See also
<exref target="https://docs.opendesign.com/td/cm.html">Working with Colors</exref>

Implements OdGiSubEntityTraits.

◆ shadowFlags()

ShadowFlags OdGiLayerTraitsTaker::shadowFlags ( ) const
virtual

Retrieves shadow flags for this layer.

Returns
true if geometry of this layer can be selected, false otherwise.
See also
<link gi_shadows_rendering, Shadows Visualization>

Reimplemented from OdGiSubEntityTraits.

◆ subEntityTraits()

OdGiSubEntityTraits & OdGiLayerTraitsTaker::subEntityTraits ( ) const

Retrieves subentity traits associated with this layer.

◆ thickness()

double OdGiLayerTraitsTaker::thickness ( ) const
virtual

Retrieves thickness for a layer.

Implements OdGiSubEntityTraits.

◆ transparency()

OdCmTransparency OdGiLayerTraitsTaker::transparency ( ) const
virtual

Retrieves transparency for this layer.

See also
<exref target="https://docs.opendesign.com/td/cm_transparency_alpha.html">Transparency Functionality as an Alpha-value</exref>
<exref target="https://docs.opendesign.com/td/cm_transparency_integer.html">Transparency Functionality as an Integer-value</exref>

Implements OdGiLayerTraits.

◆ trueColor()

OdCmEntityColor OdGiLayerTraitsTaker::trueColor ( ) const
virtual

Retrieves color for this layer.

See also
<exref target="https://docs.opendesign.com/td/cm.html">Working with Colors</exref>

Implements OdGiLayerTraits_.

◆ viewport()

OdGiViewport & OdGiLayerTraitsTaker::viewport ( ) const
virtual

Retrieves a reference to a viewport.

Reimplemented from OdGiDummyViewportDraw< OdGiWrapperViewportGeometry< OdGiViewportDraw_ > >.

Reimplemented in OdGiLayerTraitsTakerView.

◆ viewportObjectId()

OdDbStub * OdGiLayerTraitsTaker::viewportObjectId ( ) const
virtual

Retrieves the persistent identifier of an associated viewport.

Reimplemented from OdGiDummyViewportDraw< OdGiWrapperViewportGeometry< OdGiViewportDraw_ > >.

Reimplemented in OdGiLayerTraitsTakerView.

◆ visualStyle()

OdDbStub * OdGiLayerTraitsTaker::visualStyle ( ) const
virtual

Retrieves persistent visual style identifier.

See also
<link tv_working_with_attributes_visual_styles, Work with Visual Styles>

Reimplemented from OdGiSubEntityTraits.


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