VTK
dox/Rendering/Parallel/vtkPHardwareSelector.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkPHardwareSelector.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00029 #ifndef __vtkPHardwareSelector_h
00030 #define __vtkPHardwareSelector_h
00031 
00032 #include "vtkRenderingParallelModule.h" // For export macro
00033 #include "vtkHardwareSelector.h"
00034 
00035 class VTKRENDERINGPARALLEL_EXPORT vtkPHardwareSelector : public vtkHardwareSelector
00036 {
00037 public:
00038   static vtkPHardwareSelector* New();
00039   vtkTypeMacro(vtkPHardwareSelector, vtkHardwareSelector);
00040   void PrintSelf(ostream& os, vtkIndent indent);
00041 
00043 
00046   vtkSetMacro(ProcessIsRoot, bool);
00047   vtkGetMacro(ProcessIsRoot, bool);
00048   vtkBooleanMacro(ProcessIsRoot, bool);
00050 
00055   virtual bool CaptureBuffers();
00056 
00057 //BTX
00058 protected:
00059   vtkPHardwareSelector();
00060   ~vtkPHardwareSelector();
00061 
00062   void StartRender();
00063   void EndRender();
00064 
00065   bool ProcessIsRoot;
00066 
00067 private:
00068   vtkPHardwareSelector(const vtkPHardwareSelector&); // Not implemented
00069   void operator=(const vtkPHardwareSelector&); // Not implemented
00070 
00071   class vtkObserver;
00072   friend class vtkObserver;
00073   vtkObserver* Observer;
00074 //ETX
00075 };
00076 
00077 #endif