Classes | Typedefs | Functions | Variables
rve_render_server Namespace Reference

Classes

class  BatchManager
class  BatchRenderable
class  BatchRenderer
class  BillboardText
class  BillboardTextServer
class  BoxServer
class  Camera
class  CameraServer
class  ConeServer
class  CylinderServer
class  DisableRenderingSchemeListener
class  LinesManager
class  LinesRenderable
class  LinesRenderer
struct  LinesRendererDesc
class  LinesServer
class  Material
struct  MaterialDefinition
class  MaterialServer
class  Mesh
class  MeshInstance
class  MeshInstanceServer
class  MeshServer
class  Pickable
struct  Picked
struct  PickRenderValues
class  PointsManager
class  PointsRenderable
class  PointsRenderer
struct  PointsRendererDesc
class  PointsServer
class  Renderable
class  Renderer
class  RenderTarget
class  RenderTargetServer
class  RenderTargetToROSImage
class  RenderTexture
class  RenderWindow
class  Scene
class  SceneServer
class  ScreenRect
class  ScreenRectRenderable
class  ScreenRectServer
class  Server
struct  ShaderDefinition
struct  ShaderParameter
struct  ShaderSampler
struct  ShaderUniform
class  SimpleMeshObjectServer
class  SphereServer
class  SubMesh
class  Texture
class  TextureServer
struct  Timer
class  TrianglesManager
class  TrianglesRenderable
class  TrianglesRenderer
struct  TrianglesRendererDesc
class  TrianglesServer

Typedefs

typedef boost::shared_ptr
< BillboardText
BillboardTextPtr
typedef boost::shared_ptr< CameraCameraPtr
typedef boost::shared_ptr
< DisableRenderingSchemeListener
DisableRenderingSchemeListenerPtr
typedef boost::shared_ptr
< LinesRenderable
LinesRenderablePtr
typedef boost::shared_ptr
< Material
MaterialPtr
typedef boost::shared_ptr
< MeshInstance
MeshInstancePtr
typedef boost::shared_ptr< MeshMeshPtr
typedef boost::shared_ptr
< ros::NodeHandle
NodeHandlePtr
typedef boost::shared_ptr
< PointsRenderable
PointsRenderablePtr
typedef boost::shared_ptr
< SubMesh
SubMeshPtr
typedef boost::shared_ptr
< Texture
TexturePtr
typedef boost::shared_ptr
< TrianglesRenderable
TrianglesRenderablePtr
typedef std::vector
< LinesRenderablePtr
V_LinesRenderable
typedef std::vector< PickedV_Picked
typedef std::vector
< PickRenderValues
V_PickRenderValues
typedef std::vector
< PointsRenderablePtr
V_PointsRenderable
typedef std::vector
< ShaderParameter
V_ShaderParameter
typedef std::vector
< ShaderSampler
V_ShaderSampler
typedef std::vector
< ShaderUniform
V_ShaderUniform
typedef std::vector< std::string > V_string
typedef std::vector
< TrianglesRenderablePtr
V_TrianglesRenderable

Functions

void applyUniforms (const Ogre::HighLevelGpuProgramPtr &program, const V_ShaderUniform &uniforms)
template<typename F >
void callAFunction (F f)
Ogre::Vector3 convert (const rve_msgs::Vector3 &v)
Ogre::Quaternion convert (const rve_msgs::Quaternion &q)
Ogre::Matrix4 convert (const rve_msgs::Matrix4 &m)
MeshPtr convertMesh (const rve_common::UUID &id, const rve_msgs::Mesh &mesh)
MaterialPtr createMaterial (const rve_msgs::Material &mat)
void createMaterialsForMesh (const rve_msgs::Mesh &input_mesh)
std::string dashToUnderscore (const std::string &str)
std::string descToStringID (const TrianglesRendererDesc &desc, bool alpha)
std::string descToStringID (const LinesRendererDesc &desc, bool alpha)
std::string descToStringID (const PointsRendererDesc &desc, bool alpha)
static void emitIncludes (std::stringstream &ss, const V_string &includes)
static void emitInputs (std::stringstream &ss, const V_ShaderParameter &inputs, bool &first_parameter, bool geom_shader)
static void emitOutputs (std::stringstream &ss, const V_ShaderParameter &outputs, bool &first_parameter)
static void emitSamplers (std::stringstream &ss, const V_ShaderSampler &samplers, bool &first_parameter)
static void emitUniforms (std::stringstream &ss, const V_ShaderUniform &uniforms, bool &first_parameter)
void fillFragmentShaderDefinition (const TrianglesRendererDesc &desc, ShaderDefinition &def)
void fillFragmentShaderDefinition (const LinesRendererDesc &desc, ShaderDefinition &def)
void fillFragmentShaderDefinition (const PointsRendererDesc &desc, ShaderDefinition &def)
void fillFragmentShaderDefinition (const rve_msgs::Material &input_mat, ShaderDefinition &def)
void fillGenericGPVP (ShaderDefinition &def)
void fillGeometryShaderDefinition (const PointsRendererDesc &desc, ShaderDefinition &def)
void fillPickingFragmentShaderDefinition (const PointsRendererDesc &desc, ShaderDefinition &def)
void fillPickingFragmentShaderDefinition (const rve_msgs::Material &input_mat, ShaderDefinition &def)
void fillVertexShaderDefinition (const TrianglesRendererDesc &desc, ShaderDefinition &def)
void fillVertexShaderDefinition (const LinesRendererDesc &desc, ShaderDefinition &def)
void fillVertexShaderDefinition (const PointsRendererDesc &desc, ShaderDefinition &def)
void fillVertexShaderDefinition (const rve_msgs::Material &input_mat, ShaderDefinition &def)
template<typename T >
uint32_t float4ToInt (T t)
static Ogre::Matrix3 fromEulersYXZ (float y, float x, float z)
Ogre::Vector3 fromRobot (const rve_msgs::Vector3 &point)
 Convert a point from robot space to ogre space.
Ogre::Vector3 fromRobot (const Ogre::Vector3 &point)
Ogre::Quaternion fromRobot (const rve_msgs::Quaternion &quat)
 Convert a quaternion from robot space to ogre space.
Ogre::Quaternion fromRobot (const Ogre::Quaternion &quat)
Ogre::Quaternion fromRobotRelative (const rve_msgs::Quaternion &quat)
Ogre::Quaternion fromRobotRelative (const Ogre::Quaternion &quat)
Ogre::Matrix3 g_ogre_to_robot_matrix (fromEulersYXZ(-90, 0,-90))
Ogre::Quaternion g_ogre_to_robot_quat (matToQuat(g_ogre_to_robot_matrix))
Ogre::Matrix3 g_robot_to_ogre_matrix (g_ogre_to_robot_matrix.Inverse())
Ogre::Matrix3 g_robot_to_ogre_normal_matrix (inverseTranspose(g_robot_to_ogre_matrix))
Ogre::Quaternion g_robot_to_ogre_quat (matToQuat(g_robot_to_ogre_matrix))
Ogre::GpuProgramPtr generateFragmentShader (const ShaderDefinition &in_def, bool transparent, bool shaded, const std::string &base_name)
Ogre::GpuProgramPtr generateGeometryShader (const ShaderDefinition &def, const std::string &base_name)
std::pair< Ogre::MaterialPtr,
Ogre::MaterialPtr
generateMaterialsForLines (const LinesRendererDesc &desc)
std::pair< Ogre::MaterialPtr,
Ogre::MaterialPtr
generateMaterialsForPoints (const PointsRendererDesc &desc)
std::pair< Ogre::MaterialPtr,
Ogre::MaterialPtr
generateMaterialsForTriangles (const TrianglesRendererDesc &desc)
Ogre::MaterialPtr generateOgreMaterial (const rve_msgs::Material &mat)
Ogre::MaterialPtr generateOgreMaterial (const MaterialDefinition &def)
Ogre::GpuProgramPtr generatePickingFragmentShader (const ShaderDefinition &in_def, const std::string &base_name)
Ogre::GpuProgramPtr generateVertexShader (const ShaderDefinition &def, const std::string &base_name)
RenderergetRenderer ()
ServergetServer ()
void init (bool enable_ogre_log, const std::string &ns)
template<typename T >
intToFloat4 (uint32_t id)
static Ogre::Matrix3 inverseTranspose (const Ogre::Matrix3 &mat)
MeshPtr loadMesh (const std::string &resource_path)
void loadTexture (const std::string &resource_path)
rve_render_server::CameralookupCamera (Renderer *rend, const rve_common::UUID &scene_id, const rve_common::UUID &id)
rve_render_server::ScenelookupScene (Renderer *rend, const rve_common::UUID &id)
bool lookupTextureResource (const std::string &resource, std::string &out_ogre_resource)
std::string materialToStringID (const rve_msgs::Material &input_mat)
static Ogre::Quaternion matToQuat (const Ogre::Matrix3 &mat)
Ogre::Vector3 normalFromRobot (const Ogre::Vector3 &normal)
bool rectMatches (ScreenRect *rect, const rve_common::UUID &id)
bool rectSort (ScreenRect *lhs, ScreenRect *rhs)
Ogre::Vector3 scaleFromRobot (const Ogre::Vector3 &scale)
 Convert a scale xyz from robot space to ogre space.
Ogre::Vector3 scaleFromRobot (const rve_msgs::Vector3 &scale)
void shutdown ()
static std::string toString (uint32_t i)

Variables

static float g_billboard_offsets [6]
static float * g_billboard_sphere_vertices = g_billboard_vertices
static float g_billboard_vertices [6 *3]
static float g_box_normals [6 *6 *3]
static float g_box_vertices [6 *6 *3]
Ogre::Matrix3 g_ogre_to_robot_matrix
Ogre::Quaternion g_ogre_to_robot_quat
static float g_point_vertices [3]
Rendererg_renderer = 0
Ogre::Matrix3 g_robot_to_ogre_matrix
Ogre::Matrix3 g_robot_to_ogre_normal_matrix
Ogre::Quaternion g_robot_to_ogre_quat
Serverg_server = 0

Typedef Documentation

Definition at line 53 of file scene.h.

typedef boost::shared_ptr<Camera> rve_render_server::CameraPtr

Definition at line 47 of file scene.h.

Definition at line 77 of file renderer.h.

Definition at line 83 of file lines_renderer.h.

typedef boost::shared_ptr< Material > rve_render_server::MaterialPtr

Definition at line 93 of file material.h.

Definition at line 50 of file scene.h.

typedef boost::shared_ptr< Mesh > rve_render_server::MeshPtr

Definition at line 66 of file mesh.h.

Definition at line 59 of file server.h.

Definition at line 93 of file points_renderer.h.

typedef boost::shared_ptr<SubMesh> rve_render_server::SubMeshPtr

Definition at line 45 of file mesh.h.

typedef boost::shared_ptr<Texture> rve_render_server::TexturePtr

Definition at line 73 of file renderer.h.

Definition at line 76 of file triangles_renderer.h.

Definition at line 84 of file lines_renderer.h.

Definition at line 82 of file renderer.h.

Definition at line 60 of file render_target.h.

Definition at line 94 of file points_renderer.h.

Definition at line 56 of file shader_definition.h.

Definition at line 91 of file shader_definition.h.

Definition at line 75 of file shader_definition.h.

Definition at line 93 of file shader_definition.h.

Definition at line 77 of file triangles_renderer.h.


Function Documentation

void rve_render_server::applyUniforms ( const Ogre::HighLevelGpuProgramPtr &  program,
const V_ShaderUniform &  uniforms 
)

Definition at line 98 of file ogre_material_generator.cpp.

template<typename F >
void rve_render_server::callAFunction ( f)

Definition at line 192 of file renderer.cpp.

Definition at line 56 of file convert.h.

Definition at line 61 of file convert.h.

Definition at line 66 of file convert.h.

Definition at line 75 of file mesh_loader.cpp.

Definition at line 57 of file mesh_loader.cpp.

Definition at line 65 of file mesh_loader.cpp.

std::string rve_render_server::dashToUnderscore ( const std::string &  str)

Definition at line 67 of file render_target.cpp.

std::string rve_render_server::descToStringID ( const TrianglesRendererDesc &  desc,
bool  alpha 
)

Definition at line 53 of file triangles_material_generator.cpp.

std::string rve_render_server::descToStringID ( const LinesRendererDesc &  desc,
bool  alpha 
)

Definition at line 53 of file lines_material_generator.cpp.

std::string rve_render_server::descToStringID ( const PointsRendererDesc &  desc,
bool  alpha 
)

Definition at line 53 of file points_material_generator.cpp.

static void rve_render_server::emitIncludes ( std::stringstream &  ss,
const V_string includes 
) [static]

Definition at line 212 of file ogre_material_generator.cpp.

static void rve_render_server::emitInputs ( std::stringstream &  ss,
const V_ShaderParameter &  inputs,
bool &  first_parameter,
bool  geom_shader 
) [static]

Definition at line 131 of file ogre_material_generator.cpp.

static void rve_render_server::emitOutputs ( std::stringstream &  ss,
const V_ShaderParameter &  outputs,
bool &  first_parameter 
) [static]

Definition at line 155 of file ogre_material_generator.cpp.

static void rve_render_server::emitSamplers ( std::stringstream &  ss,
const V_ShaderSampler &  samplers,
bool &  first_parameter 
) [static]

Definition at line 193 of file ogre_material_generator.cpp.

static void rve_render_server::emitUniforms ( std::stringstream &  ss,
const V_ShaderUniform &  uniforms,
bool &  first_parameter 
) [static]

Definition at line 174 of file ogre_material_generator.cpp.

void rve_render_server::fillFragmentShaderDefinition ( const TrianglesRendererDesc &  desc,
ShaderDefinition &  def 
)

Definition at line 94 of file triangles_material_generator.cpp.

void rve_render_server::fillFragmentShaderDefinition ( const LinesRendererDesc &  desc,
ShaderDefinition &  def 
)

Definition at line 110 of file lines_material_generator.cpp.

void rve_render_server::fillFragmentShaderDefinition ( const PointsRendererDesc &  desc,
ShaderDefinition &  def 
)

Definition at line 271 of file points_material_generator.cpp.

void rve_render_server::fillFragmentShaderDefinition ( const rve_msgs::Material input_mat,
ShaderDefinition &  def 
)

Definition at line 617 of file ogre_material_generator.cpp.

void rve_render_server::fillGenericGPVP ( ShaderDefinition &  def)

Definition at line 80 of file points_material_generator.cpp.

void rve_render_server::fillGeometryShaderDefinition ( const PointsRendererDesc &  desc,
ShaderDefinition &  def 
)

Definition at line 332 of file points_material_generator.cpp.

void rve_render_server::fillPickingFragmentShaderDefinition ( const PointsRendererDesc &  desc,
ShaderDefinition &  def 
)

Definition at line 316 of file points_material_generator.cpp.

void rve_render_server::fillPickingFragmentShaderDefinition ( const rve_msgs::Material input_mat,
ShaderDefinition &  def 
)

Definition at line 683 of file ogre_material_generator.cpp.

void rve_render_server::fillVertexShaderDefinition ( const TrianglesRendererDesc &  desc,
ShaderDefinition &  def 
)

Definition at line 66 of file triangles_material_generator.cpp.

void rve_render_server::fillVertexShaderDefinition ( const LinesRendererDesc &  desc,
ShaderDefinition &  def 
)

Definition at line 68 of file lines_material_generator.cpp.

void rve_render_server::fillVertexShaderDefinition ( const PointsRendererDesc &  desc,
ShaderDefinition &  def 
)

Definition at line 110 of file points_material_generator.cpp.

void rve_render_server::fillVertexShaderDefinition ( const rve_msgs::Material input_mat,
ShaderDefinition &  def 
)

Definition at line 565 of file ogre_material_generator.cpp.

template<typename T >
uint32_t rve_render_server::float4ToInt ( t)

Definition at line 101 of file pickable.h.

static Ogre::Matrix3 rve_render_server::fromEulersYXZ ( float  y,
float  x,
float  z 
) [static]

Definition at line 35 of file convert.cpp.

Convert a point from robot space to ogre space.

Parameters:
pointConverts this point in-place

Definition at line 78 of file convert.h.

Definition at line 83 of file convert.h.

Convert a quaternion from robot space to ogre space.

Parameters:
quatConverts this quaternion in-place

Definition at line 111 of file convert.h.

Definition at line 116 of file convert.h.

Definition at line 121 of file convert.h.

Definition at line 126 of file convert.h.

Ogre::Matrix3 rve_render_server::g_ogre_to_robot_matrix ( fromEulersYXZ(-90, 0,-90)  )
Ogre::Quaternion rve_render_server::g_ogre_to_robot_quat ( matToQuat(g_ogre_to_robot_matrix)  )
Ogre::Matrix3 rve_render_server::g_robot_to_ogre_matrix ( g_ogre_to_robot_matrix.  Inverse())
Ogre::Matrix3 rve_render_server::g_robot_to_ogre_normal_matrix ( inverseTranspose(g_robot_to_ogre_matrix)  )
Ogre::Quaternion rve_render_server::g_robot_to_ogre_quat ( matToQuat(g_robot_to_ogre_matrix)  )
Ogre::GpuProgramPtr rve_render_server::generateFragmentShader ( const ShaderDefinition &  in_def,
bool  transparent,
bool  shaded,
const std::string &  base_name 
)

Definition at line 263 of file ogre_material_generator.cpp.

Ogre::GpuProgramPtr rve_render_server::generateGeometryShader ( const ShaderDefinition &  def,
const std::string &  base_name 
)

Definition at line 397 of file ogre_material_generator.cpp.

std::pair< Ogre::MaterialPtr, Ogre::MaterialPtr > rve_render_server::generateMaterialsForLines ( const LinesRendererDesc &  desc)
Returns:
a pair of materials, first being opaque, second being alpha

Definition at line 123 of file lines_material_generator.cpp.

std::pair< Ogre::MaterialPtr, Ogre::MaterialPtr > rve_render_server::generateMaterialsForPoints ( const PointsRendererDesc &  desc)
Returns:
a pair of materials, first being opaque, second being alpha

Definition at line 436 of file points_material_generator.cpp.

std::pair< Ogre::MaterialPtr, Ogre::MaterialPtr > rve_render_server::generateMaterialsForTriangles ( const TrianglesRendererDesc &  desc)
Returns:
a pair of materials, first being opaque, second being alpha

Definition at line 106 of file triangles_material_generator.cpp.

Definition at line 693 of file ogre_material_generator.cpp.

Ogre::MaterialPtr rve_render_server::generateOgreMaterial ( const MaterialDefinition &  def)

Definition at line 437 of file ogre_material_generator.cpp.

Ogre::GpuProgramPtr rve_render_server::generatePickingFragmentShader ( const ShaderDefinition &  in_def,
const std::string &  base_name 
)

Definition at line 341 of file ogre_material_generator.cpp.

Ogre::GpuProgramPtr rve_render_server::generateVertexShader ( const ShaderDefinition &  def,
const std::string &  base_name 
)

Definition at line 222 of file ogre_material_generator.cpp.

Definition at line 60 of file init.cpp.

Definition at line 65 of file init.cpp.

void rve_render_server::init ( bool  enable_ogre_log,
const std::string &  ns 
)

Definition at line 44 of file init.cpp.

template<typename T >
T rve_render_server::intToFloat4 ( uint32_t  id)

Definition at line 95 of file pickable.h.

static Ogre::Matrix3 rve_render_server::inverseTranspose ( const Ogre::Matrix3 &  mat) [static]

Definition at line 49 of file convert.cpp.

MeshPtr rve_render_server::loadMesh ( const std::string &  resource_path)

Definition at line 247 of file mesh_loader.cpp.

void rve_render_server::loadTexture ( const std::string &  resource_path)

Definition at line 59 of file ogre_material_generator.cpp.

rve_render_server::Camera* rve_render_server::lookupCamera ( Renderer *  rend,
const rve_common::UUID scene_id,
const rve_common::UUID id 
)

Definition at line 93 of file server.cpp.

Definition at line 82 of file server.cpp.

bool rve_render_server::lookupTextureResource ( const std::string &  resource,
std::string &  out_ogre_resource 
)

Definition at line 41 of file texture_resource.cpp.

std::string rve_render_server::materialToStringID ( const rve_msgs::Material input_mat)

Definition at line 529 of file ogre_material_generator.cpp.

static Ogre::Quaternion rve_render_server::matToQuat ( const Ogre::Matrix3 &  mat) [static]

Definition at line 42 of file convert.cpp.

Definition at line 88 of file convert.h.

bool rve_render_server::rectMatches ( ScreenRect *  rect,
const rve_common::UUID id 
)

Definition at line 657 of file render_target.cpp.

bool rve_render_server::rectSort ( ScreenRect *  lhs,
ScreenRect *  rhs 
)

Definition at line 344 of file render_target.cpp.

Convert a scale xyz from robot space to ogre space.

Parameters:
scaleConverts this scale xyz in-place

Definition at line 97 of file convert.h.

Definition at line 102 of file convert.h.

Definition at line 52 of file init.cpp.

static std::string rve_render_server::toString ( uint32_t  i) [static]

Definition at line 103 of file points_material_generator.cpp.


Variable Documentation

Initial value:
{
  -0.5f,
  0.5f,
  -0.5f,
  0.5f,
  -0.5f,
  0.5f,
}

Definition at line 48 of file lines_renderer.cpp.

Definition at line 64 of file points_renderer.cpp.

Initial value:
{
  -0.5f, 0.5f, 0.0f,
  -0.5f, -0.5f, 0.0f,
  0.5f, 0.5f, 0.0f,
  0.5f, 0.5f, 0.0f,
  -0.5f, -0.5f, 0.0f,
  0.5f, -0.5f, 0.0f,
}

Definition at line 53 of file points_renderer.cpp.

float rve_render_server::g_box_normals[6 *6 *3] [static]

Definition at line 125 of file points_renderer.cpp.

float rve_render_server::g_box_vertices[6 *6 *3] [static]

Definition at line 74 of file points_renderer.cpp.

Initial value:
{
  0.0f, 0.0f, 0.0f
}

Definition at line 48 of file points_renderer.cpp.

Definition at line 38 of file init.cpp.

Definition at line 39 of file init.cpp.



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