CFx SDK Documentation
2020SP3
|
#include <DbCircle.h>
<group OdDb_Classes>
This class implements the circle object (Circle entity) in the database. This class inherits the base functionality of entities. A circle is a circular closed figure in world space.
OdDbArc, OdDbEllipse classes
Definition at line 54 of file DbCircle.h.
OdDbCircle::OdDbCircle | ( | ) |
Builds an instance of the circle object.
OdGePoint3d OdDbCircle::center | ( | ) | const |
Returns the WCS coordinates of the circle center (DXF 10) as three-dimensional point instance.
OdDbCircle::setCenter() method
|
virtual |
Reads the .dwg file data of this object.
pFiler | [in] Filer object from which data are read. |
This function is called by dwgIn() to allow the object to read its data.
When overriding this function:
1) Call assertWriteEnabled(). 2) Call the parent class's dwgInFields(pFiler). 3) If it returns eOK, continue; otherwise return whatever the parent's dwgInFields(pFiler) returned. 4) Call the OdDbDwgFiler(pFiler) methods to read each of the object's data items in the order they were written. 5) Return pFiler->filerStatus().
Reimplemented from OdDbEntity.
|
virtual |
Writes the .dwg file data of this object.
pFiler | [in] Pointer to the filer to which data are written. |
This function is called by dwgIn() to allow the object to write its data.
When overriding this function:
1) Call assertReadEnabled(). 2) Call the parent class's dwgOutFields(pFiler). 3) Call the OdDbDwgFiler(pFiler) methods to write each of the object's data items in the order they were written.
Reimplemented from OdDbEntity.
|
virtual |
Reads the DXF data of this object.
pFiler | [in] Pointer to the filer from which data are read. |
This function is called by dxfIn() to allow the object to read its data.
When overriding this function:
1) Call assertWriteEnabled(). 2) Call the parent class's dwgInFields(pFiler). 3) If it returns eOK, continue; otherwise return whatever the parent's dxfInFields(pFiler) returned. 4) Call the OdDbDxfFiler(pFiler) methods to read each of the object's data items in the order they were written. 5) Return pFiler->filerStatus().
Reimplemented from OdDbEntity.
|
virtual |
Reads the DXF R12 format data of this object.
pFiler | [in] Pointer to the filer from which data are to be read. |
This function is called by dxfIn() to allow the object to read its data.
When overriding this function:
1) Call assertWriteEnabled(). 2) Call the parent class's dxfInFields_R12(pFiler). 3) If it returns eOK, continue; otherwise return whatever the parent's dxfOutFields_R12(pFiler) returned. 4) Call the OdDbDxfFiler(pFiler) methods to read each of the object's data items in the order they were written. 5) Return pFiler->filerStatus().
Reimplemented from OdDbEntity.
|
virtual |
Writes the DXF data of this object.
pFiler | [in] Pointer to the filer to which data are to be written. |
This function is called by dxfOut() to allow the object to write its data.
When overriding this function:
1) Call assertReadEnabled(). 2) Call the parent class's dxfOutFields(pFiler). 4) Use pFiler to call the OdDbDxfFiler methods to write each of the object's data items in the order they were written.
Reimplemented from OdDbEntity.
|
virtual |
Writes the DXF data of this object.
pFiler | [in] Pointer to the filer to which data are to be written. |
This function is called by dxfOut() to allow the object to write its data.
When overriding this function:
1) Call assertReadEnabled(). 2) Call the parent class's dxfOutFields(pFiler). 3) Use pFiler to call the OdDbDxfFiler methods to write each of the object's data items in the order they were written.
Reimplemented from OdDbEntity.
|
virtual |
Returns the area of the circle calculated using the classic formula (PIRR).
vArea | [out] Reference to a variable in which this method must save the area as a Double value. |
Reimplemented from OdDbCurve.
|
virtual |
Computes the distance along the circle measured from the OCS X-axis to the point on the circle specified the parameter.
param | [in] Parameter value specifying the point on the circle as a Double value in radians. |
dist | [out] Reference to a variable in which this method must save the distance value as a Double value in drawing units. |
Implements OdDbCurve.
|
virtual |
Returns the entity coordinate system matrix.
Reimplemented from OdDbEntity.
|
virtual |
Gets the end parameter value. The end parameter equals the 2PI. Parameter is an angle measured counterclockwise from the OCS X-axis in the range 0 to 2PI radians.
endParam | [out] Reference to a variable in which this method must save the end parameter value as a Double value in radians. |
Implements OdDbCurve.
|
virtual |
Computes the WCS coordinates of the end point on the circle for which the parameter equals the circumference. The end point coincides with the start point.
endPoint | [out] Reference to a variable in which this method must save the end point as three-dimensional point instance. |
Implements OdDbCurve.
|
virtual |
Computes the first derivative for the specified parameter of the circle entity and returns the three-dimensional vector instance.
param | [in] Parameter value specifying the point on the circle as a Double value in radians. |
firstDeriv | [out] Reference to a variable in which this method must save the first derivative as three-dimensional vector instance. |
Implements OdDbCurve.
|
virtual |
Returns an OdGeCurve3d that is geometrically identical to this OdDbCurve.
pGeCurve | [out] Receives a pointer to an OdGeCurve3d object that is geometrically identical to this OdDbCurve. The caller of this function is responsible for deleting this OdGeCurve3d object. |
tol | [in] Optional tolerance. |
Reimplemented from OdDbCurve.
|
virtual |
Computes the parameter at the distance along the circle. Parameter is an angle measured counterclockwise from the OCS X-axis in the range 0 to 2PI radians.
dist | [in] Distance value along the circle curve as a Double value in drawing units. |
param | [out] Reference to a variable in which this method must save the parameter value as a Double value in radians. |
Implements OdDbCurve.
|
virtual |
Computes the parameter at the point placed on the circle. Parameter is an angle measured counterclockwise from the OCS X-axis in the range 0 to 2PI radians.
pointOnCurve | [in] Three-dimensional point instance which specifies the point on the circle. |
param | [out] Reference to a variable in which this method must save the parameter value as a Double value in radians. |
Implements OdDbCurve.
|
virtual |
Gets a plane in which the circle entity places. This method is inherited from the
OdDbEntity class.
gePlane | [out] Reference to a variable in which this method must save the plane parameters as a plane instance. |
gePlanarity | [out] Reference to a variable in which this method must save the plane type (returns kPlanar - planar entity). |
OdDbCircle::isPlanar(), OdDbEntity::getPlane() methods
Reimplemented from OdDbEntity.
|
virtual |
Computes the WCS coordinates of the point on the circle at the specified parameter value. Parameter is an angle measured counterclockwise from the OCS X-axis in the range 0 to 2PI radians.
param | [in] Parameter value specifying the point on the circle as a Double value in radians. |
pointOnCurve | [out] Reference to a variable in which this method must save the three-dimensional point instance corresponding to the parameter. |
Implements OdDbCurve.
|
virtual |
Computes the second derivative for the specified parameter of the circle entity and
returns the three-dimensional vector instance.
param | [in] Parameter value specifying the point on the circle as a Double value in radians. |
secondDeriv | [out] Reference to a variable in which this method must save the second derivative as three-dimensional vector instance. |
Reimplemented from OdDbCurve.
|
virtual |
Gets the start parameter value. The start parameter equals zero for circles. Parameter is an angle measured counterclockwise from the OCS X-axis in the range 0 to 2PI radians.
startParam | [out] Reference to a variable in which this method must save the start parameter value as a Double value in radians. |
Implements OdDbCurve.
|
virtual |
Computes the WCS coordinates of the start point on the circle for which the parameter equals zero. The start point coincides with the end point.
startPoint | [out] Reference to a variable in which this method must save the start point as three-dimensional point instance. |
Implements OdDbCurve.
|
virtual |
Returns true if and only if this Curve object is closed.
Reimplemented from OdDbCurve.
|
virtual |
Returns true if and only if this Curve object is periodic.
Reimplemented from OdDbCurve.
|
virtual |
Determines whether the circle entity is planar as a Boolean value and returns True. This method is inherited from the OdDbEntity class.
OdDbCircle::getPlane(), OdDbEntity::isPlanar() methods
Reimplemented from OdDbEntity.
OdGeVector3d OdDbCircle::normal | ( | ) | const |
Returns the WCS unit vector which is the normal to the plane of the circle entity (DXF 210). The normal defines the orientation of the circle plane in world space.
OdDbCircle::setNormal() method
OdDbCircle::ODDB_DECLARE_MEMBERS | ( | OdDbCircle | ) |
double OdDbCircle::radius | ( | ) | const |
Returns the radius of the circle entity (DXF 40).
OdDbCircle::setRadius() method
void OdDbCircle::setCenter | ( | const OdGePoint3d & | center | ) |
Sets the center of the circle entity (DXF 10) in WCS. The initial value is (0,0,0) by default.
center | [in] Three-dimensional point instance to set the center. |
OdDbCircle::center() method
|
virtual |
Takes an OdGeCurve3d and sets this OdDbCurve to be geometrically identical to the OdGeCurve3d.
geCurve | [in] reference to an OdGeCurve3d. |
normal | [in] Optional normal vector. If this parameter is supplied then it must be a valid vector that is perpendicular to the input geCurve, and this vector will become the normal vector of the output pDbCurve. If this parameter is not supplied, then this function will compute the normal vector itself. |
tol | [in] Optional tolerance. |
Reimplemented from OdDbCurve.
void OdDbCircle::setNormal | ( | const OdGeVector3d & | geVector | ) |
Sets the WCS normal to the plane of the circle entity (DXF 210). The normal defines the orientation of the circle plane in world space. The initial value is (0,0,1) by default.
geVector | [in] Three-dimensional vector instance to set the normal. |
OdDbCircle::normal() method
void OdDbCircle::setRadius | ( | double | radius | ) |
Sets the radius of the circle entity (DXF 40). The initial value is 0.0 by default.
radius | [in] Radius as a Double value. |
OdDbCircle::radius() method
void OdDbCircle::setThickness | ( | double | vThickness | ) |
Sets the thickness of the circle entity (DXF 39) in drawing units. Thickness is the extrusion length along the normal. A positive value extrudes along the normal. A negative value extrudes opposite from the normal. A zero value defines a circle
without thickness. The initial value is zero by default.
vThickness | [in] Thickness as a Double value. |
OdDbCircle::thickness() method
Reimplemented from OdDbEntity.
|
virtual |
Reimplemented from OdDbEntity.
|
virtual |
Reimplemented from OdDbEntity.
|
virtual |
Reimplemented from OdDbEntity.
|
virtual |
Reimplemented from OdDbEntity.
OdDbCircle::TD_USING | ( | OdDbCurve::getFirstDeriv | ) |
OdDbCircle::TD_USING | ( | OdDbCurve::getSecondDeriv | ) |
double OdDbCircle::thickness | ( | ) | const |
Returns the thickness of the circle entity (DXF 39) in drawing units. Thickness is the extrusion length along the normal. A positive value defines the thickness to be drawn along the normal direction. A negative value defines the thickness to be drawn in the opposite direction from the normal. A zero value defines a circle without thickness.
OdDbCircle::setThickness() method