All Frameworks Class Hierarchy This Framework Previous Next Indexes
VisualizationBase Class CAT3DBoundingSphere
System.IUnknown
|
+---VisualizationBase.CATVizBaseIUnknown
|
+---VisualizationBase.CATBoundingElement
|
+---CAT3DBoundingSphere
Usage: you must use this class as is. You should never derive it.
public class CAT3DBoundingSphere
Class to manage bounding volume of 3D elements.
Role:This class is used to manage the volume occupied by a 3D
element.
This information is used at the rendering time to know if a given
element is visible on the screen and needs to be drawn or not.
For performance issues BoundingSpheres need to be as close to the object they are linked
to as possible.
Idealy they represent the smallest sphere containing the object.
You can add 2 3DBoundingSpheres using the += operator
Constructor and Destructor Index
- o
CAT3DBoundingSphere()
- Constructs an empty boundingSphere.
- o
CAT3DBoundingSphere(CAT2DBoundingBox&)
- Constructs a BoundingSphere from a 2D box.
- o
CAT3DBoundingSphere(CAT3DBoundingSphere&)
- Copy constructor.
- o
CAT3DBoundingSphere(CATMathPointf&,float,float)
- Constructs a 3DBoundingSphere with a given center, radius and radius in mm.
- o
~CAT3DBoundingSphere()
- Destructor.
Method Index
- o
GetCenter()
- Returns the 3DBoundingSphere center.
- o
GetRadius()
- Returns the radius of the 3DBoundingSphere.
- o
GetRadiusMM()
- Returns the radius for fixed element.
- o
operator *=(CAT4x4Matrix&)
- Multiply operator.
- o
operator +=(CAT3DBoundingSphere&)
- Add operator.
- o
operator =(CAT3DBoundingSphere&)
- Assign a new value to the current BoundingSphere.
Constructor and Destructor
o CAT3DBoundingSphere
public CAT3DBoundingSphere( | ) |
-
Constructs an empty boundingSphere.
default center will be 0,0,0 and default radius 1
o CAT3DBoundingSphere
-
Constructs a BoundingSphere from a 2D box.
o CAT3DBoundingSphere
-
Copy constructor.
o CAT3DBoundingSphere
public CAT3DBoundingSphere( | const CATMathPointf& | center, |
| const float | radius, |
| const float | radius_mm | = 0.f) |
-
Constructs a 3DBoundingSphere with a given center, radius and radius in mm.
- Parameters:
-
- center
- The center of the boundingSphere
- radius
- The radius of the boundingSphere in model unit.
- radius_mm
- This is used for elements with fixed size on the screen on which
zoom has no effect.
Default is 0.
o ~CAT3DBoundingSphere
public virtual ~CAT3DBoundingSphere( | ) |
-
Destructor.
Methods
o GetCenter
-
Returns the 3DBoundingSphere center.
o GetRadius
public inline float GetRadius( | )const |
-
Returns the radius of the 3DBoundingSphere.
o GetRadiusMM
public inline float GetRadiusMM( | )const |
-
Returns the radius for fixed element.
(Element with fixed size on the screen on which
zoom has no effect.)
o operator *=
-
Multiply operator. Multiply a BoundingSphere by a given Matrix.
- Parameters:
-
- mat
- The matrix to apply to the Sphere
o operator +=
-
Add operator. Add 2 boundingSpheres.
o operator =
-
Assign a new value to the current BoundingSphere.
This object is included in the file: CAT3DBoundingSphere.h
If needed, your Imakefile.mk should include the module: CATViz