artisynth.core.mechmodels
Class PointSpringList<S extends PointSpringBase>

java.lang.Object
  extended by artisynth.core.modelbase.ModelComponentBase
      extended by artisynth.core.modelbase.ComponentList<C>
          extended by artisynth.core.modelbase.RenderableComponentList<S>
              extended by artisynth.core.mechmodels.PointSpringList<S>
All Implemented Interfaces:
ComponentChangeListener, ComponentListView<S>, CompositeComponent, IndexedComponentList, ModelComponent, MutableCompositeComponent<S>, ParameterizedClass, RenderableComponent, RenderableComponentListView<S>, ScalableUnits, java.lang.Cloneable, java.lang.Iterable<S>, java.util.Collection<S>, HasProperties, HierarchyNode, GLRenderable, GLSelectable, HasRenderProps, Renderable, ListView<S>, Scannable
Direct Known Subclasses:
AxialSpringList, MultiPointSpringList

public class PointSpringList<S extends PointSpringBase>
extends RenderableComponentList<S>
implements ScalableUnits


Nested Class Summary
 
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.ComponentList
DEFAULT_NAVPANEL_DISPLAY
 
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
PointSpringList(java.lang.Class<S> type)
           
PointSpringList(java.lang.Class<S> type, java.lang.String name, java.lang.String shortName)
           
 
Method Summary
static AxialMaterial createDefaultMaterial()
           
 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.
 AxialMaterial getMaterial()
           
 void scaleDistance(double s)
          Scales all distance coordinates.
 void scaleMass(double s)
          Scales all mass units.
 void setMaterial(AxialMaterial mat)
           
 
Methods inherited from class artisynth.core.modelbase.RenderableComponentList
getRenderHints, getRenderProps, getSelection, isSelectable, numSelectionQueriesNeeded, prerender, render, rendersSubComponents, setRenderProps, updateBounds
 
Methods inherited from class artisynth.core.modelbase.ComponentList
add, add, addAll, addComponents, addFixed, addNumbered, clear, clone, componentChanged, contains, contains, containsAll, copy, ensureCapacity, findComponent, get, get, getByNumber, getChildren, getNavpanelDisplay, getNumberLimit, getShortName, getTypeParameter, hasChildren, hasParameterizedType, hierarchyContainsReferences, indexOf, isEmpty, iterator, nextComponentNumber, numComponents, postscan, remove, remove, removeAll, removeAll, removeComponents, retainAll, scan, setNavpanelDisplay, setNumberingStartAtOne, setShortName, size, toArray, toArray, updateNameMap
 
Methods inherited from class artisynth.core.modelbase.ModelComponentBase
checkFlag, checkName, checkNameUniqueness, clearFlag, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, hasState, 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.ComponentListView
contains, get, get, getByNumber, getName, getShortName, indexOf, iterator, nextComponentNumber, size
 
Methods inherited from interface maspack.util.ListView
contains
 
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
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Field Detail

myProps

public static PropertyList myProps
Constructor Detail

PointSpringList

public PointSpringList(java.lang.Class<S> type)

PointSpringList

public PointSpringList(java.lang.Class<S> type,
                       java.lang.String name,
                       java.lang.String shortName)
Method Detail

getAllPropertyInfo

public PropertyList getAllPropertyInfo()
Description copied from interface: HasProperties
Returns a list giving static information about all properties exported by this object.

Specified by:
getAllPropertyInfo in interface HasProperties
Overrides:
getAllPropertyInfo in class RenderableComponentList<S extends PointSpringBase>
Returns:
static information for all exported properties

createDefaultMaterial

public static AxialMaterial createDefaultMaterial()

getMaterial

public AxialMaterial getMaterial()

setMaterial

public void setMaterial(AxialMaterial mat)

createRenderProps

public RenderProps createRenderProps()
Description copied from interface: HasRenderProps
Factory method to create render properties appropriate to this object.

Specified by:
createRenderProps in interface RenderableComponentListView<S extends PointSpringBase>
Specified by:
createRenderProps in interface HasRenderProps
Overrides:
createRenderProps in class RenderableComponentList<S extends PointSpringBase>
Returns:
new render properties for this object

scaleDistance

public void scaleDistance(double s)
Description copied from interface: ScalableUnits
Scales all distance coordinates.

Specified by:
scaleDistance in interface ScalableUnits
Parameters:
s - scaling factor

scaleMass

public void scaleMass(double s)
Description copied from interface: ScalableUnits
Scales all mass units.

Specified by:
scaleMass in interface ScalableUnits
Parameters:
s - scaling factor