VTK  9.1.20211019
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 =========================================================================*/
32 #ifndef vtkAbstractMapper3D_h
33 #define vtkAbstractMapper3D_h
34 
35 #include "vtkAbstractMapper.h"
36 #include "vtkRenderingCoreModule.h" // For export macro
37 
38 class vtkWindow;
39 class vtkDataSet;
40 class vtkMatrix4x4;
41 
42 class VTKRENDERINGCORE_EXPORT vtkAbstractMapper3D : public vtkAbstractMapper
43 {
44 public:
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
53  virtual double* GetBounds() VTK_SIZEHINT(6) = 0;
54 
58  virtual void GetBounds(double bounds[6]);
59 
61 
64  double* GetCenter() VTK_SIZEHINT(3);
65  void GetCenter(double center[3])
66  {
67  double* rc = this->GetCenter();
68  center[0] = rc[0];
69  center[1] = rc[1];
70  center[2] = rc[2];
71  }
73 
77  double GetLength();
78 
83  virtual vtkTypeBool IsARayCastMapper() { return 0; }
84 
89  virtual vtkTypeBool IsARenderIntoImageMapper() { return 0; }
90 
95  void GetClippingPlaneInDataCoords(vtkMatrix4x4* propMatrix, int i, double planeEquation[4]);
96 
97 protected:
99  ~vtkAbstractMapper3D() override = default;
100 
101  double Bounds[6];
102  double Center[3];
103 
104 private:
105  vtkAbstractMapper3D(const vtkAbstractMapper3D&) = delete;
106  void operator=(const vtkAbstractMapper3D&) = delete;
107 };
108 
109 #endif
abstract class specifies interface to map 3D data
virtual double * GetBounds()=0
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax,...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkAbstractMapper3D() override=default
void GetClippingPlaneInDataCoords(vtkMatrix4x4 *propMatrix, int i, double planeEquation[4])
Get the ith clipping plane as a homogeneous plane equation.
virtual vtkTypeBool IsARayCastMapper()
Is this a ray cast mapper? A subclass would return 1 if the ray caster is needed to generate an image...
virtual vtkTypeBool IsARenderIntoImageMapper()
Is this a "render into image" mapper? A subclass would return 1 if the mapper produces an image by re...
double GetLength()
Return the diagonal length of this mappers bounding box.
abstract class specifies interface to map data
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
a simple class to control print indentation
Definition: vtkIndent.h:113
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:145
window superclass for vtkRenderWindow
Definition: vtkWindow.h:39
void GetBounds(T a, double bds[6])
@ center
Definition: vtkX3D.h:236
int vtkTypeBool
Definition: vtkABI.h:69
#define VTK_SIZEHINT(...)