Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Rendering/vtkGraphicsFactory.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkGraphicsFactory.h,v $
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 =========================================================================*/
00025 #ifndef __vtkGraphicsFactory_h
00026 #define __vtkGraphicsFactory_h
00027 
00028 #include "vtkObject.h"
00029 
00030 class VTK_RENDERING_EXPORT vtkGraphicsFactory : public vtkObject
00031 {
00032 public:
00033   static vtkGraphicsFactory *New();
00034   vtkTypeRevisionMacro(vtkGraphicsFactory,vtkObject);
00035   virtual void PrintSelf(ostream& os, vtkIndent indent);
00036 
00039   static vtkObject* CreateInstance(const char* vtkclassname);
00040 
00042   static const char *GetRenderLibrary();
00043 
00045 
00047   static void SetUseMesaClasses(int use);
00048   static int  GetUseMesaClasses();
00050   
00051 protected:
00052   vtkGraphicsFactory() {};
00053 
00054   static int UseMesaClasses;
00055 
00056 private:
00057   vtkGraphicsFactory(const vtkGraphicsFactory&);  // Not implemented.
00058   void operator=(const vtkGraphicsFactory&);  // Not implemented.
00059 };
00060 
00061 #endif