#include <scene_object.h>
Classes | |
struct | ContextInfo |
Public Types | |
typedef std::vector < rve_common::UUID > | V_UUID |
Public Member Functions | |
virtual bool | addToRegistry (rve_common::RegistryPtr registry, rve_common::RegistrantWPtr registrant)=0 |
void | create (Scene *scene, ClientContext *context) |
void | destroy (Scene *scene, ClientContext *context) |
virtual void | doCreate (ContextInfo &context)=0 |
virtual void | doDestroy (ContextInfo &context)=0 |
virtual void | getContextDependencies (V_UUID &deps)=0 |
void | removeFromAll () |
virtual bool | removeFromRegistry (rve_common::RegistryPtr registry, rve_common::RegistrantWPtr registrant)=0 |
Protected Types | |
typedef std::vector< ContextInfo > | V_ContextInfo |
Protected Member Functions | |
uint32_t | addProxy (const std::string &name) |
template<typename F > | |
void | forEachContext (F f) |
V_ContextInfo & | getContexts () |
template<typename T > | |
T * | getProxy (const ContextInfo &info, uint32_t proxy_index) |
const rve_common::UUID & | getSceneID (Scene *scene) |
template<typename P , typename F > | |
void | multiplex (F f, uint32_t proxy_index) |
Private Member Functions | |
void * | getProxy (const ContextInfo &info, uint32_t proxy_index) |
void | lookupProxy (ContextInfo &info, const std::string &name) |
Private Attributes | |
V_ContextInfo | contexts_ |
std::vector< std::string > | proxies_ |
Definition at line 46 of file scene_object.h.
typedef std::vector<ContextInfo> rve_render_client::SceneObject::V_ContextInfo [protected] |
Definition at line 60 of file scene_object.h.
Definition at line 69 of file scene_object.h.
uint32_t rve_render_client::SceneObject::addProxy | ( | const std::string & | name | ) | [protected] |
Definition at line 89 of file scene_object.cpp.
virtual bool rve_render_client::SceneObject::addToRegistry | ( | rve_common::RegistryPtr | registry, |
rve_common::RegistrantWPtr | registrant | ||
) | [pure virtual] |
Implemented in rve_render_client::SceneObjectCollection, and rve_render_client::SingleSceneObject.
void rve_render_client::SceneObject::create | ( | Scene * | scene, |
ClientContext * | context | ||
) |
Definition at line 47 of file scene_object.cpp.
void rve_render_client::SceneObject::destroy | ( | Scene * | scene, |
ClientContext * | context | ||
) |
Definition at line 65 of file scene_object.cpp.
virtual void rve_render_client::SceneObject::doCreate | ( | ContextInfo & | context | ) | [pure virtual] |
Implemented in rve_render_client::BillboardText, rve_render_client::Cone, rve_render_client::Cylinder, rve_render_client::Box, rve_render_client::MeshInstance, rve_render_client::Sphere, rve_render_client::Lines, rve_render_client::Points, rve_render_client::Triangles, rve_render_client::SceneObjectCollection, and rve_render_client::Camera.
virtual void rve_render_client::SceneObject::doDestroy | ( | ContextInfo & | context | ) | [pure virtual] |
Implemented in rve_render_client::BillboardText, rve_render_client::Cone, rve_render_client::Cylinder, rve_render_client::Box, rve_render_client::MeshInstance, rve_render_client::Sphere, rve_render_client::Lines, rve_render_client::Points, rve_render_client::Triangles, rve_render_client::SceneObjectCollection, and rve_render_client::Camera.
void rve_render_client::SceneObject::forEachContext | ( | F | f | ) | [inline, protected] |
Definition at line 92 of file scene_object.h.
virtual void rve_render_client::SceneObject::getContextDependencies | ( | V_UUID & | deps | ) | [pure virtual] |
Implemented in rve_render_client::BillboardText, rve_render_client::Cone, rve_render_client::Cylinder, rve_render_client::Box, rve_render_client::MeshInstance, rve_render_client::Sphere, rve_render_client::Lines, rve_render_client::Points, rve_render_client::Triangles, rve_render_client::SceneObjectCollection, and rve_render_client::Camera.
V_ContextInfo& rve_render_client::SceneObject::getContexts | ( | ) | [inline, protected] |
Definition at line 87 of file scene_object.h.
void * rve_render_client::SceneObject::getProxy | ( | const ContextInfo & | info, |
uint32_t | proxy_index | ||
) | [inline, protected] |
Definition at line 82 of file scene_object.h.
void* rve_render_client::SceneObject::getProxy | ( | const ContextInfo & | info, |
uint32_t | proxy_index | ||
) | [private] |
const rve_common::UUID & rve_render_client::SceneObject::getSceneID | ( | Scene * | scene | ) | [protected] |
Definition at line 98 of file scene_object.cpp.
void rve_render_client::SceneObject::lookupProxy | ( | ContextInfo & | info, |
const std::string & | name | ||
) | [private] |
Definition at line 84 of file scene_object.cpp.
void rve_render_client::SceneObject::multiplex | ( | F | f, |
uint32_t | proxy_index | ||
) | [inline, protected] |
Definition at line 104 of file scene_object.h.
Definition at line 103 of file scene_object.cpp.
virtual bool rve_render_client::SceneObject::removeFromRegistry | ( | rve_common::RegistryPtr | registry, |
rve_common::RegistrantWPtr | registrant | ||
) | [pure virtual] |
Implemented in rve_render_client::SceneObjectCollection, and rve_render_client::SingleSceneObject.
Definition at line 121 of file scene_object.h.
std::vector<std::string> rve_render_client::SceneObject::proxies_ [private] |
Definition at line 122 of file scene_object.h.