Inheritance diagram for osg::CameraNode:
typedef std::map< BufferComponent, Attachment> osg::CameraNode::BufferAttachmentMap |
osg::CameraNode::CameraNode | ( | ) |
osg::CameraNode::CameraNode | ( | const CameraNode & | , | |
const CopyOp & | copyop = CopyOp::SHALLOW_COPY | |||
) |
Copy constructor using CopyOp to manage deep vs shallow copy.
virtual osg::CameraNode::~CameraNode | ( | ) | [protected, virtual] |
osg::CameraNode::META_Node | ( | osg | , | |
CameraNode | ||||
) |
void osg::CameraNode::setClearColor | ( | const Vec4 & | color | ) | [inline] |
Sets the clear color.
const Vec4& osg::CameraNode::getClearColor | ( | ) | const [inline] |
Returns the clear color.
void osg::CameraNode::setClearMask | ( | GLbitfield | mask | ) | [inline] |
Set the clear mask used in glClear(..). Defaults to GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT.
GLbitfield osg::CameraNode::getClearMask | ( | ) | const [inline] |
Get the clear mask.
void osg::CameraNode::setColorMask | ( | osg::ColorMask * | colorMask | ) |
Set the color mask of the camera to use specified osg::ColorMask.
void osg::CameraNode::setColorMask | ( | bool | red, | |
bool | green, | |||
bool | blue, | |||
bool | alpha | |||
) |
Set the color mask of the camera to specified values.
void osg::CameraNode::setViewport | ( | osg::Viewport * | viewport | ) |
Set the viewport of the camera to use specified osg::Viewport.
void osg::CameraNode::setViewport | ( | int | x, | |
int | y, | |||
int | width, | |||
int | height | |||
) |
Set the viewport of the camera to specified dimensions.
const Viewport* osg::CameraNode::getViewport | ( | ) | const [inline] |
Get the const viewport.
Viewport* osg::CameraNode::getViewport | ( | ) | [inline] |
Get the viewport.
void osg::CameraNode::setTransformOrder | ( | TransformOrder | order | ) | [inline] |
Set the transformation order for world-to-local and local-to-world transformation.
TransformOrder osg::CameraNode::getTransformOrder | ( | ) | const [inline] |
Get the transformation order.
void osg::CameraNode::setProjectionMatrix | ( | const osg::Matrixf & | matrix | ) | [inline] |
Set the projection matrix. Can be thought of as setting the lens of a camera.
void osg::CameraNode::setProjectionMatrix | ( | const osg::Matrixd & | matrix | ) | [inline] |
Set the projection matrix. Can be thought of as setting the lens of a camera.
void osg::CameraNode::setProjectionMatrixAsOrtho | ( | double | left, | |
double | right, | |||
double | bottom, | |||
double | top, | |||
double | zNear, | |||
double | zFar | |||
) |
Set to an orthographic projection. See OpenGL glOrtho for documentation further details.
void osg::CameraNode::setProjectionMatrixAsOrtho2D | ( | double | left, | |
double | right, | |||
double | bottom, | |||
double | top | |||
) |
Set to a 2D orthographic projection. See OpenGL glOrtho2D documentation for further details.
void osg::CameraNode::setProjectionMatrixAsFrustum | ( | double | left, | |
double | right, | |||
double | bottom, | |||
double | top, | |||
double | zNear, | |||
double | zFar | |||
) |
Set to a perspective projection. See OpenGL glFrustum documentation for further details.
void osg::CameraNode::setProjectionMatrixAsPerspective | ( | double | fovy, | |
double | aspectRatio, | |||
double | zNear, | |||
double | zFar | |||
) |
Create a symmetrical perspective projection, See OpenGL gluPerspective documentation for further details. Aspect ratio is defined as width/height.
osg::Matrixd& osg::CameraNode::getProjectionMatrix | ( | ) | [inline] |
Get the projection matrix.
const osg::Matrixd& osg::CameraNode::getProjectionMatrix | ( | ) | const [inline] |
Get the const projection matrix.
bool osg::CameraNode::getProjectionMatrixAsOrtho | ( | double & | left, | |
double & | right, | |||
double & | bottom, | |||
double & | top, | |||
double & | zNear, | |||
double & | zFar | |||
) |
Get the othographic settings of the orthographic projection matrix. Returns false if matrix is not an orthographic matrix, where parameter values are undefined.
bool osg::CameraNode::getProjectionMatrixAsFrustum | ( | double & | left, | |
double & | right, | |||
double & | bottom, | |||
double & | top, | |||
double & | zNear, | |||
double & | zFar | |||
) |
Get the frustum setting of a perspective projection matrix. Returns false if matrix is not a perspective matrix, where parameter values are undefined.
bool osg::CameraNode::getProjectionMatrixAsPerspective | ( | double & | fovy, | |
double & | aspectRatio, | |||
double & | zNear, | |||
double & | zFar | |||
) |
Get the frustum setting of a symmetric perspective projection matrix. Returns false if matrix is not a perspective matrix, where parameter values are undefined. Note, if matrix is not a symmetric perspective matrix then the shear will be lost. Asymmetric matrices occur when stereo, power walls, caves and reality center display are used. In these configurations one should use the 'getProjectionMatrixAsFrustum' method instead.
void osg::CameraNode::setViewMatrix | ( | const osg::Matrixf & | matrix | ) | [inline] |
Set the view matrix. Can be thought of as setting the position of the world relative to the camera in camera coordinates.
void osg::CameraNode::setViewMatrix | ( | const osg::Matrixd & | matrix | ) | [inline] |
Set the view matrix. Can be thought of as setting the position of the world relative to the camera in camera coordinates.
void osg::CameraNode::setViewMatrixAsLookAt | ( | const osg::Vec3 & | eye, | |
const osg::Vec3 & | center, | |||
const osg::Vec3 & | up | |||
) |
Set to the position and orientation of view matrix, using the same convention as gluLookAt.
osg::Matrixd& osg::CameraNode::getViewMatrix | ( | ) | [inline] |
Get the view matrix.
const osg::Matrixd& osg::CameraNode::getViewMatrix | ( | ) | const [inline] |
Get the const view matrix.
void osg::CameraNode::getViewMatrixAsLookAt | ( | osg::Vec3 & | eye, | |
osg::Vec3 & | center, | |||
osg::Vec3 & | up, | |||
float | lookDistance = 1.0f | |||
) |
Get to the position and orientation of a modelview matrix, using the same convention as gluLookAt.
Matrixd osg::CameraNode::getInverseViewMatrix | ( | ) | const |
Get the inverse view matrix.
void osg::CameraNode::setRenderOrder | ( | RenderOrder | order, | |
int | orderNum = 0 | |||
) | [inline] |
Set the rendering order of this camera's subgraph relative to any camera that this subgraph is nested within. For rendering to a texture, one typically uses PRE_RENDER. For Head Up Displays, one would typically use POST_RENDER.
RenderOrder osg::CameraNode::getRenderOrder | ( | ) | const [inline] |
Get the rendering order of this camera's subgraph relative to any camera that this subgraph is nested within.
int osg::CameraNode::getRenderOrderNum | ( | ) | const [inline] |
Get the rendering order number of this camera relative to any sibling cameras in this subgraph.
bool osg::CameraNode::isRenderToTextureCamera | ( | ) | const |
Return true if this Camera is set up as a render to texture camera, i.e. it has textures assigned to it.
void osg::CameraNode::setRenderTargetImplementation | ( | RenderTargetImplementation | impl | ) |
Set the render target.
void osg::CameraNode::setRenderTargetImplementation | ( | RenderTargetImplementation | impl, | |
RenderTargetImplementation | fallback | |||
) |
Set the render target and fall-back that's used if the former isn't available.
RenderTargetImplementation osg::CameraNode::getRenderTargetImplementation | ( | ) | const [inline] |
Get the render target.
RenderTargetImplementation osg::CameraNode::getRenderTargetFallback | ( | ) | const [inline] |
Get the render target fallback.
void osg::CameraNode::setDrawBuffer | ( | GLenum | buffer | ) | [inline] |
Set the draw buffer used at the start of each frame draw. Note, a buffer value of GL_NONE is used to sepecify that the rendering back-end should choose the most appropriate buffer.
GLenum osg::CameraNode::getDrawBuffer | ( | ) | const [inline] |
Get the draw buffer used at the start of each frame draw.
void osg::CameraNode::setReadBuffer | ( | GLenum | buffer | ) | [inline] |
Set the read buffer for any required copy operations to use. Note, a buffer value of GL_NONE is used to sepecify that the rendering back-end should choose the most appropriate buffer.
GLenum osg::CameraNode::getReadBuffer | ( | ) | const [inline] |
Get the read buffer for any required copy operations to use.
void osg::CameraNode::attach | ( | BufferComponent | buffer, | |
GLenum | internalFormat | |||
) |
void osg::CameraNode::attach | ( | BufferComponent | buffer, | |
osg::Texture * | texture, | |||
unsigned int | level = 0 , |
|||
unsigned int | face = 0 , |
|||
bool | mipMapGeneration = false | |||
) |
void osg::CameraNode::attach | ( | BufferComponent | buffer, | |
osg::Image * | image | |||
) |
void osg::CameraNode::detach | ( | BufferComponent | buffer | ) |
BufferAttachmentMap& osg::CameraNode::getBufferAttachmentMap | ( | ) | [inline] |
Get the BufferAttachmentMap, used to configure frame buffer objects, pbuffers and texture reads.
const BufferAttachmentMap& osg::CameraNode::getBufferAttachmentMap | ( | ) | const [inline] |
Get the const BufferAttachmentMap, used to configure frame buffer objects, pbuffers and texture reads.
void osg::CameraNode::setGraphicsContext | ( | GraphicsContext * | context | ) | [inline] |
Set the GraphicsContext that provides the mechansim for managing the OpenGL graphics context associated with this camera.
GraphicsContext* osg::CameraNode::getGraphicsContext | ( | ) | [inline] |
Get the GraphicsContext.
const GraphicsContext* osg::CameraNode::getGraphicsContext | ( | ) | const [inline] |
Get the const GraphicsContext.
void osg::CameraNode::setRenderingCache | ( | unsigned int | contextID, | |
osg::Object * | rc | |||
) | [inline] |
Set the Rendering object that is used to implement rendering of the subgraph.
osg::Object* osg::CameraNode::getRenderingCache | ( | unsigned int | contextID | ) | [inline] |
Get the Rendering object that is used to implement rendering of the subgraph.
const osg::Object* osg::CameraNode::getRenderingCache | ( | unsigned int | contextID | ) | const [inline] |
Get the const Rendering object that is used to implement rendering of the subgraph.
void osg::CameraNode::setPostDrawCallback | ( | DrawCallback * | cb | ) | [inline] |
Set the post draw callback for custom operations to do done after the drawing of the camera's subgraph has been completed.
DrawCallback* osg::CameraNode::getPostDrawCallback | ( | ) | [inline] |
Get the post draw callback.
const DrawCallback* osg::CameraNode::getPostDrawCallback | ( | ) | const [inline] |
Get the const post draw callback.
OpenThreads::Mutex* osg::CameraNode::getDataChangeMutex | ( | ) | const [inline] |
virtual void osg::CameraNode::releaseGLObjects | ( | osg::State * | = 0 |
) | const [virtual] |
If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. Otherwise, releases OpenGL objexts for all graphics contexts.
Reimplemented from osg::Group.
virtual bool osg::CameraNode::computeLocalToWorldMatrix | ( | Matrix & | matrix, | |
NodeVisitor * | ||||
) | const [virtual] |
Transform method that must be defined to provide generic interface for scene graph traversals.
Reimplemented from osg::Transform.
virtual bool osg::CameraNode::computeWorldToLocalMatrix | ( | Matrix & | matrix, | |
NodeVisitor * | ||||
) | const [virtual] |
Transform method that must be defined to provide generic interface for scene graph traversals.
Reimplemented from osg::Transform.
OpenThreads::Mutex osg::CameraNode::_dataChangeMutex [mutable, protected] |
Vec4 osg::CameraNode::_clearColor [protected] |
GLbitfield osg::CameraNode::_clearMask [protected] |
ref_ptr<ColorMask> osg::CameraNode::_colorMask [protected] |
ref_ptr<Viewport> osg::CameraNode::_viewport [protected] |
TransformOrder osg::CameraNode::_transformOrder [protected] |
Matrixd osg::CameraNode::_projectionMatrix [protected] |
Matrixd osg::CameraNode::_viewMatrix [protected] |
RenderOrder osg::CameraNode::_renderOrder [protected] |
int osg::CameraNode::_renderOrderNum [protected] |
GLenum osg::CameraNode::_drawBuffer [protected] |
GLenum osg::CameraNode::_readBuffer [protected] |
ref_ptr<GraphicsContext> osg::CameraNode::_graphicsContext [protected] |
buffered_object< ref_ptr<Object> > osg::CameraNode::_renderingCache [protected] |
ref_ptr<DrawCallback> osg::CameraNode::_postDrawCallback [protected] |