VTK  9.3.1
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
35 #ifndef vtkPropAssembly_h
36 #define vtkPropAssembly_h
37 
38 #include "vtkProp.h"
39 #include "vtkRenderingCoreModule.h" // For export macro
40 
41 VTK_ABI_NAMESPACE_BEGIN
42 class VTKRENDERINGCORE_EXPORT vtkPropAssembly : public vtkProp
43 {
44 public:
45  vtkTypeMacro(vtkPropAssembly, vtkProp);
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
51  static vtkPropAssembly* New();
52 
56  void AddPart(vtkProp*);
57 
61  void RemovePart(vtkProp*);
62 
66  vtkPropCollection* GetParts();
67 
69 
74  int RenderOpaqueGeometry(vtkViewport* ren) override;
76  int RenderVolumetricGeometry(vtkViewport* ren) override;
77  int RenderOverlay(vtkViewport* ren) override;
79 
84 
90  void ReleaseGraphicsResources(vtkWindow*) override;
91 
96  double* GetBounds() VTK_SIZEHINT(6) override;
97 
101  void ShallowCopy(vtkProp* Prop) override;
102 
107  vtkMTimeType GetMTime() override;
108 
110 
120  void InitPathTraversal() override;
121  vtkAssemblyPath* GetNextPath() override;
122  int GetNumberOfPaths() override;
124 
130  void BuildPaths(vtkAssemblyPaths* paths, vtkAssemblyPath* path) override;
131 
132 protected:
133  vtkPropAssembly();
134  ~vtkPropAssembly() override;
135 
137  double Bounds[6];
138 
139  // Support the BuildPaths() method,
140  vtkTimeStamp PathTime;
141  void UpdatePaths(); // apply transformations and properties recursively
142 private:
143  vtkPropAssembly(const vtkPropAssembly&) = delete;
144  void operator=(const vtkPropAssembly&) = delete;
145 };
146 
147 VTK_ABI_NAMESPACE_END
148 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:45
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270
abstract specification for Viewports
Definition: vtkViewport.h:44
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:213
virtual vtkTypeBool HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:277
virtual int RenderOverlay(vtkViewport *)
Definition: vtkProp.h:216
record modification and/or execution time
Definition: vtkTimeStamp.h:24
create hierarchies of props
an ordered list of Props
int vtkTypeBool
Definition: vtkABI.h:64
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
Definition: vtkProp.h:298
virtual double * GetBounds()
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
Definition: vtkProp.h:124
window superclass for vtkRenderWindow
Definition: vtkWindow.h:27
virtual int RenderVolumetricGeometry(vtkViewport *)
Definition: vtkProp.h:215
a list of nodes that form an assembly path
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:28
a list of lists of props representing an assembly hierarchy
#define VTK_SIZEHINT(...)
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkProp.h:214
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...