VTK  9.2.6
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=========================================================================*/
31
32#ifndef vtkAbstractMapper3D_h
33#define vtkAbstractMapper3D_h
34
35#include "vtkAbstractMapper.h"
36#include "vtkRenderingCoreModule.h" // For export macro
37
38class vtkWindow;
39class vtkDataSet;
40class vtkMatrix4x4;
41
42class VTKRENDERINGCORE_EXPORT vtkAbstractMapper3D : public vtkAbstractMapper
43{
44public:
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 }
72
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
97protected:
99 ~vtkAbstractMapper3D() override = default;
100
101 double Bounds[6];
102 double Center[3];
103
104private:
106 void operator=(const vtkAbstractMapper3D&) = delete;
107};
108
109#endif
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.
double * GetCenter()
Return the Center of this mapper's data.
~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?
virtual vtkTypeBool IsARenderIntoImageMapper()
Is this a "render into image" mapper?
double GetLength()
Return the diagonal length of this mappers bounding box.
abstract class to specify dataset behavior
Definition vtkDataSet.h:57
a simple class to control print indentation
Definition vtkIndent.h:34
represent and manipulate 4x4 transformation matrices
window superclass for vtkRenderWindow
Definition vtkWindow.h:39
int vtkTypeBool
Definition vtkABI.h:69
#define VTK_SIZEHINT(...)