public class Perspective3D extends TypedPropertyObject implements IPerspective
Modifier and Type | Field and Description |
---|---|
protected java.awt.Color |
bgColor
The background color.
|
protected SimpleValueFetcher |
fetcher
The fetcher.
|
protected boolean |
invertxaxis
Flag if the x-axis should be inverted
|
protected boolean |
invertyaxis
Flag if the y-axis should be inverted
|
protected DrawableCombiner3d |
marker
The marker drawable combiner
|
protected DrawableCombiner3d |
marker3d
The marker drawable combiner
|
protected java.lang.String |
name
Name of the presentation
|
protected IObserverCenter |
obscenter
The ObserverCenter
|
protected int |
selectCycle
Selection cycle for stacked objects
|
protected java.lang.Object |
selectedobject
The selected object
|
protected IVector1 |
selectorDistance
Maximum selection distance
|
protected java.util.Collection<DrawableCombiner3d> |
staticvisuals
The static visuals (DrawableCombiners)
|
protected boolean |
tryopengl
Try OpenGL if true
|
protected IViewport3d |
viewport3d
The viewport
|
protected java.util.Map<java.lang.Object,java.lang.Object> |
visuals
The visuals (DrawableCombiners)
|
pcs, properties
Constructor and Description |
---|
Perspective3D(boolean shader,
java.lang.String camera,
java.lang.String guiCreatorPath)
Creates a 3D-Perspective.
|
Modifier and Type | Method and Description |
---|---|
void |
addVisual(java.lang.Object id,
java.lang.Object visual)
Adds a new visual object.
|
SimpleValueFetcher |
getFetcher()
Get the value fetcher.
|
boolean |
getInvertXAxis()
Gets x-axis inversion.
|
boolean |
getInvertYAxis()
Gets y-axis inversion.
|
DrawableCombiner3d |
getMarkerDrawCombiner() |
java.lang.String |
getName()
Returns the name of the perspective
|
IObserverCenter |
getObserverCenter()
Get the ObserverCenter.
|
boolean |
getOpenGl()
Gets whether to try to use OpenGL.
|
java.lang.Object |
getProperty(java.lang.String name)
Returns a property.
|
java.lang.Object |
getSelectedObject()
Returns the currently selected object.
|
java.awt.Component |
getView()
Gets the view of the perspective.
|
IViewport3d |
getViewport()
Gets the viewport
|
boolean |
isWireframe() |
void |
leftClicked(java.lang.String identification)
Set the selected Object in the Perspective.
|
void |
refresh()
Refreshes the perspective.
|
void |
removeVisual(java.lang.Object id)
Removes a new visual object.
|
void |
reset()
Resets position and flushes render info
|
void |
resetZoomAndPosition()
Resets position of the perspective.
|
void |
setInvertXAxis(boolean invert)
Sets x-axis inversion.
|
void |
setInvertYAxis(boolean invert)
Sets y-axis inversion.
|
void |
setMarkerDrawCombiner(DrawableCombiner3d marker) |
void |
setName(java.lang.String name)
Sets the name of the perspective
|
void |
setObserverCenter(IObserverCenter obscenter)
Sets the ObserverCenter.
|
boolean |
setOpenGl(boolean opengl)
Sets whether to try to use OpenGL.
|
void |
setPostlayers(Layer[] array) |
void |
setPrelayers(Layer[] array) |
void |
setSelectedObject(java.lang.Object obj)
Sets the selected object.
|
void |
setWireframe(boolean wireframe) |
getMetaData, getMetaDatas
addPropertyChangeListener, getProperties, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMetaData, getMetaDatas
getPropertyNames, hasProperty, setProperty
protected java.lang.String name
protected IObserverCenter obscenter
protected IViewport3d viewport3d
protected java.lang.Object selectedobject
protected int selectCycle
protected IVector1 selectorDistance
protected boolean invertxaxis
protected boolean invertyaxis
protected boolean tryopengl
protected java.awt.Color bgColor
protected java.util.Map<java.lang.Object,java.lang.Object> visuals
protected java.util.Collection<DrawableCombiner3d> staticvisuals
protected DrawableCombiner3d marker
protected DrawableCombiner3d marker3d
protected SimpleValueFetcher fetcher
public Perspective3D(boolean shader, java.lang.String camera, java.lang.String guiCreatorPath)
ncreens
- public java.lang.Object getProperty(java.lang.String name)
getProperty
in interface IPropertyObject
getProperty
in class SimplePropertyObject
name
- name of the propertypublic SimpleValueFetcher getFetcher()
public java.lang.String getName()
getName
in interface IPerspective
public void setName(java.lang.String name)
setName
in interface IPerspective
name
- name of the perspectivepublic java.lang.Object getSelectedObject()
getSelectedObject
in interface IPerspective
public void setSelectedObject(java.lang.Object obj)
setSelectedObject
in interface IPerspective
obj
- selected objectpublic void setObserverCenter(IObserverCenter obscenter)
setObserverCenter
in interface IPerspective
obscenter
- the ObserverCenterpublic IObserverCenter getObserverCenter()
getObserverCenter
in interface IPerspective
public void addVisual(java.lang.Object id, java.lang.Object visual)
addVisual
in interface IPerspective
id
- identifier of the objectvisual
- the visual objectpublic void removeVisual(java.lang.Object id)
removeVisual
in interface IPerspective
id
- identifier of the objectpublic java.awt.Component getView()
getView
in interface IPerspective
public IViewport3d getViewport()
public boolean getInvertXAxis()
public void setInvertXAxis(boolean invert)
invert
- true, if the x-axis should be inverted.public boolean getInvertYAxis()
public void setInvertYAxis(boolean invert)
invert
- true, if the y-axis should be inverted.public void reset()
reset
in interface IPerspective
public void refresh()
refresh
in interface IPerspective
public boolean getOpenGl()
IPerspective
getOpenGl
in interface IPerspective
public boolean setOpenGl(boolean opengl)
IPerspective
setOpenGl
in interface IPerspective
opengl
- true, if attempt should be made to use OpenGLpublic void setPostlayers(Layer[] array)
public void setPrelayers(Layer[] array)
public void leftClicked(java.lang.String identification)
identification
- public void resetZoomAndPosition()
IPerspective
resetZoomAndPosition
in interface IPerspective
public boolean isWireframe()
public void setWireframe(boolean wireframe)
wireframe
- the wireframe to setpublic DrawableCombiner3d getMarkerDrawCombiner()
public void setMarkerDrawCombiner(DrawableCombiner3d marker)