Go to the documentation of this file.
6 #ifndef CNOID_UTIL_SCENE_CAMERAS_H
7 #define CNOID_UTIL_SCENE_CAMERAS_H
10 #include "exportdecl.h"
24 template<
class Scalar,
int Mode,
int Options>
25 static Eigen::Matrix<Scalar, 3, 1>
right(
const Eigen::Transform<Scalar, 3, Mode, Options>& T){
26 return T.linear().col(0);
28 template<
class Scalar,
int Mode,
int Options>
29 static Eigen::Matrix<Scalar, 3, 1>
direction(
const Eigen::Transform<Scalar, 3, Mode, Options>& T){
30 return -T.linear().col(2);
32 template<
class Scalar,
int Mode,
int Options>
33 static Eigen::Matrix<Scalar, 3, 1>
up(
const Eigen::Transform<Scalar, 3, Mode, Options>& T){
34 return T.linear().col(1);
42 #ifdef CNOID_BACKWARD_COMPATIBILITY
43 double nearDistance()
const {
return nearClipDistance_; }
44 void setNearDistance(
double d) { nearClipDistance_ = d; }
45 double farDistance()
const {
return farClipDistance_; }
46 void setFarDistance(
double d) { farClipDistance_ = d; }
50 double nearClipDistance_;
51 double farClipDistance_;
68 static double fovy(
double aspectRatio,
double fieldOfView);
70 double fovy(
double aspectRatio)
const {
92 double height()
const {
return height_; }
Eigen::Vector3d Vector3
Definition: EigenTypes.h:57
static Eigen::Matrix< Scalar, 3, 1 > right(const Eigen::Transform< Scalar, 3, Mode, Options > &T)
Definition: SceneCameras.h:25
Definition: SceneCameras.h:56
static double fovy(double aspectRatio, double fieldOfView)
Definition: SceneCameras.cpp:77
double height() const
Definition: SceneCameras.h:92
Eigen::Isometry3d Isometry3
Definition: EigenTypes.h:73
Definition: SceneCameras.h:14
void setFarClipDistance(double d)
Definition: SceneCameras.h:40
static Eigen::Matrix< Scalar, 3, 1 > direction(const Eigen::Transform< Scalar, 3, Mode, Options > &T)
Definition: SceneCameras.h:29
Definition: SceneGraph.h:595
static Eigen::Matrix< Scalar, 3, 1 > up(const Eigen::Transform< Scalar, 3, Mode, Options > &T)
Definition: SceneCameras.h:33
double fieldOfView() const
Definition: SceneCameras.h:65
double nearClipDistance() const
Definition: SceneCameras.h:37
Definition: AbstractSceneLoader.h:11
Definition: CloneMap.h:13
double farClipDistance() const
Definition: SceneCameras.h:39
void setFieldOfView(double fov)
Definition: SceneCameras.h:66
void setNearClipDistance(double d)
Definition: SceneCameras.h:38
ref_ptr< SgOrthographicCamera > SgOrthographicCameraPtr
Definition: SceneCameras.h:101
void setHeight(double h)
Definition: SceneCameras.h:93
Definition: Referenced.h:54
ref_ptr< SgPerspectiveCamera > SgPerspectiveCameraPtr
Definition: SceneCameras.h:80
double fovy(double aspectRatio) const
Definition: SceneCameras.h:70
ref_ptr< SgCamera > SgCameraPtr
Definition: SceneCameras.h:53
Definition: SceneCameras.h:83