Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Ketsji/KX_Scene.h
| Show First 20 Lines • Show All 124 Lines • ▼ Show 20 Lines | protected: | ||||
| */ | */ | ||||
| CListValue* m_euthanasyobjects; | CListValue* m_euthanasyobjects; | ||||
| CListValue* m_objectlist; | CListValue* m_objectlist; | ||||
| CListValue* m_parentlist; // all 'root' parents | CListValue* m_parentlist; // all 'root' parents | ||||
| CListValue* m_lightlist; | CListValue* m_lightlist; | ||||
| CListValue* m_inactivelist; // all objects that are not in the active layer | CListValue* m_inactivelist; // all objects that are not in the active layer | ||||
| CListValue* m_animatedlist; // all animated objects | CListValue* m_animatedlist; // all animated objects | ||||
| /// The set of cameras for this scene | |||||
| CListValue* m_cameralist; | |||||
| /// The set of fonts for this scene | |||||
| CListValue* m_fontlist; | |||||
| SG_QList m_sghead; // list of nodes that needs scenegraph update | SG_QList m_sghead; // list of nodes that needs scenegraph update | ||||
| // the Dlist is not object that must be updated | // the Dlist is not object that must be updated | ||||
| // the Qlist is for objects that needs to be rescheduled | // the Qlist is for objects that needs to be rescheduled | ||||
| // for updates after udpate is over (slow parent, bone parent) | // for updates after udpate is over (slow parent, bone parent) | ||||
| /** | |||||
| * The set of cameras for this scene | |||||
| */ | |||||
| std::list<class KX_Camera*> m_cameras; | |||||
| /** | |||||
| * The set of fonts for this scene | |||||
| */ | |||||
| std::list<class KX_FontObject*> m_fonts; | |||||
| /** | /** | ||||
| * Various SCA managers used by the scene | * Various SCA managers used by the scene | ||||
| */ | */ | ||||
| SCA_LogicManager* m_logicmgr; | SCA_LogicManager* m_logicmgr; | ||||
| SCA_KeyboardManager* m_keyboardmgr; | SCA_KeyboardManager* m_keyboardmgr; | ||||
| SCA_MouseManager* m_mousemgr; | SCA_MouseManager* m_mousemgr; | ||||
| SCA_TimeEventManager* m_timemgr; | SCA_TimeEventManager* m_timemgr; | ||||
| ▲ Show 20 Lines • Show All 208 Lines • ▼ Show 20 Lines | ); | ||||
| CListValue* | CListValue* | ||||
| GetRootParentList( | GetRootParentList( | ||||
| ); | ); | ||||
| CListValue* | CListValue* | ||||
| GetLightList( | GetLightList( | ||||
| ); | ); | ||||
| SCA_LogicManager * | CListValue* | ||||
| GetLogicManager( | GetCameraList( | ||||
| ); | ); | ||||
| SCA_TimeEventManager * | CListValue* | ||||
| GetTimeEventManager( | GetFontList( | ||||
| ); | ); | ||||
| /** Font Routines */ | SCA_LogicManager * | ||||
| GetLogicManager( | |||||
| /** Find a font in the scene by pointer. */ | |||||
| KX_FontObject* | |||||
| FindFont( | |||||
| KX_FontObject* | |||||
| ); | ); | ||||
| /** Add a camera to this scene. */ | SCA_TimeEventManager * | ||||
| void | GetTimeEventManager( | ||||
| AddFont( | |||||
| KX_FontObject* | |||||
| ); | ); | ||||
| /** Render the fonts in this scene. */ | /** Render the fonts in this scene. */ | ||||
| void | void | ||||
| RenderFonts( | RenderFonts( | ||||
| ); | ); | ||||
| /** Camera Routines */ | |||||
| std::list<class KX_Camera*>* | |||||
| GetCameras( | |||||
| ); | |||||
| /** Find a camera in the scene by pointer. */ | |||||
| KX_Camera* | |||||
| FindCamera( | |||||
| KX_Camera* | |||||
| ); | |||||
| /** Find a scene in the scene by name. */ | |||||
| KX_Camera* | |||||
| FindCamera( | |||||
| STR_String& | |||||
| ); | |||||
| /** Add a camera to this scene. */ | |||||
| void | |||||
| AddCamera( | |||||
| KX_Camera* | |||||
| ); | |||||
| /** Find the currently active camera. */ | /** Find the currently active camera. */ | ||||
| KX_Camera* | KX_Camera* | ||||
| GetActiveCamera( | GetActiveCamera( | ||||
| ); | ); | ||||
| /** | /** | ||||
| * Set this camera to be the active camera in the scene. If the | * 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 | * camera is not present in the camera list, it will be added | ||||
| ▲ Show 20 Lines • Show All 171 Lines • ▼ Show 20 Lines | #ifdef WITH_PYTHON | ||||
| KX_PYMETHOD_DOC(KX_Scene, drawObstacleSimulation); | KX_PYMETHOD_DOC(KX_Scene, drawObstacleSimulation); | ||||
| /* attributes */ | /* attributes */ | ||||
| static PyObject* pyattr_get_name(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef); | static PyObject* pyattr_get_name(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef); | ||||
| static PyObject* pyattr_get_objects(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef); | static PyObject* pyattr_get_objects(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef); | ||||
| static PyObject* pyattr_get_objects_inactive(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef); | static PyObject* pyattr_get_objects_inactive(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef); | ||||
| static PyObject* pyattr_get_lights(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef); | static PyObject* pyattr_get_lights(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef); | ||||
| static PyObject* pyattr_get_fonts(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef); | |||||
| static PyObject* pyattr_get_cameras(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef); | static PyObject* pyattr_get_cameras(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef); | ||||
| static PyObject* pyattr_get_active_camera(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef); | static PyObject* pyattr_get_active_camera(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef); | ||||
| static int pyattr_set_active_camera(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef, PyObject *value); | static int pyattr_set_active_camera(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef, PyObject *value); | ||||
| static PyObject* pyattr_get_drawing_callback_pre(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef); | static PyObject* pyattr_get_drawing_callback_pre(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef); | ||||
| static int pyattr_set_drawing_callback_pre(void *selv_v, const KX_PYATTRIBUTE_DEF *attrdef, PyObject *value); | static int pyattr_set_drawing_callback_pre(void *selv_v, const KX_PYATTRIBUTE_DEF *attrdef, PyObject *value); | ||||
| static PyObject* pyattr_get_drawing_callback_post(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef); | static PyObject* pyattr_get_drawing_callback_post(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef); | ||||
| static int pyattr_set_drawing_callback_post(void *selv_v, const KX_PYATTRIBUTE_DEF *attrdef, PyObject *value); | static int pyattr_set_drawing_callback_post(void *selv_v, const KX_PYATTRIBUTE_DEF *attrdef, PyObject *value); | ||||
| static PyObject* pyattr_get_gravity(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef); | static PyObject* pyattr_get_gravity(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef); | ||||
| ▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines | |||||