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 "vtkGeovisCoreModule.h" // For export macro
47 #include "vtkObject.h"
48 
50 class vtkCollection;
52 class vtkGeoTreeNode;
53 class vtkMultiThreader;
54 class vtkMutexLock;
55 
57 {
58 public:
59  vtkTypeMacro(vtkGeoSource,vtkObject);
60 
61  vtkGeoSource();
62  ~vtkGeoSource();
63 
65 
66  virtual bool FetchRoot(vtkGeoTreeNode* root) = 0;
67  virtual bool FetchChild(vtkGeoTreeNode* node, int index, vtkGeoTreeNode* child) = 0;
69 
71 
78  virtual void RequestChildren(vtkGeoTreeNode* node);
79  virtual vtkCollection* GetRequestedNodes(vtkGeoTreeNode* node);
81 
83  void Initialize(int numThreads = 1);
84 
86  void ShutDown();
87 
88  void WorkerThread();
89 
91  virtual vtkAbstractTransform* GetTransform() { return NULL; }
92 
93 protected:
94 
97 
99 
104 
106 
108 
112 
113  //BTX
114  class implementation;
115  implementation* Implementation;
116  //ETX
117 
118 private:
119  vtkGeoSource(const vtkGeoSource&); // Not implemented
120  void operator=(const vtkGeoSource&); // Not implemented
121 };
122 
123 #endif // vtkGeoSource_h
mutual exclusion locking class
vtkMutexLock * OutputSetLock
Definition: vtkGeoSource.h:102
abstract base class for most VTK objects
Definition: vtkObject.h:61
virtual vtkAbstractTransform * GetTransform()
Definition: vtkGeoSource.h:91
A class for performing multithreaded execution.
vtkMutexLock * ProcessingSetLock
Definition: vtkGeoSource.h:101
A multi-resolution geographic data source.
Definition: vtkGeoSource.h:56
superclass for all geometric transformations
vtkCollection * InputSet
Definition: vtkGeoSource.h:95
#define VTKGEOVISCORE_EXPORT
vtkCollection * ProcessingSet
Definition: vtkGeoSource.h:96
Stores data for a patch of the globe.
vtkConditionVariable * Condition
Definition: vtkGeoSource.h:107
vtkMutexLock * Lock
Definition: vtkGeoSource.h:105
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:52
implementation * Implementation
Definition: vtkGeoSource.h:114
vtkMutexLock * InputSetLock
Definition: vtkGeoSource.h:100
mutual exclusion locking class
Definition: vtkMutexLock.h:86
vtkMultiThreader * Threader
Definition: vtkGeoSource.h:109