22 #include "repo_node.h"
32 #define REPO_NODE_LABEL_ASPECT_RATIO "aspect_ratio"
33 #define REPO_NODE_LABEL_FAR "far"
34 #define REPO_NODE_LABEL_NEAR "near"
35 #define REPO_NODE_LABEL_FOV "fov"
36 #define REPO_NODE_LABEL_LOOK_AT "look_at"
37 #define REPO_NODE_LABEL_POSITION "position"
38 #define REPO_NODE_LABEL_UP "up"
85 virtual RepoNode cloneAndApplyTransformation(
86 const std::vector<float> &matrix)
const;
98 return hasField(REPO_NODE_LABEL_ASPECT_RATIO) ?
99 (float)getField(REPO_NODE_LABEL_ASPECT_RATIO).numberDouble() :
109 return hasField(REPO_NODE_LABEL_FOV) ?
110 (float)getField(REPO_NODE_LABEL_FOV).numberDouble() :
119 std::vector<float> getCameraMatrix(
const bool &rowMajor =
true)
const;
127 return hasField(REPO_NODE_LABEL_FAR) ?
128 (float)getField(REPO_NODE_LABEL_FAR).numberDouble() :
138 return hasField(REPO_NODE_LABEL_FOV) ?
139 (float)getField(REPO_NODE_LABEL_FOV).numberDouble() :
149 return hasField(REPO_NODE_LABEL_NEAR) ?
150 (float)getField(REPO_NODE_LABEL_NEAR).numberDouble() :
164 std::vector<float> getOrientation()
const;
185 virtual bool sEqual(
const RepoNode &other)
const;
float getFieldOfView() const
Definition: repo_node_camera.h:136
Definition: repo_connection_pool_mongo.h:32
Definition: repo_node_camera.h:41
float getHorizontalFOV() const
Definition: repo_node_camera.h:107
Definition: repo_node_utils.h:67
float getAspectRatio() const
Definition: repo_node_camera.h:96
Definition: repo_node.h:33
Definition: repo_bson.h:53
float getFarClippingPlane() const
Definition: repo_node_camera.h:125
float getNearClippingPlane() const
Definition: repo_node_camera.h:147
virtual bool positionDependant()
Definition: repo_node_camera.h:70