CFx SDK Documentation  2020SP3
Public Member Functions | List of all members
OdGiViewportGeometry Class Referenceabstract

#include <GiViewportGeometry.h>

Inheritance diagram for OdGiViewportGeometry:
OdGiGeometry OdRxObject OdGiDummyGeometry< OdGiViewportGeometry > OdGiViewportDraw_ OdGiWrapperGeometry< OdGiViewportGeometry > OdGiDummyViewportGeometry< OdGiViewportGeometry > OdGiBaseVectorizer OdGiDummyGeometry< OdGiViewportDraw_ > OdGiWrapperGeometry< OdGiViewportDraw_ > OdGiWrapperViewportGeometry< OdGiViewportGeometry > OdGiViewportDraw_Dummy OdGiBaseVectorizerImpl OdGiExtCalc OdGiDummyViewportGeometry< OdGiViewportDraw_ > OdGiWrapperViewportGeometry< OdGiViewportDraw_ > OdGiViewportDraw_Stub OdGsBaseVectorizer OdGiDummyCommonDraw< OdGiDummyViewportGeometry< OdGiViewportDraw_ > > OdGiDummyCommonDraw< OdGiWrapperViewportGeometry< OdGiViewportDraw_ > > OdGsBaseMaterialVectorizer OdGsBaseVectorizeViewJoin< OdGsBaseVectorizer > OdGiDummyViewportDraw< OdGiDummyViewportGeometry< OdGiViewportDraw_ > > OdGiDummyViewportDraw< OdGiWrapperViewportGeometry< OdGiViewportDraw_ > > OdGsBaseMaterialViewPC OdGsBaseVectorizeViewDef OdGsBaseVectorizeViewJoinMT< OdGsBaseVectorizer > OdGiFastExtCalcViewportDrawImpl OdGiLayerTraitsTaker OdGsBaseVectorizeViewJoin< OdGsBaseMaterialViewPC > OdGsBaseVectorizeViewMT OdGiLayerTraitsTakerView OdGsBaseMaterialView OdGsBaseVectorizeViewJoinMT< OdGsBaseMaterialViewPC > OdGsBaseMaterialViewMT

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdGiViewportGeometry)
 
virtual void polylineEye (OdUInt32 numVertices, const OdGePoint3d *vertexList)=0
 
virtual void polygonEye (OdUInt32 numVertices, const OdGePoint3d *vertexList)=0
 
virtual void polylineDc (OdUInt32 numVertices, const OdGePoint3d *vertexList)=0
 
virtual void polygonDc (OdUInt32 numVertices, const OdGePoint3d *vertexList)=0
 
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)=0
 
virtual void metafileDc (const OdGePoint3d &origin, const OdGeVector3d &u, const OdGeVector3d &v, const OdGiMetafile *pMetafile, bool dcAligned=true, bool allowClipping=false)=0
 
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 OdGiGeometry
 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.

Remarks
Vectorization with the methods of this class are viewport dependent. For viewport specific vectorization, use subViewportDraw() instead of subWorldDraw().

An OdGiViewportGeometry object passed to the subViewportDraw() method of an entity.

Model coordinates are applied to all geometry in this class except for setExtents().

You can obtain objects of the following classes fromOdGiViewportDraw:

Description OdGiSubEntityTraits Control of drawing attributes and selection markers. OdGiViewportGeometry Drawing model coordinate geometry and transforms.

See also
TD_Gi

<group OdGi_Classes>

Definition at line 116 of file GiViewportGeometry.h.

Member Function Documentation

◆ metafileDc()

virtual void OdGiViewportGeometry::metafileDc ( const OdGePoint3d origin,
const OdGeVector3d u,
const OdGeVector3d v,
const OdGiMetafile pMetafile,
bool  dcAligned = true,
bool  allowClipping = false 
)
pure virtual

Draws the specified Windows Metafile.

Parameters
origin[in] Metafile origin.
u[in] Metafile width vector.
v[in] Metafile height vector.
pMetafile[in] Pointer to the Metafile object.
dcAligned[in] reserved.
baAllowClipping[in] reserved.
Remarks
All coordinates are in Model coordinates.

Implemented in OdGiWrapperViewportGeometry< OdGiViewportDraw_ >, OdGiWrapperViewportGeometry< OdGiViewportGeometry >, OdGiBaseVectorizer, OdGiDummyViewportGeometry< OdGiViewportDraw_ >, and OdGiDummyViewportGeometry< OdGiViewportGeometry >.

◆ ODRX_DECLARE_MEMBERS()

OdGiViewportGeometry::ODRX_DECLARE_MEMBERS ( OdGiViewportGeometry  )

◆ ownerDrawDc()

virtual void OdGiViewportGeometry::ownerDrawDc ( const OdGePoint3d origin,
const OdGeVector3d u,
const OdGeVector3d v,
const OdGiSelfGdiDrawable pDrawable,
bool  dcAligned = true,
bool  allowClipping = false 
)
virtual

Passes to the rendering framework an object that can render itself.

Parameters
origin[in] Object origin.
u[in] Object width vector.
v[in] Object height vector.
dcAligned[in] reserved.
allowClipping[in] reserved.
pDrawable[in] Pointer to the drawable.
Remarks
Teigha uses this function to render Ole2Frame entities.
ownerDrawDc is not conveyor primitive, so Teigha's rendering framework performs no processing (transformation, linetyping, or clipping) for this object.

All coordinates are in Model coordinates.

See also
OdGiSelfGdiDrawable.

Reimplemented in OdGiWrapperViewportGeometry< OdGiViewportDraw_ >, OdGiWrapperViewportGeometry< OdGiViewportGeometry >, OdGiDummyViewportGeometry< OdGiViewportDraw_ >, and OdGiDummyViewportGeometry< OdGiViewportGeometry >.

◆ polygonDc()

virtual void OdGiViewportGeometry::polygonDc ( OdUInt32  numVertices,
const OdGePoint3d vertexList 
)
pure virtual

Draws a filled polygon, with coordinates specified in normalized device Coordinates.

Parameters
numVertices[in] Number of vertices in the polygon.
vertexList[in] Vertices of the polygon.
See also
Coordinate Systems

Implemented in OdGiDummyViewportGeometry< OdGiViewportDraw_ >, OdGiDummyViewportGeometry< OdGiViewportGeometry >, OdGiWrapperViewportGeometry< OdGiViewportDraw_ >, OdGiWrapperViewportGeometry< OdGiViewportGeometry >, and OdGiBaseVectorizer.

◆ polygonEye()

virtual void OdGiViewportGeometry::polygonEye ( OdUInt32  numVertices,
const OdGePoint3d vertexList 
)
pure virtual

Draws a filled polygon, with coordinates specified in Eye Coordinates.

Parameters
numVertices[in] Number of vertices in the polygon.
vertexList[in] Vertices of the polygon.
See also
Coordinate Systems

Implemented in OdGiDummyViewportGeometry< OdGiViewportDraw_ >, OdGiDummyViewportGeometry< OdGiViewportGeometry >, OdGiWrapperViewportGeometry< OdGiViewportDraw_ >, OdGiWrapperViewportGeometry< OdGiViewportGeometry >, and OdGiBaseVectorizer.

◆ polylineDc()

virtual void OdGiViewportGeometry::polylineDc ( OdUInt32  numVertices,
const OdGePoint3d vertexList 
)
pure virtual

Draws a polyline, with coordinates specified in normalized device Coordinates.

Parameters
numVertices[in] Number of vertices in the polyline.
vertexList[in] Vertices of the polyline.
Remarks
This polyline is drawn with a continuous linetype.
See also
Coordinate Systems

Implemented in OdGiDummyViewportGeometry< OdGiViewportDraw_ >, OdGiDummyViewportGeometry< OdGiViewportGeometry >, OdGiWrapperViewportGeometry< OdGiViewportDraw_ >, OdGiWrapperViewportGeometry< OdGiViewportGeometry >, and OdGiBaseVectorizer.

◆ polylineEye()

virtual void OdGiViewportGeometry::polylineEye ( OdUInt32  numVertices,
const OdGePoint3d vertexList 
)
pure virtual

Draws a polyline, with coordinates specified in Eye Coordinates.

Parameters
numVertices[in] Number of vertices.
vertexList[in] Array of vertices.
Remarks
This polyline is drawn with a continuous linetype.
See also
Coordinate Systems

Implemented in OdGiDummyViewportGeometry< OdGiViewportDraw_ >, OdGiDummyViewportGeometry< OdGiViewportGeometry >, OdGiWrapperViewportGeometry< OdGiViewportDraw_ >, OdGiWrapperViewportGeometry< OdGiViewportGeometry >, and OdGiBaseVectorizer.

◆ rasterImageDc()

virtual void OdGiViewportGeometry::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 
)
pure virtual

Draws the specified raster image.

Parameters
origin[in] Image origin.
u[in] Image width vector.
v[in] Image height vector.
pImage[in] Pointer to the image object.
uvBoundary[in] Array of image boundary points (may not be null).
numBoundPts[in] Number of boundary points.
transparency[in] True if and only if image transparency is on.
brightness[in] Image brightness [0 .. 100].
contrast[in] Image contrast [0 .. 100].
fade[in] Image fade value [0 .. 100].
Remarks
All coordinates are in Model coordinates.

Implemented in OdGiWrapperViewportGeometry< OdGiViewportDraw_ >, OdGiWrapperViewportGeometry< OdGiViewportGeometry >, OdGiBaseVectorizer, OdGiDummyViewportGeometry< OdGiViewportDraw_ >, and OdGiDummyViewportGeometry< OdGiViewportGeometry >.


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