This class contains logics related to tracking and modification of clipping plane state for particular OpenGl context. It contains information about enabled clipping planes and provides method to change clippings in context. The methods should be executed within OpenGl context associated with instance of this class.
More...
#include <OpenGl_Clipping.hxx>
This class contains logics related to tracking and modification of clipping plane state for particular OpenGl context. It contains information about enabled clipping planes and provides method to change clippings in context. The methods should be executed within OpenGl context associated with instance of this class.
Enumerates supported equation coordinate spaces.
Enumerator |
---|
EquationCoords_View |
|
EquationCoords_World |
|
OpenGl_Clipping::OpenGl_Clipping |
( |
| ) |
|
Add planes to the context clipping at the specified system of coordinates. This methods loads appropriate transformation matrix from workspace to to transform equation coordinates. The planes become enabled in the context. If the number of the passed planes exceeds capabilities of OpenGl, the last planes are simply ignored.
- Parameters
-
thePlanes | [in/out] the list of planes to be added. The list then provides information on which planes were really added to clipping state. This list then can be used to fall back to previous state. |
theCoordSpace | [in] the equation definition space. |
theWS | [in] the workspace to access the matrices. |
Add planes to the context clipping at the specified system of coordinates. This method assumes that appropriate matrix is already set in context state. If the number of the passed planes exceeds capabilities of OpenGl, the last planes are simply ignored.
- Parameters
-
thePlanes | [in/out] the list of planes to be added. The list then provides information on which planes were really added to clipping state. This list then can be used to fall back to previous state. |
theCoordSpace | [in] the equation definition space. |
Add planes to the context clipping at the view system of coordinates. If the number of the passed planes exceeds capabilities of OpenGl, the last planes are simply ignored.
- Parameters
-
thePlanes | [in/out] the list of planes to be added. The list then provides information on which planes were really added to clipping state. This list then can be used to fall back to previous state. |
theWS | [in] the workspace to access the matrices. |
Add planes to the context clipping at the view system of coordinates. If the number of the passed planes exceeds capabilities of OpenGl, the last planes are simply ignored.
- Parameters
-
thePlanes | [in/out] the list of planes to be added. The list then provides information on which planes were really added to clipping state. This list then can be used to fall back to previous state. |
Add planes to the context clipping at the world system of coordinates. If the number of the passed planes exceeds capabilities of OpenGl, the last planes are simply ignored.
- Parameters
-
thePlanes | [in/out] the list of planes to be added. The list then provides information on which planes were really added to clipping state. This list then can be used to fall back to previous state. |
theWS | [in] the workspace to access the matrices. |
Add planes to the context clipping at the world system of coordinates. If the number of the passed planes exceeds capabilities of OpenGl, the last planes are simply ignored.
- Parameters
-
thePlanes | [in/out] the list of planes to be added. The list then provides information on which planes were really added to clipping state. This list then can be used to fall back to previous state. |
Check whether the clipping plane has been added to the current context state.
- Parameters
-
thePlane | [in] the plane to check. |
- Returns
- True if plane is set.
- Returns
- kind of equation coordinate space used for the clip plane.
Initialize.
- Parameters
-
theMaxPlanes | [in] number of clipping planes supported by OpenGl context. |
- Returns
- true if there are enabled capping planes
- Returns
- true if there are enabled clipping planes (NOT capping)
- Returns
- true if there are enabled clipping or capping planes
Check whether the clipping plane has been set and enabled for the current context state.
- Parameters
-
thePlane | [in] the plane to check. |
- Returns
- True if plane is enabled.
Get clip planes defined for context.
- Returns
- sequence of set clipping planes.
Remove the passed set of clipping planes from the context state.
- Parameters
-
thePlanes | [in] the planes to remove from list. |
void OpenGl_Clipping::RemoveAll |
( |
| ) |
|
|
inline |
Remove all of the planes from context state.
Enable or disable clipping plane in the OpenGl context.
- Parameters
-
thePlane | [in] the plane to affect. |
theIsEnabled | [in] the state of the plane. |
The documentation for this class was generated from the following file: