VTK  9.2.6
vtkAssembly.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkAssembly.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=========================================================================*/
59
60#ifndef vtkAssembly_h
61#define vtkAssembly_h
62
63#include "vtkProp3D.h"
64#include "vtkRenderingCoreModule.h" // For export macro
65
68class vtkMapper;
69class vtkProperty;
70class vtkActor;
71
72class VTKRENDERINGCORE_EXPORT vtkAssembly : public vtkProp3D
73{
74public:
75 static vtkAssembly* New();
76
77 vtkTypeMacro(vtkAssembly, vtkProp3D);
78 void PrintSelf(ostream& os, vtkIndent indent) override;
79
84
89
93 vtkProp3DCollection* GetParts() { return this->Parts; }
94
96
104
106
118
123
130
132
144 void InitPathTraversal() override;
146 int GetNumberOfPaths() override;
148
152 void GetBounds(double bounds[6]) { this->vtkProp3D::GetBounds(bounds); }
153 double* GetBounds() VTK_SIZEHINT(6) override;
154
160
164 void ShallowCopy(vtkProp* prop) override;
165
172 void BuildPaths(vtkAssemblyPaths* paths, vtkAssemblyPath* path) override;
173
174protected:
176 ~vtkAssembly() override;
177
178 // Keep a list of direct descendants of the assembly hierarchy
180
181 // Support the BuildPaths() method. Caches last paths built for
182 // performance.
184 virtual void UpdatePaths(); // apply transformations and properties recursively
185
186private:
187 vtkAssembly(const vtkAssembly&) = delete;
188 void operator=(const vtkAssembly&) = delete;
189};
190
191#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:52
a list of nodes that form an assembly path
a list of lists of props representing an assembly hierarchy
int RenderTranslucentPolygonalGeometry(vtkViewport *ren) override
Render this assembly and all its parts.
vtkMTimeType GetMTime() override
Override default GetMTime method to also consider all of the assembly's parts.
virtual void UpdatePaths()
static vtkAssembly * New()
vtkTypeBool HasTranslucentPolygonalGeometry() override
Does this prop have some translucent polygonal geometry?
void GetActors(vtkPropCollection *) override
For some exporters and other other operations we must be able to collect all the actors or volumes.
vtkAssemblyPath * GetNextPath() override
Methods to traverse the parts of an assembly.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
double * GetBounds() override
Return a reference to the Prop3D's composite transform.
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.
void BuildPaths(vtkAssemblyPaths *paths, vtkAssemblyPath *path) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
int RenderOpaqueGeometry(vtkViewport *ren) override
Render this assembly and all its parts.
int GetNumberOfPaths() override
Methods to traverse the parts of an assembly.
vtkProp3DCollection * GetParts()
Return the parts (direct descendants) of this assembly.
Definition vtkAssembly.h:93
void InitPathTraversal() override
Methods to traverse the parts of an assembly.
void ShallowCopy(vtkProp *prop) override
Shallow copy of an assembly.
void GetVolumes(vtkPropCollection *) override
For some exporters and other other operations we must be able to collect all the actors or volumes.
void RemovePart(vtkProp3D *)
Remove a part from the list of parts,.
vtkProp3DCollection * Parts
void GetBounds(double bounds[6])
Get the bounds for the assembly as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
vtkTimeStamp PathTime
void AddPart(vtkProp3D *)
Add a part to the list of parts.
a simple class to control print indentation
Definition vtkIndent.h:40
abstract class specifies interface to map data to graphics primitives
Definition vtkMapper.h:88
an ordered list of 3D props
double * GetBounds() override=0
Return a reference to the Prop3D's composite transform.
an ordered list of Props
represent surface properties of a geometric object
Definition vtkProperty.h:68
record modification and/or execution time
abstract specification for Viewports
Definition vtkViewport.h:56
window superclass for vtkRenderWindow
Definition vtkWindow.h:39
int vtkTypeBool
Definition vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:287
#define VTK_SIZEHINT(...)