FormIt C++ API  v23.0.0 (2023.0.0)
FormIt::CameraData Class Reference

Description

#include <FormItCoreTypes.h>

Public Member Functions

 CameraData ()
 
 CameraData (const WSM::CameraData &cameraData)
 
 CameraData (const 1::Transform3d &transf, FormIt::CameraProjectionType projectionType=FormIt::CameraProjectionType::PERSPECTIVE, double fov=0.502, double distToTarget=0.0)
 
bool operator== (const CameraData &aOther) const
 
bool operator!= (const CameraData &aOther) const
 
double ComputeHorizontalFOV (int nScreenWidth, int nScreenHeight) const
 mFOV is a half angle field of view in radians that could be either horizontal or vertical depending on the screen height and width. More...
 

Public Attributes

double mPosX
 
double mPosY
 
double mPosZ
 
double mRotX
 
double mRotY
 
double mRotZ
 
double mRotW
 
FormIt::CameraProjectionType mProjectionType
 
double mDistanceToTarget
 
double mFOV
 
double mOrthoWidth = 0.0
 The width and height of the view when orthogonal. More...
 
double mOrthoHeight = 0.0
 

Constructor & Destructor Documentation

FormIt::CameraData::CameraData ( )
inline
FormIt::CameraData::CameraData ( const WSM::CameraData &  cameraData)
FormIt::CameraData::CameraData ( const 1::Transform3d &  transf,
FormIt::CameraProjectionType  projectionType = FormIt::CameraProjectionType::PERSPECTIVE,
double  fov = 0.502,
double  distToTarget = 0.0 
)

Member Function Documentation

double FormIt::CameraData::ComputeHorizontalFOV ( int  nScreenWidth,
int  nScreenHeight 
) const

mFOV is a half angle field of view in radians that could be either horizontal or vertical depending on the screen height and width.

This method converts to a standard full horizontal field of view in radians.

bool FormIt::CameraData::operator!= ( const CameraData aOther) const
inline
bool FormIt::CameraData::operator== ( const CameraData aOther) const
inline

Member Data Documentation

double FormIt::CameraData::mDistanceToTarget
double FormIt::CameraData::mFOV
double FormIt::CameraData::mOrthoHeight = 0.0
double FormIt::CameraData::mOrthoWidth = 0.0

The width and height of the view when orthogonal.

Note these are only used to return data for the camera during export. These will likely need to be fully implemented when we fix orthographic views.

double FormIt::CameraData::mPosX
double FormIt::CameraData::mPosY
double FormIt::CameraData::mPosZ
FormIt::CameraProjectionType FormIt::CameraData::mProjectionType
double FormIt::CameraData::mRotW
double FormIt::CameraData::mRotX
double FormIt::CameraData::mRotY
double FormIt::CameraData::mRotZ

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