public class IntersectionTester extends ControllerBase
ModelComponent.NavpanelVisibility
Modifier and Type | Field and Description |
---|---|
static PropertyList |
myProps |
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
TRANSPARENT, TWO_DIMENSIONAL
Constructor and Description |
---|
IntersectionTester(PolygonalMesh mesh0,
PolygonalMesh mesh1,
double maxPenetrationDistance) |
Modifier and Type | Method and Description |
---|---|
void |
apply(double t0,
double t1)
Called at the beginning of a
RootModel 's advance procedure |
RenderProps |
createRenderProps()
Factory method to create render properties appropriate to this object.
|
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
boolean |
getContoursOnly() |
PolygonalMesh |
getCSGMesh() |
SurfaceMeshIntersector.CSG |
getCSGOperation() |
int |
getRecursiveCSG() |
boolean |
getRenderCSGMesh() |
boolean |
isInterior(Vertex3d v) |
boolean |
isSelectable()
Returns true if this object is in fact selectable.
|
void |
prerender(RenderList list)
Called prior to rendering to allow this object to update the internal
state required for rendering (such as by caching rendering coordinates).
|
void |
render(Renderer renderer,
int flags)
Render this object using the functionality of the supplied
Renderer . |
void |
setContoursOnly(boolean enable) |
void |
setCSGOperation(SurfaceMeshIntersector.CSG op) |
void |
setMesh(PolygonalMesh mesh,
int meshNum) |
void |
setRecursiveCSG(int meshNum) |
void |
setRenderCSGMesh(boolean enable) |
void |
setZPerturb0(double min,
double max) |
void |
setZPerturb1(double min,
double max) |
copy, createState, getInitialState, getRenderHints, getRenderProps, getSelection, getState, hasState, numSelectionQueriesNeeded, setRenderProps, setState, updateBounds
dispose, finalize, getModel, initialize, isActive, setActive, setModel, setModelFromComponent, write
checkFlag, checkName, checkNameUniqueness, clearFlag, clone, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getChildren, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, hasChildren, isFixed, isMarked, isScanning, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, postscan, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, scan, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setScanning, setSelected, setWritable, updateReferences
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose, getModel, initialize, isActive, setModel
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferences
getProperty
getChildren, hasChildren
postscan
isWritable, write
createState, getInitialState, getState, setState
public static PropertyList myProps
public IntersectionTester(PolygonalMesh mesh0, PolygonalMesh mesh1, double maxPenetrationDistance)
public boolean getRenderCSGMesh()
public void setRenderCSGMesh(boolean enable)
public SurfaceMeshIntersector.CSG getCSGOperation()
public void setCSGOperation(SurfaceMeshIntersector.CSG op)
public void setRecursiveCSG(int meshNum)
public int getRecursiveCSG()
public void setZPerturb0(double min, double max)
public void setZPerturb1(double min, double max)
public boolean isInterior(Vertex3d v)
public void setMesh(PolygonalMesh mesh, int meshNum)
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
getAllPropertyInfo
in class ModelAgentBase
public boolean getContoursOnly()
public void setContoursOnly(boolean enable)
public PolygonalMesh getCSGMesh()
public void apply(double t0, double t1)
Controller
RootModel
's advance proceduret0
- time at start of simulation stept1
- time at end of simulation steppublic void prerender(RenderList list)
IsRenderable
list.addIfVisible (obj);
for each of the objects in question.prerender
in interface IsRenderable
prerender
in class ControllerMonitorBase
list
- list of objects to be renderedpublic void render(Renderer renderer, int flags)
IsRenderable
Renderer
.render
in interface IsRenderable
render
in class ControllerBase
renderer
- provides the functionality used to perform the rendering.flags
- flags that may be used to control different
aspects of the rendering. Flags are defined in Renderer
and currently include
Renderer.HIGHLIGHT
and
Renderer.SORT_FACES
.public RenderProps createRenderProps()
HasRenderProps
createRenderProps
in interface HasRenderProps
createRenderProps
in class ControllerMonitorBase
public boolean isSelectable()
ControllerMonitorBase
isSelectable
in interface IsSelectable
isSelectable
in class ControllerMonitorBase