CFx SDK Documentation  2022 SP0
Classes | Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
OdSi::Volume Class Reference

#include <SiVolume.h>

Inheritance diagram for OdSi::Volume:
OdSiShape

Classes

class  PlaneImpl
 

Public Member Functions

 Volume ()
 
 Volume (const Volume &source)
 
 Volume (const OdGePoint3d &origin, const OdGeVector3d &zAxis, const OdGeVector3d &yAxis, const OdGeVector3d &xAxis, double xFov, double yFov, bool xFovAsAspect=false, bool yFovAsAspect=false, bool bNearPlane=false, double fNearPlane=0.01, bool bFarPlane=false, double fFarPlane=1.0)
 
virtual bool contains (const OdGeExtents3d &extents, bool planar=false, const OdGeTol &tol=OdGeContext::gTol) const
 
virtual bool intersects (const OdGeExtents3d &extents, bool planar=false, const OdGeTol &tol=OdGeContext::gTol) const
 
virtual OdSiShapeclone () const
 
virtual void transform (const OdGeMatrix3d &mtx)
 
- Public Member Functions inherited from OdSiShape
virtual ~OdSiShape ()
 

Static Public Member Functions

static double fovToPlane (double fov, double len)
 
static double fovFromPlane (double plane, double len)
 

Static Protected Member Functions

static bool planeFromTri (const OdGePoint3d &A, const OdGePoint3d &B, const OdGePoint3d &C, PlaneImpl &pl)
 
static bool aabbInsidePlane (const OdGePoint3d &min, const OdGePoint3d &max, const PlaneImpl &plane, const OdGeTol &tol)
 

Protected Attributes

OdUInt32 m_nPlanes
 
PlaneImpl m_plane [6]
 
bool m_planeValid [6]
 

Additional Inherited Members

- Static Public Attributes inherited from OdSiShape
static ODSI_API_STATIC const OdSiShapekOverallSpace
 
static ODSI_API_STATIC const OdSiShapekNoSpace
 

Detailed Description

Definition at line 36 of file SiVolume.h.

Constructor & Destructor Documentation

◆ Volume() [1/3]

OdSi::Volume::Volume ( )
inline

Definition at line 77 of file SiVolume.h.

◆ Volume() [2/3]

OdSi::Volume::Volume ( const Volume source)
inline

Definition at line 78 of file SiVolume.h.

◆ Volume() [3/3]

OdSi::Volume::Volume ( const OdGePoint3d origin,
const OdGeVector3d zAxis,
const OdGeVector3d yAxis,
const OdGeVector3d xAxis,
double  xFov,
double  yFov,
bool  xFovAsAspect = false,
bool  yFovAsAspect = false,
bool  bNearPlane = false,
double  fNearPlane = 0.01,
bool  bFarPlane = false,
double  fFarPlane = 1.0 
)
inline

Definition at line 150 of file SiVolume.h.

Member Function Documentation

◆ aabbInsidePlane()

static bool OdSi::Volume::aabbInsidePlane ( const OdGePoint3d min,
const OdGePoint3d max,
const PlaneImpl plane,
const OdGeTol tol 
)
inlinestaticprotected

Definition at line 137 of file SiVolume.h.

◆ clone()

virtual OdSiShape* OdSi::Volume::clone ( ) const
inlinevirtual

Reimplemented from OdSiShape.

Definition at line 97 of file SiVolume.h.

◆ contains()

bool OdSi::Volume::contains ( const OdGeExtents3d extents,
bool  planar = false,
const OdGeTol tol = OdGeContext::gTol 
) const
inlinevirtual

Returns true if and only if this Shape object contains the specfied extents.

Parameters
extents[in] Any 3D extents box.
planar[in] If and only if true, a planar computation is made.

Implements OdSiShape.

Definition at line 202 of file SiVolume.h.

◆ fovFromPlane()

static double OdSi::Volume::fovFromPlane ( double  plane,
double  len 
)
inlinestatic

Definition at line 116 of file SiVolume.h.

◆ fovToPlane()

static double OdSi::Volume::fovToPlane ( double  fov,
double  len 
)
inlinestatic

Definition at line 112 of file SiVolume.h.

◆ intersects()

bool OdSi::Volume::intersects ( const OdGeExtents3d extents,
bool  planar = false,
const OdGeTol tol = OdGeContext::gTol 
) const
inlinevirtual

Returns true if and only if this Shape object intersects the specfied extents.

Parameters
extents[in] Any 3D extents box.
planar[in] If and only if true, a planar computation is made.

Implements OdSiShape.

Definition at line 224 of file SiVolume.h.

◆ planeFromTri()

static bool OdSi::Volume::planeFromTri ( const OdGePoint3d A,
const OdGePoint3d B,
const OdGePoint3d C,
PlaneImpl pl 
)
inlinestaticprotected

Definition at line 121 of file SiVolume.h.

◆ transform()

virtual void OdSi::Volume::transform ( const OdGeMatrix3d mtx)
inlinevirtual

Reimplemented from OdSiShape.

Definition at line 102 of file SiVolume.h.

Member Data Documentation

◆ m_nPlanes

OdUInt32 OdSi::Volume::m_nPlanes
protected

Definition at line 72 of file SiVolume.h.

◆ m_plane

PlaneImpl OdSi::Volume::m_plane[6]
protected

Definition at line 74 of file SiVolume.h.

◆ m_planeValid

bool OdSi::Volume::m_planeValid[6]
protected

Definition at line 75 of file SiVolume.h.


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