CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdGiLayerTraitsTaker Class Reference

#include <GiLayerTraitsData.h>

Inheritance diagram for OdGiLayerTraitsTaker:
OdGiLayerTraits_ OdGiDummyWorldDraw< OdGiDummyWorldGeometry< OdGiWorldDraw_ > > OdGiDummyViewportDraw< OdGiWrapperViewportGeometry< OdGiViewportDraw_ > > OdGiSubEntityTraits_ OdGiLayerTraitsData OdGiLayerTraits OdGiDummyCommonDraw< OdGiDummyWorldGeometry< OdGiWorldDraw_ > > OdGiDummyCommonDraw< OdGiWrapperViewportGeometry< OdGiViewportDraw_ > > OdGiDummySubEntityTraits< OdGiSubEntityTraits > OdGiDrawableTraits OdGiDummyWorldGeometry< OdGiWorldDraw_ > OdGiWrapperViewportGeometry< OdGiViewportDraw_ > OdGiSubEntityTraits OdRxObject OdGiDummyGeometry< OdGiWorldDraw_ > OdGiWrapperGeometry< OdGiViewportDraw_ > OdGiDrawableTraits OdGiWorldDraw_ OdGiViewportDraw_ OdRxObject OdGiWorldDraw OdGiWorldGeometry OdGiViewportDraw OdGiViewportGeometry OdGiCommonDraw OdGiGeometry OdGiCommonDraw OdGiGeometry OdRxObject OdRxObject OdRxObject OdRxObject OdGiLayerTraitsTakerView

Public Member Functions

 OdGiLayerTraitsTaker ()
 
 OdGiLayerTraitsTaker (const OdGiBaseVectorizer *pRefView, OdGiContext *pContext=NULL)
 
void addRef ()
 
void release () ODRX_NOEXCEPT
 
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)
 
- 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 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
 
- Public Member Functions inherited from OdGiDummyWorldGeometry< OdGiWorldDraw_ >
virtual void setExtents (const OdGePoint3d *newExtents)
 
virtual void startAttributesSegment ()
 
- Public Member Functions inherited from OdGiDummyGeometry< OdGiWorldDraw_ >
void circle (const OdGePoint3d &center, double radius, const OdGeVector3d &normal)
 
void circle (const OdGePoint3d &firstPoint, const OdGePoint3d &secondPoint, const OdGePoint3d &thirdPoint)
 
void circularArc (const OdGePoint3d &center, double radius, const OdGeVector3d &normal, const OdGeVector3d &startVector, double sweepAngle, OdGiArcType arcType=kOdGiArcSimple)
 
void circularArc (const OdGePoint3d &firstPoint, const OdGePoint3d &secondPoint, const OdGePoint3d &thirdPoint, OdGiArcType arcType=kOdGiArcSimple)
 
void polyline (OdInt32 numVertices, const OdGePoint3d *vertexList, const OdGeVector3d *pNormal=0, OdGsMarker baseSubEntMarker=-1)
 
void polygon (OdInt32 numVertices, const OdGePoint3d *vertexList)
 
void polygon (OdInt32 numVertices, const OdGePoint3d *vertexList, const OdGeVector3d *pNormal)
 
void pline (const OdGiPolyline &polylPine, OdUInt32 fromIndex=0, OdUInt32 numSegs=0)
 
void shape (const OdGePoint3d &position, const OdGeVector3d &normal, const OdGeVector3d &direction, int shapeNumber, const OdGiTextStyle *pTextStyle)
 
void text (const OdGePoint3d &position, const OdGeVector3d &normal, const OdGeVector3d &direction, double height, double width, double oblique, const OdString &msg)
 
void text (const OdGePoint3d &position, const OdGeVector3d &normal, const OdGeVector3d &direction, const OdChar *msg, OdInt32 length, bool raw, const OdGiTextStyle *pTextStyle)
 
void xline (const OdGePoint3d &firstPoint, const OdGePoint3d &secondPoint)
 
void ray (const OdGePoint3d &basePoint, const OdGePoint3d &throughPoint)
 
void nurbs (const OdGeNurbCurve3d &nurbsCurve)
 
void ellipArc (const OdGeEllipArc3d &ellipArc, const OdGePoint3d *endPointsOverrides=0, OdGiArcType arcType=kOdGiArcSimple)
 
void mesh (OdInt32 numRows, OdInt32 numColumns, const OdGePoint3d *vertexList, const OdGiEdgeData *pEdgeData=0, const OdGiFaceData *pFaceData=0, const OdGiVertexData *pVertexData=0)
 
void shell (OdInt32 numVertices, const OdGePoint3d *vertexList, OdInt32 faceListSize, const OdInt32 *faceList, const OdGiEdgeData *pEdgeData=0, const OdGiFaceData *pFaceData=0, const OdGiVertexData *pVertexData=0)
 
void worldLine (const OdGePoint3d points[2])
 
void image (const OdGiImageBGRA32 &img, const OdGePoint3d &origin, const OdGeVector3d &uVec, const OdGeVector3d &vVec, OdGiRasterImage::TransparencyMode trpMode=OdGiRasterImage::kTransparency8Bit)
 
virtual void edge (const OdGiEdge2dArray &edges)
 
void polypoint (OdInt32 numPoints, const OdGePoint3d *vertexList, const OdCmEntityColor *pColors, const OdCmTransparency *pTransparency, const OdGeVector3d *pNormals, const OdGsMarker *pSubEntMarkers, OdInt32 nPointSize)
 
virtual void polyPolygon (OdUInt32 numIndices, const OdUInt32 *pNumPositions, const OdGePoint3d *pPositions, const OdUInt32 *pNumPoints, const OdGePoint3d *pPoints, const OdCmEntityColor *pOutlineColors=NULL, const OdUInt32 *pOutlinePsLinetypes=NULL, const OdCmEntityColor *pFillColors=NULL, const OdCmTransparency *pFillTransparencies=NULL)
 
void rowOfDots (OdInt32 numPoints, const OdGePoint3d &startPoint, const OdGeVector3d &dirToNextPoint)
 
void pointCloud (const OdGiPointCloud &pCloud)
 
void pushClipBoundary (OdGiClipBoundary *pBoundary)
 
void popClipBoundary ()
 
void draw (const OdGiDrawable *pDrawable)
 
void pushModelTransform (const OdGeMatrix3d &xMat)
 
void pushModelTransform (const OdGeVector3d &normal)
 
void popModelTransform ()
 
bool brep (const OdGiBrep &)
 
- Public Member Functions inherited from OdGiWorldDraw_
OdGiWorldGeometrygeometry () const
 
const OdGiPathNodecurrentGiPath () const
 
- Public Member Functions inherited from OdGiWorldDraw
 ODRX_DECLARE_MEMBERS (OdGiWorldDraw)
 
- Public Member Functions inherited from OdGiCommonDraw
 ODRX_DECLARE_MEMBERS (OdGiCommonDraw)
 
virtual bool displayModelerSilhouettes () const
 
- Public Member Functions inherited from OdGiWorldGeometry
 ODRX_DECLARE_MEMBERS (OdGiWorldGeometry)
 
- Public Member Functions inherited from OdGiGeometry
 ODRX_DECLARE_MEMBERS (OdGiGeometry)
 
virtual void pushClipBoundary (OdGiClipBoundary *pBoundary, OdGiAbstractClipBoundary *pClipInfo)
 
ODRX_SEALED_VIRTUAL void polypoint (OdInt32 numPoints, const OdGePoint3d *vertexList, const OdCmEntityColor *pColors, const OdGeVector3d *pNormals=NULL, const OdGsMarker *pSubEntMarkers=NULL) ODRX_FINAL
 
ODRX_SEALED_VIRTUAL void polypoint (OdInt32 numPoints, const OdGePoint3d *vertexList, const OdGeVector3d *pNormals=NULL, const OdGsMarker *pSubEntMarkers=NULL) ODRX_FINAL
 
- Public Member Functions inherited from OdGiWrapperViewportGeometry< OdGiViewportDraw_ >
virtual void polylineEye (OdUInt32 numVertices, const OdGePoint3d *vertexList)
 
virtual void polygonEye (OdUInt32 numVertices, const OdGePoint3d *vertexList)
 
virtual void polylineDc (OdUInt32 numVertices, const OdGePoint3d *vertexList)
 
virtual void polygonDc (OdUInt32 numVertices, const OdGePoint3d *vertexList)
 
virtual void rasterImageDc (const OdGePoint3d &origin, const OdGeVector3d &u, const OdGeVector3d &v, const OdGiRasterImage *pImage, const OdGePoint2d *uvBoundary, OdUInt32 numBoundPts, bool transparency=false, double brightness=50.0, double contrast=50.0, double fade=0.0)
 
virtual void metafileDc (const OdGePoint3d &origin, const OdGeVector3d &u, const OdGeVector3d &v, const OdGiMetafile *pMetafile, bool dcAligned=true, bool allowClipping=false)
 
virtual void ownerDrawDc (const OdGePoint3d &origin, const OdGeVector3d &u, const OdGeVector3d &v, const OdGiSelfGdiDrawable *pDrawable, bool dcAligned=true, bool allowClipping=false)
 
- Public Member Functions inherited from OdGiWrapperGeometry< OdGiViewportDraw_ >
virtual void pline (const OdGiPolyline &p, OdUInt32 i, OdUInt32 n)
 
virtual void pushModelTransform (const OdGeVector3d &vNormal)
 
virtual void pushModelTransform (const OdGeMatrix3d &xMat)
 
virtual void popModelTransform ()
 
virtual void circle (const OdGePoint3d &center, double radius, const OdGeVector3d &normal)
 
virtual void circle (const OdGePoint3d &p1, const OdGePoint3d &p2, const OdGePoint3d &p3)
 
virtual void circularArc (const OdGePoint3d &center, double radius, const OdGeVector3d &normal, const OdGeVector3d &startVector, double sweepAngle, OdGiArcType arcType=kOdGiArcSimple)
 
virtual void circularArc (const OdGePoint3d &start, const OdGePoint3d &point, const OdGePoint3d &end, OdGiArcType arcType=kOdGiArcSimple)
 
virtual void polyline (OdInt32 nbPoints, const OdGePoint3d *pVertexList, const OdGeVector3d *pNormal=NULL, OdGsMarker lBaseSubEntMarker=-1)
 
virtual void polygon (OdInt32 nbPoints, const OdGePoint3d *pVertexList)
 
virtual void polygon (OdInt32 nbPoints, const OdGePoint3d *pVertexList, const OdGeVector3d *pNormal)
 
virtual void mesh (OdInt32 rows, OdInt32 columns, const OdGePoint3d *pVertexList, const OdGiEdgeData *pEdgeData=NULL, const OdGiFaceData *pFaceData=NULL, const OdGiVertexData *pVertexData=NULL)
 
virtual void shell (OdInt32 nbVertex, const OdGePoint3d *pVertexList, OdInt32 faceListSize, const OdInt32 *pFaceList, const OdGiEdgeData *pEdgeData=NULL, const OdGiFaceData *pFaceData=NULL, const OdGiVertexData *pVertexData=NULL)
 
virtual void text (const OdGePoint3d &position, const OdGeVector3d &normal, const OdGeVector3d &direction, double height, double width, double oblique, const OdString &msg)
 
virtual void text (const OdGePoint3d &position, const OdGeVector3d &normal, const OdGeVector3d &direction, const OdChar *msg, OdInt32 length, bool raw, const OdGiTextStyle *pTextStyle)
 
void ray (const OdGePoint3d &first, const OdGePoint3d &second)
 
virtual void nurbs (const OdGeNurbCurve3d &nurbs)
 
virtual void xline (const OdGePoint3d &p1, const OdGePoint3d &p2)
 
virtual void ellipArc (const OdGeEllipArc3d &arc, const OdGePoint3d *pEndPointsOverrides=0, OdGiArcType arcType=kOdGiArcSimple)
 
virtual void draw (const OdGiDrawable *pD)
 
virtual void pushClipBoundary (OdGiClipBoundary *pBoundary)
 
virtual void popClipBoundary ()
 
virtual void worldLine (const OdGePoint3d pnts[2])
 
virtual void image (const OdGiImageBGRA32 &img, const OdGePoint3d &origin, const OdGeVector3d &uVec, const OdGeVector3d &vVec, OdGiRasterImage::TransparencyMode trpMode=OdGiRasterImage::kTransparency8Bit)
 
virtual void edge (const OdGiEdge2dArray &edges)
 
virtual void polypoint (OdInt32 numPoints, const OdGePoint3d *vertexList, const OdCmEntityColor *pColors, const OdCmTransparency *pTransparency, const OdGeVector3d *pNormals, const OdGsMarker *pSubEntMarkers, OdInt32 nPointSize)
 
virtual void polyPolygon (OdUInt32 numIndices, const OdUInt32 *pNumPositions, const OdGePoint3d *pPositions, const OdUInt32 *pNumPoints, const OdGePoint3d *pPoints, const OdCmEntityColor *pOutlineColors=NULL, const OdUInt32 *pOutlinePsLinetypes=NULL, const OdCmEntityColor *pFillColors=NULL, const OdCmTransparency *pFillTransparencies=NULL)
 
virtual void rowOfDots (OdInt32 numPoints, const OdGePoint3d &startPoint, const OdGeVector3d &dirToNextPoint)
 
virtual void pointCloud (const OdGiPointCloud &pCloud)
 
virtual bool brep (const OdGiBrep &giBrep)
 
- Public Member Functions inherited from OdGiViewportDraw_
OdGiViewportGeometrygeometry () const
 
const OdGiPathNodecurrentGiPath () const
 
- Public Member Functions inherited from OdGiViewportDraw
 ODRX_DECLARE_MEMBERS (OdGiViewportDraw)
 
- Public Member Functions inherited from OdGiViewportGeometry
 ODRX_DECLARE_MEMBERS (OdGiViewportGeometry)
 
- Public Member Functions inherited from OdGiDummySubEntityTraits< OdGiSubEntityTraits >
void setLayer (OdDbStub *layerId)
 
void setSelectionMarker (OdGsMarker selectionMarker)
 
void setFillType (OdGiFillType fillType)
 
void setFillPlane (const OdGeVector3d *pNormal=0)
 
void setLineTypeScale (double lineTypeScale=1.0)
 
void setThickness (double thickness)
 
void setMapper (const OdGiMapper *pMapper)
 
void setVisualStyle (const OdDbStub *visualStyleId)
 
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)
 
bool fillPlane (OdGeVector3d &normal)
 
void addLight (const OdDbStub *)
 
OdUInt32 lockFlags () const
 
- Public Member Functions inherited from OdGiSubEntityTraits
 ODRX_DECLARE_MEMBERS (OdGiSubEntityTraits)
 
virtual void setSecondaryTrueColor (const OdCmEntityColor &color)
 
virtual void setLineStyleModifiers (const OdGiDgLinetypeModifiers *pLSMod)
 
virtual void setFill (const OdGiFill *pFill)
 
virtual bool pushLineweightOverride (const OdGiLineweightOverride *pOverride)
 
virtual void popLineweightOverride ()
 
virtual bool pushPaletteOverride (const OdGiPalette *pOverride)
 
virtual void popPaletteOverride ()
 
virtual OdUInt32 setupForEntity () const
 
- Public Member Functions inherited from OdGiLayerTraitsData
 OdGiLayerTraitsData ()
 
OdGiLayerTraitsDataoperator= (const OdGiLayerTraitsData &other)=default
 
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 OdGiWorldDraw_
 ODRX_USING_HEAP_OPERATORS (OdGiWorldDraw)
 
- Protected Member Functions inherited from OdGiWrapperGeometry< OdGiViewportDraw_ >
void setGeom (OdGiGeometry &Geom)
 
OdGiGeometrygetGeom ()
 
- Protected Member Functions inherited from OdGiViewportDraw_
 ODRX_USING_HEAP_OPERATORS (OdGiViewportDraw)
 
- 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 ()
 
static void rxInit ()
 
static void rxUninit ()
 
- 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 285 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 753 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 760 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 730 of file GiLayerTraitsData.h.

◆ context()

OdGiContext * OdGiLayerTraitsTaker::context ( ) const
virtual

Retrieves context associated with this object.

Implements OdGiCommonDraw.

Reimplemented in OdGiLayerTraitsTakerView.

◆ 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< OdGiDummyWorldGeometry< OdGiWorldDraw_ > >.

Reimplemented in OdGiLayerTraitsTakerView.

◆ drawFlags()

OdUInt32 OdGiLayerTraitsTaker::drawFlags ( ) const
virtual

Retrieves draw flags for this layer.

Reimplemented from OdGiDummySubEntityTraits< 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.

Reimplemented from OdGiDummySubEntityTraits< OdGiSubEntityTraits >.

◆ getModelToWorldTransform()

OdGeMatrix3d OdGiLayerTraitsTaker::getModelToWorldTransform ( ) const
virtual

Retrieves the model to world transformation matrix.

Reimplemented from OdGiDummyGeometry< OdGiWorldDraw_ >.

◆ getWorldToModelTransform()

OdGeMatrix3d OdGiLayerTraitsTaker::getWorldToModelTransform ( ) const
virtual

Retrieves the world to model transformation matrix.

Reimplemented from OdGiDummyGeometry< OdGiWorldDraw_ >.

◆ 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< OdGiDummyWorldGeometry< OdGiWorldDraw_ > >.

◆ isLocked()

bool OdGiLayerTraitsTaker::isLocked ( ) const
inline

Checks whether this layer is locked.

Returns
true if this layer is locked, false otherwise.

Definition at line 421 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 395 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 408 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>

Reimplemented from OdGiDummySubEntityTraits< 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 persistent linetype identifier.

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

Reimplemented from OdGiDummySubEntityTraits< 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.

◆ 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>

Reimplemented from OdGiDummySubEntityTraits< OdGiSubEntityTraits >.

◆ lineWeight()

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

Retrieves lineweight for a layer.

See also
<link tv_working_with_attributes_lineweights, Work with Lineweights>

Reimplemented from OdGiDummySubEntityTraits< 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.

◆ 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>

Reimplemented from OdGiDummySubEntityTraits< OdGiSubEntityTraits >.

◆ material()

OdDbStub * OdGiLayerTraitsTaker::material ( ) const
virtual

Retrieves persistent material identifier.

See also
<link tv_working_with_attributes_materials, Work with Materials>

Reimplemented from OdGiDummySubEntityTraits< 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< OdGiDummyWorldGeometry< OdGiWorldDraw_ > >.

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
virtual

Retrieves geometry data for this layer.

Implements OdGiCommonDraw.

◆ 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< OdGiDummyWorldGeometry< OdGiWorldDraw_ > >.

Reimplemented in OdGiLayerTraitsTakerView.

◆ regenType()

OdGiRegenType OdGiLayerTraitsTaker::regenType ( ) const
virtual

Retrieves regeneration type for this layer.

Reimplemented from OdGiDummyCommonDraw< OdGiDummyWorldGeometry< OdGiWorldDraw_ > >.

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 325 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 OdGiDummySubEntityTraits< 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 OdGiDummySubEntityTraits< 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 OdGiDummySubEntityTraits< 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 737 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>

Reimplemented from OdGiDummySubEntityTraits< OdGiSubEntityTraits >.

◆ setContext()

void OdGiLayerTraitsTaker::setContext ( OdGiContext * pContext)
inline

Sets GI context for this object.

Parameters
pContext[in] Pointer to GI context.

Definition at line 747 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>

Reimplemented from OdGiDummySubEntityTraits< 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 for this layer.

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

Reimplemented from OdGiDummySubEntityTraits< OdGiSubEntityTraits >.

◆ 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.

◆ 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 427 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 401 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 414 of file GiLayerTraitsData.h.

◆ setRefView()

void OdGiLayerTraitsTaker::setRefView ( const OdGiBaseVectorizer * pRefView)
inline

Definition at line 741 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>

Reimplemented from OdGiDummySubEntityTraits< 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 OdGiDummySubEntityTraits< OdGiSubEntityTraits >.

◆ subEntityTraits()

OdGiSubEntityTraits & OdGiLayerTraitsTaker::subEntityTraits ( ) const
virtual

Retrieves subentity traits associated with this layer.

Implements OdGiCommonDraw.

◆ thickness()

double OdGiLayerTraitsTaker::thickness ( ) const
virtual

Retrieves thickness for a layer.

Reimplemented from OdGiDummySubEntityTraits< 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: