|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartisynth.core.modelbase.ModelComponentBase
artisynth.core.modelbase.ModelAgentBase
artisynth.core.probes.Probe
artisynth.core.probes.OutputProbe
artisynth.core.probes.CutPlaneProbe
public abstract class CutPlaneProbe
Basic plane probe that can display information as it cuts through a model
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface artisynth.core.modelbase.ModelComponent |
---|
ModelComponent.NavpanelVisibility |
Field Summary | |
---|---|
static PropertyList |
myProps
|
Fields inherited from class artisynth.core.probes.Probe |
---|
useOldSaveMethod, writeStartStopTimeInSeconds |
Fields inherited from class artisynth.core.modelbase.ModelComponentBase |
---|
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames |
Fields inherited from interface maspack.render.GLRenderable |
---|
TRANSLUCENT, TWO_DIMENSIONAL |
Constructor Summary | |
---|---|
CutPlaneProbe()
|
|
CutPlaneProbe(Point3d center,
AxisAngle orientation,
Vector2d size)
Creates a basic plane surface which can display information |
Method Summary | |
---|---|
void |
apply(double t)
Called when the probe is being applied to a model |
void |
centerInViewer()
Centre the probe in the middle of the viewer |
RenderProps |
createRenderProps()
Factory method to create render properties appropriate to this object. |
void |
draggerAdded(Dragger3dEvent e)
|
void |
draggerBegin(Dragger3dEvent e)
|
void |
draggerEnd(Dragger3dEvent e)
|
void |
draggerMove(Dragger3dEvent e)
|
void |
draggerRemoved(Dragger3dEvent e)
|
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by this object. |
GLViewer.DraggerType |
getDragger()
Returns the dragger type |
AxisAngle |
getOrientation()
Gets the orientation of the display |
Plane |
getPlane()
Gets the plane along which the display lies |
void |
getPlane(Plane plane)
Gets the plane along which the display lies |
Point3d |
getPosition()
Gets the 3D position of the centre of the display |
int |
getRenderHints()
Returns a bit code giving rendering hints about this renderable. |
RenderProps |
getRenderProps()
Returns the render properities for this object. |
Vector2d |
getResolution()
Gets the resolution of the display, integers (nx,ny) corresponding to the number of divisions along the x and y axes |
void |
getSelection(java.util.LinkedList<java.lang.Object> list,
int qid)
Append to list the component (or components) associated with
the qid -th selection query issued by this component's render
method. |
Vector2d |
getSize()
Gets the size of the display grid |
void |
initialize(double t)
|
boolean |
isSelectable()
Returns true if this object is in fact selectable. |
int |
numSelectionQueriesNeeded()
If this selectable manages its own selection (by issuing selection queries within its render method), then this method should
return the maximum number of selection queries that will be
required. |
void |
prerender(RenderList list)
Prepare for rendering, and potentially add itself to a list to be drawn by a GLRenderer. |
void |
render(GLRenderer renderer,
int flags)
Render this object using Open GL via the JOGL. |
void |
resetInViewer()
Resets to a default viewer centre orientation |
void |
setDragger(GLViewer.DraggerType type)
Sets the dragger type for manipulating the display |
void |
setGridToWorld(RigidTransform3d X)
Sets the transform between the display grid and World |
void |
setOrientation(AxisAngle axisAng)
Sets the orientation of the display |
void |
setPlane(Plane plane)
Sets the plane along which the display lies |
void |
setPlane(Vector3d n,
double offset)
Sets the plane along which the display lies |
void |
setPosition(Point3d pos)
Sets the 3D position of the centre of the display |
void |
setRenderProps(RenderProps props)
Assigns a new set of render properties to this object. |
void |
setResolution(Vector2d res)
Sets the resolution fo teh display, integers (nx, ny) corresponding to the number of divisions along the x and y axes. |
void |
setSize(Vector2d size)
Sets the size of the display grid |
void |
transformGeometry(AffineTransform3dBase X)
|
void |
transformGeometry(AffineTransform3dBase X,
TransformableGeometry topObject,
int flags)
|
void |
updateBounds(Point3d pmin,
Point3d pmax)
Update the minimum and maximum points for this object. |
Methods inherited from class artisynth.core.probes.Probe |
---|
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 |
Methods inherited from class artisynth.core.modelbase.ModelAgentBase |
---|
dispose, finalize, getModel, setModel, setModelFromComponent, write |
Methods inherited from class artisynth.core.modelbase.ModelComponentBase |
---|
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface artisynth.core.modelbase.ModelComponent |
---|
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, postscan, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, updateReferences |
Methods inherited from interface maspack.properties.HasProperties |
---|
getProperty |
Methods inherited from interface maspack.properties.HierarchyNode |
---|
getChildren, hasChildren |
Methods inherited from interface maspack.util.Scannable |
---|
isWritable, write |
Field Detail |
---|
public static PropertyList myProps
Constructor Detail |
---|
public CutPlaneProbe()
public CutPlaneProbe(Point3d center, AxisAngle orientation, Vector2d size)
center
- center of planeorientation
- orientation of plane (originally on x-y)size
- 2D size of planeMethod Detail |
---|
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
getAllPropertyInfo
in class Probe
public void initialize(double t)
initialize
in interface ModelAgent
initialize
in class ModelAgentBase
public void apply(double t)
Probe
apply
in class OutputProbe
public void prerender(RenderList list)
GLRenderable
prerender
in interface GLRenderable
public void render(GLRenderer renderer, int flags)
GLRenderable
render
in interface GLRenderable
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
.public Point3d getPosition()
public void setPosition(Point3d pos)
public AxisAngle getOrientation()
public void setOrientation(AxisAngle axisAng)
public void setGridToWorld(RigidTransform3d X)
public Vector2d getSize()
public void setSize(Vector2d size)
public Vector2d getResolution()
public void setResolution(Vector2d res)
public RenderProps createRenderProps()
HasRenderProps
createRenderProps
in interface HasRenderProps
public RenderProps getRenderProps()
HasRenderProps
getRenderProps
in interface HasRenderProps
public void setRenderProps(RenderProps props)
HasRenderProps
null
will remove render properties from this object.
setRenderProps
in interface HasRenderProps
props
- new render properties for this objectpublic void transformGeometry(AffineTransform3dBase X, TransformableGeometry topObject, int flags)
public void transformGeometry(AffineTransform3dBase X)
public boolean isSelectable()
GLSelectable
isSelectable
in interface GLSelectable
public int numSelectionQueriesNeeded()
GLSelectable
render
method), then this method should
return the maximum number of selection queries that will be
required. Otherwise, this method should return -1.
numSelectionQueriesNeeded
in interface GLSelectable
public void getSelection(java.util.LinkedList<java.lang.Object> list, int qid)
GLSelectable
list
the component (or components) associated with
the qid
-th selection query issued by this component's render
method. This will only be called if this component manages its own
selection (i.e., the number nums
returned by GLSelectable.numSelectionQueriesNeeded()
is positive), and qid
will in
turn be a number between 0 and nums
-1.
getSelection
in interface GLSelectable
list
- selected objects are appended to the end of this listqid
- index of the selection querypublic int getRenderHints()
GLRenderable
TRANSLUCENT
.
getRenderHints
in interface GLRenderable
public void updateBounds(Point3d pmin, Point3d pmax)
GLRenderable
updateBounds
in interface GLRenderable
pmin
- minimum pointpmax
- maximum pointpublic GLViewer.DraggerType getDragger()
public void setDragger(GLViewer.DraggerType type)
public void centerInViewer()
public void resetInViewer()
public void getPlane(Plane plane)
public Plane getPlane()
public void setPlane(Plane plane)
public void setPlane(Vector3d n, double offset)
public void draggerAdded(Dragger3dEvent e)
draggerAdded
in interface Dragger3dListener
public void draggerBegin(Dragger3dEvent e)
draggerBegin
in interface Dragger3dListener
public void draggerMove(Dragger3dEvent e)
draggerMove
in interface Dragger3dListener
public void draggerEnd(Dragger3dEvent e)
draggerEnd
in interface Dragger3dListener
public void draggerRemoved(Dragger3dEvent e)
draggerRemoved
in interface Dragger3dListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |