37 #ifndef AGXGL_CAMERA_H 38 #define AGXGL_CAMERA_H 55 virtual void configure(agx::TiXmlElement *eCamera)
override;
57 static Camera *getActiveCamera();
68 void setViewPort(
unsigned width,
unsigned height);
75 void setProjectionMatrixAsOrtho(
double left,
double right,
76 double bottom,
double top,
77 double zNear,
double zFar);
80 void setProjectionMatrixAsFrustum(
double left,
double right,
81 double bottom,
double top,
82 double zNear,
double zFar);
87 void setProjectionMatrixAsPerspective(
double fovy,
double aspectRatio,
88 double zNear,
double zFar);
95 bool getProjectionMatrixAsOrtho(
double& left,
double& right,
96 double& bottom,
double& top,
97 double& zNear,
double& zFar)
const;
101 bool getProjectionMatrixAsFrustum(
double& left,
double& right,
102 double& bottom,
double& top,
103 double& zNear,
double& zFar)
const;
110 bool getProjectionMatrixAsPerspective(
double& fovy,
double& aspectRatio,
111 double& zNear,
double& zFar)
const;
147 static Camera *mainCamera();
148 static void setMainCamera(
Camera *camera);
agxData::Value::Event::CallbackType m_projectionCallback
agxData::ValueRefT< agx::Matrix4x4 > m_viewMatrix
agxData::ValueRefT< agx::Real > m_fovX
A component is an object containing other objects, enabling hierarchical structuring.
A model is an abstract representation of the class of an agx::Object.
Abstract representation of a value.
Matrix class for affine transformations.
#define AGXPHYSICS_EXPORT
#define AGX_DECLARE_POINTER_TYPES(type)
Representation of a name string.
Templated value-reference.
agxData::ValueRefT< agx::Matrix4x4 > m_projectionMatrix
void get(QuatT< T > &q) const
agxData::ValueRefT< agx::Matrix4x4 > m_modelViewProjectionMatrix
agxData::Value::Event::CallbackType m_transformCallback
Templated callback with one argument.
agxData::ValueRefT< agx::AffineMatrix4x4 > m_transform
const agx::Matrix4x4 & getViewMatrix() const
Get the view matrix.
const agx::Matrix4x4 & getProjectionMatrix() const
Get the projection matrix.
agxData::ValueRefT< agx::Real > m_fovY
agxData::ValueRefT< agx::UInt > m_windowWidth
This namespace contains OpenGL specific details for connecting OpenCL/OpenGL.
An agx::Device is an abstract representation of a device on which data can be stored and processed...
agxData::ValueRefT< agx::UInt > m_windowHeight
agx::TaskRef m_renderTask