VTK
dox/Rendering/vtkMesaPainterDeviceAdapter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkMesaPainterDeviceAdapter.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 =========================================================================*/
00015 
00033 #ifndef __vtkMesaPainterDeviceAdapter_h
00034 #define __vtkMesaPainterDeviceAdapter_h
00035 
00036 #include "vtkPainterDeviceAdapter.h"
00037 
00038 class VTK_RENDERING_EXPORT vtkMesaPainterDeviceAdapter : 
00039   public vtkPainterDeviceAdapter
00040 {
00041 public:
00042   vtkTypeMacro(vtkMesaPainterDeviceAdapter, vtkPainterDeviceAdapter);
00043   static vtkMesaPainterDeviceAdapter *New();
00044   virtual void PrintSelf(ostream &os, vtkIndent indent);
00045 
00047   virtual void BeginPrimitive(int mode);
00048 
00050   virtual void EndPrimitive();
00051 
00053 
00054   virtual void SendAttribute(int index, int components, int type,
00055                              const void *attribute, unsigned long offset=0);
00057 
00059 
00061   virtual void SetAttributePointer(int index, int numcomponents, int type,
00062                                    int stride, const void *pointer);
00064 
00066 
00067   virtual void EnableAttributeArray(int index);
00068   virtual void DisableAttributeArray(int index);
00070 
00072   virtual void DrawArrays(int mode, vtkIdType first, vtkIdType count);
00073 
00076   virtual void DrawElements(int mode, vtkIdType count, int type, void *indices);
00077 
00079   virtual int Compatible(vtkRenderer *renderer);
00080 
00082   virtual void MakeLighting(int mode);
00083 
00085   virtual int QueryLighting();
00086   
00088   virtual void MakeMultisampling(int mode);
00089 
00091   virtual int QueryMultisampling();
00092 
00094   virtual void MakeBlending(int mode);
00095  
00097   virtual int QueryBlending();
00098 
00099 protected:
00100   vtkMesaPainterDeviceAdapter();
00101   ~vtkMesaPainterDeviceAdapter();
00102 
00103 private:
00104   vtkMesaPainterDeviceAdapter(const vtkMesaPainterDeviceAdapter &);  // Not implemented.
00105   void operator=(const vtkMesaPainterDeviceAdapter &);  // Not implemented.
00106 };
00107 
00108 #endif //_vtkMesaPainterDeviceAdapter_h