VisualizationFoundation 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**)
-
- o
GetPlanesEquation(double*,double*,double*,double*,int&)
- Get the clipping planes equations.
- o
IsInside(float[3])
- Determine wether or not a given point lies inside the CAT2DViewport.
- o
IsInside(float*,float)
- Determine wether or not a given sphere lies inside the CAT2DViewport.
- o
IsInside(CAT3DBoundingSphere&,float)
- Determine wether or not a given CAT3DBoundingSphere lies inside the CAT3DViewport.
- o
IsInsideTriangle(float*,float*,float*)
- Determine whether or not a given point lies inside a triangle.
- o
IsInsideTriangle(double*,double*,double*)
- Determine whether or not a given point lies inside the CAT2DViewport.
- o
IsOutside(float*,float)
- Determine wether or not a given sphere lies outside the CAT2DViewport.
- o
IsOutside(CAT3DBoundingSphere&,float)
- Determine wether or not a given CAT3DBoundingSphere lies outside the CAT3DViewport.
- 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
-
Get the number of planes.
- Returns:
- the number of planes
o GetPlanes
public GetPlanes( | | oa, |
| | ob, |
| | oc, |
| | od) |
-
- Deprecated:
- R216
In favor of void GetPlanesEquation (double* oa, double* ob, double* oc, double* od, int& ioPlanesCount).
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 GetPlanesEquation
public GetPlanesEquation( | | oa, |
| | ob, |
| | oc, |
| | od, |
| | ioPlanesCount) |
-
Get the clipping planes equations.
- Parameters:
-
- oa
- an array of double representing the a param in the plane equation
- ob
- an array of double representing the b param in the plane equation
- oc
- an array of double representing the c param in the plane equation
- od
- an array of double representing the d param in the plane equation
- ioPlanesCount
- the size of arrays allocated as input, the number of planes set as outpput The planes equations are of the form a.x+b.y+c.z+d = 0
o IsInside
public IsInside( | const | point) |
-
Determine wether or not a given point lies inside the CAT2DViewport.
- Parameters:
-
- icenter
- a pointer to an array of coorinates for the point
- Returns:
- the result of the test
o IsInside
public IsInside( | const | icenter, |
| const | iradius) |
-
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 IsInside( | const | , |
| const | iratio | = 1.f) |
-
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 IsInsideTriangle
public IsInsideTriangle( | const | p1, |
| const | p2, |
| const | p3) |
-
Determine whether or not a given point lies inside a triangle.
- Parameters:
-
- an
- array of coordinates for the point
- Returns:
- the result of the test
o IsInsideTriangle
public IsInsideTriangle( | const | p1, |
| const | p2, |
| const | p3) |
-
Determine whether or not a given point lies inside the CAT2DViewport.
- Parameters:
-
- icenter
- an array of coordinates for the point
- Returns:
- the result of the test
o IsOutside
public IsOutside( | const | center, |
| const | radius) |
-
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 IsOutside
public IsOutside( | const | , |
| const | iratio | = 1.f) |
-
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 operator *=
public operator *=( | const | iMatrix) |
-
Apply the geometric transformatin defined by the CAT4x4Matrix to the clipping planes.
- Parameters:
-
- iMatrix
- the transformation to apply.
o operator +=
public operator +=( | const | iFrom) |
-
Add the clipping planes of one CAT3DViewport to this one.
- Parameters:
-
- iFrom
- the CAT3DViewport of which we add the clipping planes
o operator -=
public operator -=( | const | iFrom) |
-
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 =
public operator =( | const | viewport) |
-
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: CATVisFoundation
Copyright © 1999-2015, Dassault Systèmes. All rights reserved.