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 =========================================================================*/
50 #ifndef vtkPropAssembly_h
51 #define vtkPropAssembly_h
52 
53 #include "vtkRenderingCoreModule.h" // For export macro
54 #include "vtkProp.h"
55 
56 class VTKRENDERINGCORE_EXPORT vtkPropAssembly : public vtkProp
57 {
58 public:
59  vtkTypeMacro(vtkPropAssembly,vtkProp);
60  void PrintSelf(ostream& os, vtkIndent indent);
61 
65  static vtkPropAssembly *New();
66 
70  void AddPart(vtkProp *);
71 
76 
81 
83 
93 
98 
105 
110  double *GetBounds();
111 
115  void ShallowCopy(vtkProp *Prop);
116 
122 
124 
138 
145 
146 protected:
149 
151  double Bounds[6];
152 
153  // Support the BuildPaths() method,
155  void UpdatePaths(); //apply transformations and properties recursively
156 private:
157  vtkPropAssembly(const vtkPropAssembly&) VTK_DELETE_FUNCTION;
158  void operator=(const vtkPropAssembly&) VTK_DELETE_FUNCTION;
159 };
160 
161 #endif
162 
163 
164 
165 
vtkPropAssembly::RemovePart
void RemovePart(vtkProp *)
Remove a part from the list of parts,.
vtkPropAssembly::PathTime
vtkTimeStamp PathTime
Definition: vtkPropAssembly.h:154
vtkPropAssembly::RenderVolumetricGeometry
virtual int RenderVolumetricGeometry(vtkViewport *ren)
vtkPropAssembly::RenderOpaqueGeometry
int RenderOpaqueGeometry(vtkViewport *ren)
Render this assembly and all its parts.
vtkPropAssembly
create hierarchies of props
Definition: vtkPropAssembly.h:57
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:36
vtkPropAssembly::BuildPaths
void BuildPaths(vtkAssemblyPaths *paths, vtkAssemblyPath *path)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
vtkPropAssembly::~vtkPropAssembly
~vtkPropAssembly()
vtkAssemblyPath
a list of nodes that form an assembly path
Definition: vtkAssemblyPath.h:42
vtkProp.h
vtkPropAssembly::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this actor.
vtkAssemblyPaths
a list of lists of props representing an assembly hierarchy
Definition: vtkAssemblyPaths.h:38
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
vtkPropAssembly::GetMTime
vtkMTimeType GetMTime()
Override default GetMTime method to also consider all of the prop assembly's parts.
vtkPropAssembly::InitPathTraversal
void InitPathTraversal()
Methods to traverse the paths (i.e., leaf nodes) of a prop assembly.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkPropAssembly::RenderOverlay
int RenderOverlay(vtkViewport *ren)
vtkPropAssembly::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkPropAssembly::GetParts
vtkPropCollection * GetParts()
Return the list of parts.
vtkPropAssembly::ShallowCopy
void ShallowCopy(vtkProp *Prop)
Shallow copy of this vtkPropAssembly.
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:48
vtkPropAssembly::vtkPropAssembly
vtkPropAssembly()
vtkPropAssembly::GetNextPath
vtkAssemblyPath * GetNextPath()
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:48
vtkPropAssembly::AddPart
void AddPart(vtkProp *)
Add a part to the list of parts.
vtkPropAssembly::HasTranslucentPolygonalGeometry
virtual int HasTranslucentPolygonalGeometry()
Does this prop have some translucent polygonal geometry?
vtkPropAssembly::GetBounds
double * GetBounds()
Get the bounds for this prop assembly as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
vtkPropAssembly::UpdatePaths
void UpdatePaths()
vtkPropCollection
a list of Props
Definition: vtkPropCollection.h:39
vtkPropAssembly::New
static vtkPropAssembly * New()
Create with an empty parts list.
vtkPropAssembly::RenderTranslucentPolygonalGeometry
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *ren)
vtkPropAssembly::GetNumberOfPaths
int GetNumberOfPaths()
vtkPropAssembly::Parts
vtkPropCollection * Parts
Definition: vtkPropAssembly.h:150