CarpetViewerSingleton.h

Go to the documentation of this file.
00001 /* $Id: CarpetViewerSingleton.h,v 1.7 2005/10/26 11:26:55 pfb Exp $ */
00002 
00003 #ifndef _CarpetViewerSingleton_h
00004 #define _CarpetViewerSingleton_h
00005 
00010 #include <vtkObject.h>
00011 #include "CarpetViewer.h"
00012 
00013 class vtkMutexLock;
00014 
00023 class CarpetViewerSingleton : public CarpetViewer
00024 {
00025   //****************************************************************************
00026                              public:
00027   
00028 
00036   static CarpetViewerSingleton *New();
00037 
00041   vtkTypeMacro(CarpetViewerSingleton, vtkObject);
00042 
00048   void PrintSelf(ostream& os, vtkIndent indent);
00049 
00050   //****************************************************************************
00051                              protected:
00052 
00056   CarpetViewerSingleton();
00057 
00061   virtual ~CarpetViewerSingleton();
00062 
00063   //****************************************************************************
00064                              private:
00065 
00066   static CarpetViewerSingleton *singleton;
00067   static vtkMutexLock          *newlock;
00068 
00069 };
00070 
00074 #endif // _CarpetViewerSingleton_h
00075