VTK  9.3.0
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
44 #ifndef vtkPropAssembly_h
45 #define vtkPropAssembly_h
46 
47 #include "vtkProp.h"
48 #include "vtkRenderingCoreModule.h" // For export macro
49 
50 VTK_ABI_NAMESPACE_BEGIN
51 class VTKRENDERINGCORE_EXPORT vtkPropAssembly : public vtkProp
52 {
53 public:
54  vtkTypeMacro(vtkPropAssembly, vtkProp);
55  void PrintSelf(ostream& os, vtkIndent indent) override;
56 
60  static vtkPropAssembly* New();
61 
65  void AddPart(vtkProp*);
66 
71 
76 
78 
83  int RenderOpaqueGeometry(vtkViewport* ren) override;
86  int RenderOverlay(vtkViewport* ren) override;
88 
93 
100 
105  double* GetBounds() VTK_SIZEHINT(6) override;
106 
110  void ShallowCopy(vtkProp* Prop) override;
111 
116  vtkMTimeType GetMTime() override;
117 
119 
129  void InitPathTraversal() override;
130  vtkAssemblyPath* GetNextPath() override;
131  int GetNumberOfPaths() override;
133 
139  void BuildPaths(vtkAssemblyPaths* paths, vtkAssemblyPath* path) override;
140 
141 protected:
143  ~vtkPropAssembly() override;
144 
146  double Bounds[6];
147 
148  // Support the BuildPaths() method,
149  vtkTimeStamp PathTime;
150  void UpdatePaths(); // apply transformations and properties recursively
151 private:
152  vtkPropAssembly(const vtkPropAssembly&) = delete;
153  void operator=(const vtkPropAssembly&) = delete;
154 };
155 
156 VTK_ABI_NAMESPACE_END
157 #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:38
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:55
record modification and/or execution time
Definition: vtkTimeStamp.h:34
abstract specification for Viewports
Definition: vtkViewport.h:54
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
int vtkTypeBool
Definition: vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270
#define VTK_SIZEHINT(...)