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 =========================================================================*/
24 #ifndef vtkCompositePolyDataMapper2_h
25 #define vtkCompositePolyDataMapper2_h
26 
27 #include "vtkRenderingOpenGLModule.h" // For export macro
29 #include "vtkSmartPointer.h" // for vtkSmartPointer
30 
32 
34 {
35 public:
38  void PrintSelf(ostream& os, vtkIndent indent);
39 
48  virtual bool GetIsOpaque();
49 
51 
52  void SetCompositeDataDisplayAttributes(vtkCompositeDataDisplayAttributes *attributes);
53  vtkCompositeDataDisplayAttributes* GetCompositeDataDisplayAttributes();
55 
57 
58  void SetBlockVisibility(unsigned int index, bool visible);
59  bool GetBlockVisibility(unsigned int index) const;
60  void RemoveBlockVisibility(unsigned int index);
61  void RemoveBlockVisibilites();
63 
65 
66  void SetBlockColor(unsigned int index, double color[3]);
67  void SetBlockColor(unsigned int index, double r, double g, double b)
68  {
69  double color[3] = {r, g, b};
70  this->SetBlockColor(index, color);
71  }
72  double* GetBlockColor(unsigned int index);
73  void RemoveBlockColor(unsigned int index);
74  void RemoveBlockColors();
76 
78 
79  void SetBlockOpacity(unsigned int index, double opacity);
80  double GetBlockOpacity(unsigned int index);
81  void RemoveBlockOpacity(unsigned int index);
82  void RemoveBlockOpacities();
84 
85 //BTX
86 protected:
89 
94 
97 
99  virtual void ComputeBounds();
100 
103  virtual void UpdatePainterInformation();
104 
107 
110 
112 
113 private:
114  unsigned long int LastOpaqueCheckTime;
115  bool LastOpaqueCheckValue;
116 
117 private:
118  vtkCompositePolyDataMapper2(const vtkCompositePolyDataMapper2&); // Not implemented.
119  void operator=(const vtkCompositePolyDataMapper2&); // Not implemented.
120 //ETX
121 };
122 
123 #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:51
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
#define VTKRENDERINGOPENGL_EXPORT
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.