VTK-m  2.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
vtkm::rendering::raytracing::Camera Class Reference

#include <Camera.h>

Public Member Functions

VTKM_CONT Camera ()
 
VTKM_CONT ~Camera ()
 
std::string ToString ()
 
VTKM_CONT void SetParameters (const vtkm::rendering::Camera &camera, const vtkm::Int32 width, const vtkm::Int32 height)
 
VTKM_CONT void SetParameters (const vtkm::rendering::Camera &camera, vtkm::rendering::CanvasRayTracer &canvas)
 
VTKM_CONT void SetHeight (const vtkm::Int32 &height)
 
VTKM_CONT void WriteSettingsToLog ()
 
VTKM_CONT vtkm::Int32 GetHeight () const
 
VTKM_CONT void SetWidth (const vtkm::Int32 &width)
 
VTKM_CONT vtkm::Int32 GetWidth () const
 
VTKM_CONT vtkm::Int32 GetSubsetWidth () const
 
VTKM_CONT vtkm::Int32 GetSubsetHeight () const
 
VTKM_CONT void SetZoom (const vtkm::Float32 &zoom)
 
VTKM_CONT vtkm::Float32 GetZoom () const
 
VTKM_CONT void SetFieldOfView (const vtkm::Float32 &degrees)
 
VTKM_CONT vtkm::Float32 GetFieldOfView () const
 
VTKM_CONT void SetUp (const vtkm::Vec3f_32 &up)
 
VTKM_CONT void SetPosition (const vtkm::Vec3f_32 &position)
 
VTKM_CONT vtkm::Vec3f_32 GetPosition () const
 
VTKM_CONT vtkm::Vec3f_32 GetUp () const
 
VTKM_CONT void SetLookAt (const vtkm::Vec3f_32 &lookAt)
 
VTKM_CONT vtkm::Vec3f_32 GetLookAt () const
 
VTKM_CONT void ResetIsViewDirty ()
 
VTKM_CONT bool GetIsViewDirty () const
 
VTKM_CONT void CreateRays (Ray< vtkm::Float32 > &rays, vtkm::Bounds bounds)
 
VTKM_CONT void CreateRays (Ray< vtkm::Float64 > &rays, vtkm::Bounds bounds)
 
VTKM_CONT void GetPixelData (const vtkm::cont::CoordinateSystem &coords, vtkm::Int32 &activePixels, vtkm::Float32 &aveRayDistance)
 
template<typename Precision >
VTKM_CONT void CreateRaysImpl (Ray< Precision > &rays, const vtkm::Bounds boundingBox)
 
void CreateDebugRay (vtkm::Vec2i_32 pixel, Ray< vtkm::Float32 > &rays)
 
void CreateDebugRay (vtkm::Vec2i_32 pixel, Ray< vtkm::Float64 > &rays)
 
bool operator== (const Camera &other) const
 

Private Member Functions

template<typename Precision >
void CreateDebugRayImp (vtkm::Vec2i_32 pixel, Ray< Precision > &rays)
 
VTKM_CONT void FindSubset (const vtkm::Bounds &bounds)
 
template<typename Precision >
VTKM_CONT void UpdateDimensions (Ray< Precision > &rays, const vtkm::Bounds &boundingBox, bool ortho2D)
 

Private Attributes

vtkm::Int32 Height
 
vtkm::Int32 Width
 
vtkm::Int32 SubsetWidth
 
vtkm::Int32 SubsetHeight
 
vtkm::Int32 SubsetMinX
 
vtkm::Int32 SubsetMinY
 
vtkm::Float32 FovX
 
vtkm::Float32 FovY
 
vtkm::Float32 Zoom
 
bool IsViewDirty
 
vtkm::Vec3f_32 Look
 
vtkm::Vec3f_32 Up
 
vtkm::Vec3f_32 LookAt
 
vtkm::Vec3f_32 Position
 
vtkm::rendering::Camera CameraView
 
vtkm::Matrix< vtkm::Float32, 4, 4 > ViewProjectionMat
 

Constructor & Destructor Documentation

◆ Camera()

VTKM_CONT vtkm::rendering::raytracing::Camera::Camera ( )

◆ ~Camera()

VTKM_CONT vtkm::rendering::raytracing::Camera::~Camera ( )

Member Function Documentation

◆ CreateDebugRay() [1/2]

void vtkm::rendering::raytracing::Camera::CreateDebugRay ( vtkm::Vec2i_32  pixel,
Ray< vtkm::Float32 > &  rays 
)

◆ CreateDebugRay() [2/2]

void vtkm::rendering::raytracing::Camera::CreateDebugRay ( vtkm::Vec2i_32  pixel,
Ray< vtkm::Float64 > &  rays 
)

◆ CreateDebugRayImp()

template<typename Precision >
void vtkm::rendering::raytracing::Camera::CreateDebugRayImp ( vtkm::Vec2i_32  pixel,
Ray< Precision > &  rays 
)
private

◆ CreateRays() [1/2]

VTKM_CONT void vtkm::rendering::raytracing::Camera::CreateRays ( Ray< vtkm::Float32 > &  rays,
vtkm::Bounds  bounds 
)

◆ CreateRays() [2/2]

VTKM_CONT void vtkm::rendering::raytracing::Camera::CreateRays ( Ray< vtkm::Float64 > &  rays,
vtkm::Bounds  bounds 
)

◆ CreateRaysImpl()

template<typename Precision >
VTKM_CONT void vtkm::rendering::raytracing::Camera::CreateRaysImpl ( Ray< Precision > &  rays,
const vtkm::Bounds  boundingBox 
)

◆ FindSubset()

VTKM_CONT void vtkm::rendering::raytracing::Camera::FindSubset ( const vtkm::Bounds bounds)
private

◆ GetFieldOfView()

VTKM_CONT vtkm::Float32 vtkm::rendering::raytracing::Camera::GetFieldOfView ( ) const

◆ GetHeight()

VTKM_CONT vtkm::Int32 vtkm::rendering::raytracing::Camera::GetHeight ( ) const

◆ GetIsViewDirty()

VTKM_CONT bool vtkm::rendering::raytracing::Camera::GetIsViewDirty ( ) const

◆ GetLookAt()

VTKM_CONT vtkm::Vec3f_32 vtkm::rendering::raytracing::Camera::GetLookAt ( ) const

◆ GetPixelData()

VTKM_CONT void vtkm::rendering::raytracing::Camera::GetPixelData ( const vtkm::cont::CoordinateSystem coords,
vtkm::Int32 activePixels,
vtkm::Float32 aveRayDistance 
)

◆ GetPosition()

VTKM_CONT vtkm::Vec3f_32 vtkm::rendering::raytracing::Camera::GetPosition ( ) const

◆ GetSubsetHeight()

VTKM_CONT vtkm::Int32 vtkm::rendering::raytracing::Camera::GetSubsetHeight ( ) const

◆ GetSubsetWidth()

VTKM_CONT vtkm::Int32 vtkm::rendering::raytracing::Camera::GetSubsetWidth ( ) const

◆ GetUp()

VTKM_CONT vtkm::Vec3f_32 vtkm::rendering::raytracing::Camera::GetUp ( ) const

◆ GetWidth()

VTKM_CONT vtkm::Int32 vtkm::rendering::raytracing::Camera::GetWidth ( ) const

◆ GetZoom()

VTKM_CONT vtkm::Float32 vtkm::rendering::raytracing::Camera::GetZoom ( ) const

◆ operator==()

bool vtkm::rendering::raytracing::Camera::operator== ( const Camera other) const

◆ ResetIsViewDirty()

VTKM_CONT void vtkm::rendering::raytracing::Camera::ResetIsViewDirty ( )

◆ SetFieldOfView()

VTKM_CONT void vtkm::rendering::raytracing::Camera::SetFieldOfView ( const vtkm::Float32 degrees)

◆ SetHeight()

VTKM_CONT void vtkm::rendering::raytracing::Camera::SetHeight ( const vtkm::Int32 height)

◆ SetLookAt()

VTKM_CONT void vtkm::rendering::raytracing::Camera::SetLookAt ( const vtkm::Vec3f_32 lookAt)

◆ SetParameters() [1/2]

VTKM_CONT void vtkm::rendering::raytracing::Camera::SetParameters ( const vtkm::rendering::Camera camera,
const vtkm::Int32  width,
const vtkm::Int32  height 
)

◆ SetParameters() [2/2]

VTKM_CONT void vtkm::rendering::raytracing::Camera::SetParameters ( const vtkm::rendering::Camera camera,
vtkm::rendering::CanvasRayTracer canvas 
)

◆ SetPosition()

VTKM_CONT void vtkm::rendering::raytracing::Camera::SetPosition ( const vtkm::Vec3f_32 position)

◆ SetUp()

VTKM_CONT void vtkm::rendering::raytracing::Camera::SetUp ( const vtkm::Vec3f_32 up)

◆ SetWidth()

VTKM_CONT void vtkm::rendering::raytracing::Camera::SetWidth ( const vtkm::Int32 width)

◆ SetZoom()

VTKM_CONT void vtkm::rendering::raytracing::Camera::SetZoom ( const vtkm::Float32 zoom)

◆ ToString()

std::string vtkm::rendering::raytracing::Camera::ToString ( )

◆ UpdateDimensions()

template<typename Precision >
VTKM_CONT void vtkm::rendering::raytracing::Camera::UpdateDimensions ( Ray< Precision > &  rays,
const vtkm::Bounds boundingBox,
bool  ortho2D 
)
private

◆ WriteSettingsToLog()

VTKM_CONT void vtkm::rendering::raytracing::Camera::WriteSettingsToLog ( )

Member Data Documentation

◆ CameraView

vtkm::rendering::Camera vtkm::rendering::raytracing::Camera::CameraView
private

◆ FovX

vtkm::Float32 vtkm::rendering::raytracing::Camera::FovX
private

◆ FovY

vtkm::Float32 vtkm::rendering::raytracing::Camera::FovY
private

◆ Height

vtkm::Int32 vtkm::rendering::raytracing::Camera::Height
private

◆ IsViewDirty

bool vtkm::rendering::raytracing::Camera::IsViewDirty
private

◆ Look

vtkm::Vec3f_32 vtkm::rendering::raytracing::Camera::Look
private

◆ LookAt

vtkm::Vec3f_32 vtkm::rendering::raytracing::Camera::LookAt
private

◆ Position

vtkm::Vec3f_32 vtkm::rendering::raytracing::Camera::Position
private

◆ SubsetHeight

vtkm::Int32 vtkm::rendering::raytracing::Camera::SubsetHeight
private

◆ SubsetMinX

vtkm::Int32 vtkm::rendering::raytracing::Camera::SubsetMinX
private

◆ SubsetMinY

vtkm::Int32 vtkm::rendering::raytracing::Camera::SubsetMinY
private

◆ SubsetWidth

vtkm::Int32 vtkm::rendering::raytracing::Camera::SubsetWidth
private

◆ Up

vtkm::Vec3f_32 vtkm::rendering::raytracing::Camera::Up
private

◆ ViewProjectionMat

vtkm::Matrix<vtkm::Float32, 4, 4> vtkm::rendering::raytracing::Camera::ViewProjectionMat
private

◆ Width

vtkm::Int32 vtkm::rendering::raytracing::Camera::Width
private

◆ Zoom

vtkm::Float32 vtkm::rendering::raytracing::Camera::Zoom
private

The documentation for this class was generated from the following file: