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 =========================================================================*/
50 #ifndef vtkPropAssembly_h
51 #define vtkPropAssembly_h
52 
53 #include "vtkRenderingCoreModule.h" // For export macro
54 #include "vtkProp.h"
55 
56 class VTKRENDERINGCORE_EXPORT vtkPropAssembly : public vtkProp
57 {
58 public:
59  vtkTypeMacro(vtkPropAssembly,vtkProp);
60  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
61 
65  static vtkPropAssembly *New();
66 
70  void AddPart(vtkProp *);
71 
75  void RemovePart(vtkProp *);
76 
80  vtkPropCollection *GetParts();
81 
83 
88  int RenderOpaqueGeometry(vtkViewport *ren) VTK_OVERRIDE;
89  int RenderTranslucentPolygonalGeometry( vtkViewport *ren) VTK_OVERRIDE;
90  int RenderVolumetricGeometry( vtkViewport *ren) VTK_OVERRIDE;
91  int RenderOverlay(vtkViewport *ren) VTK_OVERRIDE;
93 
97  int HasTranslucentPolygonalGeometry() VTK_OVERRIDE;
98 
104  void ReleaseGraphicsResources(vtkWindow *) VTK_OVERRIDE;
105 
110  double *GetBounds() VTK_OVERRIDE;
111 
115  void ShallowCopy(vtkProp *Prop) VTK_OVERRIDE;
116 
121  vtkMTimeType GetMTime() VTK_OVERRIDE;
122 
124 
134  void InitPathTraversal() VTK_OVERRIDE;
135  vtkAssemblyPath *GetNextPath() VTK_OVERRIDE;
136  int GetNumberOfPaths() VTK_OVERRIDE;
138 
144  void BuildPaths(vtkAssemblyPaths *paths, vtkAssemblyPath *path) VTK_OVERRIDE;
145 
146 protected:
147  vtkPropAssembly();
148  ~vtkPropAssembly() VTK_OVERRIDE;
149 
151  double Bounds[6];
152 
153  // Support the BuildPaths() method,
154  vtkTimeStamp PathTime;
155  void UpdatePaths(); //apply transformations and properties recursively
156 private:
157  vtkPropAssembly(const vtkPropAssembly&) VTK_DELETE_FUNCTION;
158  void operator=(const vtkPropAssembly&) VTK_DELETE_FUNCTION;
159 };
160 
161 #endif
162 
163 
164 
165 
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:50
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
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:222
virtual int HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:294
virtual int RenderOverlay(vtkViewport *)
Definition: vtkProp.h:228
record modification and/or execution time
Definition: vtkTimeStamp.h:35
create hierarchies of props
an ordered list of Props
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
virtual int RenderVolumetricGeometry(vtkViewport *)
Definition: vtkProp.h:226
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
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkProp.h:224
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...