VTK  9.2.6
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 =========================================================================*/
56 #ifndef vtkPropAssembly_h
57 #define vtkPropAssembly_h
58 
59 #include "vtkProp.h"
60 #include "vtkRenderingCoreModule.h" // For export macro
61 
62 class VTKRENDERINGCORE_EXPORT vtkPropAssembly : public vtkProp
63 {
64 public:
65  vtkTypeMacro(vtkPropAssembly, vtkProp);
66  void PrintSelf(ostream& os, vtkIndent indent) override;
67 
71  static vtkPropAssembly* New();
72 
76  void AddPart(vtkProp*);
77 
82 
87 
89 
94  int RenderOpaqueGeometry(vtkViewport* ren) override;
97  int RenderOverlay(vtkViewport* ren) override;
99 
104 
111 
116  double* GetBounds() VTK_SIZEHINT(6) override;
117 
121  void ShallowCopy(vtkProp* Prop) override;
122 
127  vtkMTimeType GetMTime() override;
128 
130 
140  void InitPathTraversal() override;
141  vtkAssemblyPath* GetNextPath() override;
142  int GetNumberOfPaths() override;
144 
150  void BuildPaths(vtkAssemblyPaths* paths, vtkAssemblyPath* path) override;
151 
152 protected:
154  ~vtkPropAssembly() override;
155 
157  double Bounds[6];
158 
159  // Support the BuildPaths() method,
160  vtkTimeStamp PathTime;
161  void UpdatePaths(); // apply transformations and properties recursively
162 private:
163  vtkPropAssembly(const vtkPropAssembly&) = delete;
164  void operator=(const vtkPropAssembly&) = delete;
165 };
166 
167 #endif
a list of nodes that form an assembly path
a list of lists of props representing an assembly hierarchy
a simple class to control print indentation
Definition: vtkIndent.h:49
create hierarchies of props
void RemovePart(vtkProp *)
Remove a part from the list of parts,.
int RenderOpaqueGeometry(vtkViewport *ren) override
Render this assembly and all its parts.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
int RenderVolumetricGeometry(vtkViewport *ren) override
Render this assembly and all its parts.
vtkPropCollection * GetParts()
Return the list of parts.
int RenderOverlay(vtkViewport *ren) override
Render this assembly and all its parts.
void AddPart(vtkProp *)
Add a part to the list of parts.
vtkTypeBool HasTranslucentPolygonalGeometry() override
Does this prop have some translucent polygonal geometry?
static vtkPropAssembly * New()
Create with an empty parts list.
double * GetBounds() override
Get the bounds for this prop assembly as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RenderTranslucentPolygonalGeometry(vtkViewport *ren) override
Render this assembly and all its parts.
an ordered list of Props
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:66
record modification and/or execution time
Definition: vtkTimeStamp.h:45
abstract specification for Viewports
Definition: vtkViewport.h:65
window superclass for vtkRenderWindow
Definition: vtkWindow.h:48
int vtkTypeBool
Definition: vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
#define VTK_SIZEHINT(...)