OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / I386LINUX / util / I386LINUX / include / vtk / vtkImagingFactory.h
1 /*=========================================================================
2
3   Program:   Visualization Toolkit
4   Module:    $RCSfile: vtkImagingFactory.h,v $
5   Language:  C++
6   Date:      $Date: 2002/08/22 18:39:30 $
7   Version:   $Revision: 1.13 $
8
9   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
10   All rights reserved.
11   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
12
13      This software is distributed WITHOUT ANY WARRANTY; without even 
14      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
15      PURPOSE.  See the above copyright notice for more information.
16
17 =========================================================================*/
18 // .NAME vtkImagingFactory - 
19 // .SECTION Description
20
21 #ifndef __vtkImagingFactory_h
22 #define __vtkImagingFactory_h
23
24 #include "vtkObject.h"
25
26 class VTK_RENDERING_EXPORT vtkImagingFactory : public vtkObject
27 {
28 public:
29   static vtkImagingFactory *New();
30   vtkTypeRevisionMacro(vtkImagingFactory,vtkObject);
31   virtual void PrintSelf(ostream& os, vtkIndent indent);
32
33   // Description:
34   // Create and return an instance of the named vtk object.
35   // This method first checks the vtkObjectFactory to support
36   // dynamic loading. 
37   static vtkObject* CreateInstance(const char* vtkclassname);
38
39   // Description:
40   // This option enables the creation of Mesa classes
41   // instead of the OpenGL classes when using mangled Mesa.
42   static void SetUseMesaClasses(int use);
43   static int  GetUseMesaClasses();
44
45 protected:
46   vtkImagingFactory() {};
47
48   static int UseMesaClasses;
49
50 private:
51   vtkImagingFactory(const vtkImagingFactory&);  // Not implemented.
52   void operator=(const vtkImagingFactory&);  // Not implemented.
53 };
54
55 #endif