java.lang.ObjectVisualSim.kernel.util.NamedObj
VisualSim.kernel.Entity
VisualSim.kernel.ComponentEntity
VisualSim.actor.AtomicActor
VisualSim.actor.TypedAtomicActor
VisualSim.simulators.gr.kernel.GRActor
VisualSim.simulators.gr.lib.ViewScreen
A sink actor that renders the GR geometry into a display screen
Nested Class Summary |
Nested classes inherited from class VisualSim.kernel.util.NamedObj |
VisualSim.kernel.util.NamedObj.MoMLInfo |
Field Summary | |
Parameter |
backgroundColor
The background color, given as a 3-element array representing rgb color |
Parameter |
horizontalResolution
The horizontal resolution of the display screen This parameter should contain a IntToken. |
Parameter |
iterationSynchronized
|
Parameter |
rotatable
Boolean variable that determines whether the user is allowed to rotate the model This parameter should contain a BooleanToken The default value of this parameter is BooleanToken true |
Parameter |
scalable
Boolean variable that determines whether the user is allowed to scale the model This parameter should contain a BooleanToken The default value of this parameter is BooleanToken false |
TypedIOPort |
sceneGraphIn
The input scene graph. |
Parameter |
showAxes
Boolean variable that determines whether or not axes are shown. |
Parameter |
translatable
Boolean variable that determines whether the user is allowed to translate the model This parameter should contain a BooleanToken The default value of this parameter is BooleanToken false |
Parameter |
verticalResolution
The vertical resolution of the display screen This parameter should contain a IntToken. |
Fields inherited from class VisualSim.actor.AtomicActor |
Block_Documentation |
Fields inherited from class VisualSim.kernel.util.NamedObj |
ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
Fields inherited from interface VisualSim.actor.Executable |
COMPLETED, NOT_READY, STOP_ITERATING |
Constructor Summary | |
ViewScreen(CompositeEntity container,
java.lang.String name)
Construct a ViewScreen in the given container with the given name. |
Method Summary | |
void |
addChild(javax.media.j3d.Node node)
Add the node argument as a child to the encapsulated Java3D node in this actor. |
void |
fire()
Fire this actor. |
javax.media.j3d.BranchGroup |
getBranchGroup()
Return the root Java 3D rendering group used by this view screen. |
javax.media.j3d.Canvas3D |
getCanvas()
Return the Java 3D canvas used by this view screen. |
void |
initialize()
Initialize the execution. |
void |
place(java.awt.Container container)
Set the container that this actor should display data in. |
void |
wrapup()
Wrapup an execution |
Methods inherited from class VisualSim.actor.TypedAtomicActor |
attributeTypeChanged, newPort, typeConstraintList |
Methods inherited from class VisualSim.actor.AtomicActor |
clone, connectionsChanged, getDirector, getExecutiveDirector, getManager, inputPortList, iterate, newReceiver, outputPortList, postfire, prefire, preinitialize, setContainer, stop, stopFire, terminate |
Methods inherited from class VisualSim.kernel.ComponentEntity |
getContainer, isAtomic, isOpaque, setName |
Methods inherited from class VisualSim.kernel.Entity |
connectedPortList, getAttribute, getPort, linkedRelationList, portList, removeAllPorts, uniqueName, validateSettables |
Methods inherited from class VisualSim.kernel.util.NamedObj |
addChangeListener, addDebugListener, attributeChanged, attributeList, attributeList, clone, deepContains, depthInHierarchy, description, description, event, exportMoML, exportMoML, exportMoML, exportMoML, exportMoML, getAttribute, getFullName, getModelErrorHandler, getMoMLInfo, getName, getName, handleModelError, message, removeChangeListener, removeDebugListener, requestChange, setDeferMoMLDefinitionTo, setModelErrorHandler, toplevel, toString, workspace |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface VisualSim.actor.Actor |
getDirector, getExecutiveDirector, getManager, inputPortList, newReceiver, outputPortList |
Methods inherited from interface VisualSim.actor.Executable |
iterate, postfire, prefire, preinitialize, stop, stopFire, terminate |
Field Detail |
public Parameter backgroundColor
public Parameter horizontalResolution
public Parameter iterationSynchronized
public Parameter rotatable
public Parameter scalable
public TypedIOPort sceneGraphIn
public Parameter showAxes
public Parameter translatable
public Parameter verticalResolution
Constructor Detail |
public ViewScreen(CompositeEntity container, java.lang.String name) throws VisualSim.kernel.util.IllegalActionException, VisualSim.kernel.util.NameDuplicationException
container
- Container of the director.name
- Name of this ViewScreen.
VisualSim.kernel.util.IllegalActionException
- If this actor
is not compatible with the specified container.
VisualSim.kernel.util.NameDuplicationException
- If the container not a
CompositeActor and the name collides with an entity in the container.Method Detail |
public void addChild(javax.media.j3d.Node node)
public void fire() throws VisualSim.kernel.util.IllegalActionException
fire
in interface VisualSim.actor.Executable
fire
in class GRActor
VisualSim.kernel.util.IllegalActionException
- If an error occurs
during the scene graph initialization.public javax.media.j3d.BranchGroup getBranchGroup()
public javax.media.j3d.Canvas3D getCanvas()
public void initialize() throws VisualSim.kernel.util.IllegalActionException
initialize
in interface VisualSim.actor.Executable
initialize
in class GRActor
VisualSim.kernel.util.IllegalActionException
- If the base class throws it.public void place(java.awt.Container container)
place
in interface VisualSim.actor.gui.Placeable
container
- The container in which to place the object, or
null to specify that there is no current container.public void wrapup() throws VisualSim.kernel.util.IllegalActionException
wrapup
in interface VisualSim.actor.Executable
wrapup
in class GRActor
VisualSim.kernel.util.IllegalActionException
- If the base class throws it.