All Classes Namespaces Files Functions Typedefs Enumerations Enumerator Macros
graphics::WindowManager Class Reference

#include <gepetto/viewer/window-manager.h>

Public Member Functions

virtual WindowManagerPtr_t clone (void) const
 Proceed to a clonage of the current object defined by the copy constructor. More...
 
WindowManagerPtr_t self (void) const
 Return a shared pointer of the current object. More...
 
virtual bool addNode (NodePtr_t graphical_object_ptr)
 Add a graphical object to the scene. More...
 
virtual GroupNodePtr_t getScene () const
 Return the scene group. More...
 
virtual bool done ()
 Return the current doing of procedure. More...
 
virtual bool frame ()
 Generate a new frame rendering. More...
 
virtual bool run ()
 Run the scene process. More...
 
virtual void setWindowDimension (const unsigned int &width, const unsigned int &height)
 Define dimension of the window. More...
 
virtual void setWindowPosition (const unsigned int &x_position, const unsigned int &y_position)
 Define the window position. More...
 
virtual void setWindowDecoration (bool window_decoration_status)
 Define the window decoration state. More...
 
osgVector2 getWindowPosition () const
 Return the window x and y position as a 2D vector. More...
 
bool getWindowDecoration () const
 Return the current window decoration status. More...
 
osgVector2 getWindowDimension () const
 Return the window width and height as a 2D vector. More...
 
::osgViewer::ViewerRefPtr getViewerClone ()
 Return a ref to the viewer. More...
 
virtual ~WindowManager ()
 
void startCapture (const std::string &filename, const std::string &extension)
 
void stopCapture ()
 

Static Public Member Functions

static WindowManagerPtr_t create ()
 Create and initialize a graphical engine of type OSG. More...
 
static WindowManagerPtr_t create (const unsigned int &x, const unsigned int &y, const unsigned int &width, const unsigned int &height)
 Create and initialize a graphical engine of type OSG with some parameters : position + dimension. More...
 
static WindowManagerPtr_t createCopy (WindowManagerPtr_t other)
 Static method for creating a clone of box other with the copy constructor. More...
 

Constructor & Destructor Documentation

virtual graphics::WindowManager::~WindowManager ( )
virtual

Member Function Documentation

virtual bool graphics::WindowManager::addNode ( NodePtr_t  graphical_object_ptr)
virtual

Add a graphical object to the scene.

virtual WindowManagerPtr_t graphics::WindowManager::clone ( void  ) const
virtual

Proceed to a clonage of the current object defined by the copy constructor.

static WindowManagerPtr_t graphics::WindowManager::create ( )
static

Create and initialize a graphical engine of type OSG.

static WindowManagerPtr_t graphics::WindowManager::create ( const unsigned int &  x,
const unsigned int &  y,
const unsigned int &  width,
const unsigned int &  height 
)
static

Create and initialize a graphical engine of type OSG with some parameters : position + dimension.

static WindowManagerPtr_t graphics::WindowManager::createCopy ( WindowManagerPtr_t  other)
static

Static method for creating a clone of box other with the copy constructor.

virtual bool graphics::WindowManager::done ( )
virtual

Return the current doing of procedure.

virtual bool graphics::WindowManager::frame ( )
virtual

Generate a new frame rendering.

virtual GroupNodePtr_t graphics::WindowManager::getScene ( ) const
inlinevirtual

Return the scene group.

::osgViewer::ViewerRefPtr graphics::WindowManager::getViewerClone ( )

Return a ref to the viewer.

bool graphics::WindowManager::getWindowDecoration ( ) const
inline

Return the current window decoration status.

osgVector2 graphics::WindowManager::getWindowDimension ( ) const

Return the window width and height as a 2D vector.

osgVector2 graphics::WindowManager::getWindowPosition ( ) const

Return the window x and y position as a 2D vector.

virtual bool graphics::WindowManager::run ( )
virtual

Run the scene process.

WindowManagerPtr_t graphics::WindowManager::self ( void  ) const

Return a shared pointer of the current object.

virtual void graphics::WindowManager::setWindowDecoration ( bool  window_decoration_status)
virtual

Define the window decoration state.

virtual void graphics::WindowManager::setWindowDimension ( const unsigned int &  width,
const unsigned int &  height 
)
virtual

Define dimension of the window.

virtual void graphics::WindowManager::setWindowPosition ( const unsigned int &  x_position,
const unsigned int &  y_position 
)
virtual

Define the window position.

void graphics::WindowManager::startCapture ( const std::string &  filename,
const std::string &  extension 
)
void graphics::WindowManager::stopCapture ( )