|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vtk.vtkObjectBase vtk.vtkObject vtk.vtkCamera
vtkCamera - a virtual camera for 3D rendering. vtkCamera is a virtual camera for 3D rendering. It provides methods to position and orient the view point and focal point. Convenience methods for moving about the focal point also are provided. More complex methods allow the manipulation of the computer graphics model including view up vector, clipping planes, and camera perspective. JavaBean wrapper for vtkCamera object.
Field Summary | |
protected java.beans.PropertyChangeSupport |
changes
|
Fields inherited from class vtk.vtkObjectBase |
vtkId |
Constructor Summary | |
|
vtkCamera()
|
protected |
vtkCamera(int dmy)
|
Method Summary | |
void |
applyTransform(vtkTransform id0)
Apply a transform to the camera. |
void |
azimuth(double id0)
Rotate the camera about the view up vector centered at the focal point. |
void |
computeViewPlaneNormal()
This method is called automatically whenever necessary, it should never be used outside of vtkCamera.cxx. |
void |
dolly(double id0)
Move the position of the camera along the direction of projection. |
void |
elevation(double id0)
Rotate the camera about the cross product of the direction of projection and the view up vector centered on the focal point. |
vtkMatrix4x4 |
getCameraLightTransformMatrix()
Returns a transformation matrix for a coordinate frame attached to the camera, where the camera is located at (0, 0, 1) looking at the focal point at (0, 0, 0), with up being (0, 1, 0). |
java.lang.String |
getClassName()
Return the class name as a string. |
double[] |
getClippingRange()
Set/Get the location of the near and far clipping planes along the direction of projection. |
vtkMatrix4x4 |
getCompositePerspectiveTransformMatrix(double id0,
double id1,
double id2)
Return the concatenation of the ViewTransform and the PerspectiveTransform. |
double[] |
getDirectionOfProjection()
Get the vector in the direction from the camera position to the focal point. |
double |
getDistance()
Move the focal point so that it is the specified distance from the camera position. |
double |
getEyeAngle()
Set/Get the separation between eyes (in degrees). |
double |
getFocalDisk()
Set the size of the cameras lens in world coordinates. |
double[] |
getFocalPoint()
Set/Get the focal of the camera in world coordinates. |
void |
getFrustumPlanes(double id0,
double[] id1)
Get the plane equations that bound the view frustum. |
double[] |
getOrientation()
Get the orientation of the camera. |
double[] |
getOrientationWXYZ()
Get the orientation of the camera. |
int |
getParallelProjection()
Set/Get the value of the ParallelProjection instance variable. |
double |
getParallelScale()
Set/Get the scaling used for a parallel projection, i.e. the height of the viewport in world-coordinate distances. |
vtkMatrix4x4 |
getPerspectiveTransformMatrix(double id0,
double id1,
double id2)
Return the perspective transform matrix, which converts from camera coordinates to viewport coordinates. |
double[] |
getPosition()
Set/Get the position of the camera in world coordinates. |
double |
getRoll()
Set the roll angle of the camera about the direction of projection. |
double |
getThickness()
Set the distance between clipping planes. |
vtkCamera |
getThisCamera()
|
int |
getUseHorizontalViewAngle()
Set/Get the value of the UseHorizontalViewAngle instance variable. |
vtkHomogeneousTransform |
getUserTransform()
In addition to the instance variables such as position and orientation, you can add an additional transformation for your own use. |
double |
getViewAngle()
Set/Get the camera view angle, which is the angular height of the camera view measured in degrees. |
int |
getViewingRaysMTime()
Return the MTime that concerns recomputing the view rays of the camera. |
double[] |
getViewPlaneNormal()
Get the ViewPlaneNormal. |
double[] |
getViewShear()
Set/get the shear transform of the viewing frustum. |
vtkMatrix4x4 |
getViewTransformMatrix()
Return the matrix of the view transform. |
vtkTransform |
getViewTransformObject()
|
double[] |
getViewUp()
Set/Get the view up direction for the camera. |
double[] |
getWindowCenter()
Set/Get the center of the window in viewport coordinates. |
int |
isA(java.lang.String id0)
Return 1 if this class is the same type of (or a subclass of) the named class. |
void |
orthogonalizeViewUp()
Recompute the ViewUp vector to force it to be perpendicular to camera->focalpoint vector. |
void |
parallelProjectionOff()
Set/Get the value of the ParallelProjection instance variable. |
void |
parallelProjectionOn()
Set/Get the value of the ParallelProjection instance variable. |
void |
pitch(double id0)
Rotate the focal point about the cross product of the view up vector and the direction of projection, centered at the camera's position. |
void |
render(vtkRenderer id0)
This method causes the camera to set up whatever is required for viewing the scene. |
void |
roll(double id0)
Rotate the camera about the direction of projection. |
void |
setClippingRange(double[] id0)
Set/Get the location of the near and far clipping planes along the direction of projection. |
void |
setClippingRange(double id0,
double id1)
Set/Get the location of the near and far clipping planes along the direction of projection. |
void |
setDistance(double id0)
Move the focal point so that it is the specified distance from the camera position. |
void |
setEyeAngle(double id0)
Set/Get the separation between eyes (in degrees). |
void |
setFocalDisk(double id0)
Set the size of the cameras lens in world coordinates. |
void |
setFocalPoint(double[] id0)
Set/Get the focal of the camera in world coordinates. |
void |
setFocalPoint(double id0,
double id1,
double id2)
Set/Get the focal of the camera in world coordinates. |
void |
setObliqueAngles(double id0,
double id1)
Get/Set the oblique viewing angles. |
void |
setParallelProjection(int id0)
Set/Get the value of the ParallelProjection instance variable. |
void |
setParallelScale(double id0)
Set/Get the scaling used for a parallel projection, i.e. the height of the viewport in world-coordinate distances. |
void |
setPosition(double[] id0)
Set/Get the position of the camera in world coordinates. |
void |
setPosition(double id0,
double id1,
double id2)
Set/Get the position of the camera in world coordinates. |
void |
setRoll(double id0)
Set the roll angle of the camera about the direction of projection. |
void |
setThickness(double id0)
Set the distance between clipping planes. |
void |
setUseHorizontalViewAngle(int id0)
Set/Get the value of the UseHorizontalViewAngle instance variable. |
void |
setUserTransform(vtkHomogeneousTransform id0)
In addition to the instance variables such as position and orientation, you can add an additional transformation for your own use. |
void |
setViewAngle(double id0)
Set/Get the camera view angle, which is the angular height of the camera view measured in degrees. |
void |
setViewPlaneNormal(double[] id0)
These methods have been deprecated. |
void |
setViewPlaneNormal(double id0,
double id1,
double id2)
These methods have been deprecated. |
void |
setViewShear(double[] id0)
Set/get the shear transform of the viewing frustum. |
void |
setViewShear(double id0,
double id1,
double id2)
Set/get the shear transform of the viewing frustum. |
void |
setViewUp(double[] id0)
Set/Get the view up direction for the camera. |
void |
setViewUp(double id0,
double id1,
double id2)
Set/Get the view up direction for the camera. |
void |
setWindowCenter(double id0,
double id1)
Set/Get the center of the window in viewport coordinates. |
void |
updateViewport(vtkRenderer id0)
|
void |
useHorizontalViewAngleOff()
Set/Get the value of the UseHorizontalViewAngle instance variable. |
void |
useHorizontalViewAngleOn()
Set/Get the value of the UseHorizontalViewAngle instance variable. |
void |
viewingRaysModified()
Mark that something has changed which requires the view rays to be recomputed. |
protected void |
VTKCastInit()
|
void |
VTKInit()
|
void |
yaw(double id0)
Rotate the focal point about the view up vector centered at the camera's position. |
void |
zoom(double id0)
In perspective mode, decrease the view angle by the specified factor. |
Methods inherited from class vtk.vtkObject |
AddObserver, breakOnError, debugOff, debugOn, getDebug, getGlobalWarningDisplay, getMTime, getThisObject, globalWarningDisplayOff, globalWarningDisplayOn, hasObserver, hasObserver, invokeEvent, invokeEvent, modified, Print, PrintRevisions, register, removeObserver, removeObservers, removeObservers, setDebug, setGlobalWarningDisplay, unRegister |
Methods inherited from class vtk.vtkObjectBase |
addPropertyChangeListener, finalize, getReferenceCount, getThisObjectBase, isTypeOf, removePropertyChangeListener, setReferenceCount, VTKDelete |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.beans.PropertyChangeSupport changes
Constructor Detail |
public vtkCamera()
protected vtkCamera(int dmy)
Method Detail |
public vtkCamera getThisCamera()
public java.lang.String getClassName()
vtkObjectBase
getClassName
in class vtkObject
public int isA(java.lang.String id0)
vtkObjectBase
isA
in class vtkObject
public void setPosition(double id0, double id1, double id2)
public void setPosition(double[] id0)
public double[] getPosition()
public void setFocalPoint(double id0, double id1, double id2)
public void setFocalPoint(double[] id0)
public double[] getFocalPoint()
public void setViewUp(double id0, double id1, double id2)
public void setViewUp(double[] id0)
public double[] getViewUp()
public void orthogonalizeViewUp()
public void setDistance(double id0)
public double getDistance()
public double[] getDirectionOfProjection()
public void dolly(double id0)
public void setRoll(double id0)
public double getRoll()
public void roll(double id0)
public void azimuth(double id0)
public void yaw(double id0)
public void elevation(double id0)
public void pitch(double id0)
public void setParallelProjection(int id0)
public int getParallelProjection()
public void parallelProjectionOn()
public void parallelProjectionOff()
public void setUseHorizontalViewAngle(int id0)
public int getUseHorizontalViewAngle()
public void useHorizontalViewAngleOn()
public void useHorizontalViewAngleOff()
public void setViewAngle(double id0)
public double getViewAngle()
public void setParallelScale(double id0)
public double getParallelScale()
public void zoom(double id0)
public void setClippingRange(double id0, double id1)
public void setClippingRange(double[] id0)
public double[] getClippingRange()
public void setThickness(double id0)
public double getThickness()
public void setWindowCenter(double id0, double id1)
public double[] getWindowCenter()
public void setObliqueAngles(double id0, double id1)
public void applyTransform(vtkTransform id0)
public double[] getViewPlaneNormal()
public void setViewShear(double id0, double id1, double id2)
public void setViewShear(double[] id0)
public double[] getViewShear()
public void setEyeAngle(double id0)
public double getEyeAngle()
public void setFocalDisk(double id0)
public double getFocalDisk()
public vtkMatrix4x4 getViewTransformMatrix()
public vtkMatrix4x4 getPerspectiveTransformMatrix(double id0, double id1, double id2)
public vtkMatrix4x4 getCompositePerspectiveTransformMatrix(double id0, double id1, double id2)
public void setUserTransform(vtkHomogeneousTransform id0)
public vtkHomogeneousTransform getUserTransform()
public void render(vtkRenderer id0)
public int getViewingRaysMTime()
public void viewingRaysModified()
public void getFrustumPlanes(double id0, double[] id1)
public double[] getOrientation()
public double[] getOrientationWXYZ()
public void setViewPlaneNormal(double id0, double id1, double id2)
public void setViewPlaneNormal(double[] id0)
public void computeViewPlaneNormal()
public vtkMatrix4x4 getCameraLightTransformMatrix()
public void updateViewport(vtkRenderer id0)
public vtkTransform getViewTransformObject()
public void VTKInit()
VTKInit
in class vtkObject
protected void VTKCastInit()
VTKCastInit
in class vtkObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |