Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes
rve_render_server::Renderer Class Reference

#include <renderer.h>

List of all members.

Public Types

typedef boost::function< void(void)> InitFunction

Public Member Functions

void addMaterial (const rve_common::UUID &id, const MaterialPtr &mat)
void addMesh (const rve_common::UUID &id, const MeshPtr &mesh)
void addTexture (const rve_common::UUID &id, const TexturePtr &tex)
uint32_t allocatePickID (Pickable *p)
RenderTexturecreateRenderTexture (const rve_common::UUID &id, uint32_t width, uint32_t height)
RenderWindowcreateRenderWindow (const rve_common::UUID &id, const std::string &parent_window, uint32_t width, uint32_t height)
ScenecreateScene (const rve_common::UUID &id)
void deallocatePickID (uint32_t pick_id)
void destroyRenderTarget (const rve_common::UUID &id)
void destroyScene (const rve_common::UUID &id)
CameragetCamera (const rve_common::UUID &id)
MaterialPtr getMaterial (const rve_common::UUID &id)
MeshPtr getMesh (const rve_common::UUID &id)
RenderTargetgetRenderTarget (const rve_common::UUID &id)
RenderWindowgetRenderWindow (const rve_common::UUID &id)
ScenegetScene (const rve_common::UUID &id)
ros::CallbackQueuegetServerThreadCallbackQueue ()
TexturePtr getTexture (const rve_common::UUID &id)
bool meshExists (const rve_common::UUID &id)
void registerInitFunction (const InitFunction &func)
void removeMaterial (const rve_common::UUID &id)
void removeMesh (const rve_common::UUID &id)
void removeTexture (const rve_common::UUID &id)
 Renderer (bool enable_ogre_log)
void start ()
void stop ()
bool textureExists (const rve_common::UUID &id)
void translatePickIDs (const V_PickRenderValues &ids, V_Picked &out_picked)
bool useGeometryShaders ()
 ~Renderer ()

Private Types

typedef boost::shared_ptr
< ros::CallbackQueue
CallbackQueuePtr
typedef std::map
< rve_common::UUID,
MaterialPtr
M_Material
typedef std::map
< rve_common::UUID, MeshPtr
M_Mesh
typedef boost::unordered_map
< uint32_t, Pickable * > 
M_Pickable
typedef std::map
< rve_common::UUID,
RenderTargetPtr
M_RenderTarget
typedef std::map
< rve_common::UUID, ScenePtr
M_Scene
typedef std::map
< rve_common::UUID, TexturePtr
M_Texture
typedef boost::shared_ptr
< RenderTarget
RenderTargetPtr
typedef boost::shared_ptr< SceneScenePtr

Private Member Functions

void init ()
void renderThread ()
void threadInit ()

Private Attributes

CallbackQueuePtr callback_queue_
bool enable_ogre_log_
bool first_window_created_
ros::Publisher frame_stats_pub_
std::vector< InitFunctioninit_functions_
M_Material materials_
M_Mesh meshes_
boost::rand48 pickable_id_gen_
M_Pickable pickables_
Ogre::RenderWindow * primary_render_window_
M_RenderTarget render_targets_
boost::thread render_thread_
bool running_
M_Scene scenes_
DisableRenderingSchemeListenerPtr scheme_listener_
M_Texture textures_

Detailed Description

Definition at line 88 of file renderer.h.


Member Typedef Documentation

Definition at line 159 of file renderer.h.

typedef boost::function<void(void)> rve_render_server::Renderer::InitFunction

Definition at line 132 of file renderer.h.

Definition at line 162 of file renderer.h.

Definition at line 168 of file renderer.h.

typedef boost::unordered_map<uint32_t, Pickable*> rve_render_server::Renderer::M_Pickable [private]

Definition at line 171 of file renderer.h.

Definition at line 152 of file renderer.h.

Definition at line 156 of file renderer.h.

Definition at line 165 of file renderer.h.

typedef boost::shared_ptr<RenderTarget> rve_render_server::Renderer::RenderTargetPtr [private]

Definition at line 151 of file renderer.h.

typedef boost::shared_ptr<Scene> rve_render_server::Renderer::ScenePtr [private]

Definition at line 155 of file renderer.h.


Constructor & Destructor Documentation

rve_render_server::Renderer::Renderer ( bool  enable_ogre_log)

Definition at line 86 of file renderer.cpp.

Definition at line 100 of file renderer.cpp.


Member Function Documentation

Definition at line 355 of file renderer.cpp.

void rve_render_server::Renderer::addMesh ( const rve_common::UUID id,
const MeshPtr mesh 
)

Definition at line 378 of file renderer.cpp.

Definition at line 406 of file renderer.cpp.

Definition at line 432 of file renderer.cpp.

RenderTexture * rve_render_server::Renderer::createRenderTexture ( const rve_common::UUID id,
uint32_t  width,
uint32_t  height 
)

Definition at line 254 of file renderer.cpp.

RenderWindow * rve_render_server::Renderer::createRenderWindow ( const rve_common::UUID id,
const std::string &  parent_window,
uint32_t  width,
uint32_t  height 
)

Definition at line 224 of file renderer.cpp.

Definition at line 296 of file renderer.cpp.

Definition at line 445 of file renderer.cpp.

Definition at line 270 of file renderer.cpp.

Definition at line 312 of file renderer.cpp.

Definition at line 338 of file renderer.cpp.

Definition at line 365 of file renderer.cpp.

Definition at line 388 of file renderer.cpp.

Definition at line 283 of file renderer.cpp.

Definition at line 240 of file renderer.cpp.

Definition at line 325 of file renderer.cpp.

Definition at line 110 of file renderer.h.

Definition at line 416 of file renderer.cpp.

Definition at line 136 of file renderer.cpp.

Definition at line 401 of file renderer.cpp.

Definition at line 682 of file renderer.cpp.

Definition at line 360 of file renderer.cpp.

Definition at line 383 of file renderer.cpp.

Definition at line 411 of file renderer.cpp.

Definition at line 502 of file renderer.cpp.

Definition at line 105 of file renderer.cpp.

Definition at line 118 of file renderer.cpp.

Definition at line 427 of file renderer.cpp.

Definition at line 197 of file renderer.cpp.

Definition at line 450 of file renderer.cpp.

Definition at line 479 of file renderer.cpp.


Member Data Documentation

Definition at line 160 of file renderer.h.

Definition at line 148 of file renderer.h.

Definition at line 147 of file renderer.h.

Definition at line 177 of file renderer.h.

Definition at line 179 of file renderer.h.

Definition at line 163 of file renderer.h.

Definition at line 169 of file renderer.h.

Definition at line 173 of file renderer.h.

Definition at line 172 of file renderer.h.

Definition at line 149 of file renderer.h.

Definition at line 153 of file renderer.h.

Definition at line 145 of file renderer.h.

Definition at line 146 of file renderer.h.

Definition at line 157 of file renderer.h.

Definition at line 175 of file renderer.h.

Definition at line 166 of file renderer.h.


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


rve_render_server
Author(s): Josh Faust
autogenerated on Wed Dec 11 2013 14:31:15