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) override;
50 
56  virtual double *GetBounds() VTK_SIZEHINT(6) = 0;
57 
61  virtual void GetBounds(double bounds[6]);
62 
64 
67  double *GetCenter() VTK_SIZEHINT(3);
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 
85  { return 0; }
86 
92  { return 0; }
93 
98  void GetClippingPlaneInDataCoords(
99  vtkMatrix4x4 *propMatrix, int i, double planeEquation[4]);
100 
101 protected:
103  ~vtkAbstractMapper3D() override {}
104 
105  double Bounds[6];
106  double Center[3];
107 
108 private:
109  vtkAbstractMapper3D(const vtkAbstractMapper3D&) = delete;
110  void operator=(const vtkAbstractMapper3D&) = delete;
111 };
112 
113 #endif
virtual vtkTypeBool IsARenderIntoImageMapper()
Is this a "render into image" mapper? A subclass would return 1 if the mapper produces an image by re...
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:41
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
int vtkTypeBool
Definition: vtkABI.h:69
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract class specifies interface to map 3D data
#define VTK_SIZEHINT(...)
virtual vtkTypeBool IsARayCastMapper()
Is this a ray cast mapper? A subclass would return 1 if the ray caster is needed to generate an image...
abstract class specifies interface to map data