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);
61 
65  static vtkPropAssembly *New();
66 
70  void AddPart(vtkProp *);
71 
75  void RemovePart(vtkProp *);
76 
80  vtkPropCollection *GetParts();
81 
83 
90  virtual int RenderVolumetricGeometry( vtkViewport *ren);
91  int RenderOverlay(vtkViewport *ren);
93 
97  virtual int HasTranslucentPolygonalGeometry();
98 
105 
110  double *GetBounds();
111 
115  void ShallowCopy(vtkProp *Prop);
116 
122 
124 
134  void InitPathTraversal();
136  int GetNumberOfPaths();
138 
144  void BuildPaths(vtkAssemblyPaths *paths, vtkAssemblyPath *path);
145 
146 protected:
147  vtkPropAssembly();
148  ~vtkPropAssembly();
149 
151  double Bounds[6];
152 
153  // Support the BuildPaths() method,
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
vtkPropCollection * Parts
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void ShallowCopy(vtkProp *prop)
Shallow copy of this vtkProp.
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
virtual void BuildPaths(vtkAssemblyPaths *paths, vtkAssemblyPath *path)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
record modification and/or execution time
Definition: vtkTimeStamp.h:35
create hierarchies of props
virtual vtkAssemblyPath * GetNextPath()
vtkProp and its subclasses can be picked by subclasses of vtkAbstractPicker (e.g., vtkPropPicker).
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
a 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:303
virtual double * GetBounds()
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
Definition: vtkProp.h:130
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
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual vtkMTimeType GetMTime()
Return this object's modified time.
a list of lists of props representing an assembly hierarchy
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkProp.h:224
virtual int GetNumberOfPaths()
vtkProp and its subclasses can be picked by subclasses of vtkAbstractPicker (e.g., vtkPropPicker).
Definition: vtkProp.h:153
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
virtual void InitPathTraversal()
vtkProp and its subclasses can be picked by subclasses of vtkAbstractPicker (e.g., vtkPropPicker).
vtkTimeStamp PathTime