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 
37 {
38 public:
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
51  virtual bool GetIsOpaque();
52 
54 
58 
60 
61  void SetBlockVisibility(unsigned int index, bool visible);
62  bool GetBlockVisibility(unsigned int index) const;
63  void RemoveBlockVisibility(unsigned int index);
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);
79 
81 
82  void SetBlockOpacity(unsigned int index, double opacity);
83  double GetBlockOpacity(unsigned int index);
84  void RemoveBlockOpacity(unsigned int index);
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
vtkCompositePolyDataMapper2::RemoveBlockOpacities
void RemoveBlockOpacities()
vtkCompositePolyDataMapper2::GetBlockColor
double * GetBlockColor(unsigned int index)
vtkCompositePolyDataMapper2::SetBlockVisibility
void SetBlockVisibility(unsigned int index, bool visible)
vtkgl::b
GLboolean GLboolean GLboolean b
Definition: vtkgl.h:12312
vtkCompositePolyDataMapper2::GetIsOpaque
virtual bool GetIsOpaque()
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkPainterPolyDataMapper
PolyDataMapper using painters.
Definition: vtkPainterPolyDataMapper.h:40
vtkRenderingOpenGLModule.h
vtkCompositePolyDataMapper2::~vtkCompositePolyDataMapper2
~vtkCompositePolyDataMapper2()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkCompositePolyDataMapper2::CompositeAttributes
vtkSmartPointer< vtkCompositeDataDisplayAttributes > CompositeAttributes
Definition: vtkCompositePolyDataMapper2.h:112
vtkSmartPointer< vtkCompositeDataDisplayAttributes >
vtkCompositePolyDataMapper2::BoundsMTime
vtkTimeStamp BoundsMTime
Definition: vtkCompositePolyDataMapper2.h:109
vtkCompositePolyDataMapper2::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkCompositePolyDataMapper2::SelectionCompositePainter
vtkPainter * SelectionCompositePainter
Definition: vtkCompositePolyDataMapper2.h:114
vtkCompositePolyDataMapper2
mapper for composite dataset consisting of polygonal data.
Definition: vtkCompositePolyDataMapper2.h:37
vtkCompositePolyDataMapper2::RemoveBlockColor
void RemoveBlockColor(unsigned int index)
vtkCompositePolyDataMapper2::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkCompositeDataDisplayAttributes
rendering attributes for a multi-block dataset.
Definition: vtkCompositeDataDisplayAttributes.h:36
vtkCompositePolyDataMapper2::SetBlockOpacity
void SetBlockOpacity(unsigned int index, double opacity)
vtkCompositePolyDataMapper2::GetCompositeDataDisplayAttributes
vtkCompositeDataDisplayAttributes * GetCompositeDataDisplayAttributes()
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkExecutive
Superclass for all pipeline executives in VTK.
Definition: vtkExecutive.h:52
vtkCompositePolyDataMapper2::UpdatePainterInformation
virtual void UpdatePainterInformation()
vtkCompositePolyDataMapper2::GetBlockOpacity
double GetBlockOpacity(unsigned int index)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkPainter
Abstract class for drawing poly data.
Definition: vtkPainter.h:64
vtkSmartPointer.h
vtkCompositePolyDataMapper2::SetBlockColor
void SetBlockColor(unsigned int index, double r, double g, double b)
Definition: vtkCompositePolyDataMapper2.h:70
vtkCompositePolyDataMapper2::RemoveBlockColors
void RemoveBlockColors()
vtkCompositePolyDataMapper2::ComputeBounds
virtual void ComputeBounds()
vtkCompositePolyDataMapper2::RemoveBlockOpacity
void RemoveBlockOpacity(unsigned int index)
vtkgl::color
GLuint color
Definition: vtkgl.h:12351
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkgl::index
GLuint index
Definition: vtkgl.h:11983
vtkgl::r
GLdouble GLdouble GLdouble r
Definition: vtkgl.h:11610
vtkCompositePolyDataMapper2::New
static vtkCompositePolyDataMapper2 * New()
vtkgl::g
GLboolean GLboolean g
Definition: vtkgl.h:12312
vtkPainterPolyDataMapper.h
vtkCompositePolyDataMapper2::RemoveBlockVisibilites
void RemoveBlockVisibilites()
vtkCompositePolyDataMapper2::SetBlockColor
void SetBlockColor(unsigned int index, double color[3])
vtkCompositePolyDataMapper2::RemoveBlockVisibility
void RemoveBlockVisibility(unsigned int index)
vtkCompositePolyDataMapper2::CreateDefaultExecutive
vtkExecutive * CreateDefaultExecutive()
vtkCompositePolyDataMapper2::SetCompositeDataDisplayAttributes
void SetCompositeDataDisplayAttributes(vtkCompositeDataDisplayAttributes *attributes)
vtkCompositePolyDataMapper2::GetBlockVisibility
bool GetBlockVisibility(unsigned int index) const
vtkCompositePolyDataMapper2::vtkCompositePolyDataMapper2
vtkCompositePolyDataMapper2()
VTKRENDERINGOPENGL_EXPORT
#define VTKRENDERINGOPENGL_EXPORT
Definition: vtkRenderingOpenGLModule.h:15