|
DGtal
0.6.devel
|
#include <IVViewer.h>
Public Member Functions | |
| ~IVViewer () | |
| IVViewer (int argc=0, char **argv=0) | |
| SoSeparator * | root () const |
| void | setTitle (const std::string &title) |
| void | setCamera (float latitude, float longitude) |
| void | show () const |
| void | selfDisplay (std::ostream &out) const |
| bool | isValid () const |
Protected Member Functions | |
| IVViewer () | |
Private Member Functions | |
| IVViewer (const IVViewer &other) | |
| IVViewer & | operator= (const IVViewer &other) |
Private Attributes | |
| QWidget * | myWindow |
| SoQtExaminerViewer * | myViewer |
| SoSeparator * | myRoot |
| std::string | myTitle |
Aim: A facade to represent an inventor window for 3D objects. May be a SoXt or a SoQt examiner viewer. NB: backported from ImaGeneUtils library.
Description of class 'IVViewer'
Definition at line 74 of file IVViewer.h.
| DGtal::IVViewer::~IVViewer | ( | ) |
Destructor.
Definition at line 47 of file IVViewer.cpp.
| DGtal::IVViewer::IVViewer | ( | int | argc = 0, |
| char ** | argv = 0 |
||
| ) |
Constructor.
| argc | the number of parameters. |
| argv | an array of C strings storing the parameters. |
Definition at line 66 of file IVViewer.cpp.
References myRoot, myViewer, and myWindow.
|
protected |
Constructor. Forbidden by default (protected to avoid g++ warnings).
|
private |
Copy constructor.
| other | the object to clone. Forbidden by default. |
| bool DGtal::IVViewer::isValid | ( | ) | const |
Checks the validity/consistency of the object.
Definition at line 181 of file IVViewer.cpp.
Assignment.
| other | the object to copy. |
| SoSeparator * DGtal::IVViewer::root | ( | ) | const |
| void DGtal::IVViewer::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
| out | the output stream where the object is written. |
Definition at line 171 of file IVViewer.cpp.
| void DGtal::IVViewer::setCamera | ( | float | latitude, |
| float | longitude | ||
| ) |
Sets the parameters of the observing camera with Euler spherical coordinates.
| latitude | the latitude of observation (in degrees) |
| longitude | the longitude of observation (in degrees) |
Definition at line 120 of file IVViewer.cpp.
References M_PI.
| void DGtal::IVViewer::setTitle | ( | const std::string & | title | ) |
| title | the name of the window. |
Definition at line 106 of file IVViewer.cpp.
| void DGtal::IVViewer::show | ( | ) | const |
Show window and gives hand to inventor main loop.
Definition at line 138 of file IVViewer.cpp.
|
private |
|
private |
The title of the window.
Definition at line 165 of file IVViewer.h.
|
private |
Inventor viewer. May be a SoXtExaminerViewer* or a SoQtExaminerViewer*
Definition at line 154 of file IVViewer.h.
Referenced by IVViewer().
|
private |
Inventor window. May be a Widget or a QWidget*.
Definition at line 149 of file IVViewer.h.
Referenced by IVViewer().
1.8.1.1