|
|||||||||
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.NumericProbeBase
artisynth.core.probes.NumericOutputProbe
artisynth.core.probes.TracingProbe
public abstract class TracingProbe
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 |
Fields inherited from interface artisynth.core.modelbase.CopyableComponent |
---|
COPY_REFERENCES |
Constructor Summary | |
---|---|
TracingProbe()
|
|
TracingProbe(Property[] props,
double interval)
|
|
TracingProbe(Property[] props,
double interval,
double ymin,
double ymax)
|
|
TracingProbe(Property prop,
double interval)
|
Method Summary | |
---|---|
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. |
HasProperties |
getHost(int idx)
Returns the host associated with the idx -th property
in this probe, or null if there is no such property. |
int |
getRenderHints()
Returns a bit code giving rendering hints about this renderable. |
double |
getRenderInterval()
|
RenderProps |
getRenderProps()
Returns the render properities for this object. |
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. |
boolean |
isSelectable()
Returns true if this object is in fact selectable. |
boolean |
isTracing(HasProperties host,
java.lang.String propName)
Returns true if this tracing probe is tracing the single property propName associated with the specified host. |
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. |
abstract void |
render(GLRenderer renderer,
int flags)
Render this object using Open GL via the JOGL. |
void |
setRenderInterval(double h)
|
void |
setRenderProps(RenderProps props)
Assigns a new set of render properties to this object. |
abstract void |
updateBounds(Point3d pmin,
Point3d pmax)
Update the minimum and maximum points for this object. |
Methods inherited from class artisynth.core.probes.NumericOutputProbe |
---|
apply, clone, copy, getCopyReferences, getOutput, getShowHeader, getShowTime, isDuplicatable, postscan, save, scan, scanItem, set, set, setAttachedFileName, setAttachedFileName, setOutputProperties, setShowHeader, setShowTime, write, writeData, writeItems |
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, isEventTime, isInput, isScalable, isSettable, load, nextEventTime, setActive, setAttachedFileName, setData, setName, setScalable, setStartStopTimes, setStartTime, setState, setStopTime, setTrack, setUpdateInterval |
Methods inherited from class artisynth.core.modelbase.ModelAgentBase |
---|
finalize, getModel, initialize, setModel, setModelFromComponent, write |
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 TracingProbe()
public TracingProbe(Property[] props, double interval, double ymin, double ymax)
public TracingProbe(Property[] props, double interval)
public TracingProbe(Property prop, double interval)
Method Detail |
---|
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
getAllPropertyInfo
in class NumericOutputProbe
public double getRenderInterval()
public void setRenderInterval(double h)
public boolean isTracing(HasProperties host, java.lang.String propName)
propName
associated with the specified host.
If host
is null
, then
the any host will match.
public HasProperties getHost(int idx)
idx
-th property
in this probe, or null if there is no such property.
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 RenderProps createRenderProps()
HasRenderProps
createRenderProps
in interface HasRenderProps
public void prerender(RenderList list)
GLRenderable
prerender
in interface GLRenderable
public abstract void updateBounds(Point3d pmin, Point3d pmax)
GLRenderable
updateBounds
in interface GLRenderable
pmin
- minimum pointpmax
- maximum pointpublic abstract 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 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |