public class Ilv3DCamera extends Object
Ilv3DView
class to display the terrain using these parameters.Constructor and Description |
---|
Ilv3DCamera()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
double |
getAspectRatio()
Returns the aspect ratio of this camera, as used in OpenGL.
|
double |
getFarClip()
Returns the far clipping plane distance of this camera, as used in OpenGL.
|
double |
getFovY()
Returns the vertical field of view of this camera, as used in OpenGL.
|
Ilv3DDoubleVector |
getLookAtPoint()
Returns the target point of this camera.
|
void |
getMatrix(Ilv3DDoubleVector localOrigin,
Ilv3DFloatMatrix dest)
Takes the local origin in double-precision coordinates and
returns a camera (or "modelview") matrix containing the orientation
and the position in single-precision coordinates.
|
double |
getNearClip()
Returns the near clipping plane distance of this camera, as used in OpenGL.
|
Ilv3DRotation |
getOrientation()
Returns the current rotation matrix of this camera.
|
Ilv3DDoubleVector |
getPosition()
Returns the position of the camera
|
Ilv3DFloatMatrix |
getProjMat()
Returns the camera matrix.
|
void |
getViewingMatrix(Ilv3DDoubleVector localOrigin,
Ilv3DFloatMatrix dest)
Takes a local origin in double-precision coordinates (specifying
the origin for a world-coordinate matrix) and returns a full
viewing matrix (including the projection and modelview matrices)
in single-precision coordinates.
|
void |
lookAt(Ilv3DDoubleVector lookAtPoint1,
Ilv3DFloatVector upVector)
Modifies the camera orientation so that it faces the specified point.
|
void |
setAspectRatio(double aspect)
Sets the aspect ratio of this camera, as used in OpenGL.
|
void |
setFarClip(double farClip)
Sets the far clipping plane distance of this camera, as used in OpenGL.
|
void |
setFovY(double fov)
Sets the vertical field of view of this camera, as used in OpenGL.
|
void |
setNearClip(double nearClip)
Sets the near clipping plane distance of this camera, as used in OpenGL.
|
void |
setPosition(Ilv3DDoubleVector position)
Sets the position of the camera
|
public Ilv3DRotation getOrientation()
public void setPosition(Ilv3DDoubleVector position)
position
- The position of this camera in 3D model space.public Ilv3DDoubleVector getPosition()
public void setFovY(double fov)
fov
- The field of view of the camera.public double getFovY()
public void setAspectRatio(double aspect)
aspect
- The aspect ratio of the camera in degrees.public double getAspectRatio()
public void setNearClip(double nearClip)
nearClip
- The near clipping plane distance of the camera (in 3D model space).public double getNearClip()
public void setFarClip(double farClip)
farClip
- The far clipping plane distance of the camera (in 3D model space).public double getFarClip()
public void lookAt(Ilv3DDoubleVector lookAtPoint1, Ilv3DFloatVector upVector)
lookAtPoint1
- The target point to look at.upVector
- The vector defining the camera roll.public void getMatrix(Ilv3DDoubleVector localOrigin, Ilv3DFloatMatrix dest)
localOrigin
- The local origin (double-precision coordinates).dest
- The camera (or "modelview") matrix.public void getViewingMatrix(Ilv3DDoubleVector localOrigin, Ilv3DFloatMatrix dest)
localOrigin
- The local origin (double-precision coordinates).dest
- The camera (or "modelview") matrixpublic Ilv3DFloatMatrix getProjMat()
public Ilv3DDoubleVector getLookAtPoint()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.