|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object endrov.gl.EvGLCamera
public class EvGLCamera
Field Summary | |
---|---|
javax.vecmath.Vector3d |
center
Center position |
javax.vecmath.Vector3d |
pos
Camera position |
Constructor Summary | |
---|---|
EvGLCamera()
|
|
EvGLCamera(EvGLCamera cam)
|
Method Summary | |
---|---|
void |
center(double dist)
Make camera move at center at some distance with current rotation |
void |
fromElement(org.jdom.Element e)
|
javax.vecmath.Matrix3d |
getRotationMatrixReadOnly()
Get the rotation matrix. |
void |
moveCamera(double x,
double y,
double z)
Move camera relative to camera coordinate system |
void |
rotateCamera(double x,
double y,
double z)
Rotate around camera, relative to camera |
void |
rotateCenter(double x,
double y,
double z)
Rotate camera around center |
javax.vecmath.Vector3d |
rotateVector(double x,
double y,
double z)
|
javax.vecmath.Vector3d |
rotateVector(javax.vecmath.Vector3d v)
|
void |
setRotation(double x,
double y,
double z)
Set the rotation of the camera |
void |
setRotationMatrix(javax.vecmath.Matrix3d mat)
Set rotation of camera through matrix |
void |
toElement(org.jdom.Element e)
|
void |
transformGL(javax.media.opengl.GL2 gl)
Do the GL transformation to move into camera coordinates |
javax.vecmath.Vector3d |
transformPoint(javax.vecmath.Vector3d v)
Transform a point world coord to cam coord |
void |
unrotateGL(javax.media.opengl.GL2 gl)
Inverse GL camera rotation |
javax.vecmath.Vector3d |
unrotateVector(javax.vecmath.Vector3d v)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public javax.vecmath.Vector3d pos
public javax.vecmath.Vector3d center
Constructor Detail |
---|
public EvGLCamera()
public EvGLCamera(EvGLCamera cam)
Method Detail |
---|
public void toElement(org.jdom.Element e)
public void fromElement(org.jdom.Element e)
public javax.vecmath.Vector3d rotateVector(double x, double y, double z)
public javax.vecmath.Vector3d rotateVector(javax.vecmath.Vector3d v)
public javax.vecmath.Vector3d unrotateVector(javax.vecmath.Vector3d v)
public void moveCamera(double x, double y, double z)
public void rotateCamera(double x, double y, double z)
public void setRotation(double x, double y, double z)
public void setRotationMatrix(javax.vecmath.Matrix3d mat)
public javax.vecmath.Matrix3d getRotationMatrixReadOnly()
public void transformGL(javax.media.opengl.GL2 gl)
public void unrotateGL(javax.media.opengl.GL2 gl)
public javax.vecmath.Vector3d transformPoint(javax.vecmath.Vector3d v)
public void rotateCenter(double x, double y, double z)
public void center(double dist)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |