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
56class VTKRENDERINGCORE_EXPORT vtkPropAssembly : public vtkProp
57{
58public:
59 vtkTypeMacro(vtkPropAssembly,vtkProp);
60 void PrintSelf(ostream& os, vtkIndent indent);
61
66
71
76
81
83
93
98
105
110 double *GetBounds();
111
115 void ShallowCopy(vtkProp *Prop);
116
122
124
138
145
146protected:
149
151 double Bounds[6];
152
153 // Support the BuildPaths() method,
155 void UpdatePaths(); //apply transformations and properties recursively
156private:
157 vtkPropAssembly(const vtkPropAssembly&) VTK_DELETE_FUNCTION;
158 void operator=(const vtkPropAssembly&) VTK_DELETE_FUNCTION;
159};
160
161#endif
162
163
164
165
a list of nodes that form an assembly path
a list of lists of props representing an assembly hierarchy
a simple class to control print indentation
Definition: vtkIndent.h:40
create hierarchies of props
vtkPropCollection * Parts
void RemovePart(vtkProp *)
Remove a part from the list of parts,.
double * GetBounds()
Get the bounds for this prop assembly as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
int GetNumberOfPaths()
void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this actor.
vtkPropCollection * GetParts()
Return the list of parts.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void InitPathTraversal()
Methods to traverse the paths (i.e., leaf nodes) of a prop assembly.
static vtkPropAssembly * New()
Create with an empty parts list.
void ShallowCopy(vtkProp *Prop)
Shallow copy of this vtkPropAssembly.
vtkMTimeType GetMTime()
Override default GetMTime method to also consider all of the prop assembly's parts.
vtkTimeStamp PathTime
void BuildPaths(vtkAssemblyPaths *paths, vtkAssemblyPath *path)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
int RenderOverlay(vtkViewport *ren)
void AddPart(vtkProp *)
Add a part to the list of parts.
virtual int HasTranslucentPolygonalGeometry()
Does this prop have some translucent polygonal geometry?
virtual int RenderVolumetricGeometry(vtkViewport *ren)
vtkAssemblyPath * GetNextPath()
int RenderOpaqueGeometry(vtkViewport *ren)
Render this assembly and all its parts.
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *ren)
a list of Props
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:48
record modification and/or execution time
Definition: vtkTimeStamp.h:36
abstract specification for Viewports
Definition: vtkViewport.h:48
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248