CFx SDK Documentation 2024 SP0
|
#include <DbRevolveOptions.h>
Public Member Functions | |
OdDbRevolveOptions () | |
OdDbRevolveOptions (const OdDbRevolveOptions &src) | |
~OdDbRevolveOptions () | |
OdDbRevolveOptions & | operator= (const OdDbRevolveOptions &src) |
double | draftAngle () const |
void | setDraftAngle (double ang) |
double | twistAngle () const |
void | setTwistAngle (double ang) |
bool | closeToAxis () const |
void | setCloseToAxis (bool val) |
OdResult | checkRevolveCurve (OdDbEntity *pRevEnt, const OdGePoint3d &axisPnt, const OdGeVector3d &axisDir, bool &closed, bool &endPointsOnAxis, bool &planar, bool displayErrorMessages=false) |
Friends | |
class | OdDbRevolveOptionsImpl |
Class for setting options used for creating revolving surfaces and revolving solids (by calling OdDbRevolvedSurface::createRevolvedSurface() or OdDb3dSolid::createRevolvedSolid() methods). Revolve options are used to control the shape of the resulting surface or solid object.
<group OdDb_Classes>
Definition at line 40 of file DbRevolveOptions.h.
OdDbRevolveOptions::OdDbRevolveOptions | ( | ) |
Creates an instance of revolving surface options.
OdDbRevolveOptions::OdDbRevolveOptions | ( | const OdDbRevolveOptions & | src | ) |
Creates a copy of another instance of revolving surface options (copy constructor).
src | [in] An instance of revolving surface options to be copied. |
OdDbRevolveOptions::~OdDbRevolveOptions | ( | ) |
Destroys the instance of revolving surface options.
OdResult OdDbRevolveOptions::checkRevolveCurve | ( | OdDbEntity * | pRevEnt, |
const OdGePoint3d & | axisPnt, | ||
const OdGeVector3d & | axisDir, | ||
bool & | closed, | ||
bool & | endPointsOnAxis, | ||
bool & | planar, | ||
bool | displayErrorMessages = false |
||
) |
Checks whether a specified entity is valid for the revolve operation.
pRevEnt | [in] A pointer to the entity (curve or region) to be revolved. |
axisPnt | [in] A point on the axis of revolution. |
axisDir | [in] A vector determining the direction of the revolution axis. |
closed | [out] A passed-in parameter for returning the indicator determining whether the revolved entity is closed. |
endPointsOnAxis | [out] A passed-in parameter for returning the indicator determining whether the revolved entity is open and whether its endpoints lie on the axis of revolution. |
planar | [out] A passed-in parameter for returning the indicator determining whether the revolved entity is planar. |
displayErrorMessages | [in] Indicates whether error messages are displayed. Default value is false. |
bool OdDbRevolveOptions::closeToAxis | ( | ) | const |
Returns the value of the close to axis option.
If the close to axis option is equal to true, then the ends of the profile will be extended to the axis of revolution before revolving. The default value of the option is false.
double OdDbRevolveOptions::draftAngle | ( | ) | const |
Returns the draft angle in radians.
Draft angle is an angle of a profile's taper relative to the axis while the profile is revolving around the axis. The default value is equal to 0.0.
OdDbRevolveOptions & OdDbRevolveOptions::operator= | ( | const OdDbRevolveOptions & | src | ) |
Assigning operator for revolving surface options.
src | [in] An instance of revolving surface options to be assigned to this instance. |
void OdDbRevolveOptions::setCloseToAxis | ( | bool | val | ) |
Sets the value of the close to axis option.
If the close to axis option is equal to true, then the ends of the profile will be extended to the axis of revolution before revolving. The default value of the option is false.
val | [in] A new value of the close to axis option. |
void OdDbRevolveOptions::setDraftAngle | ( | double | ang | ) |
Sets the draft angle.
Draft angle is an angle of a profile's taper relative to the axis while the profile is revolving around the axis. The default value is equal to 0.0.
ang | [in] A new draft angle (radians). |
void OdDbRevolveOptions::setTwistAngle | ( | double | ang | ) |
Sets the twist angle.
Twist angle is the angle of a profile's twisting while the profile is revolving around the axis in radians. The default value is equal to 0.0.
ang | [in] A new twist angle (radians). |
double OdDbRevolveOptions::twistAngle | ( | ) | const |
Returns the twist angle in radians.
Twist angle is the angle of a profile's twisting while the profile is revolving around the axis in radians. The default value is equal to 0.0.
|
friend |
Definition at line 148 of file DbRevolveOptions.h.