VTK
vtkCompositePolyDataMapper2.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCompositePolyDataMapper2.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 vtkCompositePolyDataMapper2_h
29 #define vtkCompositePolyDataMapper2_h
30 
31 #include "vtkRenderingOpenGLModule.h" // For export macro
33 #include "vtkSmartPointer.h" // for vtkSmartPointer
34 
36 
37 class VTKRENDERINGOPENGL_EXPORT vtkCompositePolyDataMapper2 : public vtkPainterPolyDataMapper
38 {
39 public:
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
54  virtual bool GetIsOpaque();
55 
57 
60  void SetCompositeDataDisplayAttributes(vtkCompositeDataDisplayAttributes *attributes);
61  vtkCompositeDataDisplayAttributes* GetCompositeDataDisplayAttributes();
63 
65 
68  void SetBlockVisibility(unsigned int index, bool visible);
69  bool GetBlockVisibility(unsigned int index) const;
70  void RemoveBlockVisibility(unsigned int index);
71  void RemoveBlockVisibilites();
73 
75 
78  void SetBlockColor(unsigned int index, double color[3]);
79  void SetBlockColor(unsigned int index, double r, double g, double b)
80  {
81  double color[3] = {r, g, b};
82  this->SetBlockColor(index, color);
83  }
84  double* GetBlockColor(unsigned int index);
85  void RemoveBlockColor(unsigned int index);
86  void RemoveBlockColors();
88 
90 
93  void SetBlockOpacity(unsigned int index, double opacity);
94  double GetBlockOpacity(unsigned int index);
95  void RemoveBlockOpacity(unsigned int index);
96  void RemoveBlockOpacities();
98 
99 protected:
102 
109 
114 
118  virtual void ComputeBounds();
119 
124  virtual void UpdatePainterInformation();
125 
130 
135 
137 
138 private:
139  vtkMTimeType LastOpaqueCheckTime;
140  bool LastOpaqueCheckValue;
141 
142 private:
143  vtkCompositePolyDataMapper2(const vtkCompositePolyDataMapper2&) VTK_DELETE_FUNCTION;
144  void operator=(const vtkCompositePolyDataMapper2&) VTK_DELETE_FUNCTION;
145 
146 };
147 
148 #endif
vtkAlgorithm::CreateDefaultExecutive
virtual vtkExecutive * CreateDefaultExecutive()
Create a default executive.
vtkCompositePolyDataMapper2::CompositeAttributes
vtkSmartPointer< vtkCompositeDataDisplayAttributes > CompositeAttributes
Composite data set attributes.
Definition: vtkCompositePolyDataMapper2.h:134
vtkPainterPolyDataMapper::New
static vtkPainterPolyDataMapper * New()
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkPainterPolyDataMapper
PolyDataMapper using painters.
Definition: vtkPainterPolyDataMapper.h:37
vtkPolyDataMapper::FillInputPortInformation
virtual int FillInputPortInformation(int, vtkInformation *)
Fill the input port information objects for this algorithm.
vtkSmartPointer< vtkCompositeDataDisplayAttributes >
vtkCompositePolyDataMapper2::BoundsMTime
vtkTimeStamp BoundsMTime
Time stamp for computation of bounds.
Definition: vtkCompositePolyDataMapper2.h:129
vtkCompositePolyDataMapper2::SelectionCompositePainter
vtkPainter * SelectionCompositePainter
Definition: vtkCompositePolyDataMapper2.h:136
vtkCompositePolyDataMapper2
mapper for composite dataset consisting of polygonal data.
Definition: vtkCompositePolyDataMapper2.h:37
vtkCompositeDataDisplayAttributes
rendering attributes for a multi-block dataset.
Definition: vtkCompositeDataDisplayAttributes.h:39
vtkPainterPolyDataMapper::UpdatePainterInformation
virtual void UpdatePainterInformation()
Called when the PainterInformation becomes obsolete.
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
vtkX3D::color
Definition: vtkX3D.h:221
vtkX3D::port
Definition: vtkX3D.h:447
vtkExecutive
Superclass for all pipeline executives in VTK.
Definition: vtkExecutive.h:49
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkPainter
Abstract class for drawing poly data.
Definition: vtkPainter.h:61
vtkSmartPointer.h
vtkCompositePolyDataMapper2::SetBlockColor
void SetBlockColor(unsigned int index, double r, double g, double b)
Definition: vtkCompositePolyDataMapper2.h:79
vtkPainterPolyDataMapper::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkPainterPolyDataMapper::GetIsOpaque
virtual bool GetIsOpaque()
Returns if the mapper does not expect to have translucent geometry.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
Definition: vtkX3D.h:376
vtkPainterPolyDataMapper.h
vtkPainterPolyDataMapper::ComputeBounds
virtual void ComputeBounds()
Called in GetBounds().
vtkX3D::index
Definition: vtkX3D.h:246