VTK
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 =========================================================================*/
44 #ifndef vtkPropAssembly_h
45 #define vtkPropAssembly_h
46 
47 #include "vtkRenderingCoreModule.h" // For export macro
48 #include "vtkProp.h"
49 
50 class VTKRENDERINGCORE_EXPORT vtkPropAssembly : public vtkProp
51 {
52 public:
53  vtkTypeMacro(vtkPropAssembly,vtkProp);
54  void PrintSelf(ostream& os, vtkIndent indent) override;
55 
59  static vtkPropAssembly *New();
60 
64  void AddPart(vtkProp *);
65 
69  void RemovePart(vtkProp *);
70 
74  vtkPropCollection *GetParts();
75 
77 
82  int RenderOpaqueGeometry(vtkViewport *ren) override;
84  int RenderVolumetricGeometry( vtkViewport *ren) override;
85  int RenderOverlay(vtkViewport *ren) override;
87 
91  int HasTranslucentPolygonalGeometry() override;
92 
98  void ReleaseGraphicsResources(vtkWindow *) override;
99 
104  double *GetBounds() VTK_SIZEHINT(6) override;
105 
109  void ShallowCopy(vtkProp *Prop) override;
110 
115  vtkMTimeType GetMTime() override;
116 
118 
128  void InitPathTraversal() override;
129  vtkAssemblyPath *GetNextPath() override;
130  int GetNumberOfPaths() override;
132 
138  void BuildPaths(vtkAssemblyPaths *paths, vtkAssemblyPath *path) override;
139 
140 protected:
141  vtkPropAssembly();
142  ~vtkPropAssembly() override;
143 
145  double Bounds[6];
146 
147  // Support the BuildPaths() method,
148  vtkTimeStamp PathTime;
149  void UpdatePaths(); //apply transformations and properties recursively
150 private:
151  vtkPropAssembly(const vtkPropAssembly&) = delete;
152  void operator=(const vtkPropAssembly&) = delete;
153 };
154 
155 #endif
156 
157 
158 
159 
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:46
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
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:218
virtual int HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:290
virtual int RenderOverlay(vtkViewport *)
Definition: vtkProp.h:224
record modification and/or execution time
Definition: vtkTimeStamp.h:32
create hierarchies of props
an ordered list of Props
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
Definition: vtkProp.h:299
virtual double * GetBounds()
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
Definition: vtkProp.h:126
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
virtual int RenderVolumetricGeometry(vtkViewport *)
Definition: vtkProp.h:222
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:33
a list of lists of props representing an assembly hierarchy
#define VTK_SIZEHINT(...)
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkProp.h:220
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.