maspack.render
Class GLClipPlane
java.lang.Object
maspack.render.GLGridPlane
maspack.render.GLClipPlane
- All Implemented Interfaces:
- HasProperties
public class GLClipPlane
- extends GLGridPlane
Methods inherited from class maspack.render.GLGridPlane |
alignPoint, centerInViewer, getCellDivisions, getCellSize, getDragger, getGridToWorld, getGridToWorld, getLineWidth, getMajorColor, getMinCellPixels, getMinorColor, getMinSize, getOrientation, getPlane, getPlane, getPosition, getProperty, getResolution, getViewer, getXAxisColor, getYAxisColor, isAutoSized, isGridVisible, numCellDivisions, render, resetInViewer, setAutoSized, setDragger, setGridToWorld, setGridVisible, setLineWidth, setMajorColor, setMinCellPixels, setMinorColor, setMinSize, setOrientation, setPosition, setResolution, setResolution, setXAxisColor, setYAxisColor |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myProps
public static PropertyList myProps
GLClipPlane
public GLClipPlane()
getAllPropertyInfo
public PropertyList getAllPropertyInfo()
- Description copied from interface:
HasProperties
- Returns a list giving static information about all properties exported by
this object.
- Specified by:
getAllPropertyInfo
in interface HasProperties
- Overrides:
getAllPropertyInfo
in class GLGridPlane
- Returns:
- static information for all exported properties
getFrontGlClipPlane
public int getFrontGlClipPlane()
getBackGlClipPlane
public int getBackGlClipPlane()
setOffset
public void setOffset(double off)
getOffset
public double getOffset()
setSlicingEnabled
public boolean setSlicingEnabled(boolean active)
isSlicingEnabled
public boolean isSlicingEnabled()
isClippingEnabled
public boolean isClippingEnabled()
setClippingEnabled
public boolean setClippingEnabled(boolean active)
releaseClipPlanes
public void releaseClipPlanes()
isClipped
public boolean isClipped(Point3d p)
- Returns true if a specified point is clipped by this plane; i.e.,
if it lies in the half space defined by the positive z axis.
- Returns:
- true if a specified point is clipped