#include <sglCamera.hpp>
Inheritance diagram for sglCamera::
Public Methods | |
sglCamera () | |
virtual | ~sglCamera () |
const sglFrustumd& | getFrustum () const |
virtual void | applyProjection () const=0 |
virtual void | printInfo (ostream &ostrm, const char *indent_string) const |
Protected Methods | |
sglCamera (const sglCamera &) | |
sglCamera& | operator= (const sglCamera &) |
Protected Attributes | |
double | m_near |
double | m_far |
sglFrustumd | m_frustum |
In normal practice, an sglCamera is assigned to an sglViewPlatform to define a position and orientation of the eye point in the 3D scene. See sglViewPlatform's code example for an illustration of the use of these functions.
Definition at line 54 of file sglCamera.hpp.
|
default constructor.
|
|
virtual destructor.
|
|
Query the current view frustum. Currently only a double precision frustum is available (OpenGL only takes doubles for the glFrustum commands.
Definition at line 68 of file sglCamera.hpp. |
|
Setup the OpenGL projection matrix to match the specified frustum. This function leaves the glMatrixMode(GL_PROJECTION) in effect (current) upon return. Reimplemented in sglOrthographicCamera, and sglPerspectiveCamera. |
|
Output the state of this node to the specified ostream.
Reimplemented from sglObject. Reimplemented in sglOrthographicCamera, and sglPerspectiveCamera. |