VTK
vtkCompositePolyDataMapper.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCompositePolyDataMapper.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 #ifndef vtkCompositePolyDataMapper_h
32 #define vtkCompositePolyDataMapper_h
33 
34 #include "vtkRenderingCoreModule.h" // For export macro
35 #include "vtkMapper.h"
36 
37 class vtkPolyDataMapper;
38 class vtkInformation;
39 class vtkRenderer;
40 class vtkActor;
41 class vtkCompositePolyDataMapperInternals;
42 
43 class VTKRENDERINGCORE_EXPORT vtkCompositePolyDataMapper : public vtkMapper
44 {
45 
46 public:
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
55  void Render(vtkRenderer *ren, vtkActor *a) override;
56 
58 
61  double *GetBounds() VTK_SIZEHINT(6) override;
62  void GetBounds(double bounds[6]) override { this->Superclass::GetBounds( bounds ); };
64 
68  void ReleaseGraphicsResources(vtkWindow *) override;
69 
70 protected:
72  ~vtkCompositePolyDataMapper() override;
73 
80 
85 
90  void BuildPolyDataMapper();
91 
95  virtual vtkPolyDataMapper *MakeAMapper();
96 
100  void ComputeBounds();
101 
106 
112  vtkCompositePolyDataMapperInternals *Internal;
113 
119 
120 private:
122  void operator=(const vtkCompositePolyDataMapper&) = delete;
123 };
124 
125 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
virtual vtkExecutive * CreateDefaultExecutive()
Create a default executive.
Store vtkAlgorithm input/output information.
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkTimeStamp BoundsMTime
Time stamp for computation of bounds.
abstract specification for renderers
Definition: vtkRenderer.h:63
Superclass for all pipeline executives in VTK.
Definition: vtkExecutive.h:49
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual double * GetBounds()=0
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax, zmin,zmax).
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_SIZEHINT(...)
vtkCompositePolyDataMapperInternals * Internal
These are the internal polydata mapper that do the rendering.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:86
map vtkPolyData to graphics primitives
static vtkAlgorithm * New()
double * GetBounds() override
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax, zmin,zmax).
vtkTimeStamp InternalMappersBuildTime
Time stamp for when we need to update the internal mappers.
virtual void Render(vtkRenderer *ren, vtkActor *a)=0
Method initiates the mapping process.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
Definition: vtkMapper.h:114
a class that renders hierarchical polygonal data