Package mgui.interfaces.shapes.util
Class ClipPlane
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.interfaces.shapes.util.ClipPlane
- All Implemented Interfaces:
InterfaceObject
,NamedObject
,TreeObject
,CleanableObject
public class ClipPlane extends AbstractInterfaceObject
Class specifies a clipping region around a plane, with back and front clip distances.
- Author:
- Andrew Reid
-
Field Summary
Fields Modifier and Type Field Description boolean
apply_clip
float
down_distance
Plane3D
plane
float
up_distance
Fields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
deregisterModelClip(org.jogamp.java3d.ModelClip clip)
org.jogamp.java3d.ModelClip
getModelClip()
Plane for model clip defined as 4-vector, with elements A, B, C, D obtained from the plane equation Ax + By + Cz + D <= 0.void
registerModelClip(org.jogamp.java3d.ModelClip clip)
void
setFromSectionSet(SectionSet3DInt set, int section)
void
setModelClip(org.jogamp.java3d.ModelClip clip)
Methods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, destroy, getName, getTreeLabel, isDestroyed, issueTreeNode, setName, setTreeNode, updateTreeNodes
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
plane
-
up_distance
public float up_distance -
down_distance
public float down_distance -
apply_clip
public boolean apply_clip
-
-
Constructor Details
-
ClipPlane
-
-
Method Details
-
getModelClip
public org.jogamp.java3d.ModelClip getModelClip()Plane for model clip defined as 4-vector, with elements A, B, C, D obtained from the plane equation Ax + By + Cz + D <= 0. See also: http://en.wikipedia.org/wiki/Plane_(mathematics)- Returns:
- ModelClip to add to a java3d scene
-
setModelClip
public void setModelClip(org.jogamp.java3d.ModelClip clip) -
registerModelClip
public void registerModelClip(org.jogamp.java3d.ModelClip clip) -
deregisterModelClip
public void deregisterModelClip(org.jogamp.java3d.ModelClip clip) -
setFromSectionSet
-