Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes

DGtal::IVViewer Class Reference

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. More...

#include <IVViewer.h>

Collaboration diagram for DGtal::IVViewer:
Collaboration graph
[legend]

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)
IVVieweroperator= (const IVViewer &other)

Private Attributes

QWidget * myWindow
SoQtExaminerViewer * myViewer
SoSeparator * myRoot
std::string myTitle

Detailed Description

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'

Todo:
SoXt is yet not checked.

Constructor & Destructor Documentation

DGtal::IVViewer::~IVViewer (  ) 

Destructor.

References myRoot, and myViewer.

DGtal::IVViewer::IVViewer ( int  argc = 0,
char **  argv = 0 
)

Constructor.

Parameters:
argc the number of parameters.
argv an array of C strings storing the parameters.

References myRoot, myViewer, and myWindow.

DGtal::IVViewer::IVViewer (  )  [protected]

Constructor. Forbidden by default (protected to avoid g++ warnings).

DGtal::IVViewer::IVViewer ( const IVViewer other  )  [private]

Copy constructor.

Parameters:
other the object to clone. Forbidden by default.

Member Function Documentation

bool DGtal::IVViewer::isValid (  )  const

Checks the validity/consistency of the object.

Returns:
'true' if the object is valid, 'false' otherwise.
IVViewer& DGtal::IVViewer::operator= ( const IVViewer other  )  [private]

Assignment.

Parameters:
other the object to copy.
Returns:
a reference on 'this'. Forbidden by default.
SoSeparator * DGtal::IVViewer::root (  )  const
Returns:
the root of the scene graph.

References myRoot.

Referenced by testIVViewer().

void DGtal::IVViewer::selfDisplay ( std::ostream &  out  )  const

Writes/Displays the object on an output stream.

Parameters:
out the output stream where the object is written.
void DGtal::IVViewer::setCamera ( float  latitude,
float  longitude 
)

Sets the parameters of the observing camera with Euler spherical coordinates.

Parameters:
latitude the latitude of observation (in degrees)
longitude the longitude of observation (in degrees)

References M_PI, and myRoot.

Referenced by testIVViewer().

void DGtal::IVViewer::setTitle ( const std::string &  title  ) 
Parameters:
title the name of the window.

References myTitle.

Referenced by testIVViewer().

void DGtal::IVViewer::show (  )  const

Show window and gives hand to inventor main loop.

References myRoot, myViewer, and myWindow.

Referenced by testIVViewer(), and testIVViewerSimpleWdw().


Field Documentation

SoSeparator* DGtal::IVViewer::myRoot [private]

The root of the scene graph.

Referenced by IVViewer(), root(), setCamera(), show(), and ~IVViewer().

std::string DGtal::IVViewer::myTitle [private]

The title of the window.

Referenced by setTitle().

SoQtExaminerViewer* DGtal::IVViewer::myViewer [private]

Inventor viewer. May be a SoXtExaminerViewer* or a SoQtExaminerViewer*

Referenced by IVViewer(), show(), and ~IVViewer().

QWidget* DGtal::IVViewer::myWindow [private]

Inventor window. May be a Widget or a QWidget*.

Referenced by IVViewer(), and show().


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