CFx SDK Documentation  2023 SP0
Public Member Functions | List of all members
OdGiGeometry Class Referenceabstract

#include <GiGeometry.h>

Inheritance diagram for OdGiGeometry:
OdRxObject OdGiViewportGeometry OdGiWorldGeometry OdGiViewportDraw_ OdGiWorldDraw_ OdGiBaseVectorizer OdGiDummyCommonDraw< OdGiWorldDraw_ > AECGe::Harvester OdGiBaseVectorizerImpl OdGiExtCalc OdGiWorldDrawImpl AECGe::HarvesterOverall OdGsBaseVectorizer OdGiBaseVectorizer OdGsBaseVectorizeViewJoin< OdGsBaseVectorizer > OdGsBaseMaterialVectorizer AECGe::Harvester OdGiBaseVectorizerImpl OdGiExtCalc OdGsBaseVectorizeViewJoinMT< OdGsBaseVectorizer > OdGsBaseVectorizeViewDef OdGsBaseMaterialViewPC AECGe::HarvesterOverall OdGsBaseVectorizer OdGsBaseVectorizeViewMT OdGsBaseVectorizeViewJoin< OdGsBaseMaterialViewPC > OdGsBaseVectorizeViewJoin< OdGsBaseVectorizer > OdGsBaseMaterialVectorizer OdGsBaseVectorizeViewJoinMT< OdGsBaseMaterialViewPC > OdGsBaseMaterialView OdGsBaseVectorizeViewJoinMT< OdGsBaseVectorizer > OdGsBaseVectorizeViewDef OdGsBaseMaterialViewPC OdGsBaseMaterialViewMT OdGsBaseVectorizeViewMT OdGsBaseVectorizeViewJoin< OdGsBaseMaterialViewPC > OdGsBaseVectorizeViewJoinMT< OdGsBaseMaterialViewPC > OdGsBaseMaterialView OdGsBaseMaterialViewMT

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdGiGeometry)
 
virtual OdGeMatrix3d getModelToWorldTransform () const =0
 
virtual OdGeMatrix3d getWorldToModelTransform () const =0
 
virtual void pushModelTransform (const OdGeVector3d &normal)=0
 
virtual void pushModelTransform (const OdGeMatrix3d &xfm)=0
 
virtual void popModelTransform ()=0
 
virtual void circle (const OdGePoint3d &center, double radius, const OdGeVector3d &normal)=0
 
virtual void circle (const OdGePoint3d &firstPoint, const OdGePoint3d &secondPoint, const OdGePoint3d &thirdPoint)=0
 
virtual void circularArc (const OdGePoint3d &center, double radius, const OdGeVector3d &normal, const OdGeVector3d &startVector, double sweepAngle, OdGiArcType arcType=kOdGiArcSimple)=0
 
virtual void circularArc (const OdGePoint3d &firstPoint, const OdGePoint3d &secondPoint, const OdGePoint3d &thirdPoint, OdGiArcType arcType=kOdGiArcSimple)=0
 
virtual void polyline (OdInt32 numVertices, const OdGePoint3d *vertexList, const OdGeVector3d *pNormal=0, OdGsMarker baseSubEntMarker=-1)=0
 
virtual void polygon (OdInt32 numVertices, const OdGePoint3d *vertexList)=0
 
virtual void polygon (OdInt32 numVertices, const OdGePoint3d *vertexList, const OdGeVector3d *pNormal)
 
virtual void pline (const OdGiPolyline &polyline, OdUInt32 fromIndex=0, OdUInt32 numSegs=0)=0
 
virtual void mesh (OdInt32 numRows, OdInt32 numColumns, const OdGePoint3d *vertexList, const OdGiEdgeData *pEdgeData=0, const OdGiFaceData *pFaceData=0, const OdGiVertexData *pVertexData=0)=0
 
virtual void shell (OdInt32 numVertices, const OdGePoint3d *vertexList, OdInt32 faceListSize, const OdInt32 *faceList, const OdGiEdgeData *pEdgeData=0, const OdGiFaceData *pFaceData=0, const OdGiVertexData *pVertexData=0)=0
 
virtual void text (const OdGePoint3d &position, const OdGeVector3d &normal, const OdGeVector3d &direction, double height, double width, double oblique, const OdString &msg)=0
 
virtual void text (const OdGePoint3d &position, const OdGeVector3d &normal, const OdGeVector3d &direction, const OdChar *msg, OdInt32 length, bool raw, const OdGiTextStyle *pTextStyle)=0
 
virtual void xline (const OdGePoint3d &firstPoint, const OdGePoint3d &secondPoint)=0
 
virtual void ray (const OdGePoint3d &basePoint, const OdGePoint3d &throughPoint)=0
 
virtual void nurbs (const OdGeNurbCurve3d &nurbsCurve)=0
 
virtual void ellipArc (const OdGeEllipArc3d &ellipArc, const OdGePoint3d *endPointsOverrides=0, OdGiArcType arcType=kOdGiArcSimple)=0
 
virtual void draw (const OdGiDrawable *pDrawable)=0
 
virtual void pushClipBoundary (OdGiClipBoundary *pBoundary)=0
 
virtual void popClipBoundary ()=0
 
virtual void worldLine (const OdGePoint3d points[2])=0
 
virtual void image (const OdGiImageBGRA32 &img, const OdGePoint3d &origin, const OdGeVector3d &uVec, const OdGeVector3d &vVec, OdGiRasterImage::TransparencyMode trpMode=OdGiRasterImage::kTransparency8Bit)=0
 
virtual void edge (const OdGiEdge2dArray &edges)=0
 
virtual const OdGiPathNodecurrentGiPath () const
 
virtual void pushClipBoundary (OdGiClipBoundary *pBoundary, OdGiAbstractClipBoundary *pClipInfo)
 
virtual void polypoint (OdInt32 numPoints, const OdGePoint3d *vertexList, const OdCmEntityColor *pColors, const OdCmTransparency *pTransparency, const OdGeVector3d *pNormals=NULL, const OdGsMarker *pSubEntMarkers=NULL, OdInt32 nPointSize=0)
 
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
 
virtual void rowOfDots (OdInt32 numPoints, const OdGePoint3d &startPoint, const OdGeVector3d &dirToNextPoint)
 
- 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
 

Additional Inherited Members

- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Detailed Description

This class defines functions that allow entities to vectorize themselves.

See also
TD_Gi

<group OdGi_Classes>

Definition at line 697 of file GiGeometry.h.

Member Function Documentation

◆ circle() [1/2]

virtual void OdGiGeometry::circle ( const OdGePoint3d center,
double  radius,
const OdGeVector3d normal 
)
pure virtual

Introduces a circle to this vectorization context.

Remarks
The circle is not filled and takes on the current color.

If firstPoint, secondPoint, and thirdPoint are specified, they cannot be colinear and no two can be coincident.

Parameters
center[in] Center point.
radius[in] Radius.
normal[in] Normal.

Implemented in OdGiBaseVectorizer.

◆ circle() [2/2]

virtual void OdGiGeometry::circle ( const OdGePoint3d firstPoint,
const OdGePoint3d secondPoint,
const OdGePoint3d thirdPoint 
)
pure virtual

Introduces a circle to this vectorization context.

Parameters
firstPoint[in] First point of a 3-point circle.
secondPoint[in] Second point of a 3-point circle.
thirdPoint[in] Third point of a 3-point circle.

Implemented in OdGiBaseVectorizer.

◆ circularArc() [1/2]

virtual void OdGiGeometry::circularArc ( const OdGePoint3d center,
double  radius,
const OdGeVector3d normal,
const OdGeVector3d startVector,
double  sweepAngle,
OdGiArcType  arcType = kOdGiArcSimple 
)
pure virtual

Introduces a circular arc to this vectorization context.

Parameters
center[in] Center point.
radius[in] Radius.
normal[in] Normal vector.
startVector[in] Start of the arc.
sweepAngle[in] Angle that defines the arc.
arcType[in] Arc type.
Remarks
The arc takes on the current color.

If firstPoint, secondPoint, and thirdPoint are specified, they cannot be colinear and no two can be coincident.

arcType must be one of the following:

Value Description kOdGiArcSimple 0 Unfilled. kOdGiArcSector 1 Filled area bounded by the arc and its center. kOdGiArcChord 2 Filled area bounded by the arc and its end points

Remarks
All angles are expressed in radians.

Implemented in OdGiBaseVectorizer.

◆ circularArc() [2/2]

virtual void OdGiGeometry::circularArc ( const OdGePoint3d firstPoint,
const OdGePoint3d secondPoint,
const OdGePoint3d thirdPoint,
OdGiArcType  arcType = kOdGiArcSimple 
)
pure virtual

Introduces a circular arc to this vectorization context.

Parameters
firstPoint[in] First point of a 3-point arc.
secondPoint[in] Second point of a 3-point arc.
thirdPoint[in] Third point of a 3-point arc.
arcType[in] Arc type.

Implemented in OdGiBaseVectorizer.

◆ currentGiPath()

const OdGiPathNode * OdGiGeometry::currentGiPath ( ) const
inlinevirtual

Returns currently processing GiDrawable objects graph.

Reimplemented in OdGiViewportDraw_, OdGiWorldDraw_, and OdGiBaseVectorizer.

Definition at line 1258 of file GiGeometry.h.

◆ draw()

virtual void OdGiGeometry::draw ( const OdGiDrawable pDrawable)
pure virtual

Introduces the specified object into this vectorization context.

Parameters
pDrawable[in] Pointer to the Drawable object.
Remarks
Implementations of this method are expected to do the following: Call OdGiDrawable::subSetAttributes to set attribute information for the object. Call subWorldDraw on the drawable object to vectorize it into this context. If subWorldDraw returns false, call subViewportDraw each viewport.

Implemented in OdGiExtCalc, and OdGiBaseVectorizer.

◆ edge()

virtual void OdGiGeometry::edge ( const OdGiEdge2dArray edges)
pure virtual

Inroduces a boundary for hatch filling.

Parameters
edges[in] Array of 2d curves which represents filling boundary.

Implemented in OdGiBaseVectorizer.

◆ ellipArc()

virtual void OdGiGeometry::ellipArc ( const OdGeEllipArc3d ellipArc,
const OdGePoint3d endPointsOverrides = 0,
OdGiArcType  arcType = kOdGiArcSimple 
)
pure virtual

Introduces an elliptical arc into this vectorization context.

Parameters
ellipArc[in] Elliptical arc.
endPointsOverrides[in] Array of points to be used as the first and last points of the vectorized arc.
arcType[in] Arc type.
Remarks
arcType must be one of the following:

Value Description kOdGiArcSimple 0 Unfilled. kOdGiArcSector 1 Filled area bounded by the arc and its center. kOdGiArcChord 3 Filled area bounded by the arc and its end points

Implemented in OdGiBaseVectorizer.

◆ getModelToWorldTransform()

virtual OdGeMatrix3d OdGiGeometry::getModelToWorldTransform ( ) const
pure 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.

Implemented in OdGiBaseVectorizerImpl, and OdGiBaseVectorizer.

◆ getWorldToModelTransform()

virtual OdGeMatrix3d OdGiGeometry::getWorldToModelTransform ( ) const
pure 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().

Implemented in OdGiBaseVectorizerImpl, and OdGiBaseVectorizer.

◆ image()

virtual void OdGiGeometry::image ( const OdGiImageBGRA32 img,
const OdGePoint3d origin,
const OdGeVector3d uVec,
const OdGeVector3d vVec,
OdGiRasterImage::TransparencyMode  trpMode = OdGiRasterImage::kTransparency8Bit 
)
pure virtual

Inroduces a image in BGRA format into this vectorization context.

Parameters
img[in] Image in BGRA format.
origin[in] Image position in WCS.
uVec[in] Image width and X-axis orientation.
vVec[in] Image height and Y-axis orientation.
trpMode[in] Image transparency processing mode.

Implemented in OdGiBaseVectorizer.

◆ mesh()

virtual void OdGiGeometry::mesh ( OdInt32  numRows,
OdInt32  numColumns,
const OdGePoint3d vertexList,
const OdGiEdgeData pEdgeData = 0,
const OdGiFaceData pFaceData = 0,
const OdGiVertexData pVertexData = 0 
)
pure virtual

Introduces a mesh into this vectorization context.

Parameters
numRows[in] Number of rows.
numColumns[in] Number of columns.
vertexList[in] Array of vertices.
pEdgeData[in] Pointer to additional edge data.
pFaceData[in] Pointer to additional face data.
pVertexData[in] Pointer to additional vertex data.
Remarks
A mesh is a surface defined by a grid of vertices, and corresponds to a Polygon Mesh. By default, a mesh takes on the current color. Color, linetype, and and other properties can be controlled supplying the appropriate data for the pEdgeData, pFaceData, and pVertexData arguments.
vertexList must have numRows × numColumns elements. The arrays in *pEdgeData must be NULL or contain (numRows - 1) × numColumns + numRows × (numColumns -1) elements. The arrays in *pFaceData must be NULL or contain (numRows - 1) × (numColumns - 1) elements. The arrays in *pVertexData must be NULL or contain numRows × numColumns elements.

Implemented in OdGiBaseVectorizerImpl, and OdGiBaseVectorizer.

◆ nurbs()

virtual void OdGiGeometry::nurbs ( const OdGeNurbCurve3d nurbsCurve)
pure virtual

Introduces a NURBS curve into this vectorization context.

Remarks
The curve takes on the current color.
Parameters
nurbsCurve[in] NURBS curve data.

Implemented in OdGiBaseVectorizer.

◆ ODRX_DECLARE_MEMBERS()

OdGiGeometry::ODRX_DECLARE_MEMBERS ( OdGiGeometry  )

◆ pline()

virtual void OdGiGeometry::pline ( const OdGiPolyline polyline,
OdUInt32  fromIndex = 0,
OdUInt32  numSegs = 0 
)
pure virtual

Introduces a lightweight polyline into this vectorization context.

Remarks
The polyline may contain varying segment widths, straight segments and arc segments.

The polyline takes on the current color.

All points must be coplanar.

Parameters
polyline[in] Polyline.
fromIndex[in] Index of the first segment to be processed.
numSegs[in] Number of segments to be processed (0 indicates all segments).

Implemented in OdGiBaseVectorizer.

◆ polygon() [1/2]

virtual void OdGiGeometry::polygon ( OdInt32  numVertices,
const OdGePoint3d vertexList 
)
pure virtual

Introduces a polygon to this vectorization context.

Remarks
The polygon is filled and takes on the current color. Use polyline() to render unfilled areas.

The polygon is rendered as a series of lines connecting the first point in vertexList to the second, the second to the third, etc. All points must be coplanar.

Parameters
numVertices[in] Number of vertices.
vertexList[in] Array of vertices.

Implemented in OdGiBaseVectorizer.

◆ polygon() [2/2]

void OdGiGeometry::polygon ( OdInt32  numVertices,
const OdGePoint3d vertexList,
const OdGeVector3d pNormal 
)
inlinevirtual

Introduces a polygon (with a normal) to this vectorization context.

Remarks
The polygon is filled and takes on the current color. Use polyline() to render unfilled areas.

The polygon is rendered as a series of lines connecting the first point in vertexList to the second, the second to the third, etc. All points must be coplanar.

Parameters
numVertices[in] Number of vertices.
vertexList[in] Array of vertices.
pNormal[in] Pointer to the normal vector.

Reimplemented in OdGiBaseVectorizer.

Definition at line 1269 of file GiGeometry.h.

◆ polyline()

virtual void OdGiGeometry::polyline ( OdInt32  numVertices,
const OdGePoint3d vertexList,
const OdGeVector3d pNormal = 0,
OdGsMarker  baseSubEntMarker = -1 
)
pure virtual

Introduces a polyline to this vectorization context.

Remarks
The polyline is unfilled and takes on the current color and thickness. Use polygon() to render filled areas.

The polyline is rendered as a series of lines connecting the first point in vertexList to the second, the second to the third, etc. All points must be coplanar.

Use polygon() to render closed areas.

Parameters
numVertices[in] Number of vertices.
vertexList[in] Array of vertices.
pNormal[in] Pointer to the normal vector.
baseSubEntMarker[in] Not used.

Implemented in OdGiBaseVectorizer.

◆ polypoint() [1/3]

void OdGiGeometry::polypoint ( OdInt32  numPoints,
const OdGePoint3d vertexList,
const OdCmEntityColor pColors,
const OdCmTransparency pTransparency,
const OdGeVector3d pNormals = NULL,
const OdGsMarker pSubEntMarkers = NULL,
OdInt32  nPointSize = 0 
)
inlinevirtual

Introduces an array of points to this vectorization context.

Parameters
numPoints[in] Number of point in array.
vertexList[in] Array of points.
pColors[in] Array of colors.
pTransparency[in] Array of transparencies.
pNormals[in] Optional array of normal vectors.
pSubEntMarkers[in] Optional array of subentity markers.
nPointSize[in] Size of points in pixels.
Remarks
The points takes on the current color if pColors array doesn't specified.

Lengths of pColors, pTransparency, pNormals and pSubEntMarkers arrays if them set must be equal to numPoints.

Reimplemented in OdGiBaseVectorizer.

Definition at line 1274 of file GiGeometry.h.

◆ polypoint() [2/3]

void OdGiGeometry::polypoint ( OdInt32  numPoints,
const OdGePoint3d vertexList,
const OdCmEntityColor pColors,
const OdGeVector3d pNormals = NULL,
const OdGsMarker pSubEntMarkers = NULL 
)
inline

Introduces an array of points to this vectorization context.

Parameters
numPoints[in] Number of point in array.
vertexList[in] Array of points.
pColors[in] Array of colors.
pNormals[in] Optional array of normal vectors.
pSubEntMarkers[in] Optional array of subentity markers.
Remarks
The points takes on the current color if pColors array doesn't specified.

Lengths of pColors, pNormals and pSubEntMarkers arrays if them set must be equal to numPoints.

Definition at line 1288 of file GiGeometry.h.

◆ polypoint() [3/3]

void OdGiGeometry::polypoint ( OdInt32  numPoints,
const OdGePoint3d vertexList,
const OdGeVector3d pNormals = NULL,
const OdGsMarker pSubEntMarkers = NULL 
)
inline

Introduces an array of points to this vectorization context.

Parameters
numPoints[in] Number of point in array.
vertexList[in] Array of points.
pNormals[in] Optional array of normal vectors.
pSubEntMarkers[in] Optional array of subentity markers.
Remarks
The points takes on the current color if pColors array doesn't specified.

Lengths of pNormals and pSubEntMarkers arrays if them set must be equal to numPoints.

Definition at line 1294 of file GiGeometry.h.

◆ popClipBoundary()

virtual void OdGiGeometry::popClipBoundary ( )
pure virtual

Removes the top clip boundary from the clip stack.

Implemented in OdGsBaseVectorizer, and OdGiBaseVectorizer.

◆ popModelTransform()

virtual void OdGiGeometry::popModelTransform ( )
pure virtual

Removes the top transformation off the current transformation stack.

Implemented in OdGsBaseVectorizer, OdGiBaseVectorizerImpl, and OdGiBaseVectorizer.

◆ pushClipBoundary() [1/2]

virtual void OdGiGeometry::pushClipBoundary ( OdGiClipBoundary pBoundary)
pure virtual

Specifies a clip boundary for the current clip stack.

Parameters
pBoundary[in] Pointer to the boundary.
Remarks
Subsequent objects are clipped until popClipBoundary() is called.

Implemented in OdGsBaseVectorizer, and OdGiBaseVectorizer.

◆ pushClipBoundary() [2/2]

void OdGiGeometry::pushClipBoundary ( OdGiClipBoundary pBoundary,
OdGiAbstractClipBoundary pClipInfo 
)
inlinevirtual

Specifies a clip boundary with additional clipping information for the current clip stack.

Parameters
pBoundary[in] Pointer to the boundary.
pClipInfo[in] Additional clipping information.
Remarks
Subsequent objects are clipped until popClipBoundary() is called.

Reimplemented in OdGsBaseVectorizer, and OdGiBaseVectorizer.

Definition at line 1263 of file GiGeometry.h.

◆ pushModelTransform() [1/2]

virtual void OdGiGeometry::pushModelTransform ( const OdGeMatrix3d xfm)
pure virtual

Specifies a model transformation matrix for the current transformation stack.

Remarks
The specified transformation is concatenated to the current model transformation (which is initially the identity transform). The resulting model transformation is subsequently applied to all geometry introduced into this vectorization context, until popModelTransform() is called.
Parameters
xfm[in] Transformation matrix.

Implemented in OdGsBaseVectorizer, OdGiBaseVectorizerImpl, and OdGiBaseVectorizer.

◆ pushModelTransform() [2/2]

virtual void OdGiGeometry::pushModelTransform ( const OdGeVector3d normal)
pure virtual

Specifies a model transformation matrix for the current transformation stack.

Remarks
When a vector is specified, the transformation is created using the arbitrary axis algorithm on the vector.

The specified transformation is concatenated to the current model transformation (which is initially the identity transform). The resulting model transformation is subsequently applied to all geometry introduced into this vectorization context, until popModelTransform() is called.

Parameters
normal[in] Normal vector.

Implemented in OdGsBaseVectorizer, OdGiBaseVectorizerImpl, and OdGiBaseVectorizer.

◆ ray()

virtual void OdGiGeometry::ray ( const OdGePoint3d basePoint,
const OdGePoint3d throughPoint 
)
pure virtual

Introduces a Ray into this vectorization context.

Remarks
A Ray is a semi-infinite line that starts at the basePoint, and passes through the throughPoint.

The ray takes on the current color.

Parameters
basePoint[in] Base point.
throughPoint[in] Through point

Implemented in OdGiBaseVectorizerImpl, and OdGiBaseVectorizer.

◆ rowOfDots()

void OdGiGeometry::rowOfDots ( OdInt32  numPoints,
const OdGePoint3d startPoint,
const OdGeVector3d dirToNextPoint 
)
inlinevirtual

Introduces a row of points to this vectorization context.

Parameters
numPoints[in] Number of points to draw.
startPoint[in] First point to draw.
dirToNextPoint[in] Offset and direction between next points.
Remarks
The points takes on the current color.

Reimplemented in OdGiBaseVectorizer.

Definition at line 1300 of file GiGeometry.h.

◆ shell()

virtual void OdGiGeometry::shell ( OdInt32  numVertices,
const OdGePoint3d vertexList,
OdInt32  faceListSize,
const OdInt32 faceList,
const OdGiEdgeData pEdgeData = 0,
const OdGiFaceData pFaceData = 0,
const OdGiVertexData pVertexData = 0 
)
pure virtual

Introduces a shell into this vectorization context.

Parameters
numVertices[in] Number of vertices.
vertexList[in] Array of vertices.
faceListSize[in] Number of entries in facesList.
faceList[in] Array of integers defining faces.
pEdgeData[in] Pointer to additional edge data.
pFaceData[in] Pointer to additional face data.
pVertexData[in] Pointer to additional vertex data.
Remarks
A shell is a set of faces that can contain holes, and corresponds to a Polyface mesh.

By default, a mesh takes on the current color. Color, linetype, and and other properties can be controlled supplying the appropriate data for the pEdgeData, pFaceData, and pVertexData arguments.

Remarks
The arrays in *pEdgeData must be NULL or contain the same number of elements as there are edges. The arrays in *pFaceData must be NULL or contain the same number of elements as there are faces. The arrays in *pVertexData must be NULL or contain numVertices elements.
See also
Faces

Implemented in OdGiBaseVectorizerImpl, and OdGiBaseVectorizer.

◆ text() [1/2]

virtual void OdGiGeometry::text ( const OdGePoint3d position,
const OdGeVector3d normal,
const OdGeVector3d direction,
const OdChar msg,
OdInt32  length,
bool  raw,
const OdGiTextStyle pTextStyle 
)
pure virtual

Introduces text into this vectorization context.

Parameters
position[in] Position of the text string.
normal[in] Normal vector of the text.
direction[in] Baseline direction of the text.
msg[in] Text string.
length[in] Number of characters in msg (not including the optional null character).
raw[in] If and only if true, escape sequences, such as %P, will not be converted to special characters.
pTextStyle[in] Pointer to the TextStyle for the text.

Implemented in OdGiBaseVectorizer.

◆ text() [2/2]

virtual void OdGiGeometry::text ( const OdGePoint3d position,
const OdGeVector3d normal,
const OdGeVector3d direction,
double  height,
double  width,
double  oblique,
const OdString msg 
)
pure virtual

Introduces text into this vectorization context.

Parameters
position[in] Position of the text string.
normal[in] Normal vector of the text.
direction[in] Baseline direction of the text.
height[in] Height of the text.
width[in] Width factor of the text.
oblique[in] Oblique angle.
msg[in] Text string.
Remarks
The text takes on the current color.

If numBytes is not specified, msg must be null terminated.

Remarks
All angles are expressed in radians.

As currently implemented, this function ignores width and oblique. They will be fully implemented in a future release.

Implemented in OdGiBaseVectorizer.

◆ worldLine()

virtual void OdGiGeometry::worldLine ( const OdGePoint3d  points[2])
pure virtual

Introduces a line into this vectorization context.

Parameters
points[in] Array of WCS start and end points.
  \remarks
The current model transformation is not applied to the line.

Implemented in OdGiBaseVectorizer.

◆ xline()

virtual void OdGiGeometry::xline ( const OdGePoint3d firstPoint,
const OdGePoint3d secondPoint 
)
pure virtual

Introduces an Xline into this vectorization context.

Remarks
Xlines are infinite lines passing through two points.

The xline takes on the current color.

Parameters
firstPoint[in] First point.
secondPoint[in] Second point.

Implemented in OdGiBaseVectorizerImpl, and OdGiBaseVectorizer.


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