All Frameworks Class Hierarchy This Framework Previous Next Indexes
VisualizationBase Class CAT3DViewport
System.IUnknown
|
+---System.IDispatch
|
+---System.CATBaseUnknown
|
+---VisualizationBase.CATViewport
|
+---CAT3DViewport
Usage: you must use this class as is. You should never derive it.
public class CAT3DViewport
Class that defines a 2D clipping area.
Constructor and Destructor Index
- o
~CAT3DViewport()
-
Method Index
- o
Clone()
- Duplicates the Viewport.
- o
Clone(CATViewport**)
- Duplicate a Viewport.
- o
GetNbPlanes()
- Get the number of planes.
- o
GetPlanes(float**,float**,float**,float**)
- Get the clipping planes equations.
- o
IsInside(CAT3DBoundingSphere&,float)
- Determine wether or not a given CAT3DBoundingSphere lies inside the CAT3DViewport.
- o
IsInside(float*,float)
- Determine wether or not a given sphere lies inside the CAT2DViewport.
- o
IsInside(float[3])
- Determine wether or not a given point lies inside the CAT2DViewport.
- o
IsOutside(CAT3DBoundingSphere&,float)
- Determine wether or not a given CAT3DBoundingSphere lies outside the CAT3DViewport.
- o
IsOutside(float*,float)
- Determine wether or not a given sphere lies outside the CAT2DViewport.
- o
operator *=(CAT4x4Matrix&)
- Apply the geometric transformatin defined by the CAT4x4Matrix to the clipping planes.
- o
operator +=(CAT3DViewport&)
- Add the clipping planes of one CAT3DViewport to this one.
- o
operator -=(CAT3DViewport&)
- Remove the clipping planes of one CAT3DViewport to this one.
- o
operator =(CAT3DViewport&)
- Affectation operator.
Constructor and Destructor
o ~CAT3DViewport
public virtual ~CAT3DViewport( | ) |
-
Methods
o Clone
-
Duplicates the Viewport.
- Returns:
- the copy of this CATViewport
o Clone
-
Duplicate a Viewport.
- Parameters:
-
- iViewport
- A pointer to the pointer on the CATViewport into wich we want to duplicate this CATViewport.
- Returns:
- A pointer to the Duplicated CATviewport
o GetNbPlanes
public inline int GetNbPlanes( | )const |
-
Get the number of planes.
- Returns:
- the number of planes
o GetPlanes
public inline void GetPlanes( | float** | oa, |
| float** | ob, |
| float** | oc, |
| float** | od) |
-
Get the clipping planes equations.
- Parameters:
-
- oa
- an array of float representing the a param in the plane equation
- ob
- an array of float representing the b param in the plane equation
- oc
- an array of float representing the c param in the plane equation
- od
- an array of float representing the d param in the plane equation The planes equations are of the form a.x+b.y+c.z+d = 0
o IsInside
-
Determine wether or not a given CAT3DBoundingSphere lies inside the CAT3DViewport.
- Parameters:
-
- iBox
- The CAT3DBoundingSphere we want to test
- iratio
-
- Returns:
- the result of the test
o IsInside
public int IsInside( | const float* | icenter, |
| const float | iradius) const |
-
Determine wether or not a given sphere lies inside the CAT2DViewport.
- Parameters:
-
- icenter
- a pointer to an array of coorinates for the center of the sphere
- iradius
- the radius of the spheres
- Returns:
- the result of the test
o IsInside
public int IsInside( | const float[3] | point) const |
-
Determine wether or not a given point lies inside the CAT2DViewport.
- Parameters:
-
- point
- a pointer to an array of coordinates for the point
- Returns:
- the result of the test
o IsOutside
-
Determine wether or not a given CAT3DBoundingSphere lies outside the CAT3DViewport.
- Parameters:
-
- iBox
- The CAT3DBoundingSphere we want to test
- iratio
-
- Returns:
- the result of the test
o IsOutside
public inline int IsOutside( | const float* | iCenter, |
| const float | iRadius) const |
-
Determine wether or not a given sphere lies outside the CAT2DViewport.
- Parameters:
-
- iCenter
- a pointer to an array of coorinates for the center of the sphere
- iRadius
- the radius of the spheres
- Returns:
- the result of the test
o operator *=
-
Apply the geometric transformatin defined by the CAT4x4Matrix to the clipping planes.
- Parameters:
-
- iMatrix
- the transformation to apply.
o operator +=
-
Add the clipping planes of one CAT3DViewport to this one.
- Parameters:
-
- iFrom
- the CAT3DViewport of which we add the clipping planes
o operator -=
-
Remove the clipping planes of one CAT3DViewport to this one.
- Parameters:
-
- iFrom
- the CAT3DViewport of which we add the clipping planes Use only if you added that CAT3DViewport clipping planes to this CAT3DViewport, and
did not add any other in the meantime.
o operator =
-
Affectation operator.
- Parameters:
-
- viewport
- A reference to3D the CAT3DViewport we want to copy into this one.
- Returns:
- A reference to this CATViewport
This object is included in the file: CAT3DViewport.h
If needed, your Imakefile.mk should include the module: CATViz