public class Perspective3D extends TypedPropertyObject implements IPerspective
Constructor and Description |
---|
Perspective3D()
Creates a 3D-Perspective.
|
Modifier and Type | Method and Description |
---|---|
void |
addVisual(Object id,
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.
|
String |
getName()
Returns the name of the perspective
|
ObserverCenter |
getObserverCenter()
Get the ObserverCenter.
|
boolean |
getOpenGl()
Gets whether to try to use OpenGL.
|
Object |
getProperty(String name)
Returns a property.
|
Object |
getSelectedObject()
Returns the currently selected object.
|
Component |
getView()
Gets the view of the perspective.
|
IViewport3d |
getViewport()
Gets the viewport
|
boolean |
isWireframe() |
void |
leftClicked(String identification)
Set the selected Object in the Perspective.
|
void |
refresh()
Refreshes the perspective.
|
void |
removeVisual(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 |
setName(String name)
Sets the name of the perspective
|
void |
setObserverCenter(ObserverCenter 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(Object obj)
Sets the selected object.
|
void |
setWireframe(boolean wireframe) |
getMetaData, getMetaDatas
addPropertyChangeListener, getProperties, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMetaData, getMetaDatas
getPropertyNames, hasProperty, setProperty
public Object getProperty(String name)
getProperty
in interface IPropertyObject
getProperty
in class SimplePropertyObject
name
- name of the propertypublic SimpleValueFetcher getFetcher()
public String getName()
getName
in interface IPerspective
public void setName(String name)
setName
in interface IPerspective
name
- name of the perspectivepublic Object getSelectedObject()
getSelectedObject
in interface IPerspective
public void setSelectedObject(Object obj)
setSelectedObject
in interface IPerspective
obj
- selected objectpublic void setObserverCenter(ObserverCenter obscenter)
setObserverCenter
in interface IPerspective
obscenter
- the ObserverCenterpublic ObserverCenter getObserverCenter()
getObserverCenter
in interface IPerspective
public void addVisual(Object id, Object visual)
addVisual
in interface IPerspective
id
- identifier of the objectvisual
- the visual objectpublic void removeVisual(Object id)
removeVisual
in interface IPerspective
id
- identifier of the objectpublic 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(String identification)
identification
- public void resetZoomAndPosition()
IPerspective
resetZoomAndPosition
in interface IPerspective
public boolean isWireframe()
public void setWireframe(boolean wireframe)
wireframe
- the wireframe to setCopyright © 2012. All Rights Reserved.