sofa::gui::qt::viewer::SofaViewer Class Reference

#include <SofaViewer.h>

Inheritance diagram for sofa::gui::qt::viewer::SofaViewer:

Inheritance graph
[legend]
Collaboration diagram for sofa::gui::qt::viewer::SofaViewer:

Collaboration graph
[legend]

Public Member Functions

 SofaViewer ()
virtual ~SofaViewer ()
virtual QWidget * getQWidget ()=0
virtual
sofa::simulation::tree::GNode * 
getScene ()
virtual const std::string & getSceneFileName ()
virtual void setSceneFileName (const std::string &f)
virtual void setup ()
virtual void setScene (sofa::simulation::tree::GNode *scene, const char *filename=NULL, bool=false)
virtual void resetView ()=0
virtual QString helpString ()=0
virtual bool ready ()
virtual void wait ()
virtual const std::string screenshotName ()
virtual void setPrefix (const std::string filename)
virtual void screenshot (const std::string filename, int compression_level=-1)

Protected Member Functions

void keyPressEvent (QKeyEvent *e)
void keyReleaseEvent (QKeyEvent *e)
bool isControlPressed () const
void mouseEvent (QMouseEvent *e)
void moveLaparoscopic (QMouseEvent *e)
void moveLaparoscopic (QWheelEvent *e)
virtual void moveRayPickInteractor (int, int)
virtual void saveView ()=0
virtual void setSizeW (int)=0
virtual void setSizeH (int)=0
virtual void redrawn ()=0
virtual void resizeW (int)=0
virtual void resizeH (int)=0

Protected Attributes

sofa::helper::gl::Capture capture
sofa::simulation::tree::GNode * groot
std::string sceneFileName
bool m_isControlPressed
bool _video
bool _shadow
bool _gl_shadow
bool _axis
int camera_type
int _background
bool initTexturesDone
bool sceneBBoxIsValid
sofa::component::collision::RayPickInteractor * interactor
int _navigationMode
bool _mouseInteractorMoving
int _mouseInteractorSavedPosX
int _mouseInteractorSavedPosY

Detailed Description

Definition at line 86 of file SofaViewer.h.


Constructor & Destructor Documentation

sofa::gui::qt::viewer::SofaViewer::SofaViewer (  )  [inline]

Definition at line 92 of file SofaViewer.h.

virtual sofa::gui::qt::viewer::SofaViewer::~SofaViewer (  )  [inline, virtual]

Definition at line 95 of file SofaViewer.h.


Member Function Documentation

virtual QWidget* sofa::gui::qt::viewer::SofaViewer::getQWidget (  )  [pure virtual]

virtual sofa::simulation::tree::GNode* sofa::gui::qt::viewer::SofaViewer::getScene (  )  [inline, virtual]

virtual const std::string& sofa::gui::qt::viewer::SofaViewer::getSceneFileName (  )  [inline, virtual]

virtual QString sofa::gui::qt::viewer::SofaViewer::helpString (  )  [pure virtual]

bool sofa::gui::qt::viewer::SofaViewer::isControlPressed (  )  const [inline, protected]

void sofa::gui::qt::viewer::SofaViewer::keyPressEvent ( QKeyEvent *  e  )  [inline, protected]

void sofa::gui::qt::viewer::SofaViewer::keyReleaseEvent ( QKeyEvent *  e  )  [inline, protected]

void sofa::gui::qt::viewer::SofaViewer::mouseEvent ( QMouseEvent *  e  )  [inline, protected]

void sofa::gui::qt::viewer::SofaViewer::moveLaparoscopic ( QWheelEvent *  e  )  [inline, protected]

void sofa::gui::qt::viewer::SofaViewer::moveLaparoscopic ( QMouseEvent *  e  )  [inline, protected]

virtual void sofa::gui::qt::viewer::SofaViewer::moveRayPickInteractor ( int  ,
int   
) [inline, protected, virtual]

virtual bool sofa::gui::qt::viewer::SofaViewer::ready (  )  [inline, virtual]

virtual void sofa::gui::qt::viewer::SofaViewer::redrawn (  )  [protected, pure virtual]

virtual void sofa::gui::qt::viewer::SofaViewer::resetView (  )  [pure virtual]

virtual void sofa::gui::qt::viewer::SofaViewer::resizeH ( int   )  [protected, pure virtual]

virtual void sofa::gui::qt::viewer::SofaViewer::resizeW ( int   )  [protected, pure virtual]

virtual void sofa::gui::qt::viewer::SofaViewer::saveView (  )  [protected, pure virtual]

virtual void sofa::gui::qt::viewer::SofaViewer::screenshot ( const std::string  filename,
int  compression_level = -1 
) [inline, virtual]

virtual const std::string sofa::gui::qt::viewer::SofaViewer::screenshotName (  )  [inline, virtual]

Definition at line 147 of file SofaViewer.h.

References capture, and sofa::helper::gl::Capture::findFilename().

Referenced by sofa::gui::qt::RealGUI::screenshot().

virtual void sofa::gui::qt::viewer::SofaViewer::setPrefix ( const std::string  filename  )  [inline, virtual]

Definition at line 148 of file SofaViewer.h.

References capture, and sofa::helper::gl::Capture::setPrefix().

Referenced by sofa::gui::qt::RealGUI::screenshot().

virtual void sofa::gui::qt::viewer::SofaViewer::setScene ( sofa::simulation::tree::GNode *  scene,
const char *  filename = NULL,
bool  = false 
) [inline, virtual]

virtual void sofa::gui::qt::viewer::SofaViewer::setSceneFileName ( const std::string &  f  )  [inline, virtual]

Definition at line 101 of file SofaViewer.h.

References sceneFileName.

virtual void sofa::gui::qt::viewer::SofaViewer::setSizeH ( int   )  [protected, pure virtual]

virtual void sofa::gui::qt::viewer::SofaViewer::setSizeW ( int   )  [protected, pure virtual]

virtual void sofa::gui::qt::viewer::SofaViewer::setup ( void   )  [inline, virtual]

Reimplemented in sofa::gui::qt::viewer::qtogre::QtOgreViewer.

Definition at line 103 of file SofaViewer.h.

Referenced by sofa::gui::qt::RealGUI::addViewer().

virtual void sofa::gui::qt::viewer::SofaViewer::wait (  )  [inline, virtual]


Field Documentation


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

Generated on Sun Nov 23 04:24:12 2008 for Sofa by  doxygen 1.5.7.1