public class Spline3dBody extends RenderableComponentBase implements HasCoordinateFrame, IsLineComponent, LineIntersectable
ModelComponent.FilePathSaveType, ModelComponent.NavpanelVisibility| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_NUM_RENDER_POINTS |
static double |
INF |
static PropertyList |
myProps |
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNamesTRANSPARENT, TWO_DIMENSIONAL| Constructor and Description |
|---|
Spline3dBody() |
Spline3dBody(CubicHermiteSpline3d spline) |
Spline3dBody(java.lang.String name,
CubicHermiteSpline3d spline) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
int |
getNumRenderPoints() |
AxisAngle |
getOrientation() |
RigidTransform3d |
getPose() |
void |
getPose(RigidTransform3d XFrameToWorld) |
Point3d |
getPosition() |
Quaternion |
getRotation() |
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. |
CubicHermiteSpline3d |
getSpline() |
artisynth.core.renderables.Spline3dBody.SplineBodyPosition |
nearestPointToLine(Line line)
Returns the point on this object which is nearest to the specified
line.
|
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 |
setNumRenderPoints(int num) |
void |
setOrientation(AxisAngle axisAng) |
void |
setPose(RigidTransform3d XFrameToWorld) |
void |
setPosition(Point3d pos) |
void |
setRotation(Quaternion q) |
void |
updateBounds(Vector3d pmin,
Vector3d pmax)
Update the minimum and maximum points for this object.
|
copy, defaultRenderPropsAreNull, getRenderHints, getRenderProps, isSelectable, isVisible, numSelectionQueriesNeeded, setRenderProps, setVisible, updateRenderPropscheckFlag, checkName, checkNameUniqueness, clearFlag, clone, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getChildren, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, hasChildren, hasState, 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, writeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferencesgetPropertygetChildren, hasChildrenpostscanisWritable, writepublic static final double INF
public static int DEFAULT_NUM_RENDER_POINTS
public static PropertyList myProps
public Spline3dBody()
public Spline3dBody(CubicHermiteSpline3d spline)
public Spline3dBody(java.lang.String name,
CubicHermiteSpline3d spline)
public PropertyList getAllPropertyInfo()
HasPropertiesgetAllPropertyInfo in interface HasPropertiesgetAllPropertyInfo in class RenderableComponentBasepublic CubicHermiteSpline3d getSpline()
public int getNumRenderPoints()
public void setNumRenderPoints(int num)
public void setPose(RigidTransform3d XFrameToWorld)
public RigidTransform3d getPose()
public void getPose(RigidTransform3d XFrameToWorld)
getPose in interface HasCoordinateFramepublic Point3d getPosition()
public void setPosition(Point3d pos)
public AxisAngle getOrientation()
public void setOrientation(AxisAngle axisAng)
public Quaternion getRotation()
public void setRotation(Quaternion q)
public RenderProps createRenderProps()
HasRenderPropscreateRenderProps in interface HasRenderPropscreateRenderProps in class RenderableComponentBasepublic void render(Renderer renderer, int flags)
IsRenderableRenderer.render in interface IsRenderablerender in class RenderableComponentBaserenderer - 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 void prerender(RenderList list)
IsRenderablelist.addIfVisible (obj);
for each of the objects in question.prerender in interface IsRenderableprerender in class RenderableComponentBaselist - list of objects to be renderedpublic void getSelection(java.util.LinkedList<java.lang.Object> list,
int qid)
IsSelectablelist 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 IsSelectable.numSelectionQueriesNeeded() is positive), and qid will in
turn be a number between 0 and nums-1.getSelection in interface IsSelectablegetSelection in class RenderableComponentBaselist - selected objects are appended to the end of this listqid - index of the selection querypublic void updateBounds(Vector3d pmin, Vector3d pmax)
IsRenderableupdateBounds in interface IsRenderableupdateBounds in class RenderableComponentBasepmin - minimum pointpmax - maximum pointpublic artisynth.core.renderables.Spline3dBody.SplineBodyPosition nearestPointToLine(Line line)
HasPosition object which is
attached to the object and moves with it.nearestPointToLine in interface LineIntersectableline - line to which nearest point is to be computed