|
|||||||||
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.CompositeComponentBase
artisynth.core.femmodels.AuxMaterialBundle
public class AuxMaterialBundle
Nested Class Summary | |
---|---|
static class |
AuxMaterialBundle.FractionRenderType
|
Nested classes/interfaces inherited from interface artisynth.core.modelbase.ModelComponent |
---|
ModelComponent.NavpanelVisibility |
Nested classes/interfaces inherited from interface artisynth.core.modelbase.CompositeComponent |
---|
CompositeComponent.NavpanelDisplay |
Field Summary | |
---|---|
static PropertyList |
myProps
|
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.util.TransformableGeometry |
---|
ARTICULATED, SIMULATING |
Constructor Summary | |
---|---|
AuxMaterialBundle()
|
|
AuxMaterialBundle(java.lang.String name)
|
Method Summary | |
---|---|
void |
addElement(AuxMaterialElementDesc desc)
|
void |
checkElementDesc(FemModel femMod,
AuxMaterialElementDesc desc)
|
void |
clearElements()
|
void |
connectToHierarchy()
Called by the system after this component is added to the component hierarchy (i.e., when it is added as a child of another CompositeComponent). |
static FemMaterial |
createDefaultMaterial()
|
RenderProps |
createRenderProps()
Factory method to create render properties appropriate to this object. |
void |
disconnectFromHierarchy()
Called by the system after this component is removed from the component hierarchy (i.e., when it is removed as a child of its parent). |
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by this object. |
static FemModel3d |
getAncestorFem(ModelComponent comp)
|
AuxMaterialElementDescList |
getElements()
|
double |
getElementWidgetSize()
|
PropertyMode |
getElementWidgetSizeMode()
|
double |
getFractionRenderRadius()
|
PropertyMode |
getFractionRenderRadiusMode()
|
AuxMaterialBundle.FractionRenderType |
getFractionRenderType()
|
PropertyMode |
getFractionRenderTypeMode()
|
FemMaterial |
getMaterial()
|
int |
getRenderHints()
Returns a bit code giving rendering hints about this renderable. |
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. |
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. |
boolean |
removeElement(AuxMaterialElementDesc desc)
|
void |
render(GLRenderer renderer,
int flags)
Render this object using Open GL via the JOGL. |
void |
scaleDistance(double s)
|
void |
scaleMass(double s)
|
void |
setDefaultValues()
Sets the attributes of this component to their default values. |
void |
setElementWidgetSize(double size)
|
void |
setElementWidgetSizeMode(PropertyMode mode)
|
void |
setFractionRenderRadius(double size)
|
void |
setFractionRenderRadiusMode(PropertyMode mode)
|
void |
setFractionRenderType(AuxMaterialBundle.FractionRenderType type)
|
void |
setFractionRenderTypeMode(PropertyMode mode)
|
void |
setMaterial(FemMaterial mat)
|
void |
setRenderProps(RenderProps props)
Assigns a new set of render properties to this object. |
void |
transformGeometry(AffineTransform3dBase X)
Applies an affine transformation to the geometry of this object. |
void |
transformGeometry(AffineTransform3dBase X,
TransformableGeometry topObject,
int flags)
Applies an affine transformation to the geometry of this object. |
void |
updateBounds(Point3d pmin,
Point3d pmax)
Update the minimum and maximum points for this object. |
Methods inherited from class artisynth.core.modelbase.CompositeComponentBase |
---|
componentChanged, copy, findComponent, get, get, getByNumber, getChildren, getNavpanelDisplay, getNumberLimit, hasChildren, hasState, hierarchyContainsReferences, indexOf, iterator, numComponents, postscan, scan, setDisplayMode, updateNameMap |
Methods inherited from class artisynth.core.modelbase.ModelComponentBase |
---|
checkFlag, checkName, checkNameUniqueness, clearFlag, clone, createTempFlag, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, isFixed, isMarked, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setSelected, updateReferences, 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 |
---|
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 AuxMaterialBundle()
public AuxMaterialBundle(java.lang.String name)
Method Detail |
---|
public void setDefaultValues()
ModelComponentBase
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
getAllPropertyInfo
in class ModelComponentBase
public void setElementWidgetSize(double size)
public double getElementWidgetSize()
public void setElementWidgetSizeMode(PropertyMode mode)
public PropertyMode getElementWidgetSizeMode()
public void setFractionRenderRadius(double size)
public double getFractionRenderRadius()
public void setFractionRenderRadiusMode(PropertyMode mode)
public PropertyMode getFractionRenderRadiusMode()
public void setFractionRenderType(AuxMaterialBundle.FractionRenderType type)
public AuxMaterialBundle.FractionRenderType getFractionRenderType()
public void setFractionRenderTypeMode(PropertyMode mode)
public PropertyMode getFractionRenderTypeMode()
public static FemMaterial createDefaultMaterial()
public FemMaterial getMaterial()
public void setMaterial(FemMaterial mat)
public void checkElementDesc(FemModel femMod, AuxMaterialElementDesc desc)
public AuxMaterialElementDescList getElements()
public void addElement(AuxMaterialElementDesc desc)
public boolean removeElement(AuxMaterialElementDesc desc)
public void clearElements()
public static FemModel3d getAncestorFem(ModelComponent comp)
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 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 boolean isSelectable()
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 updateBounds(Point3d pmin, Point3d pmax)
GLRenderable
updateBounds
in interface GLRenderable
pmin
- minimum pointpmax
- maximum pointpublic int getRenderHints()
GLRenderable
TRANSLUCENT
.
getRenderHints
in interface GLRenderable
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 void scaleDistance(double s)
public void scaleMass(double s)
public void connectToHierarchy()
ModelComponentBase
When this method is called, ModelComponent.getParent()
will return
the new parent component; the system will have set this beforehand.
connectToHierarchy
in interface ModelComponent
connectToHierarchy
in class ModelComponentBase
public void disconnectFromHierarchy()
ModelComponentBase
When this
method is called, ModelComponent.getParent()
will still return this original
parent component; the system will set this to null
after.
disconnectFromHierarchy
in interface ModelComponent
disconnectFromHierarchy
in class ModelComponentBase
public void transformGeometry(AffineTransform3dBase X)
TransformableGeometry
transformGeometry (X, this, 0);
transformGeometry
in interface TransformableGeometry
X
- affine transformationpublic void transformGeometry(AffineTransform3dBase X, TransformableGeometry topObject, int flags)
TransformableGeometry
topComponent
should be the component for which the method
was initially invoked. The variable flags
provides
information about the context in which the transformation is
being applied. At present, the available flags are
TransformableGeometry.SIMULATING
and TransformableGeometry.ARTICULATED
.
transformGeometry
in interface TransformableGeometry
X
- affine transformationtopObject
- component on which the method was initially invokedflags
- provides information about the context in which the
transformation is being applied.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |