ClippingPlanepublic class JoGLClippingPlane extends java.lang.Object implements ClippingPlane
| Constructor | Description |
|---|---|
JoGLClippingPlane(com.jogamp.opengl.GL2 gl,
int index) |
Default constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
Vector4d |
getEquation() |
Return the plane equation.
|
int |
getIndex() |
Return the clipping plane index.
|
Transformation |
getTransformation() |
Return the coordinate transformation for the plane.
|
boolean |
isEnable() |
Return the status of this clipping plane.
|
void |
setEnable(boolean isEnable) |
Set the status of this clipping plane.
|
void |
setEquation(Vector4d v) |
Set the clipping plane equation.
|
void |
setTransformation(Transformation transformation) |
Set the coordinate transformation for the plane.
|
public JoGLClippingPlane(com.jogamp.opengl.GL2 gl,
int index)
gl - the OpenGl context.index - the id of this clipping plane.public boolean isEnable()
ClippingPlaneisEnable in interface ClippingPlanepublic void setEnable(boolean isEnable)
ClippingPlanesetEnable in interface ClippingPlaneisEnable - new status of this clipping plane.public void setEquation(Vector4d v)
ClippingPlanesetEquation in interface ClippingPlanev - the plane coordinate.public Vector4d getEquation()
ClippingPlanegetEquation in interface ClippingPlanepublic void setTransformation(Transformation transformation)
ClippingPlanesetTransformation in interface ClippingPlanetransformation - the new coordinate transformation for the plane.public Transformation getTransformation()
ClippingPlanegetTransformation in interface ClippingPlanepublic int getIndex()
ClippingPlanegetIndex in interface ClippingPlane