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

#include <PdfPublish2dGeometryBlock.h>

Inheritance diagram for OdPdfPublish::Od2dGeometryBlock:
OdPdfPublish::OdObject OdRxObject

Public Member Functions

 ODRX_DECLARE_MEMBERS (Od2dGeometryBlock)
 
 ODRX_HEAP_OPERATORS ()
 
virtual ~Od2dGeometryBlock ()
 
void setOrigin (const OdGePoint2d &origin)
 
void addLine (const OdGePoint2dArray &points)
 
void addLine (const OdGePoint2d &start, const OdGePoint2d &end)
 
void addLine (OdUInt32 nPoints, const OdGePoint2d *pPoints)
 
void addCircle (const OdGeCircArc2d &circle)
 
void addEllipse (const OdGeEllipArc2d &ellipse)
 
void addCurve (const OdGeNurbCurve2d &nurb)
 
void putColor (ODCOLORREF color)
 
void putLineWeight (double lw)
 
void putLineCap (Geometry::PDFLineCap lineCap)
 
void putLineJoin (Geometry::PDFLineJoin lineJoin)
 
void putTransform (const OdGeMatrix2d &transform)
 
void startContour ()
 
void finishContour (Geometry::PDFFinishRule rule)
 
void addText (const OdTextPtr &text, const OdRect &location)
 
void addImage (const OdImagePtr &image, const OdRect &location)
 
void startLayer (Od2dGeometryLayerPtr &layer)
 
void finishLayer ()
 
- Public Member Functions inherited from OdPdfPublish::OdObject
 ODRX_DECLARE_MEMBERS (OdObject)
 
 ODRX_HEAP_OPERATORS ()
 
virtual ~OdObject ()
 
virtual bool isEmpty () const
 
virtual bool isValid () const
 
virtual void clear ()
 
- 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
 

Protected Member Functions

 Od2dGeometryBlock ()
 
- Protected Member Functions inherited from OdPdfPublish::OdObject
 OdObject (OdPublishObjectImpl *pImpl)
 

Additional Inherited Members

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

Detailed Description

This class implements two-dimensional geometry data in .pdf documents created with Publish SDK.

Definition at line 51 of file PdfPublish2dGeometryBlock.h.

Constructor & Destructor Documentation

◆ Od2dGeometryBlock()

OdPdfPublish::Od2dGeometryBlock::Od2dGeometryBlock ( )
protected

◆ ~Od2dGeometryBlock()

virtual OdPdfPublish::Od2dGeometryBlock::~Od2dGeometryBlock ( )
virtual

Destroys the 2D geometry object.

Member Function Documentation

◆ addCircle()

void OdPdfPublish::Od2dGeometryBlock::addCircle ( const OdGeCircArc2d circle)

Adds a new circle or arc to the geometry object.

Parameters
circle[in] A circle that should be added.

◆ addCurve()

void OdPdfPublish::Od2dGeometryBlock::addCurve ( const OdGeNurbCurve2d nurb)

Adds a new NURBS-curve to the geometry object.

Parameters
nurb[in] A NURBS-curve that should be added.

◆ addEllipse()

void OdPdfPublish::Od2dGeometryBlock::addEllipse ( const OdGeEllipArc2d ellipse)

Adds a new ellipse to the geometry object.

Parameters
ellipse[in] An ellipse that should be added.

◆ addImage()

void OdPdfPublish::Od2dGeometryBlock::addImage ( const OdImagePtr &  image,
const OdRect location 
)

Adds a new image to the geometry object.

Parameters
image[in] An image that should be added.
location[in] A rectangle that specifies the image location.

◆ addLine() [1/3]

void OdPdfPublish::Od2dGeometryBlock::addLine ( const OdGePoint2d start,
const OdGePoint2d end 
)

Adds a new line to the geometry object.

Parameters
start[in] A starting point of the line.
end[in] An ending point of the line.
Remarks
Any line can be defined with its two points (passed through start and end parameters).

◆ addLine() [2/3]

void OdPdfPublish::Od2dGeometryBlock::addLine ( const OdGePoint2dArray points)

Adds a new line to the geometry object.

Parameters
points[in] An array of OdGePoint objects that determine the line.

◆ addLine() [3/3]

void OdPdfPublish::Od2dGeometryBlock::addLine ( OdUInt32  nPoints,
const OdGePoint2d pPoints 
)

Adds a new line to the geometry object.

Parameters
nPoints[in] A quantity of points in the array.
pPoints[in] A pointer to the point array.

◆ addText()

void OdPdfPublish::Od2dGeometryBlock::addText ( const OdTextPtr &  text,
const OdRect location 
)

Adds a new text label to the geometry object.

Parameters
text[in] An instance of a text label.
location[in] A rectangle that specifies the text label location.

◆ finishContour()

void OdPdfPublish::Od2dGeometryBlock::finishContour ( Geometry::PDFFinishRule  rule)

Finishes a new drawing contour for the geometry object.

Parameters
rule[in] A finish rule for the contour.

◆ finishLayer()

void OdPdfPublish::Od2dGeometryBlock::finishLayer ( )

Finishes a new PDF layer for the geometry object.

◆ ODRX_DECLARE_MEMBERS()

OdPdfPublish::Od2dGeometryBlock::ODRX_DECLARE_MEMBERS ( Od2dGeometryBlock  )

◆ ODRX_HEAP_OPERATORS()

OdPdfPublish::Od2dGeometryBlock::ODRX_HEAP_OPERATORS ( )

◆ putColor()

void OdPdfPublish::Od2dGeometryBlock::putColor ( ODCOLORREF  color)

Sets the geometry object's color.

Parameters
color[in] A new color value to be set.

◆ putLineCap()

void OdPdfPublish::Od2dGeometryBlock::putLineCap ( Geometry::PDFLineCap  lineCap)

Sets the geometry object's line cap.

Parameters
lineCap[in] A new line cap value to be set.

◆ putLineJoin()

void OdPdfPublish::Od2dGeometryBlock::putLineJoin ( Geometry::PDFLineJoin  lineJoin)

Sets the geometry object's line join value.

Parameters
lineJoin[in] A new join value to be set.

◆ putLineWeight()

void OdPdfPublish::Od2dGeometryBlock::putLineWeight ( double  lw)

Sets the geometry object's lineweight.

Parameters
lw[in] A new lineweight value to be set.

◆ putTransform()

void OdPdfPublish::Od2dGeometryBlock::putTransform ( const OdGeMatrix2d transform)

Sets a new transformation matrix for the geometry object.

Parameters
transform[in] A new matrix object represented with an OdGeMatrix2d object.

◆ setOrigin()

void OdPdfPublish::Od2dGeometryBlock::setOrigin ( const OdGePoint2d origin)

Sets a new origin point for the geometry object.

Parameters
origin[in] An OdGePoint class instance that represents the new origin point.

◆ startContour()

void OdPdfPublish::Od2dGeometryBlock::startContour ( )

Starts a new drawing contour for the geometry object.

◆ startLayer()

void OdPdfPublish::Od2dGeometryBlock::startLayer ( Od2dGeometryLayerPtr &  layer)

Starts a new PDF layer for the geometry object.

Parameters
layer[in] A smart pointer to layer object.

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