VTK  9.3.20240419
vtkPropAssembly.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
84 #ifndef vtkPropAssembly_h
85 #define vtkPropAssembly_h
86 
87 #include "vtkProp.h"
88 #include "vtkRenderingCoreModule.h" // For export macro
89 
90 VTK_ABI_NAMESPACE_BEGIN
91 class VTKRENDERINGCORE_EXPORT vtkPropAssembly : public vtkProp
92 {
93 public:
94  vtkTypeMacro(vtkPropAssembly, vtkProp);
95  void PrintSelf(ostream& os, vtkIndent indent) override;
96 
100  static vtkPropAssembly* New();
101 
105  void AddPart(vtkProp*);
106 
111 
116 
118 
123  int RenderOpaqueGeometry(vtkViewport* ren) override;
126  int RenderOverlay(vtkViewport* ren) override;
128 
133 
140 
145  double* GetBounds() VTK_SIZEHINT(6) override;
146 
150  void ShallowCopy(vtkProp* Prop) override;
151 
156  vtkMTimeType GetMTime() override;
157 
159 
169  void InitPathTraversal() override;
170  vtkAssemblyPath* GetNextPath() override;
171  int GetNumberOfPaths() override;
173 
179  void BuildPaths(vtkAssemblyPaths* paths, vtkAssemblyPath* path) override;
180 
181 protected:
183  ~vtkPropAssembly() override;
184 
186  double Bounds[6];
187 
188  // Support the BuildPaths() method,
189  vtkTimeStamp PathTime;
190  void UpdatePaths(); // apply transformations and properties recursively
191 private:
192  vtkPropAssembly(const vtkPropAssembly&) = delete;
193  void operator=(const vtkPropAssembly&) = delete;
194 };
195 
196 VTK_ABI_NAMESPACE_END
197 #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:108
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:44
abstract specification for Viewports
Definition: vtkViewport.h:65
window superclass for vtkRenderWindow
Definition: vtkWindow.h:48
int vtkTypeBool
Definition: vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270
#define VTK_SIZEHINT(...)