VTK
vtkAbstractMapper.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAbstractMapper.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
27 #ifndef __vtkAbstractMapper_h
28 #define __vtkAbstractMapper_h
29 
30 #include "vtkAlgorithm.h"
31 
32 #define VTK_SCALAR_MODE_DEFAULT 0
33 #define VTK_SCALAR_MODE_USE_POINT_DATA 1
34 #define VTK_SCALAR_MODE_USE_CELL_DATA 2
35 #define VTK_SCALAR_MODE_USE_POINT_FIELD_DATA 3
36 #define VTK_SCALAR_MODE_USE_CELL_FIELD_DATA 4
37 #define VTK_SCALAR_MODE_USE_FIELD_DATA 5
38 
39 #define VTK_GET_ARRAY_BY_ID 0
40 #define VTK_GET_ARRAY_BY_NAME 1
41 
42 class vtkDataArray;
43 class vtkDataSet;
44 class vtkPlane;
45 class vtkPlaneCollection;
46 class vtkPlanes;
47 class vtkTimerLog;
48 class vtkWindow;
49 
51 {
52 public:
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
57  virtual unsigned long GetMTime();
58 
62  virtual void ReleaseGraphicsResources(vtkWindow *) {};
63 
65 
66  vtkGetMacro( TimeToDraw, double );
68 
70 
72  void AddClippingPlane(vtkPlane *plane);
73  void RemoveClippingPlane(vtkPlane *plane);
74  void RemoveAllClippingPlanes();
76 
78 
79  virtual void SetClippingPlanes(vtkPlaneCollection*);
80  vtkGetObjectMacro(ClippingPlanes,vtkPlaneCollection);
82 
85  void SetClippingPlanes(vtkPlanes *planes);
86 
88  void ShallowCopy(vtkAbstractMapper *m);
89 
91 
97  static vtkDataArray *GetScalars(vtkDataSet *input, int scalarMode,
98  int arrayAccessMode, int arrayId,
99  const char *arrayName, int& cellFlag);
101 
102 protected:
105 
107  double TimeToDraw;
108  vtkWindow *LastWindow; // Window used for the previous render
110 
111 private:
112  vtkAbstractMapper(const vtkAbstractMapper&); // Not implemented.
113  void operator=(const vtkAbstractMapper&); // Not implemented.
114 };
115 
116 #endif
117 
118 
#define VTK_FILTERING_EXPORT
abstract class to specify dataset behavior
Definition: vtkDataSet.h:58
maintain a list of planes
implicit function for convex set of planes
Definition: vtkPlanes.h:52
vtkPlaneCollection * ClippingPlanes
Timer support and logging.
Definition: vtkTimerLog.h:82
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:37
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:53
perform various plane computations
Definition: vtkPlane.h:35
abstract class specifies interface to map data
virtual void ReleaseGraphicsResources(vtkWindow *)
void PrintSelf(ostream &os, vtkIndent indent)