9 #ifndef GlobeEngine_Camera_h
10 #define GlobeEngine_Camera_h
12 #include "OpenGL_Includes.h"
13 #include <vmmlib/vmmlib.hpp>
85 double bottom,
double top,
86 double zNear,
double zFar);
void setScenePosition(vmml::Vector3d _pos)
Definition: Camera.cpp:114
vmml::Vector4d orthoCoord
Definition: Camera.h:108
vmml::Matrix4d getInverseProjectionMatrix() const
Definition: Camera.cpp:89
double getDistanceToCamera(vmml::Vector3d _p) const
Definition: Camera.cpp:251
vmml::Matrix4d getViewMatrix() const
Definition: Camera.cpp:53
void enableOrthoProjection()
Definition: Camera.cpp:304
vmml::Matrix4d viewProjectionMatrix
Definition: Camera.h:104
enum Camera::AXIS getOrientationAxis()
Definition: Camera.cpp:314
vmml::Vector3d getDirection() const
Definition: Camera.cpp:329
vmml::Matrix4d createFrustumMatrix(double left, double right, double bottom, double top, double zNear, double zFar)
Definition: Camera.cpp:210
std::shared_ptr< ge::ViewFrustum > viewfrustum
Definition: Camera.h:93
void setViewProjectionMatrix(vmml::Matrix4d _viewprojectionMatrix)
Definition: Camera.cpp:77
vmml::Matrix4d orthoProjectionMatrix
Definition: Camera.h:107
vmml::Vector3d camUp
Definition: Camera.h:98
static vmml::Matrix4d createOrthoProjectionMatrix(double l, double r, double b, double t, double n, double f)
Definition: Camera.cpp:180
void disableOrthoProjection()
Definition: Camera.cpp:309
void setViewMatrix(vmml::Matrix4d _viewMatrix)
Definition: Camera.cpp:58
Camera()
Definition: Camera.cpp:14
virtual void calculateViewMatrix()=0
virtual void changeSetup(ViewFrustumProperties _in)
Definition: Camera.cpp:36
void setOrthographic()
Definition: Camera.cpp:165
void applyViewport()
Definition: Camera.cpp:144
void setProjectionMatrix(vmml::Matrix4d _projectionMatrix)
Definition: Camera.cpp:67
void setPerspective(int _w=0, int _h=0)
Definition: Camera.cpp:154
vmml::Matrix4d projectionMatrix
Definition: Camera.h:102
bool changed
Definition: Camera.h:110
vmml::Vector3d getScenePosition() const
Definition: Camera.cpp:107
void setViewportSize(int _w, int _h)
std::shared_ptr< ge::ViewFrustum > const & getViewFrustum() const
Definition: Camera.cpp:48
enum Camera::AXIS orientation_axis
Definition: Camera.h:91
bool orthoProjMode
Definition: Camera.h:111
vmml::Matrix4d viewMatrix
Definition: Camera.h:101
enum CAMERATYPE type
Definition: Camera.h:90
virtual void print()
Definition: Camera.cpp:127
void setOrthoCoordinates(vmml::Vector4d _coords)
Definition: Camera.cpp:299
bool hasChanged()
Definition: Camera.h:63
virtual void clear()
Definition: Camera.cpp:23
virtual void destroy()
Definition: Camera.cpp:43
vmml::Vector3d camRight
Definition: Camera.h:97
vmml::Matrix4d createPerspectiveProjectionMatrix(double fovy, double aspect, double zNear, double zFar)
Definition: Camera.cpp:200
~Camera()
Definition: Camera.cpp:19
vmml::Vector3d getRelativePositionToCenter() const
Definition: Camera.cpp:103
vmml::Vector3d camDirection
Definition: Camera.h:99
void setChanged()
Definition: Camera.cpp:324
vmml::Vector2d viewport
Definition: Camera.h:94
vmml::Matrix4d getRotationMatrix(const vmml::Quaterniond &quat)
Definition: Camera.cpp:222
Definition: ViewFrustum.h:18
Definition: AvalancheTrainingSimulationEngine.h:28
vmml::Vector4d getOrthoCoordinates() const
Definition: Camera.cpp:333
vmml::Vector3d camPosition
Definition: Camera.h:96
vmml::Vector2d getViewport() const
Definition: Camera.cpp:149
CAMERATYPE
Definition: Camera.h:21
enum Camera::AXIS getOrientationFromString(std::string _input)
Definition: Camera.cpp:272
vmml::Matrix4d getProjectionMatrix() const
Definition: Camera.cpp:62
void setOrientationAxis(enum AXIS _in)
Definition: Camera.cpp:319
GLuint cameraBuffers[2]
Definition: Camera.h:114
enum CAMERATYPE getType()
Definition: Camera.h:61
vmml::Matrix4d perspectiveProjectionMatrix
Definition: Camera.h:106
void setRelativePositionToCenter(vmml::Vector3d _pos)
Definition: Camera.cpp:121
void moveFrustum()
Definition: Camera.cpp:285
vmml::Matrix4d getInverseProjectionViewMatrix() const
Definition: Camera.cpp:96
vmml::Matrix4d getViewProjectionMatrix() const
Definition: Camera.cpp:72
AXIS
Definition: Camera.h:22
void setStandardVectors()
Definition: Camera.cpp:292
vmml::Matrix4d getInverseViewMatrix() const
Definition: Camera.cpp:82
vmml::Vector2d getScreenposForPoint(vmml::Vector3d _p, vmml::Matrix4d _modelMatrix)
Definition: Camera.cpp:255