VTK
vtkPropAssembly.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPropAssembly.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 =========================================================================*/
49 #ifndef vtkPropAssembly_h
50 #define vtkPropAssembly_h
51 
52 #include "vtkRenderingCoreModule.h" // For export macro
53 #include "vtkProp.h"
54 
56 {
57 public:
58  vtkTypeMacro(vtkPropAssembly,vtkProp);
59  void PrintSelf(ostream& os, vtkIndent indent);
60 
62  static vtkPropAssembly *New();
63 
65  void AddPart(vtkProp *);
66 
68  void RemovePart(vtkProp *);
69 
71  vtkPropCollection *GetParts();
72 
74 
79  virtual int RenderVolumetricGeometry( vtkViewport *ren);
80  int RenderOverlay(vtkViewport *ren);
82 
84  virtual int HasTranslucentPolygonalGeometry();
85 
90 
94  double *GetBounds();
95 
97  void ShallowCopy(vtkProp *Prop);
98 
101  unsigned long int GetMTime();
102 
104 
112  void InitPathTraversal();
114  int GetNumberOfPaths();
116 
117 //BTX
119 
122  void BuildPaths(vtkAssemblyPaths *paths, vtkAssemblyPath *path);
123 //ETX
125 
126 protected:
127  vtkPropAssembly();
128  ~vtkPropAssembly();
129 
131  double Bounds[6];
132 
133  // Support the BuildPaths() method,
135  void UpdatePaths(); //apply transformations and properties recursively
136 private:
137  vtkPropAssembly(const vtkPropAssembly&); // Not implemented.
138  void operator=(const vtkPropAssembly&); // Not implemented.
139 };
140 
141 #endif
142 
143 
144 
145 
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:52
vtkPropCollection * Parts
void PrintSelf(ostream &os, vtkIndent indent)
virtual void ShallowCopy(vtkProp *prop)
abstract specification for Viewports
Definition: vtkViewport.h:46
virtual int RenderOpaqueGeometry(vtkViewport *)
Definition: vtkProp.h:198
virtual int HasTranslucentPolygonalGeometry()
Definition: vtkProp.h:262
virtual int RenderOverlay(vtkViewport *)
Definition: vtkProp.h:204
virtual void BuildPaths(vtkAssemblyPaths *paths, vtkAssemblyPath *path)
record modification and/or execution time
Definition: vtkTimeStamp.h:34
create hierarchies of props
virtual vtkAssemblyPath * GetNextPath()
a list of Props
virtual void ReleaseGraphicsResources(vtkWindow *)
Definition: vtkProp.h:270
virtual double * GetBounds()
Definition: vtkProp.h:120
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
virtual int RenderVolumetricGeometry(vtkViewport *)
Definition: vtkProp.h:202
a list of nodes that form an assembly path
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:38
a list of lists of props representing an assembly hierarchy
#define VTKRENDERINGCORE_EXPORT
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkProp.h:200
virtual int GetNumberOfPaths()
Definition: vtkProp.h:141
static vtkObject * New()
virtual void InitPathTraversal()
vtkTimeStamp PathTime