Class Perspective3D
- java.lang.Object
- 
- jadex.commons.SimplePropertyObject
- 
- jadex.commons.meta.TypedPropertyObject
- 
- jadex.extension.envsupport.observer.perspective.Perspective3D
 
 
 
- 
- All Implemented Interfaces:
- IPropertyObject,- ITypedPropertyObject,- IPerspective
 
 public class Perspective3D extends TypedPropertyObject implements IPerspective Perspective for viewing in 3D.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.awt.ColorbgColorThe background color.protected SimpleValueFetcherfetcherThe fetcher.protected booleaninvertxaxisFlag if the x-axis should be invertedprotected booleaninvertyaxisFlag if the y-axis should be invertedprotected DrawableCombiner3dmarkerThe marker drawable combinerprotected DrawableCombiner3dmarker3dThe marker drawable combinerprotected java.lang.StringnameName of the presentationprotected IObserverCenterobscenterThe ObserverCenterprotected intselectCycleSelection cycle for stacked objectsprotected java.lang.ObjectselectedobjectThe selected objectprotected IVector1selectorDistanceMaximum selection distanceprotected java.util.Collection<DrawableCombiner3d>staticvisualsThe static visuals (DrawableCombiners)protected booleantryopenglTry OpenGL if trueprotected IViewport3dviewport3dThe viewportprotected java.util.Map<java.lang.Object,java.lang.Object>visualsThe visuals (DrawableCombiners)- 
Fields inherited from class jadex.commons.SimplePropertyObjectpcs, properties
 
- 
 - 
Constructor SummaryConstructors Constructor Description Perspective3D(boolean shader, java.lang.String camera, java.lang.String guiCreatorPath)Creates a 3D-Perspective.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddVisual(java.lang.Object id, java.lang.Object visual)Adds a new visual object.SimpleValueFetchergetFetcher()Get the value fetcher.booleangetInvertXAxis()Gets x-axis inversion.booleangetInvertYAxis()Gets y-axis inversion.DrawableCombiner3dgetMarkerDrawCombiner()java.lang.StringgetName()Returns the name of the perspectiveIObserverCentergetObserverCenter()Get the ObserverCenter.booleangetOpenGl()Gets whether to try to use OpenGL.java.lang.ObjectgetProperty(java.lang.String name)Returns a property.java.lang.ObjectgetSelectedObject()Returns the currently selected object.java.awt.ComponentgetView()Gets the view of the perspective.IViewport3dgetViewport()Gets the viewportbooleanisWireframe()voidleftClicked(java.lang.String identification)Set the selected Object in the Perspective.voidrefresh()Refreshes the perspective.voidremoveVisual(java.lang.Object id)Removes a new visual object.voidreset()Resets position and flushes render infovoidresetZoomAndPosition()Resets position of the perspective.voidsetInvertXAxis(boolean invert)Sets x-axis inversion.voidsetInvertYAxis(boolean invert)Sets y-axis inversion.voidsetMarkerDrawCombiner(DrawableCombiner3d marker)voidsetName(java.lang.String name)Sets the name of the perspectivevoidsetObserverCenter(IObserverCenter obscenter)Sets the ObserverCenter.booleansetOpenGl(boolean opengl)Sets whether to try to use OpenGL.voidsetPostlayers(Layer[] array)voidsetPrelayers(Layer[] array)voidsetSelectedObject(java.lang.Object obj)Sets the selected object.voidsetWireframe(boolean wireframe)- 
Methods inherited from class jadex.commons.meta.TypedPropertyObjectgetMetaData, getMetaDatas
 - 
Methods inherited from class jadex.commons.SimplePropertyObjectaddPropertyChangeListener, getProperties, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty, toString
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface jadex.commons.IPropertyObjectgetPropertyNames, hasProperty, setProperty
 - 
Methods inherited from interface jadex.commons.meta.ITypedPropertyObjectgetMetaData, getMetaDatas
 
- 
 
- 
- 
- 
Field Detail- 
nameprotected java.lang.String name Name of the presentation
 - 
obscenterprotected IObserverCenter obscenter The ObserverCenter
 - 
viewport3dprotected IViewport3d viewport3d The viewport
 - 
selectedobjectprotected java.lang.Object selectedobject The selected object
 - 
selectCycleprotected int selectCycle Selection cycle for stacked objects
 - 
selectorDistanceprotected IVector1 selectorDistance Maximum selection distance
 - 
invertxaxisprotected boolean invertxaxis Flag if the x-axis should be inverted
 - 
invertyaxisprotected boolean invertyaxis Flag if the y-axis should be inverted
 - 
tryopenglprotected boolean tryopengl Try OpenGL if true
 - 
bgColorprotected java.awt.Color bgColor The background color.
 - 
visualsprotected java.util.Map<java.lang.Object,java.lang.Object> visuals The visuals (DrawableCombiners)
 - 
staticvisualsprotected java.util.Collection<DrawableCombiner3d> staticvisuals The static visuals (DrawableCombiners)
 - 
markerprotected DrawableCombiner3d marker The marker drawable combiner
 - 
marker3dprotected DrawableCombiner3d marker3d The marker drawable combiner
 - 
fetcherprotected SimpleValueFetcher fetcher The fetcher.
 
- 
 - 
Method Detail- 
getPropertypublic java.lang.Object getProperty(java.lang.String name) Returns a property.- Specified by:
- getPropertyin interface- IPropertyObject
- Overrides:
- getPropertyin class- SimplePropertyObject
- Parameters:
- name- name of the property
- Returns:
- the property
 
 - 
getFetcherpublic SimpleValueFetcher getFetcher() Get the value fetcher.- Returns:
- The fetcher.
 
 - 
getNamepublic java.lang.String getName() Returns the name of the perspective- Specified by:
- getNamein interface- IPerspective
- Returns:
- name of the perspective
 
 - 
setNamepublic void setName(java.lang.String name) Sets the name of the perspective- Specified by:
- setNamein interface- IPerspective
- Parameters:
- name- name of the perspective
 
 - 
getSelectedObjectpublic java.lang.Object getSelectedObject() Returns the currently selected object.- Specified by:
- getSelectedObjectin interface- IPerspective
- Returns:
- currently selected object
 
 - 
setSelectedObjectpublic void setSelectedObject(java.lang.Object obj) Sets the selected object.- Specified by:
- setSelectedObjectin interface- IPerspective
- Parameters:
- obj- selected object
 
 - 
setObserverCenterpublic void setObserverCenter(IObserverCenter obscenter) Sets the ObserverCenter.- Specified by:
- setObserverCenterin interface- IPerspective
- Parameters:
- obscenter- the ObserverCenter
 
 - 
getObserverCenterpublic IObserverCenter getObserverCenter() Get the ObserverCenter.- Specified by:
- getObserverCenterin interface- IPerspective
- Returns:
- The observer center.
 
 - 
addVisualpublic void addVisual(java.lang.Object id, java.lang.Object visual)Adds a new visual object.- Specified by:
- addVisualin interface- IPerspective
- Parameters:
- id- identifier of the object
- visual- the visual object
 
 - 
removeVisualpublic void removeVisual(java.lang.Object id) Removes a new visual object.- Specified by:
- removeVisualin interface- IPerspective
- Parameters:
- id- identifier of the object
 
 - 
getViewpublic java.awt.Component getView() Gets the view of the perspective.- Specified by:
- getViewin interface- IPerspective
- Returns:
- the view
 
 - 
getViewportpublic IViewport3d getViewport() Gets the viewport- Returns:
- the viewport
 
 - 
getInvertXAxispublic boolean getInvertXAxis() Gets x-axis inversion.- Returns:
- true, if the x-axis should be inverted.
 
 - 
setInvertXAxispublic void setInvertXAxis(boolean invert) Sets x-axis inversion.- Parameters:
- invert- true, if the x-axis should be inverted.
 
 - 
getInvertYAxispublic boolean getInvertYAxis() Gets y-axis inversion.- Returns:
- true, if the y-axis should be inverted.
 
 - 
setInvertYAxispublic void setInvertYAxis(boolean invert) Sets y-axis inversion.- Parameters:
- invert- true, if the y-axis should be inverted.
 
 - 
resetpublic void reset() Resets position and flushes render info- Specified by:
- resetin interface- IPerspective
 
 - 
refreshpublic void refresh() Refreshes the perspective.- Specified by:
- refreshin interface- IPerspective
 
 - 
getOpenGlpublic boolean getOpenGl() Description copied from interface:IPerspectiveGets whether to try to use OpenGL.- Specified by:
- getOpenGlin interface- IPerspective
- Returns:
- true, if attempt should be made to use OpenGL
 
 - 
setOpenGlpublic boolean setOpenGl(boolean opengl) Description copied from interface:IPerspectiveSets whether to try to use OpenGL.- Specified by:
- setOpenGlin interface- IPerspective
- Parameters:
- opengl- true, if attempt should be made to use OpenGL
 
 - 
setPostlayerspublic void setPostlayers(Layer[] array) 
 - 
setPrelayerspublic void setPrelayers(Layer[] array) 
 - 
leftClickedpublic void leftClicked(java.lang.String identification) Set the selected Object in the Perspective. Called by the Viewport3d when the selected Object changes- Parameters:
- identification-
 
 - 
resetZoomAndPositionpublic void resetZoomAndPosition() Description copied from interface:IPerspectiveResets position of the perspective.- Specified by:
- resetZoomAndPositionin interface- IPerspective
 
 - 
isWireframepublic boolean isWireframe() - Returns:
- the wireframe
 
 - 
setWireframepublic void setWireframe(boolean wireframe) - Parameters:
- wireframe- the wireframe to set
 
 - 
getMarkerDrawCombinerpublic DrawableCombiner3d getMarkerDrawCombiner() 
 - 
setMarkerDrawCombinerpublic void setMarkerDrawCombiner(DrawableCombiner3d marker) 
 
- 
 
-