|
VTKM_CONT | Camera (Mode vtype=Camera::Mode::ThreeD) |
|
vtkm::Matrix< vtkm::Float32, 4, 4 > | CreateViewMatrix () const |
|
vtkm::Matrix< vtkm::Float32, 4, 4 > | CreateProjectionMatrix (vtkm::Id screenWidth, vtkm::Id screenHeight) const |
|
void | GetRealViewport (vtkm::Id screenWidth, vtkm::Id screenHeight, vtkm::Float32 &left, vtkm::Float32 &right, vtkm::Float32 &bottom, vtkm::Float32 &top) const |
|
VTKM_CONT vtkm::rendering::Camera::Mode | GetMode () const |
| The mode of the camera (2D or 3D). More...
|
|
VTKM_CONT void | SetMode (vtkm::rendering::Camera::Mode mode) |
|
VTKM_CONT void | SetModeTo3D () |
|
VTKM_CONT void | SetModeTo2D () |
|
VTKM_CONT vtkm::Range | GetClippingRange () const |
| The clipping range of the camera. More...
|
|
VTKM_CONT void | SetClippingRange (vtkm::Float32 nearPlane, vtkm::Float32 farPlane) |
|
VTKM_CONT void | SetClippingRange (vtkm::Float64 nearPlane, vtkm::Float64 farPlane) |
|
VTKM_CONT void | SetClippingRange (const vtkm::Range &nearFarRange) |
|
VTKM_CONT void | GetViewport (vtkm::Float32 &left, vtkm::Float32 &right, vtkm::Float32 &bottom, vtkm::Float32 &top) const |
| The viewport of the projection. More...
|
|
VTKM_CONT void | GetViewport (vtkm::Float64 &left, vtkm::Float64 &right, vtkm::Float64 &bottom, vtkm::Float64 &top) const |
|
VTKM_CONT vtkm::Bounds | GetViewport () const |
|
VTKM_CONT void | SetViewport (vtkm::Float32 left, vtkm::Float32 right, vtkm::Float32 bottom, vtkm::Float32 top) |
|
VTKM_CONT void | SetViewport (vtkm::Float64 left, vtkm::Float64 right, vtkm::Float64 bottom, vtkm::Float64 top) |
|
VTKM_CONT void | SetViewport (const vtkm::Bounds &viewportBounds) |
|
const VTKM_CONT vtkm::Vec3f_32 & | GetLookAt () const |
| The focal point the camera is looking at in 3D mode. More...
|
|
VTKM_CONT void | SetLookAt (const vtkm::Vec3f_32 &lookAt) |
|
VTKM_CONT void | SetLookAt (const vtkm::Vec< Float64, 3 > &lookAt) |
|
const VTKM_CONT vtkm::Vec3f_32 & | GetPosition () const |
| The spatial position of the camera in 3D mode. More...
|
|
VTKM_CONT void | SetPosition (const vtkm::Vec3f_32 &position) |
|
VTKM_CONT void | SetPosition (const vtkm::Vec3f_64 &position) |
|
const VTKM_CONT vtkm::Vec3f_32 & | GetViewUp () const |
| The up orientation of the camera in 3D mode. More...
|
|
VTKM_CONT void | SetViewUp (const vtkm::Vec3f_32 &viewUp) |
|
VTKM_CONT void | SetViewUp (const vtkm::Vec3f_64 &viewUp) |
|
VTKM_CONT vtkm::Float32 | GetXScale () const |
| The xscale of the camera. More...
|
|
VTKM_CONT void | SetXScale (vtkm::Float32 xscale) |
|
VTKM_CONT void | SetXScale (vtkm::Float64 xscale) |
|
VTKM_CONT vtkm::Float32 | GetFieldOfView () const |
| The field of view angle. More...
|
|
VTKM_CONT void | SetFieldOfView (vtkm::Float32 fov) |
|
VTKM_CONT void | SetFieldOfView (vtkm::Float64 fov) |
|
void | Pan (vtkm::Float32 dx, vtkm::Float32 dy) |
| Pans the camera. More...
|
|
VTKM_CONT void | Pan (vtkm::Float64 dx, vtkm::Float64 dy) |
| Pans the camera. More...
|
|
VTKM_CONT void | Pan (vtkm::Vec2f_32 direction) |
|
VTKM_CONT void | Pan (vtkm::Vec2f_64 direction) |
|
VTKM_CONT vtkm::Vec2f_32 | GetPan () const |
|
void | Zoom (vtkm::Float32 zoom) |
| Zooms the camera in or out. More...
|
|
VTKM_CONT void | Zoom (vtkm::Float64 zoom) |
|
VTKM_CONT vtkm::Float32 | GetZoom () const |
|
void | TrackballRotate (vtkm::Float32 startX, vtkm::Float32 startY, vtkm::Float32 endX, vtkm::Float32 endY) |
| Moves the camera as if a point was dragged along a sphere. More...
|
|
VTKM_CONT void | TrackballRotate (vtkm::Float64 startX, vtkm::Float64 startY, vtkm::Float64 endX, vtkm::Float64 endY) |
|
void | ResetToBounds (const vtkm::Bounds &dataBounds) |
| Set up the camera to look at geometry. More...
|
|
void | ResetToBounds (const vtkm::Bounds &dataBounds, vtkm::Float64 dataViewPadding) |
| Set up the camera to look at geometry with padding. More...
|
|
void | ResetToBounds (const vtkm::Bounds &dataBounds, vtkm::Float64 XDataViewPadding, vtkm::Float64 YDataViewPadding, vtkm::Float64 ZDataViewPadding) |
|
void | Roll (vtkm::Float32 angleDegrees) |
| Roll the camera. More...
|
|
VTKM_CONT void | Roll (vtkm::Float64 angleDegrees) |
|
void | Azimuth (vtkm::Float32 angleDegrees) |
| Rotate the camera about the view up vector centered at the focal point. More...
|
|
VTKM_CONT void | Azimuth (vtkm::Float64 angleDegrees) |
|
void | Elevation (vtkm::Float32 angleDegrees) |
| Rotate the camera vertically around the focal point. More...
|
|
VTKM_CONT void | Elevation (vtkm::Float64 angleDegrees) |
|
void | Dolly (vtkm::Float32 value) |
| Move the camera toward or away from the focal point. More...
|
|
VTKM_CONT void | Dolly (vtkm::Float64 value) |
|
VTKM_CONT void | GetViewRange2D (vtkm::Float32 &left, vtkm::Float32 &right, vtkm::Float32 &bottom, vtkm::Float32 &top) const |
| The viewable region in the x-y plane. More...
|
|
VTKM_CONT vtkm::Bounds | GetViewRange2D () const |
|
VTKM_CONT void | SetViewRange2D (vtkm::Float32 left, vtkm::Float32 right, vtkm::Float32 bottom, vtkm::Float32 top) |
|
VTKM_CONT void | SetViewRange2D (vtkm::Float64 left, vtkm::Float64 right, vtkm::Float64 bottom, vtkm::Float64 top) |
|
VTKM_CONT void | SetViewRange2D (const vtkm::Range &xRange, const vtkm::Range &yRange) |
|
VTKM_CONT void | SetViewRange2D (const vtkm::Bounds &viewRange) |
|
VTKM_CONT void | Print () const |
|
Move the camera toward or away from the focal point.
Specifically, this divides the camera's distance from the focal point (LookAt) by the given value. Use a value greater than one to dolly in toward the focal point, and use a value less than one to dolly-out away from the focal point.
Dolly only makes sense for 3D cameras, so the camera mode will be set to 3D when this method is called.
void vtkm::rendering::Camera::Elevation |
( |
vtkm::Float32 |
angleDegrees | ) |
|
Rotate the camera vertically around the focal point.
Specifically, this rotates the camera about the cross product of the negative of the direction of projection and the view up vector, using the focal point (LookAt) as the center of rotation. The angle is given in degrees.
Elevation only makes sense for 3D cameras, so the camera mode will be set to 3D when this method is called.
The clipping range of the camera.
The clipping range establishes the near and far clipping planes. These clipping planes are parallel to the viewing plane. The planes are defined by simply specifying the distance from the viewpoint. Renderers can (and usually do) remove any geometry closer than the near plane and further than the far plane.
For precision purposes, it is best to place the near plane as far away as possible (while still being in front of any geometry). The far plane usually has less effect on the depth precision, so can be placed well far behind the geometry.