gepetto::gui::OSGWidget Class Reference

Widget that displays scenes. More...

#include <gepetto/gui/osgwidget.hh>

Inheritance diagram for gepetto::gui::OSGWidget:
Collaboration diagram for gepetto::gui::OSGWidget:

Public Slots

void onHome ()
 Replace the camera at her home position. More...
 
void addFloor ()
 
void toggleCapture (bool active)
 
void captureFrame ()
 
void captureFrame (const std::string &filename)
 
bool startCapture (const std::string &filename, const std::string &extension)
 
bool stopCapture ()
 

Public Member Functions

 OSGWidget (WindowsManagerPtr_t wm, const std::string &name, MainWindow *parent, Qt::WindowFlags f=0, osgViewer::ViewerBase::ThreadingModel threadingModel=osgViewer::Viewer::ThreadPerContext)
 
virtual ~OSGWidget ()
 
WindowID windowID () const
 
WindowManagerPtr_t window () const
 
WindowsManagerPtr_t osg () const
 

Protected Member Functions

virtual void paintEvent (QPaintEvent *event)
 
bool isFixedSize () const
 
void setFixedSize (bool fixedSize)
 
void setWindowDimension (const osgVector2 &size)
 

Friends

class PickHandler
 

Detailed Description

Widget that displays scenes.

Constructor & Destructor Documentation

◆ OSGWidget()

gepetto::gui::OSGWidget::OSGWidget ( WindowsManagerPtr_t  wm,
const std::string &  name,
MainWindow parent,
Qt::WindowFlags  f = 0,
osgViewer::ViewerBase::ThreadingModel  threadingModel = osgViewer::Viewer::ThreadPerContext 
)

◆ ~OSGWidget()

virtual gepetto::gui::OSGWidget::~OSGWidget ( )
virtual

Member Function Documentation

◆ addFloor

void gepetto::gui::OSGWidget::addFloor ( )
slot

◆ captureFrame [1/2]

void gepetto::gui::OSGWidget::captureFrame ( )
slot

◆ captureFrame [2/2]

void gepetto::gui::OSGWidget::captureFrame ( const std::string &  filename)
slot

◆ isFixedSize()

bool gepetto::gui::OSGWidget::isFixedSize ( ) const
protected

◆ onHome

void gepetto::gui::OSGWidget::onHome ( )
slot

Replace the camera at her home position.

◆ osg()

WindowsManagerPtr_t gepetto::gui::OSGWidget::osg ( ) const

◆ paintEvent()

virtual void gepetto::gui::OSGWidget::paintEvent ( QPaintEvent *  event)
protectedvirtual

◆ setFixedSize()

void gepetto::gui::OSGWidget::setFixedSize ( bool  fixedSize)
protected

◆ setWindowDimension()

void gepetto::gui::OSGWidget::setWindowDimension ( const osgVector2 size)
protected

◆ startCapture

bool gepetto::gui::OSGWidget::startCapture ( const std::string &  filename,
const std::string &  extension 
)
slot

◆ stopCapture

bool gepetto::gui::OSGWidget::stopCapture ( )
slot

◆ toggleCapture

void gepetto::gui::OSGWidget::toggleCapture ( bool  active)
slot

◆ window()

WindowManagerPtr_t gepetto::gui::OSGWidget::window ( ) const

◆ windowID()

WindowID gepetto::gui::OSGWidget::windowID ( ) const

Friends And Related Function Documentation

◆ PickHandler

friend class PickHandler
friend

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