Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
rviz::RenderSystem Class Reference

#include <render_system.h>

Public Types

typedef unsigned long WindowIDType
 

Public Member Functions

int getGlslVersion ()
 
int getGlVersion ()
 
bool isStereoSupported ()
 
Ogre::RenderWindow * makeRenderWindow (WindowIDType window_id, unsigned int width, unsigned int height, double pixel_ratio=1.0)
 
void prepareOverlays (Ogre::SceneManager *scene_manager)
 
Ogre::Root * root ()
 

Static Public Member Functions

static void disableAntiAliasing ()
 
static void forceGlVersion (int version)
 
static void forceNoStereo ()
 
static RenderSystemget ()
 

Private Member Functions

void detectGlVersion ()
 
void loadOgrePlugins ()
 
 RenderSystem ()
 
void setupDummyWindowId ()
 
void setupRenderSystem ()
 
void setupResources ()
 
Ogre::RenderWindow * tryMakeRenderWindow (const std::string &name, unsigned int width, unsigned int height, const Ogre::NameValuePairList *params, int max_attempts)
 

Private Attributes

WindowIDType dummy_window_id_
 
int gl_version_
 
int glsl_version_
 
Ogre::OverlaySystem * ogre_overlay_system_
 
Ogre::Root * ogre_root_
 
bool stereo_supported_
 

Static Private Attributes

static int force_gl_version_ = 0
 
static bool force_no_stereo_ = false
 
static RenderSysteminstance_ = nullptr
 
static bool use_anti_aliasing_ = true
 

Detailed Description

Definition at line 45 of file render_system.h.

Member Typedef Documentation

◆ WindowIDType

typedef unsigned long rviz::RenderSystem::WindowIDType

Definition at line 51 of file render_system.h.

Constructor & Destructor Documentation

◆ RenderSystem()

rviz::RenderSystem::RenderSystem ( )
private

Definition at line 103 of file render_system.cpp.

Member Function Documentation

◆ detectGlVersion()

void rviz::RenderSystem::detectGlVersion ( )
private

Definition at line 174 of file render_system.cpp.

◆ disableAntiAliasing()

void rviz::RenderSystem::disableAntiAliasing ( )
static

Definition at line 91 of file render_system.cpp.

◆ forceGlVersion()

void rviz::RenderSystem::forceGlVersion ( int  version)
static

Definition at line 85 of file render_system.cpp.

◆ forceNoStereo()

void rviz::RenderSystem::forceNoStereo ( )
static

Definition at line 97 of file render_system.cpp.

◆ get()

RenderSystem * rviz::RenderSystem::get ( )
static

Definition at line 76 of file render_system.cpp.

◆ getGlslVersion()

int rviz::RenderSystem::getGlslVersion ( )
inline

Definition at line 77 of file render_system.h.

◆ getGlVersion()

int rviz::RenderSystem::getGlVersion ( )
inline

Definition at line 71 of file render_system.h.

◆ isStereoSupported()

bool rviz::RenderSystem::isStereoSupported ( )
inline

Definition at line 92 of file render_system.h.

◆ loadOgrePlugins()

void rviz::RenderSystem::loadOgrePlugins ( )
private

Definition at line 160 of file render_system.cpp.

◆ makeRenderWindow()

Ogre::RenderWindow * rviz::RenderSystem::makeRenderWindow ( WindowIDType  window_id,
unsigned int  width,
unsigned int  height,
double  pixel_ratio = 1.0 
)

Definition at line 392 of file render_system.cpp.

◆ prepareOverlays()

void rviz::RenderSystem::prepareOverlays ( Ogre::SceneManager *  scene_manager)

Definition at line 121 of file render_system.cpp.

◆ root()

Ogre::Root* rviz::RenderSystem::root ( )
inline

Definition at line 61 of file render_system.h.

◆ setupDummyWindowId()

void rviz::RenderSystem::setupDummyWindowId ( )
private

Definition at line 127 of file render_system.cpp.

◆ setupRenderSystem()

void rviz::RenderSystem::setupRenderSystem ( )
private

We used to allow the user to set the RTT mode to PBuffer, FBO, or Copy. Copy is slow, and there doesn't seem to be a good reason to use it PBuffer limits the size of the renderable area of the RTT to the size of the first window created. FBO seem to be the only good option

Definition at line 239 of file render_system.cpp.

◆ setupResources()

void rviz::RenderSystem::setupResources ( )
private

Definition at line 280 of file render_system.cpp.

◆ tryMakeRenderWindow()

Ogre::RenderWindow * rviz::RenderSystem::tryMakeRenderWindow ( const std::string &  name,
unsigned int  width,
unsigned int  height,
const Ogre::NameValuePairList *  params,
int  max_attempts 
)
private

Definition at line 480 of file render_system.cpp.

Member Data Documentation

◆ dummy_window_id_

WindowIDType rviz::RenderSystem::dummy_window_id_
private

Definition at line 117 of file render_system.h.

◆ force_gl_version_

int rviz::RenderSystem::force_gl_version_ = 0
staticprivate

Definition at line 125 of file render_system.h.

◆ force_no_stereo_

bool rviz::RenderSystem::force_no_stereo_ = false
staticprivate

Definition at line 127 of file render_system.h.

◆ gl_version_

int rviz::RenderSystem::gl_version_
private

Definition at line 122 of file render_system.h.

◆ glsl_version_

int rviz::RenderSystem::glsl_version_
private

Definition at line 123 of file render_system.h.

◆ instance_

RenderSystem * rviz::RenderSystem::instance_ = nullptr
staticprivate

Definition at line 114 of file render_system.h.

◆ ogre_overlay_system_

Ogre::OverlaySystem* rviz::RenderSystem::ogre_overlay_system_
private

Definition at line 120 of file render_system.h.

◆ ogre_root_

Ogre::Root* rviz::RenderSystem::ogre_root_
private

Definition at line 119 of file render_system.h.

◆ stereo_supported_

bool rviz::RenderSystem::stereo_supported_
private

Definition at line 126 of file render_system.h.

◆ use_anti_aliasing_

bool rviz::RenderSystem::use_anti_aliasing_ = true
staticprivate

Definition at line 124 of file render_system.h.


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


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Aug 2 2024 08:43:11