|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectigeo.gui.IView
public class IView
Class to define view by location, direction, axonometric/perspective mode and perspective angle. An instance of IView is associated with an instance of IPane.
Field Summary | |
---|---|
boolean |
axonometric
|
double |
axonRatio
|
static double |
defaultAxonRatio
|
static double |
defaultFar
|
static float[] |
defaultGLAmbientLight
|
static double[][][] |
defaultGLBGColor
|
static float[] |
defaultGLDiffuseLight
|
static float[] |
defaultGLLightPosition
|
static float[] |
defaultGLSpecularLight
|
static boolean |
defaultGLTwoSidedLighting
|
static IGraphicMode |
defaultMode
|
static double |
defaultNear
|
static double |
defaultPersRatio
|
static double |
defaultViewDistance
|
double |
distToTarget
|
double |
far
|
double[][][] |
glBGColor
|
double |
glHeight
|
double[] |
glTransformArray
|
IMatrix4 |
glTransformMatrix
|
double |
glWidth
|
boolean |
hide
|
java.awt.Color |
javaBGColor1
|
java.awt.Color |
javaBGColor2
|
IGraphicMode |
mode
|
double |
near
|
IPane |
pane
|
double |
persRatio
|
double |
pitch
yaw-pitch-roll ZXY conversion yaw=0 pitch=0 equals x-axis yaw is rotation around z, pitch is around y, roll is around x, in right hand rule |
IVec |
pos
|
double |
roll
yaw-pitch-roll ZXY conversion yaw=0 pitch=0 equals x-axis yaw is rotation around z, pitch is around y, roll is around x, in right hand rule |
boolean |
rotateAroundTarget
|
int |
screenHeight
|
int |
screenWidth
|
int |
screenX
|
int |
screenY
|
IVec |
target
|
boolean |
useGL
|
double |
yaw
yaw-pitch-roll ZXY conversion yaw=0 pitch=0 equals x-axis yaw is rotation around z, pitch is around y, roll is around x, in right hand rule |
Constructor Summary | |
---|---|
IView(double x,
double y,
double z,
double yaw,
double pitch)
|
|
IView(double x,
double y,
double z,
double yaw,
double pitch,
double roll)
|
|
IView(double x,
double y,
double z,
double yaw,
double pitch,
double roll,
int screenX,
int screenY,
int screenWidth,
int screenHeight)
|
|
IView(double x,
double y,
double z,
double yaw,
double pitch,
double roll,
int screenX,
int screenY,
int screenWidth,
int screenHeight,
boolean axonometric)
|
Method Summary | |
---|---|
void |
axonometric()
|
boolean |
convert(IVecI orig,
IVec dest)
converts 3d coordinates to 2d. |
boolean |
convert(IVecI orig,
IVec2 dest)
converts 3d coordinates to 2d coordinates of screen whose unit is pixels and whose origin is top left corner and positive Y is downward |
void |
disableGL()
|
void |
disableRotationAroundTarget()
|
double |
distanceToTarget()
|
void |
draw(javax.media.opengl.GL gl)
|
void |
drawBG(javax.media.opengl.GL gl)
|
void |
enableGL()
|
void |
enableRotationAroundTarget()
|
void |
focus(IBoundingBox bb)
|
IVec |
frontDirection()
|
IVec |
getAngles()
|
double |
getAxonometricRatio()
|
static IView |
getBackView(int screenX,
int screenY,
int screenWidth,
int screenHeight)
|
static IView |
getBottomView(int screenX,
int screenY,
int screenWidth,
int screenHeight)
|
static IView |
getDefaultAxonometricView(int screenX,
int screenY,
int screenWidth,
int screenHeight)
|
static IView |
getDefaultPerspectiveView(int screenX,
int screenY,
int screenWidth,
int screenHeight)
|
static IView |
getFrontView(int screenX,
int screenY,
int screenWidth,
int screenHeight)
|
static IView |
getLeftView(int screenX,
int screenY,
int screenWidth,
int screenHeight)
|
double |
getPerspectiveRatio()
|
double |
getPitch()
|
static IView |
getRightView(int screenX,
int screenY,
int screenWidth,
int screenHeight)
|
double |
getRoll()
|
static IView |
getTopView(int screenX,
int screenY,
int screenWidth,
int screenHeight)
|
double |
getYaw()
|
void |
hide()
|
boolean |
isAxonometric()
|
boolean |
isHidden()
|
IVec |
location()
|
IGraphicMode |
mode()
|
void |
moveForward(double dist)
|
void |
perspective()
|
IVec |
rightDirection()
|
void |
setAngle(double yaw,
double pitch)
|
void |
setAngle(double yaw,
double pitch,
double roll)
|
void |
setAxonometricRatio(double r)
|
void |
setBGColor(java.awt.Color c)
|
void |
setBGColor(java.awt.Color[][] c)
|
void |
setBGColor(java.awt.Color c1,
java.awt.Color c2)
|
void |
setBGColor(java.awt.Color c1,
java.awt.Color c2,
java.awt.Color c3,
java.awt.Color c4)
|
void |
setLocation(double x,
double y,
double z)
|
void |
setLocation(IVecI pt)
|
void |
setMode(IGraphicMode m)
|
void |
setPane(IPane p)
|
void |
setPerspectiveAngle(double angle)
|
void |
setPerspectiveRatio(double r)
|
void |
setScreen(int x,
int y,
int w,
int h)
|
void |
setScreenPosition(int x,
int y)
|
void |
setScreenSize(int w,
int h)
|
void |
setTarget(double x,
double y,
double z)
|
void |
setTarget(IVecI t)
|
void |
show()
|
IVec |
target()
|
void |
update()
|
IVec |
upDirection()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static double defaultNear
public static double defaultFar
public static double defaultAxonRatio
public static double defaultPersRatio
public static double defaultViewDistance
public static IGraphicMode defaultMode
public static float[] defaultGLLightPosition
public static float[] defaultGLAmbientLight
public static float[] defaultGLDiffuseLight
public static float[] defaultGLSpecularLight
public static boolean defaultGLTwoSidedLighting
public static double[][][] defaultGLBGColor
public IVec pos
public double yaw
public double pitch
public double roll
public boolean axonometric
public int screenX
public int screenY
public int screenWidth
public int screenHeight
public double persRatio
public double axonRatio
public double near
public double far
public IVec target
public boolean rotateAroundTarget
public double distToTarget
public double glWidth
public double glHeight
public IMatrix4 glTransformMatrix
public double[] glTransformArray
public boolean useGL
public boolean hide
public IPane pane
public IGraphicMode mode
public double[][][] glBGColor
public java.awt.Color javaBGColor1
public java.awt.Color javaBGColor2
Constructor Detail |
---|
public IView(double x, double y, double z, double yaw, double pitch, double roll, int screenX, int screenY, int screenWidth, int screenHeight, boolean axonometric)
public IView(double x, double y, double z, double yaw, double pitch, double roll, int screenX, int screenY, int screenWidth, int screenHeight)
public IView(double x, double y, double z, double yaw, double pitch, double roll)
public IView(double x, double y, double z, double yaw, double pitch)
Method Detail |
---|
public void enableGL()
public void disableGL()
public void setMode(IGraphicMode m)
public IGraphicMode mode()
public boolean isHidden()
public void hide()
public void show()
public void setBGColor(java.awt.Color c)
public void setBGColor(java.awt.Color c1, java.awt.Color c2)
public void setBGColor(java.awt.Color c1, java.awt.Color c2, java.awt.Color c3, java.awt.Color c4)
public void setBGColor(java.awt.Color[][] c)
public void setPane(IPane p)
public void setScreen(int x, int y, int w, int h)
public void setScreenSize(int w, int h)
public void setScreenPosition(int x, int y)
public double getAxonometricRatio()
public double getPerspectiveRatio()
public void setAxonometricRatio(double r)
public void setPerspectiveRatio(double r)
public void setPerspectiveAngle(double angle)
public void perspective()
public void axonometric()
public boolean isAxonometric()
public void setTarget(double x, double y, double z)
public void setTarget(IVecI t)
public void enableRotationAroundTarget()
public void disableRotationAroundTarget()
public double distanceToTarget()
public void setLocation(double x, double y, double z)
public void setLocation(IVecI pt)
public void setAngle(double yaw, double pitch, double roll)
public void setAngle(double yaw, double pitch)
public void moveForward(double dist)
public IVec location()
public IVec target()
public double getYaw()
public double getPitch()
public double getRoll()
public IVec getAngles()
public IVec frontDirection()
public IVec rightDirection()
public IVec upDirection()
public void focus(IBoundingBox bb)
public boolean convert(IVecI orig, IVec2 dest)
public boolean convert(IVecI orig, IVec dest)
public void drawBG(javax.media.opengl.GL gl)
public void draw(javax.media.opengl.GL gl)
public void update()
public static IView getTopView(int screenX, int screenY, int screenWidth, int screenHeight)
public static IView getBottomView(int screenX, int screenY, int screenWidth, int screenHeight)
public static IView getLeftView(int screenX, int screenY, int screenWidth, int screenHeight)
public static IView getRightView(int screenX, int screenY, int screenWidth, int screenHeight)
public static IView getFrontView(int screenX, int screenY, int screenWidth, int screenHeight)
public static IView getBackView(int screenX, int screenY, int screenWidth, int screenHeight)
public static IView getDefaultAxonometricView(int screenX, int screenY, int screenWidth, int screenHeight)
public static IView getDefaultPerspectiveView(int screenX, int screenY, int screenWidth, int screenHeight)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |