VTK
vtkAbstractMapper3D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAbstractMapper3D.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 =========================================================================*/
35 #ifndef vtkAbstractMapper3D_h
36 #define vtkAbstractMapper3D_h
37 
38 #include "vtkRenderingCoreModule.h" // For export macro
39 #include "vtkAbstractMapper.h"
40 
41 class vtkWindow;
42 class vtkDataSet;
43 class vtkMatrix4x4;
44 
45 class VTKRENDERINGCORE_EXPORT vtkAbstractMapper3D : public vtkAbstractMapper
46 {
47 public:
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
56  virtual double *GetBounds() = 0;
57 
61  virtual void GetBounds(double bounds[6]);
62 
64 
67  double *GetCenter();
68  void GetCenter(double center[3])
69  {
70  double *rc = this->GetCenter();
71  center[0] = rc[0]; center[1] = rc[1]; center[2] = rc[2];
72  }
74 
78  double GetLength();
79 
84  virtual int IsARayCastMapper()
85  { return 0; }
86 
92  { return 0; }
93 
98  void GetClippingPlaneInDataCoords(
99  vtkMatrix4x4 *propMatrix, int i, double planeEquation[4]);
100 
104  int GetNumberOfClippingPlanes();
105 
106 protected:
109 
110  double Bounds[6];
111  double Center[3];
112 
113 private:
114  vtkAbstractMapper3D(const vtkAbstractMapper3D&) VTK_DELETE_FUNCTION;
115  void operator=(const vtkAbstractMapper3D&) VTK_DELETE_FUNCTION;
116 };
117 
118 #endif
void GetCenter(double center[3])
Return the Center of this mapper's data.
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:41
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
a simple class to control print indentation
Definition: vtkIndent.h:39
abstract class specifies interface to map 3D data
abstract class specifies interface to map data
virtual int IsARenderIntoImageMapper()
Is this a "render into image" mapper? A subclass would return 1 if the mapper produces an image by re...
virtual int IsARayCastMapper()
Is this a ray cast mapper? A subclass would return 1 if the ray caster is needed to generate an image...