public class ViewScreen3D extends GRActor3D implements Placeable, ViewScreenInterface
| Green (acataldo) |
| Green (eal) |
Entity.ContainedObjectsIterator| Modifier and Type | Field and Description |
|---|---|
protected javax.media.j3d.BoundingSphere |
_bounds
The BoundingSphere.
|
protected javax.media.j3d.BranchGroup |
_branchRoot
The main connection branch that connects to the universe.
|
protected javax.media.j3d.Canvas3D |
_canvas
The Java3D canvas component.
|
protected java.awt.Container |
_container
The container set in the place() method, or the content pane of the
created frame if place was not called.
|
protected javax.swing.JFrame |
_frame
The frame containing our canvas, if we created it.
|
protected boolean |
_iterationSynchronized
True for manual rendering, false for default rendering.
|
protected javax.media.j3d.Transform3D |
_lastTransform
The last transform.
|
protected ptolemy.domains.gr.lib.ViewScreen3D.MouseRotateView |
_mouseRotate
The mouse rotate view.
|
protected javax.media.j3d.BranchGroup |
_root
The connection branch to which incoming nodes connect.
|
protected com.sun.j3d.utils.universe.SimpleUniverse |
_simpleUniverse
The Java3D universe, displayed inside the canvas.
|
protected javax.media.j3d.TransformGroup |
_userTransformation
The user transformation.
|
ColorAttribute |
backgroundColor
The background color.
|
Parameter |
horizontalResolution
The width in pixels of the display screen.
|
Parameter |
iterationSynchronized
Boolean variable that determines whether screen update is done
once per iteration.
|
Parameter |
rotatable
Boolean variable that determines whether the user can
rotate the model with the mouse.
|
Parameter |
scalable
Boolean variable that determines whether the user can
move the point of view along the z axis using the mouse.
|
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 can
translate the model with the mouse.
|
Parameter |
verticalResolution
The height in pixels of the display screen.
|
_viewScreen_allowAttributeChanges, _isSceneGraphInitialized_typesValid_actorFiringListeners, _initializables, _notifyingActorFiring, _stopRequested_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKSCOMPLETED, NOT_READY, STOP_ITERATING| Constructor and Description |
|---|
ViewScreen3D(CompositeEntity container,
java.lang.String name)
Construct a ViewScreen in the given container with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
_addChild(javax.media.j3d.Node node)
Add the node argument as a child to the encapsulated Java3D node
in this actor.
|
protected void |
_createViewScreen()
Create the view screen component.
|
protected int |
_getHorizontalPixels()
Get the number of horizontal pixels in the rendered image.
|
protected javax.media.j3d.Node |
_getNodeObject()
The ViewScreen does not have an associated Java3D node.
|
protected int |
_getVerticalPixels()
Get the number of vertical pixels in the rendered image.
|
protected javax.media.j3d.Background |
_makeBackground()
Makes the background for the viewScreen.
|
protected void |
_makeNodeConnection()
Connect each of the channels of the sceneGraphIn port
to the scene.
|
protected void |
_makeSceneGraphConnection()
Setup the scene graph connections of this actor.
|
protected void |
_startRenderer()
Start the internal Java3D renderer.
|
protected void |
_stopRenderer()
Stop the internal Java3D renderer.
|
void |
addChild(javax.media.j3d.Node node)
Add the node argument as a child to the encapsulated Java3D node
in this actor.
|
java.lang.Object |
clone(Workspace workspace)
Clone the actor into the specified workspace.
|
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.
|
boolean |
postfire()
Return true, unless stop() has been called, in which case,
return false.
|
void |
wrapup()
Wrapup an execution.
|
_setViewScreen_containedTypeConstraints, _customTypeConstraints, _defaultTypeConstraints, _fireAt, _fireAt, attributeTypeChanged, clone, isBackwardTypeInferenceEnabled, newPort, typeConstraintList, typeConstraints_actorFiring, _actorFiring, _declareDelayDependency, addActorFiringListener, addInitializable, connectionsChanged, createReceivers, declareDelayDependency, getCausalityInterface, getDirector, getExecutiveDirector, getManager, inputPortList, isFireFunctional, isStrict, iterate, newReceiver, outputPortList, prefire, preinitialize, pruneDependencies, recordFiring, removeActorFiringListener, removeDependency, removeInitializable, setContainer, stop, stopFire, terminate_adjustDeferrals, _checkContainer, _getContainedObject, _propagateExistence, getContainer, instantiate, isAtomic, isOpaque, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, propagateExistence, setName_addPort, _description, _exportMoMLContents, _removePort, _validateSettables, connectedPortList, connectedPorts, containedObjectsIterator, getAttribute, getPort, getPorts, linkedRelationList, linkedRelations, portList, removeAllPorts, setClassDefinition, uniqueName_setParent, exportMoML, getChildren, getElementName, getParent, getPrototypeList, isClassDefinition, isWithinClassDefinition_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _executeChangeRequests, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, addChangeListener, addDebugListener, addHierarchyListener, attributeChanged, attributeDeleted, attributeList, attributeList, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttributes, getChangeListeners, getClassName, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getFullName, getModelErrorHandler, getName, getName, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, notifyOfNameChange, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, validateSettables, workspaceequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateReceivers, getCausalityInterface, getDirector, getExecutiveDirector, getManager, inputPortList, newReceiver, outputPortListisFireFunctional, isStrict, iterate, prefire, stop, stopFire, terminateaddInitializable, preinitialize, removeInitializabledescription, getContainer, getDisplayName, getFullName, getName, getName, setNamegetDerivedLevel, getDerivedList, propagateValuepublic TypedIOPort sceneGraphIn
public ColorAttribute backgroundColor
public Parameter horizontalResolution
public Parameter iterationSynchronized
public Parameter rotatable
public Parameter scalable
public Parameter showAxes
public Parameter translatable
public Parameter verticalResolution
protected javax.media.j3d.BoundingSphere _bounds
protected javax.media.j3d.BranchGroup _branchRoot
protected javax.media.j3d.BranchGroup _root
protected javax.media.j3d.Canvas3D _canvas
protected java.awt.Container _container
protected javax.swing.JFrame _frame
protected boolean _iterationSynchronized
protected javax.media.j3d.Transform3D _lastTransform
protected ptolemy.domains.gr.lib.ViewScreen3D.MouseRotateView _mouseRotate
protected com.sun.j3d.utils.universe.SimpleUniverse _simpleUniverse
protected javax.media.j3d.TransformGroup _userTransformation
public ViewScreen3D(CompositeEntity container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container - Container of the director.name - Name of this ViewScreen.IllegalActionException - If this actor
is not compatible with the specified container.NameDuplicationException - If the container not a
CompositeActor and the name collides with an entity in the container.public void addChild(javax.media.j3d.Node node)
node - The node to be added.public java.lang.Object clone(Workspace workspace) throws java.lang.CloneNotSupportedException
clone in class TypedAtomicActorworkspace - The workspace for the new object.java.lang.CloneNotSupportedException - If a derived class contains
an attribute that cannot be cloned.NamedObj.exportMoML(Writer, int, String),
NamedObj.setDeferringChangeRequests(boolean)public void fire()
throws IllegalActionException
fire in interface Executablefire in class GRActorIllegalActionException - 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 IllegalActionException
initialize in interface Initializableinitialize in class GRActorIllegalActionException - If the base class throws it.public void place(java.awt.Container container)
public boolean postfire()
throws IllegalActionException
AtomicActorpostfire in interface Executablepostfire in class AtomicActor<TypedIOPort>IllegalActionException - Not thrown in this base class.public void wrapup()
throws IllegalActionException
wrapup in interface Initializablewrapup in class GRActorIllegalActionException - If the base class throws it.protected void _addChild(javax.media.j3d.Node node)
protected void _createViewScreen()
throws IllegalActionException
IllegalActionException - If there is a problem reading
a parameter.protected int _getHorizontalPixels()
throws IllegalActionException
IllegalActionException - If thrown while reading the
horizontalPixels parameter.protected javax.media.j3d.Node _getNodeObject()
_getNodeObject in class GRActor3Dprotected int _getVerticalPixels()
throws IllegalActionException
IllegalActionException - If thrown while reading the
verticalPixels parameter.protected javax.media.j3d.Background _makeBackground()
throws IllegalActionException
IllegalActionException - If unable to read the color
parameter.protected void _makeNodeConnection()
throws IllegalActionException
IllegalActionException - If thrown while reading from a
channel.protected void _makeSceneGraphConnection()
throws IllegalActionException
_makeSceneGraphConnection in class GRActorIllegalActionException - Always thrown for this base class.protected void _startRenderer()
protected void _stopRenderer()