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 =========================================================================*/
47 #ifndef vtkPropAssembly_h
48 #define vtkPropAssembly_h
49 
50 #include "vtkRenderingCoreModule.h" // For export macro
51 #include "vtkProp.h"
52 
53 class VTKRENDERINGCORE_EXPORT vtkPropAssembly : public vtkProp
54 {
55 public:
56  vtkTypeMacro(vtkPropAssembly,vtkProp);
57  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
62  static vtkPropAssembly *New();
63 
67  void AddPart(vtkProp *);
68 
72  void RemovePart(vtkProp *);
73 
77  vtkPropCollection *GetParts();
78 
80 
85  int RenderOpaqueGeometry(vtkViewport *ren) override;
87  int RenderVolumetricGeometry( vtkViewport *ren) override;
88  int RenderOverlay(vtkViewport *ren) override;
90 
95 
101  void ReleaseGraphicsResources(vtkWindow *) override;
102 
107  double *GetBounds() VTK_SIZEHINT(6) override;
108 
112  void ShallowCopy(vtkProp *Prop) override;
113 
118  vtkMTimeType GetMTime() override;
119 
121 
131  void InitPathTraversal() override;
132  vtkAssemblyPath *GetNextPath() override;
133  int GetNumberOfPaths() override;
135 
141  void BuildPaths(vtkAssemblyPaths *paths, vtkAssemblyPath *path) override;
142 
143 protected:
144  vtkPropAssembly();
145  ~vtkPropAssembly() override;
146 
148  double Bounds[6];
149 
150  // Support the BuildPaths() method,
151  vtkTimeStamp PathTime;
152  void UpdatePaths(); //apply transformations and properties recursively
153 private:
154  vtkPropAssembly(const vtkPropAssembly&) = delete;
155  void operator=(const vtkPropAssembly&) = delete;
156 };
157 
158 #endif
159 
160 
161 
162 
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:52
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
abstract specification for Viewports
Definition: vtkViewport.h:47
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:224
virtual vtkTypeBool HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:296
virtual int RenderOverlay(vtkViewport *)
Definition: vtkProp.h:230
record modification and/or execution time
Definition: vtkTimeStamp.h:35
create hierarchies of props
an ordered list of Props
int vtkTypeBool
Definition: vtkABI.h:69
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
Definition: vtkProp.h:305
virtual double * GetBounds()
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
Definition: vtkProp.h:132
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
virtual int RenderVolumetricGeometry(vtkViewport *)
Definition: vtkProp.h:228
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:39
a list of lists of props representing an assembly hierarchy
#define VTK_SIZEHINT(...)
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkProp.h:226
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...