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
41class vtkWindow;
42class vtkDataSet;
43class vtkMatrix4x4;
44
45class VTKRENDERINGCORE_EXPORT vtkAbstractMapper3D : public vtkAbstractMapper
46{
47public:
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
99 vtkMatrix4x4 *propMatrix, int i, double planeEquation[4]);
100
105
106protected:
109
110 double Bounds[6];
111 double Center[3];
112
113private:
114 vtkAbstractMapper3D(const vtkAbstractMapper3D&) VTK_DELETE_FUNCTION;
115 void operator=(const vtkAbstractMapper3D&) VTK_DELETE_FUNCTION;
116};
117
118#endif
abstract class specifies interface to map 3D data
int GetNumberOfClippingPlanes()
Get the number of clipping planes.
virtual double * GetBounds()=0
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax,...
virtual void GetBounds(double bounds[6])
Get the bounds for this mapper as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
virtual int IsARenderIntoImageMapper()
Is this a "render into image" mapper? A subclass would return 1 if the mapper produces an image by re...
double * GetCenter()
Return the Center of this mapper's data.
void GetClippingPlaneInDataCoords(vtkMatrix4x4 *propMatrix, int i, double planeEquation[4])
Get the ith clipping plane as a homogeneous plane equation.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
double GetLength()
Return the diagonal length of this mappers bounding box.
void GetCenter(double center[3])
virtual int 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
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
a simple class to control print indentation
Definition: vtkIndent.h:40
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:42
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
@ center
Definition: vtkX3D.h:230