div class="twikiTopBar">

Chair for Computer Aided Medical Procedures & Augmented Reality
Lehrstuhl für Informatikanwendungen in der Medizin & Augmented Reality

ViewerFacade Class Reference
[Viewer]

The Facade for the DWARF Viewer. More...

Inheritance diagram for ViewerFacade:

Inheritance graph
[legend]
Collaboration diagram for ViewerFacade:

Collaboration graph
[legend]

Public Member Functions

SoDwarfViewergetViewer ()
 ViewerFacade (const char *name, bool, bool, int, int, int, int, StereoMode, const char *, float, float, bool, bool, int, int, const std::string &)
QWidget * init (int argc, char **argv)
ViewerControlImplgetViewerControl () const
ViewerLayoutControlImplgetViewerLayoutControl () const

Static Public Member Functions

static ViewerFacadegetInstance ()

Protected Member Functions

CORBA::Object_ptr createAbilityObject (DWARF::AbilityDescription_ptr abilityDescr)
 Create an Ability object for a given description.
CORBA::Object_ptr createNeedObject (DWARF::NeedDescription_ptr needDescr)
 Create a Need object for a given description.
void run ()

Detailed Description

The Facade for the DWARF Viewer.

The only "visible" class from outside. The ViewerFacade class handles all DWARF service stuff and event communication. Only one Facade per Viewer instance (Singleton pattern)

Definition at line 71 of file ViewerFacade.h.


Constructor & Destructor Documentation

ViewerFacade::ViewerFacade const char *  name,
bool  ,
bool  ,
int  ,
int  ,
int  ,
int  ,
StereoMode  ,
const char *  ,
float  ,
float  ,
bool  ,
bool  ,
int  ,
int  ,
const std::string & 
 

The default constructor.

Parameters:
name the DWARF service name
Todo:
explain other params

Definition at line 88 of file ViewerFacade.cpp.


Member Function Documentation

CORBA::Object_ptr ViewerFacade::createAbilityObject DWARF::AbilityDescription_ptr  abilityDescr  )  [protected, virtual]
 

Create an Ability object for a given description.

Parameters:
abilityDescr The description of the ability
Returns:
The created C++ Object_ptr

Reimplemented from TemplateService.

Definition at line 202 of file ViewerFacade.cpp.

CORBA::Object_ptr ViewerFacade::createNeedObject DWARF::NeedDescription_ptr  needDescr  )  [protected, virtual]
 

Create a Need object for a given description.

Parameters:
needDescr The description of the ability
Returns:
The created C++ Object_ptr

Reimplemented from TemplateService.

Definition at line 269 of file ViewerFacade.cpp.

ViewerFacade * ViewerFacade::getInstance  )  [static]
 

Returns the (single) Instance.

Definition at line 78 of file ViewerFacade.cpp.

SoDwarfViewer* ViewerFacade::getViewer  )  [inline]
 

Returns:
a pointer to the current Viewer

Definition at line 84 of file ViewerFacade.h.

ViewerControlImpl* ViewerFacade::getViewerControl  )  const [inline]
 

returns the ViewerControl interface object

Definition at line 111 of file ViewerFacade.h.

ViewerLayoutControlImpl* ViewerFacade::getViewerLayoutControl  )  const [inline]
 

returns the ViewerLayoutControl interface object

Definition at line 115 of file ViewerFacade.h.

QWidget * ViewerFacade::init int  argc,
char **  argv
 

Initializes the GUI widget and returns the main widget. Must be called from the main thread.

Parameters:
argc From main method.
argv From main method.
Returns:
Main Widget. Call SoQt::show(mainwin); SoQt::mainLoop(); afterwards.

Definition at line 171 of file ViewerFacade.cpp.

void ViewerFacade::run  )  [protected, virtual]
 

core method of service. In this case it sleeps during the life of the Viewer. We have a separate thread executing SceneGraphManager::run() for rendering.

Reimplemented from TemplateService.

Definition at line 192 of file ViewerFacade.cpp.

ViewerFacade Class Reference | generated on Sun Apr 29 02:01:11 2007 by Doxygen 1.4.1 for DWARF