VTK
vtkCompositePainter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCompositePainter.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 vtkCompositePainter_h
25 #define vtkCompositePainter_h
26 
27 #include "vtkRenderingOpenGLModule.h" // For export macro
28 #include "vtkPainter.h"
29 #include "vtkColor.h" // needed for vtkColor3d
30 #include <stack> // needed for RenderBlockState.
31 
34 class vtkProperty;
35 class vtkRenderWindow;
36 
37 class VTKRENDERINGOPENGL_EXPORT vtkCompositePainter : public vtkPainter
38 {
39 public:
40  static vtkCompositePainter* New();
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
46  virtual vtkDataObject* GetOutput();
47 
50  static vtkInformationObjectBaseKey* DISPLAY_ATTRIBUTES();
51 
53 
56  void SetCompositeDataDisplayAttributes(vtkCompositeDataDisplayAttributes *attributes);
57  vtkGetObjectMacro(CompositeDataDisplayAttributes, vtkCompositeDataDisplayAttributes)
59 
60 //BTX
61 protected:
63  ~vtkCompositePainter();
64 
66  virtual void ReportReferences(vtkGarbageCollector *collector);
67 
70  virtual void ProcessInformation(vtkInformation* information);
71 
73 
78  virtual void RenderInternal(vtkRenderer* renderer, vtkActor* actor,
79  unsigned long typeflags, bool forceCompileOnly);
81 
83  {
84  public:
85  std::stack<bool> Visibility;
86  std::stack<double> Opacity;
87  std::stack<vtkColor3d> AmbientColor;
88  std::stack<vtkColor3d> DiffuseColor;
89  std::stack<vtkColor3d> SpecularColor;
90 
95  };
96 
97  void RenderBlock(vtkRenderer *renderer,
98  vtkActor *actor,
99  unsigned long typeflags,
100  bool forceCompileOnly,
101  vtkDataObject *dobj,
102  unsigned int &flat_index,
103  RenderBlockState &state);
104 
106 
107  virtual void UpdateRenderingState(
110 
113 private:
114  vtkCompositePainter(const vtkCompositePainter&); // Not implemented.
115  void operator=(const vtkCompositePainter&); // Not implemented.
116 //ETX
117 };
118 
119 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:50
painter that can be inserted before any vtkDataSet painting chain to handle composite datasets...
Store vtkAlgorithm input/output information.
represent surface properties of a geometric object
Definition: vtkProperty.h:63
rendering attributes for a multi-block dataset.
virtual vtkDataObject * GetOutput()
Definition: vtkPainter.h:156
abstract specification for renderers
Definition: vtkRenderer.h:62
Detect and break reference loops.
vtkCompositeDataDisplayAttributes * CompositeDataDisplayAttributes
a simple class to control print indentation
Definition: vtkIndent.h:38
Key for vtkObjectBase values.
vtkDataObject * OutputData
create a window for renderers to draw into
virtual void UpdateRenderingState(vtkRenderWindow *, vtkProperty *, RenderBlockState &)
Abstract class for drawing poly data.
Definition: vtkPainter.h:63
static vtkObject * New()
general representation of visualization data
Definition: vtkDataObject.h:64
virtual void PrintSelf(ostream &os, vtkIndent indent)