public abstract class AbstractViewport3d extends Object implements IViewport3d
Constructor and Description |
---|
AbstractViewport3d(IPerspective perspective,
IVector3 areasize,
boolean isGrid) |
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.
|
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.
|
void |
isGridSpace(boolean isGrid) |
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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMarker, getSelected, pauseApp, refresh, setSelected, startApp, stopApp
public AbstractViewport3d(IPerspective perspective, IVector3 areasize, boolean isGrid)
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
Copyright © 2012. All Rights Reserved.