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 
80  void PrintSelf(ostream& os, vtkIndent indent);
81 
83  void AddPart(vtkProp3D *);
84 
87 
89 
91  { return this->Parts; }
93 
95 
101 
103 
112 
115 
120 
122 
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 
158 //ETX
160 
161 protected:
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
vtkAssembly::RenderTranslucentPolygonalGeometry
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *ren)
vtkAssembly::GetParts
vtkProp3DCollection * GetParts()
Definition: vtkAssembly.h:90
vtkProp3D
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:43
vtkAssembly::~vtkAssembly
~vtkAssembly()
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkAssembly::GetNextPath
vtkAssemblyPath * GetNextPath()
vtkAssembly::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkAssembly::PathTime
vtkTimeStamp PathTime
Definition: vtkAssembly.h:170
vtkAssemblyPath
a list of nodes that form an assembly path
Definition: vtkAssemblyPath.h:41
vtkAssemblyPaths
a list of lists of props representing an assembly hierarchy
Definition: vtkAssemblyPaths.h:37
vtkAssembly::New
static vtkAssembly * New()
vtkAssembly::RemovePart
void RemovePart(vtkProp3D *)
vtkAssembly::AddPart
void AddPart(vtkProp3D *)
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkAssembly::GetBounds
void GetBounds(double bounds[6])
Definition: vtkAssembly.h:139
vtkAssembly::vtkAssembly
vtkAssembly()
vtkAssembly::BuildPaths
void BuildPaths(vtkAssemblyPaths *paths, vtkAssemblyPath *path)
vtkAssembly::GetBounds
double * GetBounds()
vtkMapper
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:90
vtkAssembly::Parts
vtkProp3DCollection * Parts
Definition: vtkAssembly.h:166
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
vtkAssembly::GetVolumes
void GetVolumes(vtkPropCollection *)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkRenderingCoreModule.h
vtkgl::path
GLsizei const GLchar ** path
Definition: vtkgl.h:13835
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:47
vtkAssembly::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *)
vtkAssembly::RenderOpaqueGeometry
int RenderOpaqueGeometry(vtkViewport *ren)
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:50
vtkAssembly::HasTranslucentPolygonalGeometry
virtual int HasTranslucentPolygonalGeometry()
vtkAssembly::UpdatePaths
virtual void UpdatePaths()
vtkAssembly::InitPathTraversal
void InitPathTraversal()
vtkAssembly::RenderVolumetricGeometry
virtual int RenderVolumetricGeometry(vtkViewport *ren)
vtkAssembly::GetActors
void GetActors(vtkPropCollection *)
vtkProperty
represent surface properties of a geometric object
Definition: vtkProperty.h:64
VTKRENDERINGCORE_EXPORT
#define VTKRENDERINGCORE_EXPORT
Definition: vtkRenderingCoreModule.h:15
vtkAssembly::GetMTime
unsigned long int GetMTime()
vtkPropCollection
a list of Props
Definition: vtkPropCollection.h:38
vtkProp3DCollection
a list of 3D props
Definition: vtkProp3DCollection.h:37
vtkAssembly::GetNumberOfPaths
int GetNumberOfPaths()
vtkAssembly::ShallowCopy
void ShallowCopy(vtkProp *prop)
vtkProp3D.h
vtkAssembly
create hierarchies of vtkProp3Ds (transformable props)
Definition: vtkAssembly.h:75
vtkProp3D::GetBounds
virtual double * GetBounds()=0