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 =========================================================================*/
28 #ifndef vtkCompositePolyDataMapper_h
29 #define vtkCompositePolyDataMapper_h
30 
31 #include "vtkRenderingCoreModule.h" // For export macro
32 #include "vtkMapper.h"
33 
34 class vtkPolyDataMapper;
35 class vtkInformation;
36 class vtkRenderer;
37 class vtkActor;
38 class vtkCompositePolyDataMapperInternals;
39 
40 class VTKRENDERINGCORE_EXPORT vtkCompositePolyDataMapper : public vtkMapper
41 {
42 
43 public:
46  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
47 
52  void Render(vtkRenderer *ren, vtkActor *a) VTK_OVERRIDE;
53 
55 
58  double *GetBounds() VTK_OVERRIDE;
59  void GetBounds(double bounds[6]) VTK_OVERRIDE { this->Superclass::GetBounds( bounds ); };
61 
65  void ReleaseGraphicsResources(vtkWindow *) VTK_OVERRIDE;
66 
67 protected:
69  ~vtkCompositePolyDataMapper() VTK_OVERRIDE;
70 
76  vtkExecutive* CreateDefaultExecutive() VTK_OVERRIDE;
77 
81  int FillInputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
82 
87  void BuildPolyDataMapper();
88 
92  virtual vtkPolyDataMapper *MakeAMapper();
93 
97  void ComputeBounds();
98 
102  vtkTimeStamp BoundsMTime;
103 
109  vtkCompositePolyDataMapperInternals *Internal;
110 
115  vtkTimeStamp InternalMappersBuildTime;
116 
117 private:
118  vtkCompositePolyDataMapper(const vtkCompositePolyDataMapper&) VTK_DELETE_FUNCTION;
119  void operator=(const vtkCompositePolyDataMapper&) VTK_DELETE_FUNCTION;
120 };
121 
122 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:45
Store vtkAlgorithm input/output information.
record modification and/or execution time
Definition: vtkTimeStamp.h:32
abstract specification for renderers
Definition: vtkRenderer.h:57
Superclass for all pipeline executives in VTK.
Definition: vtkExecutive.h:46
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
a simple class to control print indentation
Definition: vtkIndent.h:33
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.
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:85
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).
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:113
a class that renders hierarchical polygonal data