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 "vtkProp3D.h"
66 
67 class vtkAssemblyPaths;
69 class vtkMapper;
70 class vtkProperty;
71 class vtkActor;
72 
74 {
75 public:
76  static vtkAssembly *New();
77 
78  vtkTypeMacro(vtkAssembly,vtkProp3D);
79  void PrintSelf(ostream& os, vtkIndent indent);
80 
82  void AddPart(vtkProp3D *);
83 
85  void RemovePart(vtkProp3D *);
86 
88  vtkProp3DCollection *GetParts();
89 
91 
97 
99 
106  virtual int RenderVolumetricGeometry( vtkViewport *ren);
108 
110  virtual int HasTranslucentPolygonalGeometry();
111 
116 
118 
128  void InitPathTraversal();
130  int GetNumberOfPaths();
132 
134 
135  void GetBounds(double bounds[6]) {this->vtkProp3D::GetBounds( bounds );};
136  double *GetBounds();
138 
141  unsigned long int GetMTime();
142 
144  void ShallowCopy(vtkProp *prop);
145 
146 //BTX
148 
152  void BuildPaths(vtkAssemblyPaths *paths, vtkAssemblyPath *path);
153 //ETX
155 
156 protected:
157  vtkAssembly();
158  ~vtkAssembly();
159 
160  // Keep a list of direct descendants of the assembly hierarchy
162 
163  // Support the BuildPaths() method. Caches last paths built for
164  // performance.
166  virtual void UpdatePaths(); //apply transformations and properties recursively
167 
168 private:
169  vtkAssembly(const vtkAssembly&); // Not implemented.
170  void operator=(const vtkAssembly&); // Not implemented.
171 };
172 
175 
176 #endif
177 
178 
179 
180 
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:49
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:49
vtkProp3DCollection * GetParts()
Definition: vtkAssembly.h:174
abstract specification for Viewports
Definition: vtkViewport.h:45
represent surface properties of a geometric object
Definition: vtkProperty.h:61
virtual int RenderOpaqueGeometry(vtkViewport *)
Definition: vtkProp.h:171
virtual int HasTranslucentPolygonalGeometry()
Definition: vtkProp.h:230
virtual void BuildPaths(vtkAssemblyPaths *paths, vtkAssemblyPath *path)
record modification and/or execution time
Definition: vtkTimeStamp.h:33
virtual vtkAssemblyPath * GetNextPath()
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:41
void GetBounds(double bounds[6])
Definition: vtkAssembly.h:135
void InitPathTraversal()
a list of Props
virtual void ReleaseGraphicsResources(vtkWindow *)
Definition: vtkProp.h:236
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
virtual int RenderVolumetricGeometry(vtkViewport *)
Definition: vtkProp.h:173
vtkTimeStamp PathTime
Definition: vtkAssembly.h:165
void ShallowCopy(vtkProp *prop)
a list of nodes that form an assembly path
a simple class to control print indentation
Definition: vtkIndent.h:37
void PrintSelf(ostream &os, vtkIndent indent)
virtual void GetVolumes(vtkPropCollection *)
Definition: vtkProp.h:61
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:85
#define VTK_RENDERING_EXPORT
vtkProp3DCollection * Parts
Definition: vtkAssembly.h:161
create hierarchies of vtkProp3Ds (transformable props)
Definition: vtkAssembly.h:73
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkProp.h:172
virtual double * GetBounds()=0
virtual int GetNumberOfPaths()
Definition: vtkProp.h:132
static vtkObject * New()
unsigned long int GetMTime()
virtual void GetActors(vtkPropCollection *)
Definition: vtkProp.h:59