#include <sceneSetup.h>
Inheritance diagram for SceneSetup:
Public Member Functions | |
SceneSetup () | |
void | set_scene_root (const NodePath &scene_root) |
Specifies the root node of the scene. | |
const NodePath & | get_scene_root () const |
Returns the root node of the scene. | |
void | set_camera_path (const NodePath &camera_path) |
Specifies the NodePath to the camera. | |
const NodePath & | get_camera_path () const |
Returns the NodePath to the camera. | |
void | set_camera_node (const Camera *camera_node) |
Specifies the camera used to render the scene. | |
const Camera * | get_camera_node () const |
Returns the camera used to render the scene. | |
void | set_lens (const Lens *lens) |
Indicates the particular Lens used for rendering. | |
const Lens * | get_lens () const |
Returns the particular Lens used for rendering. | |
void | set_camera_transform (const TransformState *camera_transform) |
Specifies the position of the camera relative to the starting node, without any compensating coordinate-system transforms that might have been introduced for the purposes of rendering. | |
const TransformState * | get_camera_transform () const |
Returns the position of the camera relative to the starting node, without any compensating coordinate-system transforms that might have been introduced for the purposes of rendering. | |
void | set_world_transform (const TransformState *world_transform) |
Specifies the position of the starting node relative to the camera. | |
const TransformState * | get_world_transform () const |
Returns the position of the starting node relative to the camera. | |
void | set_cs_transform (const TransformState *cs_transform) |
Specifies the pretransformation to apply to the world transform to produce the appropriate transformation for rendering. | |
const TransformState * | get_cs_transform () const |
Returns the pretransformation to apply to the world transform to produce the appropriate transformation for rendering. | |
const TransformState * | get_render_transform () const |
Returns the position of the starting node relative to the camera, pretransformed as appropriate for rendering. | |
int | get_ref_count () const |
Returns the current reference count. | |
int | ref () const |
Explicitly increments the reference count. | |
int | unref () const |
Explicitly decrements the reference count. | |
void | test_ref_count_integrity () const |
Does some easy checks to make sure that the reference count isn't completely bogus. | |
Static Public Member Functions | |
TypeHandle | get_class_type () |
void | init_type () |
Private Attributes | |
NodePath | _scene_root |
NodePath | _camera_path |
ConstPointerTo< Camera > | _camera_node |
ConstPointerTo< Lens > | _lens |
ConstPointerTo< TransformState > | _camera_transform |
ConstPointerTo< TransformState > | _world_transform |
ConstPointerTo< TransformState > | _cs_transform |
ConstPointerTo< TransformState > | _render_transform |
Definition at line 45 of file sceneSetup.h.
|
Definition at line 32 of file sceneSetup.I. References _scene_root, and INLINE. |
|
Returns the camera used to render the scene.
Definition at line 112 of file sceneSetup.I. References _camera_transform, and INLINE. |
|
Returns the NodePath to the camera.
Definition at line 86 of file sceneSetup.I. References _camera_node, and INLINE. |
|
Returns the position of the camera relative to the starting node, without any compensating coordinate-system transforms that might have been introduced for the purposes of rendering.
Definition at line 176 of file sceneSetup.I. References _cs_transform, and INLINE. |
|
|
Returns the pretransformation to apply to the world transform to produce the appropriate transformation for rendering.
Definition at line 248 of file sceneSetup.I. |
|
Returns the particular Lens used for rendering.
Definition at line 138 of file sceneSetup.I. References _cs_transform, _render_transform, _world_transform, and INLINE. |
|
Returns the current reference count.
Definition at line 183 of file referenceCount.I. Referenced by RenderState::determine_bin_index(), RenderEffects::determine_show_bounds(), FontPool::ns_garbage_collect(), TexturePool::ns_garbage_collect(), MaterialPool::ns_get_material(), and TexturePool::ns_release_texture(). |
|
Returns the position of the starting node relative to the camera, pretransformed as appropriate for rendering. This is the same as the world transform, with a possible coordinate-system conversion applied. Note that this value is always the position of the starting node, not the current node, even if it is sampled during a traversal. To get the render transform of the current node check in the current CullTraverserData. Definition at line 279 of file sceneSetup.I. |
|
Returns the root node of the scene.
Definition at line 60 of file sceneSetup.I. |
|
Returns the position of the starting node relative to the camera. This is the inverse of the camera transform. Definition at line 211 of file sceneSetup.I. |
|
|
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. This function is const, even though it changes the object, because generally fiddling with an object's reference count isn't considered part of fiddling with the object. An object might be const in other ways, but we still need to accurately count the number of references to it. The return value is the new reference count. Definition at line 225 of file referenceCount.I. Referenced by ClientDevice::ClientDevice(), EggGroupNode::find_textures(), EggGroupNode::r_apply_texmats(), EggGroupNode::r_flatten_transforms(), and EggGroupNode::reverse_vertex_ordering(). |
|
Specifies the camera used to render the scene.
Definition at line 99 of file sceneSetup.I. References _lens. |
|
Specifies the NodePath to the camera.
Definition at line 73 of file sceneSetup.I. References _camera_node, and INLINE. |
|
Specifies the position of the camera relative to the starting node, without any compensating coordinate-system transforms that might have been introduced for the purposes of rendering.
Definition at line 157 of file sceneSetup.I. References _world_transform, and INLINE. |
|
Specifies the pretransformation to apply to the world transform to produce the appropriate transformation for rendering. This is usually the appropriate coordinate-system conversion for the current GSG. Definition at line 230 of file sceneSetup.I. |
|
Indicates the particular Lens used for rendering.
Definition at line 125 of file sceneSetup.I. References _camera_transform, and INLINE. |
|
Specifies the root node of the scene.
Definition at line 47 of file sceneSetup.I. References _scene_root, and INLINE. |
|
Specifies the position of the starting node relative to the camera. This is the inverse of the camera transform. Definition at line 193 of file sceneSetup.I. References _render_transform, and INLINE. |
|
Does some easy checks to make sure that the reference count isn't completely bogus.
Definition at line 328 of file referenceCount.I. References INLINE. Referenced by EggNode::determine_bin(), and ReferenceCount::~ReferenceCount(). |
|
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; plus, we don't have a virtual destructor anyway.) However, see the helper function unref_delete(). 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. This function is const, even though it changes the object, because generally fiddling with an object's reference count isn't considered part of fiddling with the object. An object might be const in other ways, but we still need to accurately count the number of references to it. The return value is the new reference count. Definition at line 293 of file referenceCount.I. References INLINE. Referenced by RenderState::determine_bin_index(), and RenderEffects::determine_show_bounds(). |
|
Definition at line 75 of file sceneSetup.h. Referenced by get_camera_path(), and set_camera_path(). |
|
Definition at line 74 of file sceneSetup.h. |
|
Definition at line 77 of file sceneSetup.h. Referenced by get_camera_node(), and set_lens(). |
|
Definition at line 79 of file sceneSetup.h. Referenced by get_camera_transform(), and get_lens(). |
|
Definition at line 76 of file sceneSetup.h. Referenced by set_camera_node(). |
|
Definition at line 80 of file sceneSetup.h. Referenced by get_lens(), and set_world_transform(). |
|
Definition at line 73 of file sceneSetup.h. Referenced by SceneSetup(), and set_scene_root(). |
|
Definition at line 78 of file sceneSetup.h. Referenced by get_lens(), and set_camera_transform(). |