|
||||||||||
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
public abstract class Renderable3D
Renderable3D, a 3d renderable
(c) copyright 2002-2005 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
Field Summary | |
---|---|
protected 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 interface nl.tudelft.simulation.dsol.animation.D3.Renderable3DInterface |
---|
DYNAMIC_OBJECT, STATIC_OBJECT |
Constructor Summary | |
---|---|
Renderable3D(DirectedPoint staticLocation,
BranchGroup branchGroup,
SimulatorInterface simulator)
|
|
Renderable3D(DirectedPoint staticLocation,
SimulatorInterface simulator)
|
|
Renderable3D(LocatableInterface source,
SimulatorInterface simulator)
|
|
Renderable3D(Point2D staticLocation,
SimulatorInterface simulator)
|
|
Renderable3D(SimulatorInterface simulator)
|
Method Summary | |
---|---|
double |
getScale()
|
LocatableInterface |
getSource()
|
int |
getType()
returns the type |
protected abstract void |
provideModel(TransformGroup locationGroup)
Provide the 3D model and add it to the locationGroup |
void |
setScale(double scale)
|
void |
update()
updates the renderable |
protected abstract void |
update(Enumeration children)
Method update. |
Methods inherited from class javax.media.j3d.BranchGroup |
---|
cloneNode, compile, detach, pickAll, pickAll, pickAllSorted, pickAllSorted, pickAny, pickAny, pickClosest, 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, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable |
Methods inherited from class javax.media.j3d.SceneGraphObject |
---|
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferences |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected LocatableInterface source
protected SimulatorInterface simulator
protected TransformGroup locationGroup
protected int type
protected double scale
Constructor Detail |
---|
public Renderable3D(SimulatorInterface simulator)
simulator
- SimulatorInterfacepublic Renderable3D(DirectedPoint staticLocation, SimulatorInterface simulator)
staticLocation
- Point3dsimulator
- SimulatorInterfacepublic Renderable3D(DirectedPoint staticLocation, BranchGroup branchGroup, SimulatorInterface simulator)
staticLocation
- Point3dbranchGroup
- A branchGroup containing (a part of) the modelsimulator
- SimulatorInterfacepublic Renderable3D(Point2D staticLocation, SimulatorInterface simulator)
staticLocation
- Point2Dsimulator
- SimulatorInterfacepublic Renderable3D(LocatableInterface source, SimulatorInterface simulator)
source
- LocatableInterfacesimulator
- SimulatorInterfaceMethod Detail |
---|
protected abstract void provideModel(TransformGroup locationGroup)
locationGroup
- The location of the objectpublic void update()
update
in interface Renderable3DInterface
protected abstract void update(Enumeration children)
children
- the children to update.public LocatableInterface getSource()
public int getType()
getType
in interface Renderable3DInterface
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 |