VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkHardwareSelectionPolyDataPainter.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 =========================================================================*/ 00025 #ifndef __vtkHardwareSelectionPolyDataPainter_h 00026 #define __vtkHardwareSelectionPolyDataPainter_h 00027 00028 #include "vtkStandardPolyDataPainter.h" 00029 00030 class VTK_RENDERING_EXPORT vtkHardwareSelectionPolyDataPainter : 00031 public vtkStandardPolyDataPainter 00032 { 00033 public: 00034 static vtkHardwareSelectionPolyDataPainter* New(); 00035 vtkTypeMacro(vtkHardwareSelectionPolyDataPainter, vtkStandardPolyDataPainter); 00036 void PrintSelf(ostream& os, vtkIndent indent); 00037 00039 00041 vtkSetMacro(EnableSelection, int); 00042 vtkGetMacro(EnableSelection, int); 00043 vtkBooleanMacro(EnableSelection, int); 00045 00046 //BTX 00047 protected: 00048 vtkHardwareSelectionPolyDataPainter(); 00049 ~vtkHardwareSelectionPolyDataPainter(); 00050 00052 00054 virtual void RenderInternal(vtkRenderer* renderer, vtkActor* actor, 00055 unsigned long typeflags, bool forceCompileOnly); 00057 00058 void DrawCells(int mode, vtkCellArray *connectivity, 00059 vtkIdType startCellId, vtkRenderer *renderer); 00060 00061 int EnableSelection; 00062 vtkIdType TotalCells; 00063 private: 00064 vtkHardwareSelectionPolyDataPainter(const vtkHardwareSelectionPolyDataPainter&); // Not implemented. 00065 void operator=(const vtkHardwareSelectionPolyDataPainter&); // Not implemented. 00066 //ETX 00067 }; 00068 00069 #endif 00070 00071