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 =========================================================================*/
27 #ifndef vtkCompositePolyDataMapper2_h
28 #define vtkCompositePolyDataMapper2_h
29 
30 #include "vtkRenderingOpenGLModule.h" // For export macro
32 #include "vtkSmartPointer.h" // for vtkSmartPointer
33 
35 
36 class VTKRENDERINGOPENGL_EXPORT vtkCompositePolyDataMapper2 : public vtkPainterPolyDataMapper
37 {
38 public:
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
51  virtual bool GetIsOpaque();
52 
54 
55  void SetCompositeDataDisplayAttributes(vtkCompositeDataDisplayAttributes *attributes);
56  vtkCompositeDataDisplayAttributes* GetCompositeDataDisplayAttributes();
58 
60 
61  void SetBlockVisibility(unsigned int index, bool visible);
62  bool GetBlockVisibility(unsigned int index) const;
63  void RemoveBlockVisibility(unsigned int index);
64  void RemoveBlockVisibilites();
66 
68 
69  void SetBlockColor(unsigned int index, double color[3]);
70  void SetBlockColor(unsigned int index, double r, double g, double b)
71  {
72  double color[3] = {r, g, b};
73  this->SetBlockColor(index, color);
74  }
75  double* GetBlockColor(unsigned int index);
76  void RemoveBlockColor(unsigned int index);
77  void RemoveBlockColors();
79 
81 
82  void SetBlockOpacity(unsigned int index, double opacity);
83  double GetBlockOpacity(unsigned int index);
84  void RemoveBlockOpacity(unsigned int index);
85  void RemoveBlockOpacities();
87 
88 //BTX
89 protected:
92 
97 
100 
102  virtual void ComputeBounds();
103 
106  virtual void UpdatePainterInformation();
107 
110 
113 
115 
116 private:
117  unsigned long int LastOpaqueCheckTime;
118  bool LastOpaqueCheckValue;
119 
120 private:
121  vtkCompositePolyDataMapper2(const vtkCompositePolyDataMapper2&); // Not implemented.
122  void operator=(const vtkCompositePolyDataMapper2&); // Not implemented.
123 //ETX
124 };
125 
126 #endif
virtual int FillInputPortInformation(int, vtkInformation *)
virtual void UpdatePainterInformation()
virtual vtkExecutive * CreateDefaultExecutive()
Store vtkAlgorithm input/output information.
mapper for composite dataset consisting of polygonal data.
record modification and/or execution time
Definition: vtkTimeStamp.h:34
rendering attributes for a multi-block dataset.
Superclass for all pipeline executives in VTK.
Definition: vtkExecutive.h:48
void SetBlockColor(unsigned int index, double r, double g, double b)
virtual void ComputeBounds()
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
vtkSmartPointer< vtkCompositeDataDisplayAttributes > CompositeAttributes
static vtkPainterPolyDataMapper * New()
virtual bool GetIsOpaque()
Abstract class for drawing poly data.
Definition: vtkPainter.h:63
PolyDataMapper using painters.