|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IViewport
The Viewport holds information about the current view of the model - including the location of the viewpoint, the rotation, the zoom, the tilt angle and which layers are currently visible.
| Field Summary | |
|---|---|
static double |
DEPTH_MAX
|
static Integer[] |
DRAW_INTERVALS
|
static double |
NEW_TRACT_SIZE
|
static int |
SCOPE_INIT
|
static int |
SCOPE_MAX
|
static int |
SCOPE_MIN
|
| Method Summary | |
|---|---|
IXyz |
box()
Return the (x,y,z) location of the box cursor |
IXyz |
boxNewLocation()
|
void |
canBeExploded(boolean b)
Toggle view explosion from within an object. |
void |
change()
Force all IDrawables to be redrawn at the next refresh. |
void |
clearPicks()
Clear all picked objects |
IAngle |
compass()
Return the compass bearing angle |
boolean |
contains(IXyz p)
Return true if the given point is inside the viewport |
boolean |
containsXY(IXyz p)
Return true if the given point is inside the viewport bounds, regardless of height |
IAspect |
currentAspect()
Return the current visible aspect. |
boolean |
currentAspect(int a)
Set the current visible aspect. |
double |
depth()
Return the depth slice height |
boolean |
dragging()
Return true if currently dragging |
int |
drawInterval()
Return the draw-interval, in seconds. |
int |
drawIntervalLevel()
Return the draw-interval by its level: 0 = every time step, 1 = every second, 2 = every 5 seconds etc |
boolean |
drawIntervalLevel(int i)
Set the draw-interval by its level: 0 = every time step, 1 = every second, 2 = every 5 seconds etc |
double |
explodedScale()
return the current exploded-view scale: a value of 1.0 means not exploded |
IXyz |
eye()
Return the (x,y,z) location of the viewpoint |
void |
gotoObject()
Raise the "Find" window, which will search for an object and move the viewpoint to that object using moveTo(com.azalient.api.a.position.IXyz) |
boolean |
inField(IXyz p)
Return true if the given point is inside the current depth slice |
boolean |
inField(IXyz p,
double h)
Return true if the given point, adjusted by height h, is inside the current depth slice |
IMouseState |
mouse()
Return a handle to the mouse state, which is cached on each mouse event |
void |
moveTo(IXyz p)
Move the cursor to the given point P |
boolean |
moving()
Return true if currently panning |
OpenGLWindow |
openGLWindow()
Return a handle to the OpenGL Window object |
boolean |
picking()
Return true if currently picking |
boolean |
pickingAll()
Return true if all objects should be picked, regardless of visibility (SHIFT is pressed). |
void |
promptIfInvisible(IViewable viewable)
Set a toggle to prompt once only for a given viewable. |
void |
refresh()
Force a redraw of all objects |
IShape.RenderMode |
renderMode()
Return the current rendering mode: Flat, Solid etc |
void |
renderMode(IShape.RenderMode rm)
Set the current rendering mode: Flat, Solid etc |
int |
rgb(IFeature feature)
Return the RGB colour of the given feature in the currently selected Aspect |
int |
rgb(IViewable viewable)
Return the RGB colour of the given viewable in the currently selected Aspect |
void |
rotateTo(IAngle a)
Rotate the view bearing to the given angle |
int |
scope()
Return the current scope, 1..10 |
boolean |
scope(int newScope)
Set the scope value, a value between 1 and 10 |
IXyz |
side()
Return a unit vector to the left of the cursor, given the current view rotation |
IXyz |
sideT()
Return a unit vector from the cursor to the marked side point, given the current view rotation and the rotation of the cursor |
int |
tag()
A tag for display lists. |
IXyz |
tee()
Return the (x,y,z) location of the T point, the distant end of a new road or walkway |
IXyz |
teeNewLocation()
|
IAngle |
tilt()
Return the tilt angle |
void |
tiltTo(double d)
Change the tilt angle of the view to the given angle in degrees |
boolean |
visible(IFeature feature)
Return true if the given feature is currently visible |
boolean |
visible(IViewable viewable)
Return true if the given viewable is currently visible |
int |
visibleLayer()
Deprecated. use currentAspect() |
boolean |
visibleLayer(int v)
Deprecated. use currentAspect(int) |
OpenGLWindow |
window()
Deprecated. Use openGLWindow() |
double |
zoom()
Return the zoom (view point) height |
void |
zoomTo(double z)
Change the zoom (the viewpoint height) to the given value |
| Field Detail |
|---|
static final double NEW_TRACT_SIZE
static final Integer[] DRAW_INTERVALS
static final int SCOPE_MIN
static final int SCOPE_INIT
static final int SCOPE_MAX
static final double DEPTH_MAX
| Method Detail |
|---|
void refresh()
void change()
void gotoObject()
moveTo(com.azalient.api.a.position.IXyz)
void renderMode(IShape.RenderMode rm)
void canBeExploded(boolean b)
void tiltTo(double d)
void moveTo(IXyz p)
void rotateTo(IAngle a)
void zoomTo(double z)
void clearPicks()
void promptIfInvisible(IViewable viewable)
boolean drawIntervalLevel(int i)
boolean scope(int newScope)
boolean currentAspect(int a)
OpenGLWindow window()
openGLWindow()
OpenGLWindow openGLWindow()
IMouseState mouse()
IAspect currentAspect()
IShape.RenderMode renderMode()
int scope()
int drawIntervalLevel()
int drawInterval()
double zoom()
double depth()
double explodedScale()
IAngle compass()
IAngle tilt()
IXyz box()
IXyz tee()
IXyz eye()
IXyz side()
IXyz sideT()
IXyz boxNewLocation()
IXyz teeNewLocation()
boolean moving()
boolean dragging()
boolean picking()
boolean pickingAll()
boolean visible(IFeature feature)
boolean visible(IViewable viewable)
boolean contains(IXyz p)
boolean containsXY(IXyz p)
boolean inField(IXyz p)
boolean inField(IXyz p,
double h)
int rgb(IFeature feature)
int rgb(IViewable viewable)
int tag()
int visibleLayer()
currentAspect()
boolean visibleLayer(int v)
currentAspect(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||