|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.media.j3d.SceneGraphObject
javax.media.j3d.Node
javax.media.j3d.Group
javax.media.j3d.BranchGroup
nl.tudelft.simulation.dsol.animation.D3.Renderable3D
Renderable3D, a 3d renderable
(c) copyright 2003 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public
License (GPL) , no warranty
| Field Summary | |
protected javax.media.j3d.TransformGroup |
locationGroup
Rotation group |
protected double |
scale
Scale: temporary solution This scale is used to scale translations and can also be used to scale the model (shape). |
protected SimulatorInterface |
simulator
the simulator |
protected LocatableInterface |
source
the source of this animatableObject |
protected int |
type
Type of renderable (world, static or simulated |
| Fields inherited from class javax.media.j3d.BranchGroup |
ALLOW_DETACH |
| Fields inherited from class javax.media.j3d.Group |
ALLOW_CHILDREN_EXTEND, ALLOW_CHILDREN_READ, ALLOW_CHILDREN_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE |
| Fields inherited from class javax.media.j3d.Node |
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING |
| Fields inherited from class javax.media.j3d.SceneGraphObject |
|
| Fields inherited from interface nl.tudelft.simulation.dsol.animation.D3.Renderable3DInterface |
DYNAMIC_OBJECT, STATIC_OBJECT |
| Constructor Summary | |
Renderable3D(nl.tudelft.simulation.language.d3.DirectedPoint staticLocation,
javax.media.j3d.BranchGroup branchGroup,
SimulatorInterface simulator)
|
|
Renderable3D(nl.tudelft.simulation.language.d3.DirectedPoint staticLocation,
SimulatorInterface simulator)
|
|
Renderable3D(LocatableInterface source,
SimulatorInterface simulator)
|
|
Renderable3D(java.awt.geom.Point2D staticLocation,
SimulatorInterface simulator)
|
|
Renderable3D(SimulatorInterface simulator)
|
|
| Method Summary | |
double |
getScale()
|
LocatableInterface |
getSource()
|
int |
getType()
Get the type. |
protected abstract void |
provideModel(javax.media.j3d.TransformGroup locationGroup)
Provide the 3D model and add it to the locationGroup |
void |
setScale(double scale)
|
void |
update()
Update the representation of the model |
protected abstract void |
update(java.util.Enumeration children)
Method update. |
| Methods inherited from class javax.media.j3d.BranchGroup |
cloneNode, compile, detach, pickAll, pickAllSorted, pickAny, pickClosest |
| Methods inherited from class javax.media.j3d.Group |
addChild, getAllChildren, getAlternateCollisionTarget, getChild, getCollisionBounds, indexOfChild, insertChild, moveTo, numChildren, removeAllChildren, removeChild, removeChild, setAlternateCollisionTarget, setChild, setCollisionBounds |
| Methods inherited from class javax.media.j3d.Node |
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable |
| Methods inherited from class javax.media.j3d.SceneGraphObject |
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setUserData, updateNodeReferences |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected LocatableInterface source
protected SimulatorInterface simulator
protected javax.media.j3d.TransformGroup locationGroup
protected int type
protected double scale
| Constructor Detail |
public Renderable3D(SimulatorInterface simulator)
simulator - SimulatorInterface
public Renderable3D(nl.tudelft.simulation.language.d3.DirectedPoint staticLocation,
SimulatorInterface simulator)
staticLocation - Point3dsimulator - SimulatorInterface
public Renderable3D(nl.tudelft.simulation.language.d3.DirectedPoint staticLocation,
javax.media.j3d.BranchGroup branchGroup,
SimulatorInterface simulator)
staticLocation - Point3dbranchGroup - A branchGroup containing (a part of) the modelsimulator - SimulatorInterface
public Renderable3D(java.awt.geom.Point2D staticLocation,
SimulatorInterface simulator)
staticLocation - Point2Dsimulator - SimulatorInterface
public Renderable3D(LocatableInterface source,
SimulatorInterface simulator)
source - LocatableInterfacesimulator - SimulatorInterface| Method Detail |
protected abstract void provideModel(javax.media.j3d.TransformGroup locationGroup)
locationGroup - The location of the objectpublic void update()
Renderable3DInterface
update in interface Renderable3DInterfaceRenderable3DInterface#update()protected abstract void update(java.util.Enumeration children)
children - the children to update.public LocatableInterface getSource()
public int getType()
Renderable3DInterface
getType in interface Renderable3DInterfaceRenderable3DInterface#getType()public double getScale()
public void setScale(double scale)
scale - Set the scale of the coordinates
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||