public abstract class AbstractViewport3d extends Object implements IViewport3d
Constructor and Description |
---|
AbstractViewport3d(IPerspective perspective,
IVector3 areasize,
boolean isGrid,
boolean shader,
String camera,
ISpaceController spaceController) |
Modifier and Type | Method and Description |
---|---|
void |
addViewportListener(IViewportListener listener)
Adds a IViewportListener
|
IVector3 |
getAreaSize()
Gets the maximum displayable size.
|
IVector3 |
getAreaSize3d()
Gets the maximum displayable size.
|
String |
getCamera() |
Canvas |
getCanvas()
Returns the canvas that is used for displaying the objects.
|
IVector2 |
getCanvasSize()
Returns the size of the canvas as a vector.
|
IVector2 |
getPaddedSize()
Returns the padded size
|
IPerspective |
getPerspective()
Get the perspective.
|
IVector3 |
getPosition()
Gets the position of the viewport.
|
IVector3 |
getSize()
Gets the size of the display area.
|
ISpaceController |
getSpaceController() |
void |
getSpaceController(ISpaceController spacecontroller) |
void |
isGridSpace(boolean isGrid) |
boolean |
isShader() |
boolean |
isShowing()
Checks if this IViewport is showing on screen.
|
void |
removeViewportListener(IViewportListener listener)
Removes a IViewportListener
|
void |
setAreaSize(IVector3 areaSize)
Sets the maximum displayable size.
|
void |
setCamera(String camera) |
void |
setShader(boolean shader) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMarker, getSelected, pauseApp, refresh, setSelected, startApp, stopApp
public AbstractViewport3d(IPerspective perspective, IVector3 areasize, boolean isGrid, boolean shader, String camera, ISpaceController spaceController)
public Canvas getCanvas()
getCanvas
in interface IViewport3d
public IVector3 getSize()
public IVector3 getAreaSize()
getAreaSize
in interface IViewport3d
public IVector3 getAreaSize3d()
public void setAreaSize(IVector3 areaSize)
setAreaSize
in interface IViewport3d
areaSize
- maximum area size.public IVector2 getPaddedSize()
public IVector2 getCanvasSize()
public IVector3 getPosition()
public boolean isShowing()
public void addViewportListener(IViewportListener listener)
listener
- new listenerpublic void removeViewportListener(IViewportListener listener)
listener
- the listenerpublic IPerspective getPerspective()
getPerspective
in interface IViewport3d
public void isGridSpace(boolean isGrid)
isGridSpace
in interface IViewport3d
public boolean isShader()
public void setShader(boolean shader)
public String getCamera()
public void setCamera(String camera)
public ISpaceController getSpaceController()
getSpaceController
in interface IViewport3d
public void getSpaceController(ISpaceController spacecontroller)
Copyright © 2013. All Rights Reserved.