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 
vtkPropAssembly::PathTime
vtkTimeStamp PathTime
Definition: vtkPropAssembly.h:154
vtkProp::InitPathTraversal
virtual void InitPathTraversal()
vtkProp and its subclasses can be picked by subclasses of vtkAbstractPicker (e.g.,...
vtkProp::GetNextPath
virtual vtkAssemblyPath * GetNextPath()
vtkProp::RenderOverlay
virtual int RenderOverlay(vtkViewport *)
Definition: vtkProp.h:225
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:56
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:35
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:219
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
vtkProp::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
vtkProp::RenderVolumetricGeometry
virtual int RenderVolumetricGeometry(vtkViewport *)
Definition: vtkProp.h:223
vtkProp::BuildPaths
virtual void BuildPaths(vtkAssemblyPaths *paths, vtkAssemblyPath *path)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
vtkObject::GetMTime
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkProp::GetNumberOfPaths
virtual int GetNumberOfPaths()
Definition: vtkProp.h:150
vtkProp::GetBounds
virtual double * GetBounds()
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
Definition: vtkProp.h:127
vtkProp::ShallowCopy
virtual void ShallowCopy(vtkProp *prop)
Shallow copy of this vtkProp.
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:47
vtkProp::RenderTranslucentPolygonalGeometry
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkProp.h:221
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:47
vtkPropCollection
a list of Props
Definition: vtkPropCollection.h:38
vtkProp::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
Definition: vtkProp.h:300
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:291
vtkPropAssembly::Parts
vtkPropCollection * Parts
Definition: vtkPropAssembly.h:150