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