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

#include <FMMdlSurface.h>

Inheritance diagram for FacetModeler::Sphere:
FacetModeler::Revolution FacetModeler::Surface FacetModeler::Entity

Public Member Functions

 Sphere (const OdGePoint3d &center, double radius, OdUInt32 approx)
 
Type type () const
 
const OdGePoint3dcenter () const
 
double radius () const
 
OdUInt32 approximation () const
 
OdGeVector3d normal (const Vertex &atV, const Face &atF) const
 
void transform (const OdGeMatrix3d &x)
 
int compare (const Surface *pOther, double eps) const
 
Surfacecopy (Body &to) const
 
- Public Member Functions inherited from FacetModeler::Revolution
 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

OdGePoint3d m_center
 
double m_radius
 
OdUInt32 m_approximation
 
- Protected Attributes inherited from FacetModeler::Revolution
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 spherical objects.

Definition at line 310 of file FMMdlSurface.h.

Constructor & Destructor Documentation

◆ Sphere()

FacetModeler::Sphere::Sphere ( const OdGePoint3d center,
double  radius,
OdUInt32  approx 
)

Constructor. Creates a sphere with the specified center point, radius and approximation.

Parameters
center[in] Sphere center coordinates.
radius[in] Radius value.
approx[in] Approximation.

Member Function Documentation

◆ approximation()

OdUInt32 FacetModeler::Sphere::approximation ( ) const

Gets the approximation.

Returns
Approximation as OdUInt32.

◆ center()

const OdGePoint3d & FacetModeler::Sphere::center ( ) const

Gets the sphere center coordinates.

Returns
Sphere center point as an OdGePoint3d object.

◆ compare()

int FacetModeler::Sphere::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::Revolution.

◆ copy()

Surface * FacetModeler::Sphere::copy ( Body to) const
virtual

Creates a copy of the surface to the specified body.

Parameters
to[in] Destination body.
Returns
Pointer to the newly created surface.

Reimplemented from FacetModeler::Surface.

◆ normal()

OdGeVector3d FacetModeler::Sphere::normal ( const Vertex atV,
const Face atF 
) const
virtual

Gets the normal at the specified vertex on the specified face.

Parameters
atV[in] The vertex at which the normal is computed.
atF[in] The face for which the normal is computed.
Returns
Normal at the specified vertex on the specified face.
Remarks
Parameter atF is unused.

Reimplemented from FacetModeler::Surface.

◆ radius()

double FacetModeler::Sphere::radius ( ) const

Gets the radius value.

Returns
Value of the radius.

◆ transform()

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

Transforms the surface with the given transformation matrix.

Parameters
x[in] Given transformation matrix.

Reimplemented from FacetModeler::Revolution.

◆ type()

Type FacetModeler::Sphere::type ( ) const
virtual

Gets the surface type.

Returns
Type of the surface as a Type enumeration value.

Reimplemented from FacetModeler::Surface.

Member Data Documentation

◆ m_approximation

OdUInt32 FacetModeler::Sphere::m_approximation
protected

Definition at line 394 of file FMMdlSurface.h.

◆ m_center

OdGePoint3d FacetModeler::Sphere::m_center
protected

Definition at line 392 of file FMMdlSurface.h.

◆ m_radius

double FacetModeler::Sphere::m_radius
protected

Definition at line 393 of file FMMdlSurface.h.


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