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 "vtkRenderingCoreModule.h" // For export macro
31 #include "vtkAlgorithm.h"
32 
33 #define VTK_SCALAR_MODE_DEFAULT 0
34 #define VTK_SCALAR_MODE_USE_POINT_DATA 1
35 #define VTK_SCALAR_MODE_USE_CELL_DATA 2
36 #define VTK_SCALAR_MODE_USE_POINT_FIELD_DATA 3
37 #define VTK_SCALAR_MODE_USE_CELL_FIELD_DATA 4
38 #define VTK_SCALAR_MODE_USE_FIELD_DATA 5
39 
40 #define VTK_GET_ARRAY_BY_ID 0
41 #define VTK_GET_ARRAY_BY_NAME 1
42 
43 class vtkAbstractArray;
44 class vtkDataSet;
45 class vtkPlane;
46 class vtkPlaneCollection;
47 class vtkPlanes;
48 class vtkTimerLog;
49 class vtkWindow;
50 
52 {
53 public:
55  void PrintSelf(ostream& os, vtkIndent indent);
56 
58  virtual unsigned long GetMTime();
59 
64 
66 
67  vtkGetMacro( TimeToDraw, double );
69 
71 
73  void AddClippingPlane(vtkPlane *plane);
74  void RemoveClippingPlane(vtkPlane *plane);
75  void RemoveAllClippingPlanes();
77 
79 
80  virtual void SetClippingPlanes(vtkPlaneCollection*);
81  vtkGetObjectMacro(ClippingPlanes, vtkPlaneCollection);
83 
86  void SetClippingPlanes(vtkPlanes *planes);
87 
89  void ShallowCopy(vtkAbstractMapper *m);
90 
92 
98  static vtkDataArray *GetScalars(vtkDataSet *input, int scalarMode,
99  int arrayAccessMode, int arrayId,
100  const char *arrayName, int& cellFlag);
102 
104 
111  static vtkAbstractArray *GetAbstractScalars(vtkDataSet *input, int scalarMode,
112  int arrayAccessMode, int arrayId,
113  const char *arrayName, int& cellFlag);
115 
116 protected:
119 
121  double TimeToDraw;
122  vtkWindow *LastWindow; // Window used for the previous render
124 
125 private:
126  vtkAbstractMapper(const vtkAbstractMapper&); // Not implemented.
127  void operator=(const vtkAbstractMapper&); // Not implemented.
128 };
129 
130 #endif
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
Abstract superclass for all arrays.
maintain a list of planes
implicit function for convex set of planes
Definition: vtkPlanes.h:53
vtkPlaneCollection * ClippingPlanes
Timer support and logging.
Definition: vtkTimerLog.h:81
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
perform various plane computations
Definition: vtkPlane.h:36
abstract class specifies interface to map data
virtual void ReleaseGraphicsResources(vtkWindow *)
#define VTKRENDERINGCORE_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)