ClippingPlane
public 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()
ClippingPlane
isEnable
in interface ClippingPlane
public void setEnable(boolean isEnable)
ClippingPlane
setEnable
in interface ClippingPlane
isEnable
- new status of this clipping plane.public void setEquation(Vector4d v)
ClippingPlane
setEquation
in interface ClippingPlane
v
- the plane coordinate.public Vector4d getEquation()
ClippingPlane
getEquation
in interface ClippingPlane
public void setTransformation(Transformation transformation)
ClippingPlane
setTransformation
in interface ClippingPlane
transformation
- the new coordinate transformation for the plane.public Transformation getTransformation()
ClippingPlane
getTransformation
in interface ClippingPlane
public int getIndex()
ClippingPlane
getIndex
in interface ClippingPlane