00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkLinesPainter.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 =========================================================================*/ 00027 #ifndef __vtkLinesPainter_h 00028 #define __vtkLinesPainter_h 00029 00030 #include "vtkPrimitivePainter.h" 00031 00032 class VTK_RENDERING_EXPORT vtkLinesPainter : public vtkPrimitivePainter 00033 { 00034 public: 00035 static vtkLinesPainter* New(); 00036 vtkTypeMacro(vtkLinesPainter, vtkPrimitivePainter); 00037 void PrintSelf(ostream& os, vtkIndent indent); 00038 00039 protected: 00040 vtkLinesPainter(); 00041 ~vtkLinesPainter(); 00042 00043 int RenderPolys; // Flag indicating if the line loops are to be closed. 00044 00046 00048 virtual void RenderInternal(vtkRenderer* renderer, vtkActor* actor, 00049 unsigned long typeflags, bool forceCompileOnly); 00051 00053 00055 virtual int RenderPrimitive(unsigned long flags, vtkDataArray* n, 00056 vtkUnsignedCharArray* c, vtkDataArray* t, vtkRenderer* ren); 00057 private: 00058 vtkLinesPainter(const vtkLinesPainter&); // Not implemented. 00059 void operator=(const vtkLinesPainter&); // Not implemented. 00060 }; 00062 00063 00064 00065 #endif 00066