SceneSetup
from panda3d.core import SceneSetup
- class SceneSetup
Bases:
TypedReferenceCount
This object holds the camera position, etc., and other general setup information for rendering a particular scene.
Inheritance diagram
- __init__(*args, **kwargs)
- getCameraNode()
C++ Interface: get_camera_node(SceneSetup self)
- /**
Returns the camera used to render the scene.
*/
- getCameraPath()
C++ Interface: get_camera_path(SceneSetup self)
- /**
Returns the NodePath to the camera.
*/
- getCameraTransform()
C++ Interface: get_camera_transform(SceneSetup self)
- /**
Returns the position of the camera relative to the starting node.
*/
- getClassType()
C++ Interface: get_class_type()
- getCsTransform()
C++ Interface: get_cs_transform(SceneSetup self)
- /**
Returns the transform from the camera’s coordinate system to the GSG’s
internal coordinate system.
*/
- getCsWorldTransform()
C++ Interface: get_cs_world_transform(SceneSetup self)
- /**
Returns the position from the starting node relative to the camera, in the
GSG’s internal coordinate system.
*/
- getCullBounds()
C++ Interface: get_cull_bounds(SceneSetup self)
- /**
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().
*/
- getCullCenter()
C++ Interface: get_cull_center(SceneSetup self)
- /**
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.
*/
- getDisplayRegion()
C++ Interface: get_display_region(SceneSetup self)
- /**
Returns the display region for the scene.
*/
- getInitialState()
C++ Interface: get_initial_state(SceneSetup self)
- /**
Returns the initial state as set by a previous call to set_initial_state().
*/
- getInverted()
C++ Interface: get_inverted(SceneSetup self)
- /**
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.
*/
- getLens()
C++ Interface: get_lens(SceneSetup self)
- /**
Returns the particular Lens used for rendering.
*/
- getSceneRoot()
C++ Interface: get_scene_root(SceneSetup self)
- /**
Returns the root node of the scene.
*/
- getViewFrustum()
C++ Interface: get_view_frustum(SceneSetup self)
- /**
Returns the initial state as set by a previous call to set_initial_state().
*/
- getViewportHeight()
C++ Interface: get_viewport_height(SceneSetup self)
- /**
Returns the height of the viewport (display region) in pixels.
*/
- getViewportWidth()
C++ Interface: get_viewport_width(SceneSetup self)
- /**
Returns the width of the viewport (display region) in pixels.
*/
- getWorldTransform()
C++ Interface: get_world_transform(SceneSetup self)
- /**
Returns the position of the starting node relative to the camera. This is
the inverse of the camera transform.
*/
- get_camera_node()
C++ Interface: get_camera_node(SceneSetup self)
- /**
Returns the camera used to render the scene.
*/
- get_camera_path()
C++ Interface: get_camera_path(SceneSetup self)
- /**
Returns the NodePath to the camera.
*/
- get_camera_transform()
C++ Interface: get_camera_transform(SceneSetup self)
- /**
Returns the position of the camera relative to the starting node.
*/
- get_class_type()
C++ Interface: get_class_type()
- get_cs_transform()
C++ Interface: get_cs_transform(SceneSetup self)
- /**
Returns the transform from the camera’s coordinate system to the GSG’s
internal coordinate system.
*/
- get_cs_world_transform()
C++ Interface: get_cs_world_transform(SceneSetup self)
- /**
Returns the position from the starting node relative to the camera, in the
GSG’s internal coordinate system.
*/
- get_cull_bounds()
C++ Interface: get_cull_bounds(SceneSetup self)
- /**
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().
*/
- get_cull_center()
C++ Interface: get_cull_center(SceneSetup self)
- /**
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.
*/
- get_display_region()
C++ Interface: get_display_region(SceneSetup self)
- /**
Returns the display region for the scene.
*/
- get_initial_state()
C++ Interface: get_initial_state(SceneSetup self)
- /**
Returns the initial state as set by a previous call to set_initial_state().
*/
- get_inverted()
C++ Interface: get_inverted(SceneSetup self)
- /**
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.
*/
- get_lens()
C++ Interface: get_lens(SceneSetup self)
- /**
Returns the particular Lens used for rendering.
*/
- get_scene_root()
C++ Interface: get_scene_root(SceneSetup self)
- /**
Returns the root node of the scene.
*/
- get_view_frustum()
C++ Interface: get_view_frustum(SceneSetup self)
- /**
Returns the initial state as set by a previous call to set_initial_state().
*/
- get_viewport_height()
C++ Interface: get_viewport_height(SceneSetup self)
- /**
Returns the height of the viewport (display region) in pixels.
*/
- get_viewport_width()
C++ Interface: get_viewport_width(SceneSetup self)
- /**
Returns the width of the viewport (display region) in pixels.
*/
- get_world_transform()
C++ Interface: get_world_transform(SceneSetup self)
- /**
Returns the position of the starting node relative to the camera. This is
the inverse of the camera transform.
*/
- setCameraNode()
C++ Interface: set_camera_node(const SceneSetup self, Camera camera_node)
- /**
Specifies the camera used to render the scene.
*/
- setCameraPath()
C++ Interface: set_camera_path(const SceneSetup self, const NodePath camera_path)
- /**
Specifies the NodePath to the camera.
*/
- setCameraTransform()
C++ Interface: set_camera_transform(const SceneSetup self, const TransformState camera_transform)
- /**
Specifies the position of the camera relative to the starting node.
*/
- setCsTransform()
C++ Interface: set_cs_transform(const SceneSetup self, const TransformState cs_transform)
- /**
Specifies the transform from the camera’s coordinate system to the GSG’s
internal coordinate system.
*/
- setCsWorldTransform()
C++ Interface: set_cs_world_transform(const SceneSetup self, const TransformState cs_world_transform)
- /**
Specifies the position from the starting node relative to the camera, in
the GSG’s internal coordinate system.
*/
- setDisplayRegion()
C++ Interface: set_display_region(const SceneSetup self, DisplayRegion display_region)
- /**
Specifies the display region for the scene.
*/
- setInitialState()
C++ Interface: set_initial_state(const SceneSetup self, 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.
*/
- setInverted()
C++ Interface: set_inverted(const SceneSetup self, 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.
*/
- setLens()
C++ Interface: set_lens(const SceneSetup self, const Lens lens)
- /**
Indicates the particular Lens used for rendering.
*/
- setSceneRoot()
C++ Interface: set_scene_root(const SceneSetup self, const NodePath scene_root)
- /**
Specifies the root node of the scene.
*/
- setViewFrustum()
C++ Interface: set_view_frustum(const SceneSetup self, GeometricBoundingVolume view_frustum)
- /**
Returns the camera’s cull bounds transformed to world space, or null if
view frustum culling is disabled.
*/
- setViewportSize()
C++ Interface: set_viewport_size(const SceneSetup self, int width, int height)
- /**
Specifies the size of the viewport (display region), in pixels.
*/
- setWorldTransform()
C++ Interface: set_world_transform(const SceneSetup self, const TransformState world_transform)
- /**
Specifies the position of the starting node relative to the camera. This
is the inverse of the camera transform.
*/
- set_camera_node()
C++ Interface: set_camera_node(const SceneSetup self, Camera camera_node)
- /**
Specifies the camera used to render the scene.
*/
- set_camera_path()
C++ Interface: set_camera_path(const SceneSetup self, const NodePath camera_path)
- /**
Specifies the NodePath to the camera.
*/
- set_camera_transform()
C++ Interface: set_camera_transform(const SceneSetup self, const TransformState camera_transform)
- /**
Specifies the position of the camera relative to the starting node.
*/
- set_cs_transform()
C++ Interface: set_cs_transform(const SceneSetup self, const TransformState cs_transform)
- /**
Specifies the transform from the camera’s coordinate system to the GSG’s
internal coordinate system.
*/
- set_cs_world_transform()
C++ Interface: set_cs_world_transform(const SceneSetup self, const TransformState cs_world_transform)
- /**
Specifies the position from the starting node relative to the camera, in
the GSG’s internal coordinate system.
*/
- set_display_region()
C++ Interface: set_display_region(const SceneSetup self, DisplayRegion display_region)
- /**
Specifies the display region for the scene.
*/
- set_initial_state()
C++ Interface: set_initial_state(const SceneSetup self, 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.
*/
- set_inverted()
C++ Interface: set_inverted(const SceneSetup self, 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.
*/
- set_lens()
C++ Interface: set_lens(const SceneSetup self, const Lens lens)
- /**
Indicates the particular Lens used for rendering.
*/
- set_scene_root()
C++ Interface: set_scene_root(const SceneSetup self, const NodePath scene_root)
- /**
Specifies the root node of the scene.
*/
- set_view_frustum()
C++ Interface: set_view_frustum(const SceneSetup self, GeometricBoundingVolume view_frustum)
- /**
Returns the camera’s cull bounds transformed to world space, or null if
view frustum culling is disabled.
*/