|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.visioglobe.libVisioDevKit.VgICamera
public class VgICamera
This interface is used to retreive and control the camera parameters. Those parameters are the camera's position, heading and pitch. The position is expressed in "scene" coordinates (See VgICamera::getPosition and VgICamera::setPosition for more information). The heading is the angle with the North direction (See VgICamera::setHeading for more information). The pitch is the angle with the tangent plane (See VgICamera::setPitch for more information).
Field Summary | |
---|---|
protected boolean |
swigCMemOwn
|
Constructor Summary | |
---|---|
VgICamera(long cPtr,
boolean cMemoryOwn)
|
Method Summary | |
---|---|
void |
delete()
|
protected void |
finalize()
|
static long |
getCPtr(VgICamera obj)
|
double |
getFovX()
Gets the camera's horizontal field of view. |
double |
getFovY()
Gets the camera's vertical field of view. |
double |
getHeading()
Retrieves the current camera's heading (in degrees). |
double |
getPitch()
Retrieves the current camera's pitch (in degrees). |
VgPosition |
getPosition()
Retrieves the current camera's position. |
VgIViewPoint |
getViewpoint()
Gets the camera viewpoint. |
VgIViewPoint |
getViewpointFromPositions(VgPositionVector pPositions,
long pTop,
long pBottom,
long pLeft,
long pRight)
Computes a viewpoint using the current pitch and heading, at which all given positions are visible |
VgIViewPoint |
getViewpointFromPositions(VgPositionVector pPositions,
long pTop,
long pBottom,
long pLeft,
long pRight,
double pPitch,
double pHeading)
Computes a viewpoint using the current pitch and heading, at which all given positions are visible |
boolean |
pickGeographicPoint(double pX,
double pY,
VgPosition pPosition)
Casts a ray from a point on the screen in the 3D scene. |
void |
projectOnScreen(VgPosition pPosition,
double[] pXScreen,
double[] pYScreen)
|
void |
projectOnScreen(VgPosition pPosition,
double[] pXScreen,
double[] pYScreen,
double[] pZScreen)
Projects a position on the screen. |
void |
setFovX(double pFovX)
|
void |
setFovX(double pFovX,
double pRatio)
Sets the camera's field of view. |
void |
setHeading(double pHeadingInDegrees)
Sets the camera's heading (0 for north, increasing value start to east). |
void |
setPitch(double pPitchInDegrees)
Sets the camera's pitch. |
void |
setPosition(VgPosition pPosition)
Sets the camera's position. |
void |
setViewpoint(VgIViewPoint pViewpoint)
Sets the camera viewpoint. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean swigCMemOwn
Constructor Detail |
---|
public VgICamera(long cPtr, boolean cMemoryOwn)
Method Detail |
---|
public static long getCPtr(VgICamera obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public void setPosition(VgPosition pPosition)
pPosition
- The position where the camera must be placed.public void setHeading(double pHeadingInDegrees)
pHeadingInDegrees
- Heading angle, expressed in degrees.public void setPitch(double pPitchInDegrees)
pPitchInDegrees
- Pitch angle, expressed in degrees.public VgPosition getPosition()
public double getHeading()
public double getPitch()
public void setViewpoint(VgIViewPoint pViewpoint)
pViewpoint
- The viewpoint to set.public VgIViewPoint getViewpoint()
public void projectOnScreen(VgPosition pPosition, double[] pXScreen, double[] pYScreen, double[] pZScreen)
pPosition
- the geographic position to be projected on the screen.pXScreen
- the projected X coordinate on the screen. This value is normalized between 0 and 1, where 0 is on the left of the screenpYScreen
- the projected Y coordinate on the screen. This value is normalized between 0 and 1, where 0 is on the bottom of the screen.pZScreen
- the projected Z coordinate on the screen. If the projected point is
in the view frustum the value is between 0 and 1.public void projectOnScreen(VgPosition pPosition, double[] pXScreen, double[] pYScreen)
public boolean pickGeographicPoint(double pX, double pY, VgPosition pPosition)
pX
- the normalized X screen coordinate (0 is on the left of the screen, 1 on the right).pY
- the normalized Y screen coordinate (0 is on the bottom of the screen, 1 on the top).pPosition
- the geographic position if an intersection has been found. Expressed in the scene's SRS
public VgIViewPoint getViewpointFromPositions(VgPositionVector pPositions, long pTop, long pBottom, long pLeft, long pRight, double pPitch, double pHeading)
pPositions
- List of positions to see.pTop
- The top padding area's height to use (in pixels)pBottom
- The bottom padding area's height to use (in pixels)pLeft
- The left padding area's width to use (in pixels)pRight
- The right padding area's width to use (in pixels)pPitch
- The pitch to use for computation if "not-a-number" current pitch will be used.pHeading
- The pitch to use for computation if "not-a-number" current heading will be used.public VgIViewPoint getViewpointFromPositions(VgPositionVector pPositions, long pTop, long pBottom, long pLeft, long pRight)
pPositions
- List of positions to see.pTop
- The top padding area's height to use (in pixels)pBottom
- The bottom padding area's height to use (in pixels)pLeft
- The left padding area's width to use (in pixels)pRight
- The right padding area's width to use (in pixels)public double getFovX()
public double getFovY()
public void setFovX(double pFovX, double pRatio)
pFovX
- The new field of view angle in degrees (will be clamped to reasonable values).pRatio
- Optional aspect ratio (if negative, ratio will be computed from screen resolution).public void setFovX(double pFovX)
|
VisioDevKit 2.0, Visioglobe® 2013 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |