Class G2DClippingPlane
java.lang.Object
org.scilab.forge.scirenderer.implementation.g2d.clipping.G2DClippingPlane
- All Implemented Interfaces:
ClippingPlane
- Author:
- Pierre Lando
-
Constructor Summary
ConstructorsConstructorDescriptionG2DClippingPlane
(int index, G2DDrawingTools drawingTools) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturn the plane equation.int
getIndex()
Return the clipping plane index.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
Set the clipping plane equation.void
setTransformation
(Transformation transformation) Set the coordinate transformation for the plane.
-
Constructor Details
-
G2DClippingPlane
Default constructor.- Parameters:
index
- the id of this clipping plane.
-
-
Method Details
-
isEnable
public boolean isEnable()Description copied from interface:ClippingPlane
Return the status of this clipping plane.- Specified by:
isEnable
in interfaceClippingPlane
- Returns:
- the status of this clipping plane.
-
setEnable
public void setEnable(boolean isEnable) Description copied from interface:ClippingPlane
Set the status of this clipping plane.- Specified by:
setEnable
in interfaceClippingPlane
- Parameters:
isEnable
- new status of this clipping plane.
-
setEquation
Description copied from interface:ClippingPlane
Set the clipping plane equation.- Specified by:
setEquation
in interfaceClippingPlane
- Parameters:
v
- the plane coordinate.
-
getEquation
Description copied from interface:ClippingPlane
Return the plane equation.- Specified by:
getEquation
in interfaceClippingPlane
- Returns:
- the plane equation.
-
setTransformation
Description copied from interface:ClippingPlane
Set the coordinate transformation for the plane.- Specified by:
setTransformation
in interfaceClippingPlane
- Parameters:
transformation
- the new coordinate transformation for the plane.
-
getTransformation
Description copied from interface:ClippingPlane
Return the coordinate transformation for the plane.- Specified by:
getTransformation
in interfaceClippingPlane
- Returns:
- the coordinate transformation for the plane.
-
getIndex
public int getIndex()Description copied from interface:ClippingPlane
Return the clipping plane index.- Specified by:
getIndex
in interfaceClippingPlane
- Returns:
- the clipping plane index.s
-