CarpetViewerSingleton Class Reference
[Gui/ThreeD/Carpet/Mechanization]

The purpose of this class is to ensure that there is one single CarpetViewer object in a process scope. More...

#include <CarpetViewerSingleton.h>

Inheritance diagram for CarpetViewerSingleton:

Inheritance graph
[legend]
Collaboration diagram for CarpetViewerSingleton:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 vtkTypeMacro (CarpetViewerSingleton, vtkObject)
void PrintSelf (ostream &os, vtkIndent indent)
 Print the state of this object.

Static Public Member Functions

static CarpetViewerSingletonNew ()
 Give the singleton object of this type.

Protected Member Functions

 CarpetViewerSingleton ()
 Ctor.
virtual ~CarpetViewerSingleton ()
 Dtor.

Detailed Description

The purpose of this class is to ensure that there is one single CarpetViewer object in a process scope.

It has an interface that is identical to that of CarpetViewer.

This class is thread safe.

Definition at line 23 of file CarpetViewerSingleton.h.


Constructor & Destructor Documentation

CarpetViewerSingleton::CarpetViewerSingleton (  )  [protected]

Ctor.

virtual CarpetViewerSingleton::~CarpetViewerSingleton (  )  [protected, virtual]

Dtor.


Member Function Documentation

static CarpetViewerSingleton* CarpetViewerSingleton::New (  )  [static]

Give the singleton object of this type.

This is the only method that objects of this type may be created. This function will seize a lock in order to ensure that no race condition exist during the first call(s).

Returns:
The singleton object.

Reimplemented from CarpetViewer.

CarpetViewerSingleton::vtkTypeMacro ( CarpetViewerSingleton  ,
vtkObject   
)

void CarpetViewerSingleton::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Print the state of this object.

Parameters:
os The output stream.
indent The indentation level. Used for formating output.

Reimplemented from CarpetViewer.


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