maspack.render
Class GLClipPlane

java.lang.Object
  extended by maspack.render.GLGridPlane
      extended by maspack.render.GLClipPlane
All Implemented Interfaces:
HasProperties

public class GLClipPlane
extends GLGridPlane


Field Summary
static PropertyList myProps
           
 
Constructor Summary
GLClipPlane()
           
 
Method Summary
 PropertyList getAllPropertyInfo()
          Returns a list giving static information about all properties exported by this object.
 int getBackGlClipPlane()
           
 int getFrontGlClipPlane()
           
 double getOffset()
           
 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.
 boolean isClippingEnabled()
           
 boolean isSlicingEnabled()
           
 void releaseClipPlanes()
           
 boolean setClippingEnabled(boolean active)
           
 void setOffset(double off)
           
 boolean setSlicingEnabled(boolean active)
           
 
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
 

Field Detail

myProps

public static PropertyList myProps
Constructor Detail

GLClipPlane

public GLClipPlane()
Method Detail

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