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 
vtkProp::RenderOverlay
virtual int RenderOverlay(vtkViewport *)
Definition: vtkProp.h:224
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkPropAssembly
create hierarchies of props
Definition: vtkPropAssembly.h:50
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:32
vtkProp::RenderOpaqueGeometry
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
vtkAssemblyPath
a list of nodes that form an assembly path
Definition: vtkAssemblyPath.h:41
vtkProp.h
vtkAssemblyPaths
a list of lists of props representing an assembly hierarchy
Definition: vtkAssemblyPaths.h:37
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkProp::RenderVolumetricGeometry
virtual int RenderVolumetricGeometry(vtkViewport *)
Definition: vtkProp.h:222
vtkProp::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
VTK_SIZEHINT
#define VTK_SIZEHINT(...)
Definition: vtkWrappingHints.h:42
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkProp::GetBounds
virtual double * GetBounds()
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
Definition: vtkProp.h:126
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:44
vtkProp::RenderTranslucentPolygonalGeometry
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkProp.h:220
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:46
vtkPropCollection
an ordered list of Props
Definition: vtkPropCollection.h:35
vtkProp::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
Definition: vtkProp.h:299
vtkProp::HasTranslucentPolygonalGeometry
virtual int HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:290
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302