|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vmm.core.View vmm.core3D.View3D vmm.ode.ODE_3D.ODEView
public class ODE_3D.ODEView
Represents the default view for an ODEFirstOrder2D.
Field Summary | |
---|---|
protected ToggleAction |
animateDrawingToggle
|
protected ToggleAction |
connectDotsToggle
|
protected AbstractActionVMM |
continueOrbitAction
|
protected AbstractActionVMM |
eraseOrbitsAction
|
protected ActionRadioGroup |
orbitTypeSelect
|
protected ToggleAction |
showControlPanelToggle
|
protected ToggleAction |
showDirectionFieldToggle
|
protected ToggleAction |
showProjectedOrbitsToggle
|
Fields inherited from class vmm.core3D.View3D |
---|
CROSS_EYE_STEREO_VIEW, leftStereographOSI, MONOCULAR_VIEW, projectionCommands, RED_GREEN_STEREO_VIEW, rightStereographOSI, set3DViewOptionsAction, setViewpointAction, stereoComposite, STEREOGRAPH_VIEW, transform3D, viewStyleCommands |
Fields inherited from class vmm.core.View |
---|
backgroundCommands, buildAnimation, buildingImageForFilmstrip, currentGraphics, decorations, directOffscreenDrawing, fullOSI, needsRedraw, offscreenImageType, parameters, showAxesAction |
Constructor Summary | |
---|---|
ODE_3D.ODEView()
|
Method Summary | |
---|---|
void |
addExtraXML(org.w3c.dom.Document containingDocument,
org.w3c.dom.Element viewElement)
Overridden to add extra transform info. |
ActionList |
getActions()
Generates a list of "Action commands" that can be applied to this View. |
boolean |
getAnimateDrawing()
|
boolean |
getConnectDotsOnOrbit()
Tells whether orbits should be drawn as dots or as solid lines. |
protected vmm.ode.ODE_3D.Orbit |
getCurrentOrbit()
Returns the current orbit (shown in green), if any. |
double |
getCurrentTimeFromControlPanel()
|
MouseTask |
getDefaultMouseTask()
Returns a MouseTase of type BasicMouseTask3D , which is approriate for most 3D views. |
int |
getOrbitType()
|
boolean |
getShowControlPanel()
|
boolean |
getShowDirectionField()
|
boolean |
getShowProjectedOrbits()
|
void |
readExtraXML(org.w3c.dom.Element viewInfo)
Overridden to read back the extra transform info. |
void |
setAnimateDrawing(boolean animateDrawing)
|
void |
setConnectDotsOnOrbit(boolean connectDotsOnOrbit)
Set the property that tells whether an orbit should be drawn simply as a sequence of dots, or the dots should be connected to make a solid curve. |
protected void |
setCurrentOrbit(vmm.ode.ODE_3D.Orbit orbit)
Sets the current orbit (shown in green). |
void |
setDisplay(Display display)
Set the display where this view draws its exhibit. |
void |
setExhibit(Exhibit ex)
Set the exhibit shown in this view. |
void |
setOrbitType(int type)
|
void |
setShowControlPanel(boolean showControlPanel)
|
void |
setShowDirectionField(boolean showDirectionField)
The showDirectionField property determines whether a direction field is drawn for the exhibit in this view. |
void |
setShowProjectedOrbits(boolean showProjectedOrbits)
When the showProjectedOrbits property is true, an auxiliary view is added to the bottom of the display where the x- and y-coordinates of the points on the current orbit are plotted. |
void |
startOrbitAtPoint(double[] initialPointData)
|
void |
stateChanged(javax.swing.event.ChangeEvent evt)
React to a change by rebuilding the offscreen bit map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ToggleAction showDirectionFieldToggle
protected ToggleAction showProjectedOrbitsToggle
protected ToggleAction showControlPanelToggle
protected ToggleAction animateDrawingToggle
protected AbstractActionVMM continueOrbitAction
protected ToggleAction connectDotsToggle
protected AbstractActionVMM eraseOrbitsAction
protected ActionRadioGroup orbitTypeSelect
Constructor Detail |
---|
public ODE_3D.ODEView()
Method Detail |
---|
public boolean getShowDirectionField()
public void setShowDirectionField(boolean showDirectionField)
public boolean getAnimateDrawing()
public void setAnimateDrawing(boolean animateDrawing)
protected vmm.ode.ODE_3D.Orbit getCurrentOrbit()
protected void setCurrentOrbit(vmm.ode.ODE_3D.Orbit orbit)
public boolean getConnectDotsOnOrbit()
setConnectDotsOnOrbit(boolean)
public void setConnectDotsOnOrbit(boolean connectDotsOnOrbit)
public boolean getShowProjectedOrbits()
public int getOrbitType()
public void setOrbitType(int type)
public boolean getShowControlPanel()
public void setShowControlPanel(boolean showControlPanel)
public void setShowProjectedOrbits(boolean showProjectedOrbits)
public ActionList getActions()
View
ActionItem
interface and will generally
belong to one of the classes AbstractActionVMM
,
ToggleAction
, ActionRadioGroup
, or
ActionList
. Null items represent separators.
The idea is that the list items will be added to a menu or otherwise presented to the user
so that the user can invoke the commands (with ActionList items representing submenus).
Null values can occur in the list; they are meant to become separaters in the menu.
Subclasses that override this method should generally call super.getActionss() and add their commands to the list retured by that method. This top-level View class does not define any Action commands; the return value is an empty non-null ArrayList.
getActions
in class View
public void setDisplay(Display display)
View3D
setDisplay
in class View3D
Display.install(View, Exhibit)
public void setExhibit(Exhibit ex)
View3D
View3D.transform3D
and to manage stereographic viewing if necessary.
setExhibit
in class View3D
ex
- The exhibit to be installed in this View. The value can be null.
In that case, no Exhibit will be associated with the View after the method executes.
If exhibit is already installed in this View, then no changes are made.Display.install(View, Exhibit)
public void stateChanged(javax.swing.event.ChangeEvent evt)
View3D
stateChanged
in interface javax.swing.event.ChangeListener
stateChanged
in class View3D
View.forceRedraw()
public MouseTask getDefaultMouseTask()
View3D
BasicMouseTask3D
, which is approriate for most 3D views.
getDefaultMouseTask
in class View3D
BasicMouseTask2D
, which allows
dragging and zooming of the 2D window.MouseTask
public double getCurrentTimeFromControlPanel()
public void startOrbitAtPoint(double[] initialPointData)
public void addExtraXML(org.w3c.dom.Document containingDocument, org.w3c.dom.Element viewElement)
View3D
addExtraXML
in class View3D
containingDocument
- The overall XML document that contains the view Element that is being created.
This parameter is necessary because it is needed to create any nested subelements that are to be added
to the view element.viewElement
- The XML element that is being constructed. This element already exists; the
purpose of this method to add any extra information that would be needed to reconstruct this view
object from the XML represenation.View.readExtraXML(Element)
public void readExtraXML(org.w3c.dom.Element viewInfo) throws java.io.IOException
View3D
readExtraXML
in class View3D
viewInfo
- The <view> element from the XML file that contains the information about this
view. Some methods from the SaveAndRestore
class might be useful for getting the data.
java.io.IOException
- If an error is found, an exception of type IOException should be thrown.
This will abort the whole processing of the XML file.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |