SceneSetup

class SceneSetup

Bases: TypedReferenceCount

This object holds the camera position, etc., and other general setup information for rendering a particular scene.

Inheritance diagram

digraph inheritance07d1ecf615 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "ReferenceCount" [URL="acron.core.ReferenceCount.html#acron.core.ReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ReferenceCount" [arrowsize=0.75,style=""]; "SceneSetup" [URL="acron.core.SceneSetup.html#acron.core.SceneSetup",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedReferenceCount" -> "SceneSetup" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TypedObject" [arrowsize=0.75,style=""]; "TypedReferenceCount" [URL="acron.core.TypedReferenceCount.html#acron.core.TypedReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedReferenceCount" [arrowsize=0.75,style=""]; "ReferenceCount" -> "TypedReferenceCount" [arrowsize=0.75,style=""]; }
SceneSetup.__init__()
SceneSetup.get_camera_node()

Returns the camera used to render the scene.

SceneSetup.get_camera_path()

Returns the NodePath to the camera.

SceneSetup.get_camera_transform()

Returns the position of the camera relative to the starting node.

static SceneSetup.get_class_type()
SceneSetup.get_cs_transform()

Returns the transform from the camera’s coordinate system to the GSG’s internal coordinate system.

SceneSetup.get_cs_world_transform()

Returns the position from the starting node relative to the camera, in the GSG’s internal coordinate system.

SceneSetup.get_cull_bounds()

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().

SceneSetup.get_cull_center()

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.

SceneSetup.get_display_region()

Returns the display region for the scene.

SceneSetup.get_initial_state()

Returns the initial state as set by a previous call to set_initial_state().

SceneSetup.get_inverted()

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.

SceneSetup.get_lens()

Returns the particular Lens used for rendering.

SceneSetup.get_scene_root()

Returns the root node of the scene.

SceneSetup.get_view_frustum()

Returns the initial state as set by a previous call to set_initial_state().

SceneSetup.get_viewport_height()

Returns the height of the viewport (display region) in pixels.

SceneSetup.get_viewport_width()

Returns the width of the viewport (display region) in pixels.

SceneSetup.get_world_transform()

Returns the position of the starting node relative to the camera. This is the inverse of the camera transform.

SceneSetup.set_camera_node()

Specifies the camera used to render the scene.

SceneSetup.set_camera_path()

Specifies the NodePath to the camera.

SceneSetup.set_camera_transform()

Specifies the position of the camera relative to the starting node.

SceneSetup.set_cs_transform()

Specifies the transform from the camera’s coordinate system to the GSG’s internal coordinate system.

SceneSetup.set_cs_world_transform()

Specifies the position from the starting node relative to the camera, in the GSG’s internal coordinate system.

SceneSetup.set_display_region()

Specifies the display region for the scene.

SceneSetup.set_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.

SceneSetup.set_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.

SceneSetup.set_lens()

Indicates the particular Lens used for rendering.

SceneSetup.set_scene_root()

Specifies the root node of the scene.

SceneSetup.set_view_frustum()

Returns the camera’s cull bounds transformed to world space, or null if view frustum culling is disabled.

SceneSetup.set_viewport_size()

Specifies the size of the viewport (display region), in pixels.

SceneSetup.set_world_transform()

Specifies the position of the starting node relative to the camera. This is the inverse of the camera transform.