Blender V2.61 - r43446
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes

KX_Scene Class Reference

#include <KX_Scene.h>

Inheritance diagram for KX_Scene:
Inheritance graph
[legend]

List of all members.

Classes

struct  CullingInfo

Public Member Functions

 KX_Scene (class SCA_IInputDevice *keyboarddevice, class SCA_IInputDevice *mousedevice, class NG_NetworkDeviceInterface *ndi, const STR_String &scenename, struct Scene *scene, class RAS_ICanvas *canvas)
virtual ~KX_Scene ()
RAS_BucketManagerGetBucketManager ()
RAS_MaterialBucketFindBucket (RAS_IPolyMaterial *polymat, bool &bucketCreated)
void RenderBuckets (const MT_Transform &cameratransform, RAS_IRasterizer *rasty, RAS_IRenderTools *rendertools)
void UpdateParents (double curtime)
void DupliGroupRecurse (CValue *gameobj, int level)
bool IsObjectInGroup (CValue *gameobj)
SCA_IObjectAddReplicaObject (CValue *gameobj, CValue *locationobj, int lifespan=0)
KX_GameObjectAddNodeReplicaObject (SG_IObject *node, CValue *gameobj)
void RemoveNodeDestructObject (SG_IObject *node, CValue *gameobj)
void RemoveObject (CValue *gameobj)
void DelayedRemoveObject (CValue *gameobj)
int NewRemoveObject (CValue *gameobj)
void ReplaceMesh (CValue *gameobj, void *meshob, bool use_gfx, bool use_phys)
void AddAnimatedObject (CValue *gameobj)
void RemoveAnimatedObject (CValue *gameobj)
void LogicBeginFrame (double curtime)
void LogicUpdateFrame (double curtime, bool frame)
void UpdateAnimations (double curtime)
void LogicEndFrame ()
CListValueGetTempObjectList ()
CListValueGetObjectList ()
CListValueGetInactiveList ()
CListValueGetRootParentList ()
CListValueGetLightList ()
SCA_LogicManagerGetLogicManager ()
SCA_TimeEventManagerGetTimeEventManager ()
list< class KX_FontObject * > * GetFonts ()
KX_FontObjectFindFont (KX_FontObject *)
void AddFont (KX_FontObject *)
list< class KX_Camera * > * GetCameras ()
KX_CameraFindCamera (KX_Camera *)
KX_CameraFindCamera (STR_String &)
void AddCamera (KX_Camera *)
KX_CameraGetActiveCamera ()
void SetActiveCamera (class KX_Camera *)
void SetCameraOnTop (class KX_Camera *)
void SetCanvasDesignWidth (unsigned int width)
void SetCanvasDesignHeight (unsigned int height)
unsigned int GetCanvasDesignWidth (void) const
unsigned int GetCanvasDesignHeight (void) const
void SetFramingType (RAS_FrameSettings &frame_settings)
const RAS_FrameSettingsGetFramingType () const
void SetSceneViewport (const RAS_Rect &viewport)
const RAS_RectGetSceneViewport () const
void SetNetworkDeviceInterface (NG_NetworkDeviceInterface *newInterface)
void SetNetworkScene (NG_NetworkScene *newScene)
void SetWorldInfo (class KX_WorldInfo *wi)
KX_WorldInfoGetWorldInfo ()
void CalculateVisibleMeshes (RAS_IRasterizer *rasty, KX_Camera *cam, int layer=0)
void UpdateMeshTransformations ()
KX_CameraGetpCamera ()
NG_NetworkDeviceInterfaceGetNetworkDeviceInterface ()
NG_NetworkSceneGetNetworkScene ()
KX_BlenderSceneConverterGetSceneConverter ()
void ReplicateLogic (class KX_GameObject *newobj)
const STR_StringGetName ()
void Suspend ()
void Resume ()
void UpdateObjectActivity (void)
void SetActivityCulling (bool b)
void SetActivityCullingRadius (float f)
bool IsSuspended ()
bool IsClearingZBuffer ()
void EnableZBufferClearing (bool isclearingZbuffer)
void SetDbvtCulling (bool b)
bool GetDbvtCulling ()
void SetDbvtOcclusionRes (int i)
int GetDbvtOcclusionRes ()
void SetSceneConverter (class KX_BlenderSceneConverter *sceneConverter)
class PHY_IPhysicsEnvironmentGetPhysicsEnvironment ()
void SetPhysicsEnvironment (class PHY_IPhysicsEnvironment *physEnv)
void SetGravity (const MT_Vector3 &gravity)
short GetAnimationFPS ()
void SetNodeTree (SG_Tree *root)
void Update2DFilter (vector< STR_String > &propNames, void *gameObj, RAS_2DFilterManager::RAS_2DFILTER_MODE filtermode, int pass, STR_String &text)
void Render2DFilters (RAS_ICanvas *canvas)
KX_ObstacleSimulationGetObstacleSimulation ()
void setSuspendedTime (double suspendedtime)
double getSuspendedTime ()
void setSuspendedDelta (double suspendeddelta)
double getSuspendedDelta ()
struct SceneGetBlenderScene ()
bool MergeScene (KX_Scene *other)

Static Public Member Functions

static bool KX_ScenegraphUpdateFunc (SG_IObject *node, void *gameobj, void *scene)
static bool KX_ScenegraphRescheduleFunc (SG_IObject *node, void *gameobj, void *scene)

Static Public Attributes

static SG_Callbacks m_callbacks

Protected Member Functions

void MarkVisible (SG_Tree *node, RAS_IRasterizer *rasty, KX_Camera *cam, int layer=0)
void MarkSubTreeVisible (SG_Tree *node, RAS_IRasterizer *rasty, bool visible, KX_Camera *cam, int layer=0)
void MarkVisible (RAS_IRasterizer *rasty, KX_GameObject *gameobj, KX_Camera *cam, int layer=0)

Static Protected Member Functions

static void PhysicsCullingCallback (KX_ClientObjectInfo *objectInfo, void *cullingInfo)

Protected Attributes

RAS_BucketManagerm_bucketmanager
CListValuem_tempObjectList
CListValuem_euthanasyobjects
CListValuem_objectlist
CListValuem_parentlist
CListValuem_lightlist
CListValuem_inactivelist
CListValuem_animatedlist
SG_QList m_sghead
list< class KX_Camera * > m_cameras
list< class KX_FontObject * > m_fonts
SCA_LogicManagerm_logicmgr
SCA_KeyboardManagerm_keyboardmgr
SCA_MouseManagerm_mousemgr
SCA_TimeEventManagerm_timemgr
class KX_BlenderSceneConverterm_sceneConverter
class PHY_IPhysicsEnvironmentm_physicsEnvironment
bool m_isclearingZbuffer
STR_String m_sceneName
KX_WorldInfom_worldinfo
NG_NetworkDeviceInterfacem_networkDeviceInterface
NG_NetworkScenem_networkScene
SG_Nodem_rootnode
KX_Cameram_active_camera
CTR_Map< CTR_HashedPtr, void * > m_map_gameobject_to_replica
std::vector< KX_GameObject * > m_logicHierarchicalGameObjects
std::set< CValue * > m_groupGameObjects
SCA_ISystem * m_kxsystem
int m_ueberExecutionPriority
bool m_suspend
float m_activity_box_radius
bool m_activity_culling
bool m_dbvt_culling
int m_dbvt_occlusion_res
RAS_FrameSettings m_frame_settings
RAS_Rect m_viewport
double m_suspendedtime
double m_suspendeddelta
struct Scenem_blenderScene
RAS_2DFilterManager m_filtermanager
KX_ObstacleSimulationm_obstacleSimulation

Detailed Description

The KX_Scene holds all data for an independent scene. It relates KX_Objects to the specific objects in the modules.

Definition at line 102 of file KX_Scene.h.


Constructor & Destructor Documentation

KX_Scene::KX_Scene ( class SCA_IInputDevice keyboarddevice,
class SCA_IInputDevice mousedevice,
class NG_NetworkDeviceInterface ndi,
const STR_String scenename,
struct Scene scene,
class RAS_ICanvas canvas 
)
KX_Scene::~KX_Scene ( ) [virtual]

Member Function Documentation

void KX_Scene::AddAnimatedObject ( CValue gameobj)

Definition at line 1528 of file KX_Scene.cpp.

References CListValue::Add(), CValue::AddRef(), and m_animatedlist.

Referenced by KX_GameObject::GetActionManager().

void KX_Scene::AddCamera ( KX_Camera cam)

Add a camera to this scene.

Definition at line 1273 of file KX_Scene.cpp.

References FindCamera(), and m_cameras.

Referenced by gameobject_from_blenderobject(), KX_KetsjiEngine::PostProcessScene(), SetActiveCamera(), and SetCameraOnTop().

void KX_Scene::AddFont ( KX_FontObject font)

Add a camera to this scene.

Definition at line 1226 of file KX_Scene.cpp.

References FindFont(), and m_fonts.

Referenced by gameobject_from_blenderobject(), and KX_FontObject::ProcessReplica().

KX_GameObject * KX_Scene::AddNodeReplicaObject ( SG_IObject node,
CValue gameobj 
)
SCA_IObject * KX_Scene::AddReplicaObject ( CValue gameobj,
CValue locationobj,
int  lifespan = 0 
) [virtual]
void KX_Scene::CalculateVisibleMeshes ( RAS_IRasterizer rasty,
KX_Camera cam,
int  layer = 0 
)
void KX_Scene::DelayedRemoveObject ( CValue gameobj) [virtual]

Implements SCA_IScene.

Definition at line 953 of file KX_Scene.cpp.

References CListValue::Add(), CValue::AddRef(), m_euthanasyobjects, and CListValue::SearchValue().

Referenced by LogicBeginFrame().

void KX_Scene::DupliGroupRecurse ( CValue gameobj,
int  level 
)
void KX_Scene::EnableZBufferClearing ( bool  isclearingZbuffer)

Definition at line 437 of file KX_Scene.cpp.

References m_isclearingZbuffer.

RAS_MaterialBucket * KX_Scene::FindBucket ( RAS_IPolyMaterial polymat,
bool &  bucketCreated 
)

Definition at line 1605 of file KX_Scene.cpp.

References RAS_BucketManager::FindBucket(), and m_bucketmanager.

Referenced by BL_ConvertMesh().

KX_Camera * KX_Scene::FindCamera ( KX_Camera cam)

Find a camera in the scene by pointer.

Definition at line 1246 of file KX_Scene.cpp.

References m_cameras, and NULL.

Referenced by AddCamera(), SetActiveCamera(), and SetCameraOnTop().

KX_Camera * KX_Scene::FindCamera ( STR_String name)

Find a scene in the scene by name.

Definition at line 1260 of file KX_Scene.cpp.

References m_cameras, and NULL.

KX_FontObject * KX_Scene::FindFont ( KX_FontObject font)

Find a font in the scene by pointer.

Definition at line 1232 of file KX_Scene.cpp.

References m_fonts, and NULL.

Referenced by AddFont().

KX_Camera * KX_Scene::GetActiveCamera ( )
short KX_Scene::GetAnimationFPS ( )

Definition at line 1714 of file KX_Scene.cpp.

References RenderData::frs_sec, m_blenderScene, and Scene::r.

Referenced by KX_KetsjiEngine::NextFrame().

struct Scene* KX_Scene::GetBlenderScene ( ) [inline, read]
RAS_BucketManager * KX_Scene::GetBucketManager ( )

Definition at line 300 of file KX_Scene.cpp.

References m_bucketmanager.

Referenced by BL_ConvertBlenderObjects(), and MergeScene().

list< class KX_Camera * > * KX_Scene::GetCameras ( )

Camera Routines

Definition at line 347 of file KX_Scene.cpp.

References m_cameras.

Referenced by KX_KetsjiEngine::ClearFrame(), KX_KetsjiEngine::Render(), and KX_KetsjiEngine::RenderDome().

unsigned int KX_Scene::GetCanvasDesignHeight ( void  ) const

Returns the current desired canvas height set at design time.

Returns:
The desired height.
unsigned int KX_Scene::GetCanvasDesignWidth ( void  ) const

Returns the current desired canvas width set at design time.

Returns:
The desired width.
bool KX_Scene::GetDbvtCulling ( ) [inline]

Definition at line 562 of file KX_Scene.h.

References m_dbvt_culling.

Referenced by BL_ConvertBlenderObjects().

int KX_Scene::GetDbvtOcclusionRes ( ) [inline]

Definition at line 564 of file KX_Scene.h.

References m_dbvt_occlusion_res.

list< class KX_FontObject * > * KX_Scene::GetFonts ( )

Font Routines

Definition at line 352 of file KX_Scene.cpp.

References m_fonts.

const RAS_FrameSettings & KX_Scene::GetFramingType ( ) const

Return a const reference to the framing type set by the above call. The contents are not guarenteed to be sensible if you don't call the above function.

Definition at line 368 of file KX_Scene.cpp.

References m_frame_settings.

Referenced by KX_KetsjiEngine::GetSceneViewport(), KX_KetsjiEngine::Render(), and KX_KetsjiEngine::RenderDome().

CListValue * KX_Scene::GetInactiveList ( )
CListValue * KX_Scene::GetLightList ( )

Definition at line 329 of file KX_Scene.cpp.

References m_lightlist.

Referenced by gameobject_from_blenderobject(), and MergeScene().

SCA_LogicManager * KX_Scene::GetLogicManager ( )
const STR_String & KX_Scene::GetName ( )
NG_NetworkDeviceInterface * KX_Scene::GetNetworkDeviceInterface ( )

Definition at line 1657 of file KX_Scene.cpp.

References m_networkDeviceInterface.

NG_NetworkScene * KX_Scene::GetNetworkScene ( )
CListValue * KX_Scene::GetObjectList ( )
KX_ObstacleSimulation* KX_Scene::GetObstacleSimulation ( ) [inline]
KX_Camera* KX_Scene::GetpCamera ( )
class PHY_IPhysicsEnvironment* KX_Scene::GetPhysicsEnvironment ( ) [inline]
CListValue * KX_Scene::GetRootParentList ( )
KX_BlenderSceneConverter* KX_Scene::GetSceneConverter ( ) [inline]

Definition at line 532 of file KX_Scene.h.

References m_sceneConverter.

Referenced by MergeScene().

const RAS_Rect & KX_Scene::GetSceneViewport ( ) const

Get the current scene's viewport on the game engine canvas. This maintained externally in KX_GameEngine

Definition at line 386 of file KX_Scene.cpp.

References m_viewport.

double KX_Scene::getSuspendedDelta ( )

Returns the difference between the local time of the scene (when it was running and not suspended) and the "curtime"

Definition at line 1709 of file KX_Scene.cpp.

References m_suspendeddelta.

Referenced by KX_KetsjiEngine::NextFrame().

double KX_Scene::getSuspendedTime ( )

Returns the "curtime" the scene was suspended

Definition at line 1701 of file KX_Scene.cpp.

References m_suspendedtime.

Referenced by KX_KetsjiEngine::NextFrame().

CListValue * KX_Scene::GetTempObjectList ( )

Definition at line 306 of file KX_Scene.cpp.

References m_tempObjectList.

Referenced by MergeScene().

SCA_TimeEventManager * KX_Scene::GetTimeEventManager ( )

Definition at line 339 of file KX_Scene.cpp.

References m_timemgr.

Referenced by BL_ConvertBlenderObjects(), and MergeScene().

class KX_WorldInfo * KX_Scene::GetWorldInfo ( )
bool KX_Scene::IsClearingZBuffer ( )

Definition at line 432 of file KX_Scene.cpp.

References m_isclearingZbuffer.

Referenced by KX_KetsjiEngine::Render(), and KX_KetsjiEngine::RenderDome().

bool KX_Scene::IsObjectInGroup ( CValue gameobj) [inline]

Definition at line 322 of file KX_Scene.h.

References m_groupGameObjects.

Referenced by AddNodeReplicaObject().

bool KX_Scene::IsSuspended ( )

Definition at line 427 of file KX_Scene.cpp.

References m_suspend.

Referenced by KX_KetsjiEngine::NextFrame().

bool KX_Scene::KX_ScenegraphRescheduleFunc ( SG_IObject node,
void *  gameobj,
void *  scene 
) [static]

Definition at line 123 of file KX_Scene.cpp.

References m_sghead.

Referenced by bl_ConvertBlenderObject_Single().

bool KX_Scene::KX_ScenegraphUpdateFunc ( SG_IObject node,
void *  gameobj,
void *  scene 
) [static]

Update all transforms according to the scenegraph.

Definition at line 118 of file KX_Scene.cpp.

References m_sghead.

Referenced by bl_ConvertBlenderObject_Single().

void KX_Scene::LogicBeginFrame ( double  curtime)
void KX_Scene::LogicEndFrame ( )
void KX_Scene::LogicUpdateFrame ( double  curtime,
bool  frame 
)

Definition at line 1546 of file KX_Scene.cpp.

References m_logicmgr, and SCA_LogicManager::UpdateFrame().

Referenced by KX_KetsjiEngine::NextFrame().

void KX_Scene::MarkSubTreeVisible ( SG_Tree node,
RAS_IRasterizer rasty,
bool  visible,
KX_Camera cam,
int  layer = 0 
) [protected]
void KX_Scene::MarkVisible ( SG_Tree node,
RAS_IRasterizer rasty,
KX_Camera cam,
int  layer = 0 
) [protected]
void KX_Scene::MarkVisible ( RAS_IRasterizer rasty,
KX_GameObject gameobj,
KX_Camera cam,
int  layer = 0 
) [protected]
bool KX_Scene::MergeScene ( KX_Scene other)
int KX_Scene::NewRemoveObject ( CValue gameobj)
void KX_Scene::PhysicsCullingCallback ( KX_ClientObjectInfo objectInfo,
void *  cullingInfo 
) [static, protected]
void KX_Scene::RemoveAnimatedObject ( CValue gameobj)

Definition at line 1534 of file KX_Scene.cpp.

References m_animatedlist, and CListValue::RemoveValue().

Referenced by KX_GameObject::~KX_GameObject().

void KX_Scene::RemoveNodeDestructObject ( SG_IObject node,
CValue gameobj 
)
void KX_Scene::RemoveObject ( CValue gameobj) [virtual]
void KX_Scene::Render2DFilters ( RAS_ICanvas canvas)

Definition at line 1934 of file KX_Scene.cpp.

References m_filtermanager, and RAS_2DFilterManager::RenderFilters().

Referenced by KX_KetsjiEngine::RenderDome().

void KX_Scene::RenderBuckets ( const MT_Transform cameratransform,
RAS_IRasterizer rasty,
RAS_IRenderTools rendertools 
)
void KX_Scene::ReplaceMesh ( CValue gameobj,
void *  meshob,
bool  use_gfx,
bool  use_phys 
) [virtual]
void KX_Scene::ReplicateLogic ( class KX_GameObject newobj)
void KX_Scene::Resume ( void  )

Definition at line 417 of file KX_Scene.cpp.

References m_suspend.

Referenced by KX_KetsjiEngine::ResumeScene().

void KX_Scene::SetActiveCamera ( class KX_Camera cam)

Set this camera to be the active camera in the scene. If the camera is not present in the camera list, it will be added

Definition at line 1287 of file KX_Scene.cpp.

References AddCamera(), FindCamera(), KX_GameObject::GetName(), and m_active_camera.

Referenced by BL_ConvertBlenderObjects(), KX_KetsjiEngine::PostProcessScene(), and KX_SceneActuator::Update().

void KX_Scene::SetActivityCulling ( bool  b)

Definition at line 422 of file KX_Scene.cpp.

References m_activity_culling.

Referenced by BL_ConvertBlenderObjects().

void KX_Scene::SetActivityCullingRadius ( float  f)

Definition at line 1650 of file KX_Scene.cpp.

References m_activity_box_radius.

Referenced by BL_ConvertBlenderObjects().

void KX_Scene::SetCameraOnTop ( class KX_Camera cam)

Move this camera to the end of the list so that it is rendered last. If the camera is not on the list, it will be added

Definition at line 1298 of file KX_Scene.cpp.

References AddCamera(), FindCamera(), KX_GameObject::GetName(), and m_cameras.

void KX_Scene::SetCanvasDesignHeight ( unsigned int  height)

Activates new desired canvas height set at design time.

Parameters:
widthThe new desired height.
void KX_Scene::SetCanvasDesignWidth ( unsigned int  width)

Activates new desired canvas width set at design time.

Parameters:
widthThe new desired width.
void KX_Scene::SetDbvtCulling ( bool  b) [inline]

Definition at line 561 of file KX_Scene.h.

References m_dbvt_culling.

Referenced by BL_ConvertBlenderObjects().

void KX_Scene::SetDbvtOcclusionRes ( int  i) [inline]

Definition at line 563 of file KX_Scene.h.

References i, and m_dbvt_occlusion_res.

Referenced by BL_ConvertBlenderObjects().

void KX_Scene::SetFramingType ( RAS_FrameSettings frame_settings)

Set the framing options for this scene

Definition at line 357 of file KX_Scene.cpp.

References m_frame_settings.

Referenced by BL_ConvertBlenderObjects().

void KX_Scene::SetGravity ( const MT_Vector3 gravity)
void KX_Scene::SetNetworkDeviceInterface ( NG_NetworkDeviceInterface newInterface)

to different scenes of this scene

Definition at line 1667 of file KX_Scene.cpp.

References m_networkDeviceInterface.

void KX_Scene::SetNetworkScene ( NG_NetworkScene newScene)

Definition at line 1672 of file KX_Scene.cpp.

References m_networkScene.

void KX_Scene::SetNodeTree ( SG_Tree root)

Sets the node tree for this scene.

void KX_Scene::SetPhysicsEnvironment ( class PHY_IPhysicsEnvironment physEnv)
void KX_Scene::SetSceneConverter ( class KX_BlenderSceneConverter sceneConverter)

Definition at line 1683 of file KX_Scene.cpp.

References m_sceneConverter.

Referenced by KX_BlenderSceneConverter::ConvertScene().

void KX_Scene::SetSceneViewport ( const RAS_Rect viewport)

Store the current scene's viewport on the game engine canvas.

Definition at line 379 of file KX_Scene.cpp.

References m_viewport.

void KX_Scene::setSuspendedDelta ( double  suspendeddelta)

Sets the difference between the local time of the scene (when it was running and not suspended) and the "curtime"

Definition at line 1705 of file KX_Scene.cpp.

References m_suspendeddelta.

Referenced by KX_KetsjiEngine::NextFrame().

void KX_Scene::setSuspendedTime ( double  suspendedtime)

Sets the time the scene was suspended

Definition at line 1697 of file KX_Scene.cpp.

References m_suspendedtime.

Referenced by KX_KetsjiEngine::NextFrame().

void KX_Scene::SetWorldInfo ( class KX_WorldInfo wi)

Definition at line 393 of file KX_Scene.cpp.

References m_worldinfo.

Referenced by BL_ConvertBlenderObjects().

void KX_Scene::Suspend ( void  )

Definition at line 412 of file KX_Scene.cpp.

References m_suspend.

Referenced by KX_KetsjiEngine::SuspendScene().

void KX_Scene::Update2DFilter ( vector< STR_String > &  propNames,
void *  gameObj,
RAS_2DFilterManager::RAS_2DFILTER_MODE  filtermode,
int  pass,
STR_String text 
) [virtual]

2D Filters

Reimplemented from SCA_IScene.

Definition at line 1929 of file KX_Scene.cpp.

References RAS_2DFilterManager::EnableFilter(), and m_filtermanager.

void KX_Scene::UpdateAnimations ( double  curtime)

Definition at line 1539 of file KX_Scene.cpp.

References CListValue::GetCount(), CListValue::GetValue(), i, and m_animatedlist.

Referenced by KX_KetsjiEngine::NextFrame().

void KX_Scene::UpdateMeshTransformations ( )
void KX_Scene::UpdateObjectActivity ( void  )
void KX_Scene::UpdateParents ( double  curtime)

Member Data Documentation

The active camera for the scene

Definition at line 203 of file KX_Scene.h.

Referenced by GetActiveCamera(), NewRemoveObject(), and SetActiveCamera().

Radius in Manhattan distance of the box for activity culling.

Definition at line 252 of file KX_Scene.h.

Referenced by SetActivityCullingRadius(), and UpdateObjectActivity().

bool KX_Scene::m_activity_culling [protected]

Toggle to enable or disable activity culling.

Definition at line 257 of file KX_Scene.h.

Referenced by KX_Scene(), SetActivityCulling(), and UpdateObjectActivity().

struct Scene* KX_Scene::m_blenderScene [protected]

Definition at line 292 of file KX_Scene.h.

Referenced by GetAnimationFPS(), GetBlenderScene(), and ReplaceMesh().

Definition at line 118 of file KX_Scene.h.

Referenced by FindBucket(), GetBucketManager(), KX_Scene(), RenderBuckets(), and ~KX_Scene().

list<class KX_Camera*> KX_Scene::m_cameras [protected]

The set of cameras for this scene

Definition at line 143 of file KX_Scene.h.

Referenced by AddCamera(), FindCamera(), GetCameras(), NewRemoveObject(), and SetCameraOnTop().

bool KX_Scene::m_dbvt_culling [protected]

Toggle to enable or disable culling via DBVT broadphase of Bullet.

Definition at line 262 of file KX_Scene.h.

Referenced by CalculateVisibleMeshes(), GetDbvtCulling(), KX_Scene(), and SetDbvtCulling().

Occlusion culling resolution

Definition at line 267 of file KX_Scene.h.

Referenced by CalculateVisibleMeshes(), GetDbvtOcclusionRes(), KX_Scene(), and SetDbvtOcclusionRes().

The list of objects which have been removed during the course of one frame. They are actually destroyed in LogicEndFrame() via a call to RemoveObject().

Definition at line 126 of file KX_Scene.h.

Referenced by DelayedRemoveObject(), KX_Scene(), LogicEndFrame(), NewRemoveObject(), and ~KX_Scene().

Definition at line 294 of file KX_Scene.h.

Referenced by Render2DFilters(), and Update2DFilter().

list<class KX_FontObject*> KX_Scene::m_fonts [protected]

The set of fonts for this scene

Definition at line 148 of file KX_Scene.h.

Referenced by AddFont(), FindFont(), GetFonts(), and NewRemoveObject().

The framing settings used by this scene

Definition at line 273 of file KX_Scene.h.

Referenced by GetFramingType(), and SetFramingType().

std::set<CValue*> KX_Scene::m_groupGameObjects [protected]

This temporary variable will contain the list of object that can be added during group instantiation. objects outside this list will not be added (can happen with children that are outside the group). Used in AddReplicaObject. If the list is empty, it means don't care.

Definition at line 228 of file KX_Scene.h.

Referenced by AddReplicaObject(), DupliGroupRecurse(), and IsObjectInGroup().

Definition at line 131 of file KX_Scene.h.

Referenced by GetInactiveList(), KX_Scene(), NewRemoveObject(), and ~KX_Scene().

Does this scene clear the z-buffer?

Definition at line 171 of file KX_Scene.h.

Referenced by EnableZBufferClearing(), IsClearingZBuffer(), and KX_Scene().

Definition at line 155 of file KX_Scene.h.

Referenced by KX_Scene().

SCA_ISystem* KX_Scene::m_kxsystem [protected]

Pointer to system variable passed in in constructor only used in constructor so we do not need to keep it around in this class.

Definition at line 236 of file KX_Scene.h.

Definition at line 130 of file KX_Scene.h.

Referenced by AddNodeReplicaObject(), GetLightList(), KX_Scene(), NewRemoveObject(), and ~KX_Scene().

Another temporary variable outstaying its welcome used in AddReplicaObject to keep a record of all added objects. Logic can only be updated when all objects have been updated. This stores a list of the new objects.

Definition at line 218 of file KX_Scene.h.

Referenced by AddNodeReplicaObject(), AddReplicaObject(), and DupliGroupRecurse().

Another temporary variable outstaying its welcome used in AddReplicaObject to map game objects to their replicas so pointers can be updated.

Definition at line 210 of file KX_Scene.h.

Referenced by AddNodeReplicaObject(), AddReplicaObject(), DupliGroupRecurse(), and ReplicateLogic().

Definition at line 156 of file KX_Scene.h.

Referenced by KX_Scene().

scenes, linked to ketsji scene

Network scene.

Definition at line 190 of file KX_Scene.h.

Referenced by GetNetworkDeviceInterface(), KX_Scene(), and SetNetworkDeviceInterface().

Definition at line 191 of file KX_Scene.h.

Referenced by GetNetworkScene(), KX_Scene(), SetNetworkScene(), and ~KX_Scene().

Definition at line 296 of file KX_Scene.h.

Referenced by GetObstacleSimulation(), KX_Scene(), LogicEndFrame(), and ~KX_Scene().

physics engine abstraction

Definition at line 166 of file KX_Scene.h.

Referenced by CalculateVisibleMeshes(), GetPhysicsEnvironment(), SetPhysicsEnvironment(), and ~KX_Scene().

A temoprary variable used to parent objects together on replication. Don't get confused by the name it is not the scene's root node!

Definition at line 198 of file KX_Scene.h.

Referenced by AddNodeReplicaObject(), and KX_Scene().

Definition at line 161 of file KX_Scene.h.

Referenced by GetSceneConverter(), NewRemoveObject(), and SetSceneConverter().

The name of the scene

Definition at line 176 of file KX_Scene.h.

Referenced by GetName().

Definition at line 134 of file KX_Scene.h.

Referenced by KX_ScenegraphRescheduleFunc(), KX_ScenegraphUpdateFunc(), and UpdateParents().

bool KX_Scene::m_suspend [protected]

Activity 'bubble' settings : Suspend (freeze) the entire scene.

Definition at line 247 of file KX_Scene.h.

Referenced by IsSuspended(), KX_Scene(), Resume(), and Suspend().

double KX_Scene::m_suspendeddelta [protected]

Definition at line 290 of file KX_Scene.h.

Referenced by getSuspendedDelta(), KX_Scene(), and setSuspendedDelta().

double KX_Scene::m_suspendedtime [protected]

Definition at line 289 of file KX_Scene.h.

Referenced by getSuspendedTime(), KX_Scene(), and setSuspendedTime().

Definition at line 157 of file KX_Scene.h.

Referenced by AddNodeReplicaObject(), GetTimeEventManager(), KX_Scene(), and NewRemoveObject().

The execution priority of replicated object actuators?

Definition at line 241 of file KX_Scene.h.

Referenced by AddReplicaObject(), DupliGroupRecurse(), and ReplicateLogic().

This scenes viewport into the game engine canvas.Maintained externally, initially [0,0] -> [0,0]

Definition at line 279 of file KX_Scene.h.

Referenced by GetSceneViewport(), and SetSceneViewport().

stores the worldsettings for a scene

Definition at line 181 of file KX_Scene.h.

Referenced by GetWorldInfo(), and SetWorldInfo().


The documentation for this class was generated from the following files: