Class G2DClippingPlane
- java.lang.Object
-
- org.scilab.forge.scirenderer.implementation.g2d.clipping.G2DClippingPlane
-
- All Implemented Interfaces:
ClippingPlane
public class G2DClippingPlane extends java.lang.Object implements ClippingPlane
- Author:
- Pierre Lando
-
-
Constructor Summary
Constructors Constructor Description G2DClippingPlane(int index, G2DDrawingTools drawingTools)Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vector4dgetEquation()Return the plane equation.intgetIndex()Return the clipping plane index.TransformationgetTransformation()Return the coordinate transformation for the plane.booleanisEnable()Return the status of this clipping plane.voidsetEnable(boolean isEnable)Set the status of this clipping plane.voidsetEquation(Vector4d v)Set the clipping plane equation.voidsetTransformation(Transformation transformation)Set the coordinate transformation for the plane.
-
-
-
Constructor Detail
-
G2DClippingPlane
public G2DClippingPlane(int index, G2DDrawingTools drawingTools)Default constructor.- Parameters:
index- the id of this clipping plane.
-
-
Method Detail
-
isEnable
public boolean isEnable()
Description copied from interface:ClippingPlaneReturn the status of this clipping plane.- Specified by:
isEnablein interfaceClippingPlane- Returns:
- the status of this clipping plane.
-
setEnable
public void setEnable(boolean isEnable)
Description copied from interface:ClippingPlaneSet the status of this clipping plane.- Specified by:
setEnablein interfaceClippingPlane- Parameters:
isEnable- new status of this clipping plane.
-
setEquation
public void setEquation(Vector4d v)
Description copied from interface:ClippingPlaneSet the clipping plane equation.- Specified by:
setEquationin interfaceClippingPlane- Parameters:
v- the plane coordinate.
-
getEquation
public Vector4d getEquation()
Description copied from interface:ClippingPlaneReturn the plane equation.- Specified by:
getEquationin interfaceClippingPlane- Returns:
- the plane equation.
-
setTransformation
public void setTransformation(Transformation transformation)
Description copied from interface:ClippingPlaneSet the coordinate transformation for the plane.- Specified by:
setTransformationin interfaceClippingPlane- Parameters:
transformation- the new coordinate transformation for the plane.
-
getTransformation
public Transformation getTransformation()
Description copied from interface:ClippingPlaneReturn the coordinate transformation for the plane.- Specified by:
getTransformationin interfaceClippingPlane- Returns:
- the coordinate transformation for the plane.
-
getIndex
public int getIndex()
Description copied from interface:ClippingPlaneReturn the clipping plane index.- Specified by:
getIndexin interfaceClippingPlane- Returns:
- the clipping plane index.s
-
-