VTK
vtkAssembly.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAssembly.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 =========================================================================*/
62 #ifndef vtkAssembly_h
63 #define vtkAssembly_h
64 
65 #include "vtkRenderingCoreModule.h" // For export macro
66 #include "vtkProp3D.h"
67 
68 class vtkAssemblyPaths;
70 class vtkMapper;
71 class vtkProperty;
72 class vtkActor;
73 
75 {
76 public:
77  static vtkAssembly *New();
78 
79  vtkTypeMacro(vtkAssembly, vtkProp3D);
80  void PrintSelf(ostream& os, vtkIndent indent);
81 
83  void AddPart(vtkProp3D *);
84 
86  void RemovePart(vtkProp3D *);
87 
89 
91  { return this->Parts; }
93 
95 
101 
103 
110  virtual int RenderVolumetricGeometry(vtkViewport *ren);
112 
114  virtual int HasTranslucentPolygonalGeometry();
115 
120 
122 
132  void InitPathTraversal();
134  int GetNumberOfPaths();
136 
138 
139  void GetBounds(double bounds[6])
140  { this->vtkProp3D::GetBounds( bounds ); }
141  double *GetBounds();
143 
146  unsigned long int GetMTime();
147 
149  void ShallowCopy(vtkProp *prop);
150 
151 //BTX
153 
157  void BuildPaths(vtkAssemblyPaths *paths, vtkAssemblyPath *path);
158 //ETX
160 
161 protected:
162  vtkAssembly();
163  ~vtkAssembly();
164 
165  // Keep a list of direct descendants of the assembly hierarchy
167 
168  // Support the BuildPaths() method. Caches last paths built for
169  // performance.
171  virtual void UpdatePaths(); //apply transformations and properties recursively
172 
173 private:
174  vtkAssembly(const vtkAssembly&); // Not implemented.
175  void operator=(const vtkAssembly&); // Not implemented.
176 };
177 
178 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:52
vtkProp3DCollection * GetParts()
Definition: vtkAssembly.h:90
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:50
abstract specification for Viewports
Definition: vtkViewport.h:46
represent surface properties of a geometric object
Definition: vtkProperty.h:63
virtual int RenderOpaqueGeometry(vtkViewport *)
Definition: vtkProp.h:198
virtual int HasTranslucentPolygonalGeometry()
Definition: vtkProp.h:262
virtual void BuildPaths(vtkAssemblyPaths *paths, vtkAssemblyPath *path)
record modification and/or execution time
Definition: vtkTimeStamp.h:34
virtual vtkAssemblyPath * GetNextPath()
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:42
void GetBounds(double bounds[6])
Definition: vtkAssembly.h:139
void InitPathTraversal()
a list of Props
virtual void ReleaseGraphicsResources(vtkWindow *)
Definition: vtkProp.h:270
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
virtual int RenderVolumetricGeometry(vtkViewport *)
Definition: vtkProp.h:202
vtkTimeStamp PathTime
Definition: vtkAssembly.h:170
void ShallowCopy(vtkProp *prop)
a list of nodes that form an assembly path
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
virtual void GetVolumes(vtkPropCollection *)
Definition: vtkProp.h:64
a list of lists of props representing an assembly hierarchy
a list of 3D props
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:89
vtkProp3DCollection * Parts
Definition: vtkAssembly.h:166
create hierarchies of vtkProp3Ds (transformable props)
Definition: vtkAssembly.h:74
#define VTKRENDERINGCORE_EXPORT
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkProp.h:200
virtual double * GetBounds()=0
virtual int GetNumberOfPaths()
Definition: vtkProp.h:141
static vtkObject * New()
unsigned long int GetMTime()
virtual void GetActors(vtkPropCollection *)
Definition: vtkProp.h:62