public class MeshIntersectingProbe extends CutPlaneProbe
ModelComponent.NavpanelVisibility
Modifier and Type | Field and Description |
---|---|
static PropertyList |
myProps |
useOldSaveMethod, writeStartStopTimeInSeconds
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
TRANSLUCENT, TWO_DIMENSIONAL
Constructor and Description |
---|
MeshIntersectingProbe() |
MeshIntersectingProbe(Point3d center,
AxisAngle orientation,
Vector2d size)
Creates a probe with a display plane
|
MeshIntersectingProbe(PolygonalMesh mesh) |
Modifier and Type | Method and Description |
---|---|
void |
clip(boolean set)
Clips the display plane to lie solely within the associated mesh
|
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
boolean |
getDrawIntersections()
Returns whether we are drawing intersections with the plane
|
java.util.ArrayList<Face> |
getFaces(Vertex3d vtx)
Returns a list of all faces that use this vertex
|
PolygonalMesh |
getIntersectingMesh()
Gets the associated mesh
|
boolean |
isClipped()
Returns whether we are clipped to a mesh
|
void |
render(GLRenderer renderer,
int flags)
Render this object using Open GL via the JOGL.
|
void |
setDrawIntersections(boolean enable)
Enable/disable drawing of intersections of mesh with the plane
|
void |
setIntersectingMesh(PolygonalMesh mesh)
Sets the mesh to compute intersections with
|
apply, centerInViewer, createRenderProps, draggerAdded, draggerBegin, draggerEnd, draggerMove, draggerRemoved, getDragger, getOrientation, getPlane, getPlane, getPosition, getRenderHints, getRenderProps, getResolution, getSelection, getSize, initialize, isSelectable, numSelectionQueriesNeeded, prerender, resetInViewer, setDragger, setGridToWorld, setOrientation, setPlane, setPlane, setPosition, setRenderProps, setResolution, setSize, transformGeometry, transformGeometry, updateBounds
createState, getAttachedFile, getAttachedFileName, getChildren, getDefaultScale, getDefaultStartTime, getDefaultStopTime, getDefaultUpdateInterval, getInitialState, getProperty, getScale, getStartTime, getState, getStopTime, getTimelineTime, getTrack, getUpdateInterval, getVirtualTime, hasAttachedFile, hasChildren, hasState, isActive, isAttachedFileRelative, isCloneable, isEventTime, isInput, isPrintable, isScalable, isSettable, load, nextEventTime, print, save, scan, setActive, setAttachedFileName, setData, setName, setScalable, setScale, setStartStopTimes, setStartTime, setState, setStopTime, setTrack, setUpdateInterval
dispose, finalize, getModel, setModel, setModelFromComponent, write
checkFlag, checkName, checkNameUniqueness, clearFlag, clone, connectToHierarchy, copy, createTempFlag, disconnectFromHierarchy, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getSoftReferences, isFixed, isMarked, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, postscan, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, setFixed, setFlag, setMarked, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setSelected, updateReferences
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, postscan, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, updateReferences
getProperty
getChildren, hasChildren
isWritable, write
public static PropertyList myProps
public MeshIntersectingProbe()
public MeshIntersectingProbe(Point3d center, AxisAngle orientation, Vector2d size)
center
- centre of planeorientation
- orientation of plane (originally x-y)size
- size of planepublic MeshIntersectingProbe(PolygonalMesh mesh)
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
getAllPropertyInfo
in class CutPlaneProbe
public void setIntersectingMesh(PolygonalMesh mesh)
public PolygonalMesh getIntersectingMesh()
public void setDrawIntersections(boolean enable)
public boolean getDrawIntersections()
public boolean isClipped()
public void clip(boolean set)
set
- public void render(GLRenderer renderer, int flags)
GLRenderable
render
in interface GLRenderable
render
in class CutPlaneProbe
renderer
- renderer object which is used to perform the rendering. Provides pointers
to GL and GLU, along with helper functions.flags
- supplies flags that may be used to control different
aspects of the rendering. Flags are defined in GLRenderer
and currently include
GLRenderer.SELECTED
,
GLRenderer.VERTEX_COLORING
,
GLRenderer.HSV_COLOR_INTERPOLATION
,
GLRenderer.SORT_FACES
, and
GLRenderer.CLEAR_MESH_DISPLAY_LISTS
.