VTK  9.0.1
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 "vtkMapper.h"
32 #include "vtkRenderingCoreModule.h" // For export macro
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) override;
47 
52  void Render(vtkRenderer* ren, vtkActor* a) override;
53 
55 
58  double* GetBounds() VTK_SIZEHINT(6) override;
59  void GetBounds(double bounds[6]) override { this->Superclass::GetBounds(bounds); }
61 
65  void ReleaseGraphicsResources(vtkWindow*) override;
66 
68 
73  bool HasOpaqueGeometry() override;
74  bool HasTranslucentPolygonalGeometry() override;
76 
77 protected:
79  ~vtkCompositePolyDataMapper() override;
80 
87 
92 
97  void BuildPolyDataMapper();
98 
102  virtual vtkPolyDataMapper* MakeAMapper();
103 
107  void ComputeBounds();
108 
113 
119  vtkCompositePolyDataMapperInternals* Internal;
120 
126 
127 private:
129  void operator=(const vtkCompositePolyDataMapper&) = delete;
130 };
131 
132 #endif
vtkPolyDataMapper
map vtkPolyData to graphics primitives
Definition: vtkPolyDataMapper.h:36
vtkAlgorithm::CreateDefaultExecutive
virtual vtkExecutive * CreateDefaultExecutive()
Create a default executive.
vtkMapper::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAbstractMapper3D::GetBounds
virtual double * GetBounds()=0
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax,...
vtkAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:32
vtkCompositePolyDataMapper
a class that renders hierarchical polygonal data
Definition: vtkCompositePolyDataMapper.h:40
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
vtkMapper.h
vtkX3D::port
@ port
Definition: vtkX3D.h:453
vtkMapper::Render
virtual void Render(vtkRenderer *ren, vtkActor *a)=0
Method initiates the mapping process.
vtkExecutive
Superclass for all pipeline executives in VTK.
Definition: vtkExecutive.h:46
VTK_SIZEHINT
#define VTK_SIZEHINT(...)
Definition: vtkWrappingHints.h:45
vtkMapper::HasTranslucentPolygonalGeometry
virtual bool HasTranslucentPolygonalGeometry()
vtkMapper
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:80
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkCompositePolyDataMapper::Internal
vtkCompositePolyDataMapperInternals * Internal
These are the internal polydata mapper that do the rendering.
Definition: vtkCompositePolyDataMapper.h:119
vtkCompositePolyDataMapper::InternalMappersBuildTime
vtkTimeStamp InternalMappersBuildTime
Time stamp for when we need to update the internal mappers.
Definition: vtkCompositePolyDataMapper.h:125
vtkMapper::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
Definition: vtkMapper.h:108
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkMapper::GetBounds
double * GetBounds() override
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax,...
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:67
vtkMapper::HasOpaqueGeometry
virtual bool HasOpaqueGeometry()
Some introspection on the type of data the mapper will render used by props to determine if they shou...
vtkCompositePolyDataMapper::BoundsMTime
vtkTimeStamp BoundsMTime
Time stamp for computation of bounds.
Definition: vtkCompositePolyDataMapper.h:112