osg::CameraView Class Reference
CameraView - is a Transform that is used to specify camera views from within the scene graph.
More...
List of all members.
Detailed Description
CameraView - is a Transform that is used to specify camera views from within the scene graph.
The application must attach a camera to a CameraView via the NodePath from the top of the scene graph to the CameraView node itself, and accumulate the view matrix from this NodePath.
Member Enumeration Documentation
- Enumerator:
UNCONSTRAINED |
|
HORIZONTAL |
|
VERTICAL |
|
Constructor & Destructor Documentation
osg::CameraView::CameraView |
( |
|
) |
|
osg::CameraView::CameraView |
( |
const CameraView & |
pat, |
|
|
const CopyOp & |
copyop = CopyOp::SHALLOW_COPY | |
|
) |
| | [inline] |
virtual osg::CameraView::~CameraView |
( |
|
) |
[inline, protected, virtual] |
Member Function Documentation
virtual bool osg::CameraView::computeLocalToWorldMatrix |
( |
Matrix & |
matrix, |
|
|
NodeVisitor * |
nv | |
|
) |
| | const [virtual] |
virtual bool osg::CameraView::computeWorldToLocalMatrix |
( |
Matrix & |
matrix, |
|
|
NodeVisitor * |
nv | |
|
) |
| | const [virtual] |
const Quat& osg::CameraView::getAttitude |
( |
|
) |
const [inline] |
Get the attitude of the camera view.
double osg::CameraView::getFieldOfView |
( |
|
) |
const [inline] |
Get the field of view mode.
double osg::CameraView::getFocalLength |
( |
|
) |
const [inline] |
Get the focal length of the camera.
const Vec3d& osg::CameraView::getPosition |
( |
|
) |
const [inline] |
Get the position of the camera view.
void osg::CameraView::setAttitude |
( |
const Quat & |
quat |
) |
[inline] |
Set the attitude of the camera view.
void osg::CameraView::setFieldOfView |
( |
double |
fieldOfView |
) |
[inline] |
Set the field of view.
The cameras field of view can be constrained to either the horizontal or vertex axis of the camera, or unconstrained in which case the camera/application are left to choose an appropriate field of view. The default value if 60 degrees.
Set the field of view mode - controlling how the field of view of the camera is constrained by the CameaView settings.
void osg::CameraView::setFocalLength |
( |
double |
focalLength |
) |
[inline] |
Set the focal length of the camera.
A focal length of 0.0 indicates that the camera/application should determine the focal length. The default value is 0.0.
void osg::CameraView::setPosition |
( |
const Vec3d & |
pos |
) |
[inline] |
Set the position of the camera view.
Member Data Documentation
The documentation for this class was generated from the following file: