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

#include <FMMdlSurface.h>

Inheritance diagram for FacetModeler::Revolution:
FacetModeler::Surface FacetModeler::Entity FacetModeler::Cone FacetModeler::Cylinder FacetModeler::Sphere FacetModeler::Torus

Public Member Functions

 Revolution (const OdGeLine3d &axis, const OdGeVector3d &startDir)
 
void transform (const OdGeMatrix3d &x)
 
const OdGeLine3daxis () const
 
const OdGeVector3dstartDir () const
 
int compare (const Surface *pOther, double eps) const
 
- Public Member Functions inherited from FacetModeler::Surface
 Surface ()
 
virtual Surfacecopy (Body &to) const
 
virtual Type type () const
 
virtual OdGeVector3d normal (const Vertex &atV, const Face &atF) const
 
virtual void transform (const OdGeMatrix3d &x)
 
virtual int compare (const Surface *pOther, double eps) const
 
Surfacenext () const
 
void setNext (Surface *s)
 
 ~Surface ()
 
- Public Member Functions inherited from FacetModeler::Entity
 Entity ()
 
 Entity (const Entity &ent)
 
Entityoperator= (const Entity &entity)
 
OdUInt32 flags () const
 
void setFlags (OdUInt32 iFlags)
 
bool isFlagOn (OdUInt32 iFlag) const
 
void setIsFlagOn (OdUInt32 iFlag, bool bOn)
 
TagType tag () const
 
void setTag (TagType nTag)
 
virtual ~Entity ()
 

Protected Attributes

OdGeLine3d m_axis
 
OdGeVector3d m_startDir
 

Additional Inherited Members

- Public Types inherited from FacetModeler::Surface
enum  Type {
  kUndefined = 0 , kCylinder = 1 , kCone = 2 , kSphere = 3 ,
  kTorus = 4 , kShaded = 5
}
 
- Protected Member Functions inherited from FacetModeler::Surface
int surface_compare (const Surface *pOther, double eps) const
 
virtual Surfaceclone (Body &to) const
 

Detailed Description

Represents facet body revolution objects.

Definition at line 256 of file FMMdlSurface.h.

Constructor & Destructor Documentation

◆ Revolution()

FacetModeler::Revolution::Revolution ( const OdGeLine3d axis,
const OdGeVector3d startDir 
)

Constructor. Creates a revolution surface with the specified axis of rotation and the start direction vector.

Parameters
axis[in] Axis of rotation line.
startDir[in] Start direction vector.

Member Function Documentation

◆ axis()

const OdGeLine3d & FacetModeler::Revolution::axis ( ) const

Gets the axis of the revolution surface.

Returns
Axis as an OdGeLine3d object.

◆ compare()

int FacetModeler::Revolution::compare ( const Surface pOther,
double  eps 
) const
virtual

Compares surfaces with the specified tolerance.

Parameters
pOther[in] Other surface to compare with.
eps[in] Comparison tolerance.
Returns
0 - if the surfaces are equal, 1 - if a parameter of this surface is greater than the corresponding parameter of another surface, -1 - otherwise.
Remarks
The main purpose of the method is to sort surfaces.

Reimplemented from FacetModeler::Surface.

Reimplemented in FacetModeler::Cone, FacetModeler::Torus, FacetModeler::Sphere, and FacetModeler::Cylinder.

◆ startDir()

const OdGeVector3d & FacetModeler::Revolution::startDir ( ) const

Gets the start direction of the revolution surface.

Returns
Start direction vector as an OdGeVector3d object.

◆ transform()

void FacetModeler::Revolution::transform ( const OdGeMatrix3d x)
virtual

Transforms the surface with the given transformation matrix.

Parameters
x[in] Given transformation matrix.

Reimplemented from FacetModeler::Surface.

Reimplemented in FacetModeler::Sphere, FacetModeler::Cylinder, FacetModeler::Cone, and FacetModeler::Torus.

Member Data Documentation

◆ m_axis

OdGeLine3d FacetModeler::Revolution::m_axis
protected

Definition at line 303 of file FMMdlSurface.h.

◆ m_startDir

OdGeVector3d FacetModeler::Revolution::m_startDir
protected

Definition at line 304 of file FMMdlSurface.h.


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