60 #ifndef ACG_CAMERAVIS_NODE_HH
61 #define ACG_CAMERAVIS_NODE_HH
66 #include <ACG/Scenegraph/BaseNode.hh>
67 #include <ACG/Scenegraph/DrawModes.hh>
68 #include <ACG/GL/GLPrimitives.hh>
72 #include <ACG/Math/QuaternionT.hh>
79 namespace SceneGraph {
105 void boundingBox(
Vec3d& _bbMin,
Vec3d& _bbMax);
120 void setSize(
int _w,
int _h) { width_ = _w; height_ = _h; aspectRatio_ = (double)width_ / (
double)height_; }
135 void showFrustum(
bool _showFrustum) { showFrustum_ = _showFrustum; }
142 void updateBoundingBoxes(
GLMatrixd& _modelview);
157 double far_half_height_;
158 double far_half_width_;
168 QString encodedView_;
180 #endif // ACG_CameraVis_NODE_HH
void setModelView(ACG::GLMatrixd _modelView)
set model view matrix
Namespace providing different geometric functions concerning angles.
bool showFrustum()
Returns true if camera renders its whole frustum.
PickTarget
What target to use for picking.
QString getEncodedView()
Return encoded view string.
ACG::SceneGraph::CameraNode CameraNode
Simple Name for CameraNode.
void setEncodedView(QString _encodedView)
Return encoded view string.
4x4 matrix implementing OpenGL commands.
void setNearPlane(double _near)
Set distance to near plane.
void showFrustum(bool _showFrustum)
Set if viewing frustum should be shown or not.
void setProjection(ACG::GLMatrixd _projection)
Set projection Matrix ( used to calculate frustum ... )
void setFarPlane(double _far)
Set distance to far plane ( e.g. scene radius )
void setSize(int _w, int _h)
Set viewport size ( This will be used to compute the aspect ratio )