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>
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
QString getEncodedView()
Return encoded view string.
Namespace providing different geometric functions concerning angles.
4x4 matrix implementing OpenGL commands.
void setNearPlane(double _near)
Set distance to near plane.
void setProjection(ACG::GLMatrixd _projection)
Set projection Matrix ( used to calculate frustum ... )
void setModelView(ACG::GLMatrixd _modelView)
set model view matrix
void showFrustum(bool _showFrustum)
Set if viewing frustum should be shown or not.
void setEncodedView(QString _encodedView)
Return encoded view string.
void setFarPlane(double _far)
Set distance to far plane ( e.g. scene radius )
bool showFrustum()
Returns true if camera renders its whole frustum.
void setSize(int _w, int _h)
Set viewport size ( This will be used to compute the aspect ratio )
PickTarget
What target to use for picking.
ACG::SceneGraph::CameraNode CameraNode
Simple Name for CameraNode.