VTK
vtkGeoSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGeoSource.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 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
43 #ifndef __vtkGeoSource_h
44 #define __vtkGeoSource_h
45 
46 #include "vtkObject.h"
47 
49 class vtkCollection;
51 class vtkGeoTreeNode;
52 class vtkMultiThreader;
53 class vtkMutexLock;
54 
56 {
57 public:
58  vtkTypeMacro(vtkGeoSource,vtkObject);
59 
60  vtkGeoSource();
61  ~vtkGeoSource();
62 
64 
65  virtual bool FetchRoot(vtkGeoTreeNode* root) = 0;
66  virtual bool FetchChild(vtkGeoTreeNode* node, int index, vtkGeoTreeNode* child) = 0;
68 
70 
77  virtual void RequestChildren(vtkGeoTreeNode* node);
78  virtual vtkCollection* GetRequestedNodes(vtkGeoTreeNode* node);
80 
82  void Initialize(int numThreads = 1);
83 
85  void ShutDown();
86 
87  void WorkerThread();
88 
90  virtual vtkAbstractTransform* GetTransform() { return NULL; }
91 
92 protected:
93 
96 
98 
103 
105 
107 
111 
112  //BTX
113  class implementation;
114  implementation* Implementation;
115  //ETX
116 
117 private:
118  vtkGeoSource(const vtkGeoSource&); // Not implemented
119  void operator=(const vtkGeoSource&); // Not implemented
120 };
121 
122 #endif // __vtkGeoSource_h