CFx SDK Documentation  2020SP3
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< 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 ()
 
void setRefView (const OdGiBaseVectorizer *pRefView)
 
void reset ()
 
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
 
- 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 OdGiDummyCommonDraw< OdGiDummyWorldGeometry< OdGiWorldDraw_ > >
virtual OdGiRegenType regenType () const
 
virtual bool regenAbort () const
 
virtual bool isDragging () const
 
virtual OdUInt32 numberOfIsolines () const
 
- Public Member Functions inherited from OdGiDummyWorldGeometry< OdGiWorldDraw_ >
virtual void setExtents (const OdGePoint3d *)
 
virtual void startAttributesSegment ()
 
- Public Member Functions inherited from OdGiDummyGeometry< OdGiWorldDraw_ >
void circle (const OdGePoint3d &, double, const OdGeVector3d &)
 
void circle (const OdGePoint3d &, const OdGePoint3d &, const OdGePoint3d &)
 
void circularArc (const OdGePoint3d &, double, const OdGeVector3d &, const OdGeVector3d &, double, OdGiArcType=kOdGiArcSimple)
 
void circularArc (const OdGePoint3d &, const OdGePoint3d &, const OdGePoint3d &, OdGiArcType=kOdGiArcSimple)
 
void polyline (OdInt32, const OdGePoint3d *, const OdGeVector3d *=0, OdGsMarker=-1)
 
void polygon (OdInt32, const OdGePoint3d *)
 
void polygon (OdInt32, const OdGePoint3d *, const OdGeVector3d *)
 
void pline (const OdGiPolyline &, OdUInt32=0, OdUInt32=0)
 
void shape (const OdGePoint3d &, const OdGeVector3d &, const OdGeVector3d &, int, const OdGiTextStyle *)
 
void text (const OdGePoint3d &, const OdGeVector3d &, const OdGeVector3d &, double, double, double, const OdString &)
 
void text (const OdGePoint3d &, const OdGeVector3d &, const OdGeVector3d &, const OdChar *, OdInt32, bool, const OdGiTextStyle *)
 
void xline (const OdGePoint3d &, const OdGePoint3d &)
 
void ray (const OdGePoint3d &, const OdGePoint3d &)
 
void nurbs (const OdGeNurbCurve3d &)
 
void ellipArc (const OdGeEllipArc3d &, const OdGePoint3d *=0, OdGiArcType=kOdGiArcSimple)
 
void mesh (OdInt32, OdInt32, const OdGePoint3d *, const OdGiEdgeData *=0, const OdGiFaceData *=0, const OdGiVertexData *=0)
 
void shell (OdInt32, const OdGePoint3d *, OdInt32, const OdInt32 *, const OdGiEdgeData *=0, const OdGiFaceData *=0, const OdGiVertexData *=0)
 
void worldLine (const OdGePoint3d[2])
 
void image (const OdGiImageBGRA32 &, const OdGePoint3d &, const OdGeVector3d &, const OdGeVector3d &, OdGiRasterImage::TransparencyMode=OdGiRasterImage::kTransparency8Bit)
 
virtual void edge (const OdGiEdge2dArray &)
 
void polypoint (OdInt32, const OdGePoint3d *, const OdCmEntityColor *, const OdCmTransparency *, const OdGeVector3d *, const OdGsMarker *, OdInt32)
 
void rowOfDots (OdInt32, const OdGePoint3d &, const OdGeVector3d &)
 
void pushClipBoundary (OdGiClipBoundary *)
 
void popClipBoundary ()
 
void draw (const OdGiDrawable *)
 
void pushModelTransform (const OdGeMatrix3d &)
 
void pushModelTransform (const OdGeVector3d &)
 
void popModelTransform ()
 
OdGeMatrix3d getModelToWorldTransform () const
 
OdGeMatrix3d getWorldToModelTransform () const
 
- 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_SEALED
 
ODRX_SEALED_VIRTUAL void polypoint (OdInt32 numPoints, const OdGePoint3d *vertexList, const OdGeVector3d *pNormals=NULL, const OdGsMarker *pSubEntMarkers=NULL) ODRX_SEALED
 
- Public Member Functions inherited from OdGiDummyViewportDraw< OdGiWrapperViewportGeometry< OdGiViewportDraw_ > >
virtual OdGiViewportviewport () const
 
virtual OdUInt32 sequenceNumber () const
 
virtual OdDbStub * viewportObjectId () const
 
- Public Member Functions inherited from OdGiDummyCommonDraw< OdGiWrapperViewportGeometry< OdGiViewportDraw_ > >
virtual OdGiRegenType regenType () const
 
virtual bool regenAbort () const
 
virtual bool isDragging () const
 
virtual OdUInt32 numberOfIsolines () const
 
- 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 OdGeMatrix3d getModelToWorldTransform () const
 
virtual OdGeMatrix3d getWorldToModelTransform () const
 
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 rowOfDots (OdInt32 numPoints, const OdGePoint3d &startPoint, const OdGeVector3d &dirToNextPoint)
 
- 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 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 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 OdUInt32 setupForEntity () const
 
- 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 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, 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
}
 
- 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
TD_Gi

<group OdGi_Classes>

Definition at line 146 of file GiLayerTraitsData.h.

Constructor & Destructor Documentation

◆ OdGiLayerTraitsTaker() [1/2]

OdGiLayerTraitsTaker::OdGiLayerTraitsTaker ( )
inline

Definition at line 256 of file GiLayerTraitsData.h.

◆ OdGiLayerTraitsTaker() [2/2]

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

Definition at line 263 of file GiLayerTraitsData.h.

Member Function Documentation

◆ addRef()

void OdGiLayerTraitsTaker::addRef ( )
virtual

Declares the method incrementing the reference counter in objects derived from this class.

Remarks
It is the pure virtual method that does not have an implementation. You must redefine it in the derived class.
See also
<link smart_pointers_overview.html, Overview of Smart Pointer Classes>

Implements OdRxObject.

Reimplemented in OdGiLayerTraitsTakerView.

◆ context()

OdGiContext* OdGiLayerTraitsTaker::context ( ) const
virtual

Returns the OdGiContext instance associated with this object.

Implements OdGiCommonDraw.

Reimplemented in OdGiLayerTraitsTakerView.

◆ deviation()

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

Returns 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.
Remarks
This function returns the recommended maximum difference (with respect to the current active viewport) between the actual curve or surface, and the tessellated curve or surface.

deviationType must be one of the following:

Value kOdGiMaxDevForCircle 0
kOdGiMaxDevForCurve 1
kOdGiMaxDevForBoundary 2
kOdGiMaxDevForIsoline 3 kOdGiMaxDevForFacet 4

Remarks
This function uses circle zoom percent or FacetRes as appropriate.

Reimplemented from OdGiDummyCommonDraw< OdGiWrapperViewportGeometry< OdGiViewportDraw_ > >.

Reimplemented in OdGiLayerTraitsTakerView.

◆ drawFlags()

OdUInt32 OdGiLayerTraitsTaker::drawFlags ( ) const
virtual

Return the current DrawFlags bitmask.

Reimplemented from OdGiSubEntityTraits.

◆ fill()

const OdGiFill* OdGiLayerTraitsTaker::fill ( ) const
virtual

Return boundary filling parameters.

Reimplemented from OdGiSubEntityTraits.

◆ fillType()

OdGiFillType OdGiLayerTraitsTaker::fillType ( ) const
virtual

Returns the current fill type.

Returns
fillType() returns one of the following:

Value Description kOdGiFillAlways 1 Fill closed graphic primitives. kOdGiFillNever 2 Don't fill closed graphic primitives.

Closed graphic primitives consist of the following: arcs with (OdGiArcType == kOdGiArcSector) || (OdGiArcType == kOdGiArcChord) circles meshes polygons shells

Implements OdGiSubEntityTraits.

◆ getModelToWorldTransform()

OdGeMatrix3d OdGiLayerTraitsTaker::getModelToWorldTransform ( ) const
virtual

Returns the model-to-world coordinate transform matrix for the entity being vectorized.

Remarks
This is the inverse of the matrix returned by getWorldToModelTransform().

If an entity is in one or more blocks, this matrix can be used to determine the WCS coordinates of the entity.

Implements OdGiGeometry.

◆ getWorldToModelTransform()

OdGeMatrix3d OdGiLayerTraitsTaker::getWorldToModelTransform ( ) const
virtual

Returns the world-to-model coordinate transform matrix for the entity being vectorized.

Remarks
This is the inverse of the matrix returned by getModelToWorldTransform().

Implements OdGiGeometry.

◆ isDragging()

bool OdGiLayerTraitsTaker::isDragging ( ) const
virtual

Returns true if this vectorization process is the result of a "drag" operation.

Remarks

Implements OdGiCommonDraw.

◆ isLocked()

bool OdGiLayerTraitsTaker::isLocked ( ) const
inline

Definition at line 191 of file GiLayerTraitsData.h.

◆ isOff()

bool OdGiLayerTraitsTaker::isOff ( ) const
inline

Definition at line 185 of file GiLayerTraitsData.h.

◆ isPlottable()

bool OdGiLayerTraitsTaker::isPlottable ( ) const
inline

Definition at line 188 of file GiLayerTraitsData.h.

◆ isValidId()

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

Returns true if and only if specified Viewport ID is a valid Viewport ID.

Parameters
viewportId[in] Viewport ID.
Remarks
viewportId is typically obtained from viewport().viewportId().

Reimplemented from OdGiDummyViewportDraw< OdGiWrapperViewportGeometry< OdGiViewportDraw_ > >.

Reimplemented in OdGiLayerTraitsTakerView.

◆ layer()

OdDbStub* OdGiLayerTraitsTaker::layer ( ) const
virtual

Returns the current layer.

Implements OdGiSubEntityTraits.

◆ lineStyleModifiers()

const OdGiDgLinetypeModifiers* OdGiLayerTraitsTaker::lineStyleModifiers ( ) const
virtual

Return pointer to the current Dgn Line Style modifiers structure.

Reimplemented from OdGiSubEntityTraits.

◆ linetype()

OdDbStub* OdGiLayerTraitsTaker::linetype ( ) const
virtual

Returns the Object ID of the linetype for this object.

Implements OdGiLayerTraits.

◆ lineType()

OdDbStub* OdGiLayerTraitsTaker::lineType ( ) const
virtual

Returns the current linetype.

Implements OdGiSubEntityTraits.

◆ lineTypeScale()

double OdGiLayerTraitsTaker::lineTypeScale ( ) const
virtual

Returns the current linetype scale.

Implements OdGiSubEntityTraits.

◆ lineweight()

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

Returns the lineweight for this object.

Implements OdGiLayerTraits.

◆ lineWeight()

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

Returns the current lineweight.

Implements OdGiSubEntityTraits.

◆ mapper()

const OdGiMapper* OdGiLayerTraitsTaker::mapper ( ) const
virtual

Returns pointer to the current material mapper.

Implements OdGiSubEntityTraits.

◆ material()

OdDbStub* OdGiLayerTraitsTaker::material ( ) const
virtual

Returns the Object ID of the material.

Implements OdGiSubEntityTraits.

◆ materialId()

OdDbStub* OdGiLayerTraitsTaker::materialId ( ) const
virtual

Returns the Object ID of the material.

Implements OdGiLayerTraits.

◆ numberOfIsolines()

OdUInt32 OdGiLayerTraitsTaker::numberOfIsolines ( ) const
virtual

Returns the number of isolines to be drawn on surfaces during this vectorization.

Implements OdGiCommonDraw.

Reimplemented in OdGiLayerTraitsTakerView.

◆ ODRX_USING_HEAP_OPERATORS()

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

◆ plotStyleNameId()

OdDbStub* OdGiLayerTraitsTaker::plotStyleNameId ( ) const
virtual

Returns the Object ID of the Plot Style Name.

Implements OdGiLayerTraits.

◆ plotStyleNameType()

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

Returns the Plot Style Name Type for this object.

Remarks
plotStyleNameType() returns one of the following:

Value
OdDb::kPlotStyleNameByLayer 0 OdDb::kPlotStyleNameByBlock 1 OdDb::kPlotStyleNameIsDictDefault 2 OdDb::kPlotStyleNameById 3

Implements OdGiLayerTraits.

◆ rawGeometry()

OdGiGeometry& OdGiLayerTraitsTaker::rawGeometry ( ) const
virtual

Provides access to this object's "drawing interface."

Remarks
The "drawing interface" is a set of geometry functions used during the vectorization process.

Implements OdGiCommonDraw.

◆ regenAbort()

bool OdGiLayerTraitsTaker::regenAbort ( ) const
virtual

Returns true if and only if this vectorization process should be aborted.

Implements OdGiCommonDraw.

Reimplemented in OdGiLayerTraitsTakerView.

◆ regenType()

OdGiRegenType OdGiLayerTraitsTaker::regenType ( ) const
virtual

Returns the regeneration type of the current vectorization process.

Remarks
regenType() returns one of the following:

Value eOdGiRegenTypeInvalid 0 kOdGiStandardDisplay 2 kOdGiHideOrShadeCommand 3 kOdGiRenderCommand 4 kOdGiForExplode 5 kOdGiSaveWorldDrawForProxy 6 kOdGiForExtents 7

Implements OdGiCommonDraw.

Reimplemented in OdGiLayerTraitsTakerView.

◆ release()

void OdGiLayerTraitsTaker::release ( )
virtual

Declares the method decrementing the reference counter in objects derived from this class.

Remarks
It is the pure virtual method that does not have an implementation. You must redefine it in the derived class.
See also
<link smart_pointers_overview.html, Overview of Smart Pointer Classes>

Implements OdRxObject.

Reimplemented in OdGiLayerTraitsTakerView.

◆ reset()

void OdGiLayerTraitsTaker::reset ( )
inline

Definition at line 173 of file GiLayerTraitsData.h.

◆ secondaryTrueColor()

OdCmEntityColor OdGiLayerTraitsTaker::secondaryTrueColor ( ) const
virtual

Returns the current secondary color as an OdCmEntityColor instance.

Reimplemented from OdGiSubEntityTraits.

◆ sectionable()

bool OdGiLayerTraitsTaker::sectionable ( ) const
virtual

Return the current sectionable flag.

Reimplemented from OdGiSubEntityTraits.

◆ selectionFlags()

SelectionFlags OdGiLayerTraitsTaker::selectionFlags ( ) const
virtual

Return the current SelectionFlags.

Reimplemented from OdGiSubEntityTraits.

◆ selectionGeom()

bool OdGiLayerTraitsTaker::selectionGeom ( ) const
virtual

Return the current selection geometry flag.

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

Implements OdGiViewportDraw.

Reimplemented in OdGiLayerTraitsTakerView.

◆ setColor() [1/2]

void OdGiLayerTraitsTaker::setColor ( const OdCmEntityColor color)
virtual

Sets the color for this object.

Parameters
color[in] Entity color.

Implements OdGiLayerTraits.

◆ setColor() [2/2]

void OdGiLayerTraitsTaker::setColor ( OdUInt16  color)
virtual

Sets the current color index (ACI).

Parameters
color[in] Color index.
Remarks
color must be 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.

◆ setContext()

void OdGiLayerTraitsTaker::setContext ( OdGiContext pContext)
inline

Definition at line 250 of file GiLayerTraitsData.h.

◆ setLineType()

void OdGiLayerTraitsTaker::setLineType ( OdDbStub *  lineTypeId)
virtual

Sets the current linetype.

Parameters
lineTypeId[in] Object ID of the LinetypeTableRecord.

Implements OdGiSubEntityTraits.

◆ setLinetype()

void OdGiLayerTraitsTaker::setLinetype ( OdDbStub *  pLinetypeId)
virtual

Sets the linetype for this object.

Parameters
pLinetypeId[in] Pointer to the Object ID of the linetype.

Implements OdGiLayerTraits.

◆ setLineweight()

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

Sets the lineweight for this object.

Parameters
lineweight[in] Lineweight.

Implements OdGiLayerTraits.

◆ setLineWeight()

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

Sets the current lineweight.

Parameters
lineWeight[in] Lineweight.

Implements OdGiSubEntityTraits.

◆ setLocked()

void OdGiLayerTraitsTaker::setLocked ( bool  bVal)
inline

Definition at line 192 of file GiLayerTraitsData.h.

◆ setMaterial()

void OdGiLayerTraitsTaker::setMaterial ( OdDbStub *  pMaterialId)
virtual

Sets the material ID for this object.

Parameters
pMaterialId[in] Pointer to the Object ID of the material.

Implements OdGiLayerTraits.

◆ setOff()

void OdGiLayerTraitsTaker::setOff ( bool  bVal)
inline

Definition at line 186 of file GiLayerTraitsData.h.

◆ setPlotStyleName()

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

Sets the Plot Style Name for this object.

Parameters
plotStyleNameType[in] Plot Style Name Type.
pPlotStyleNameId[in] Pointer to the Object ID of the Plot Style Name.
Remarks
pPlotStyleNameId is used only when plotStyleNameType == kPlotStyleNameById.

plotStyleNameType must be one of the following:

Value
OdDb::kPlotStyleNameByLayer 0 OdDb::kPlotStyleNameByBlock 1 OdDb::kPlotStyleNameIsDictDefault 2 OdDb::kPlotStyleNameById 3

Implements OdGiLayerTraits.

◆ setPlottable()

void OdGiLayerTraitsTaker::setPlottable ( bool  bVal)
inline

Definition at line 189 of file GiLayerTraitsData.h.

◆ setRefView()

void OdGiLayerTraitsTaker::setRefView ( const OdGiBaseVectorizer pRefView)
inline

Definition at line 244 of file GiLayerTraitsData.h.

◆ setTransparency()

void OdGiLayerTraitsTaker::setTransparency ( const OdCmTransparency transparency)
virtual

Sets the transparency for this object.

Parameters
transparency[in] OdCmTransparency object.

Implements OdGiLayerTraits.

◆ setTrueColor()

void OdGiLayerTraitsTaker::setTrueColor ( const OdCmEntityColor color)
virtual

Sets the current color from an OdCmEntityColor instance.

Parameters
color[in] OdCmEntityColor object.

Implements OdGiSubEntityTraits.

◆ shadowFlags()

ShadowFlags OdGiLayerTraitsTaker::shadowFlags ( ) const
virtual

Return the current ShadowFlags.

Reimplemented from OdGiSubEntityTraits.

◆ subEntityTraits()

OdGiSubEntityTraits& OdGiLayerTraitsTaker::subEntityTraits ( ) const
virtual

Provides access to this object's subentity traits.

Remarks
This allows the modification of the vectorization attributes such as color, linetype, etc.

Implements OdGiCommonDraw.

◆ thickness()

double OdGiLayerTraitsTaker::thickness ( ) const
virtual

Returns the current thickness.

Implements OdGiSubEntityTraits.

◆ transparency()

OdCmTransparency OdGiLayerTraitsTaker::transparency ( ) const
virtual

Returns the transparency for this object.

Implements OdGiLayerTraits.

◆ trueColor()

OdCmEntityColor OdGiLayerTraitsTaker::trueColor ( ) const
virtual

Implements OdGiLayerTraits_.

◆ viewport()

OdGiViewport& OdGiLayerTraitsTaker::viewport ( ) const
virtual

Returns a reference to the OdGiViewport object associated with this object.

Remarks
The OdGiViewport contains information specific to the viewport being drawn.

Implements OdGiViewportDraw.

Reimplemented in OdGiLayerTraitsTakerView.

◆ viewportObjectId()

OdDbStub* OdGiLayerTraitsTaker::viewportObjectId ( ) const
virtual

Returns the Object ID of the OdDbViewport object associated with this object.

Remarks
Returns NULL if TileMode == 1.

Implements OdGiViewportDraw.

Reimplemented in OdGiLayerTraitsTakerView.

◆ visualStyle()

OdDbStub* OdGiLayerTraitsTaker::visualStyle ( ) const
virtual

Returns the Object ID of the visual style.

Reimplemented from OdGiSubEntityTraits.


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