This object holds the camera position, etc., and other general setup information for rendering a particular scene.
More...
|
Camera | getCameraNode () |
| Returns the camera used to render the scene. More...
|
|
const NodePath | getCameraPath () |
| Returns the NodePath to the camera. More...
|
|
const TransformState | getCameraTransform () |
| Returns the position of the camera relative to the starting node. More...
|
|
const TransformState | getCsTransform () |
| Returns the transform from the camera's coordinate system to the GSG's internal coordinate system. More...
|
|
const TransformState | getCsWorldTransform () |
| Returns the position from the starting node relative to the camera, in the GSG's internal coordinate system. More...
|
|
BoundingVolume | getCullBounds () |
| Returns the bounding volume that should be used to perform view-frustum culling (in the space of get_cull_center()). This is normally the current lens' bounding volume, but it may be overridden with Camera::set_cull_bounds(). More...
|
|
const NodePath | getCullCenter () |
| Returns the point from which the culling operations will be performed. This is normally the camera, but if camera->set_cull_center() has been specified, it will be that special node instead. More...
|
|
DisplayRegion | getDisplayRegion () |
| Returns the display region for the scene. More...
|
|
const RenderState | getInitialState () |
| Returns the initial state as set by a previous call to set_initial_state(). More...
|
|
bool | getInverted () |
| Returns the current setting of the inverted flag. When this is true, the scene is rendered into the window upside-down, flipped like a mirror along the X axis. More...
|
|
const Lens | getLens () |
| Returns the particular Lens used for rendering. More...
|
|
const NodePath | getSceneRoot () |
| Returns the root node of the scene. More...
|
|
int | getViewportHeight () |
| Returns the height of the viewport (display region) in pixels. More...
|
|
int | getViewportWidth () |
| Returns the width of the viewport (display region) in pixels. More...
|
|
const TransformState | getWorldTransform () |
| Returns the position of the starting node relative to the camera. This is the inverse of the camera transform. More...
|
|
| setCameraNode (Camera camera_node) |
| Specifies the camera used to render the scene. More...
|
|
| setCameraPath (const NodePath camera_path) |
| Specifies the NodePath to the camera. More...
|
|
| setCameraTransform (const TransformState camera_transform) |
| Specifies the position of the camera relative to the starting node. More...
|
|
| setCsTransform (const TransformState cs_transform) |
| Specifies the transform from the camera's coordinate system to the GSG's internal coordinate system. More...
|
|
| setCsWorldTransform (const TransformState cs_world_transform) |
| Specifies the position from the starting node relative to the camera, in the GSG's internal coordinate system. More...
|
|
| setDisplayRegion (DisplayRegion display_region) |
| Specifies the display region for the scene. More...
|
|
| setInitialState (const RenderState initial_state) |
| Sets the initial state which is applied to all nodes in the scene, as if it were set at the top of the scene graph. More...
|
|
| setInverted (bool inverted) |
| Changes the current setting of the inverted flag. When this is true, the scene is rendered into the window upside-down and backwards, that is, inverted as if viewed through a mirror placed on the floor. More...
|
|
| setLens (const Lens lens) |
| Indicates the particular Lens used for rendering. More...
|
|
| setSceneRoot (const NodePath scene_root) |
| Specifies the root node of the scene. More...
|
|
| setViewportSize (int width, int height) |
| Specifies the size of the viewport (display region), in pixels. More...
|
|
| setWorldTransform (const TransformState world_transform) |
| Specifies the position of the starting node relative to the camera. This is the inverse of the camera transform. More...
|
|
Public Member Functions inherited from TypedObject |
TypeHandle | getType () |
| Derived classes should override this function to return get_class_type(). More...
|
|
int | getTypeIndex () |
| Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. This is equivalent to get_type().get_index(). More...
|
|
bool | isExactType (TypeHandle handle) |
| Returns true if the current object is the indicated type exactly. More...
|
|
bool | isOfType (TypeHandle handle) |
| Returns true if the current object is or derives from the indicated type. More...
|
|
Public Member Functions inherited from ReferenceCount |
int | getRefCount () |
| Returns the current reference count. More...
|
|
| ref () |
| Explicitly increments the reference count. User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically. More...
|
|
bool | testRefCountIntegrity () |
| Does some easy checks to make sure that the reference count isn't completely bogus. Returns true if ok, false otherwise. More...
|
|
bool | testRefCountNonzero () |
| Does some easy checks to make sure that the reference count isn't zero, or completely bogus. Returns true if ok, false otherwise. More...
|
|
bool | unref () |
| Explicitly decrements the reference count. Note that the object will not be implicitly deleted by unref() simply because the reference count drops to zero. (Having a member function delete itself is problematic.) However, see the helper function unref_delete(). More...
|
|
This object holds the camera position, etc., and other general setup information for rendering a particular scene.