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 -------------------------------------------------------------------------*/
44 #ifndef vtkGeoSource_h
45 #define vtkGeoSource_h
46 
47 #include "vtkGeovisCoreModule.h" // For export macro
48 #include "vtkObject.h"
49 
51 class vtkCollection;
53 class vtkGeoTreeNode;
54 class vtkMultiThreader;
55 class vtkMutexLock;
56 
57 class VTKGEOVISCORE_EXPORT vtkGeoSource : public vtkObject
58 {
59 public:
60  vtkTypeMacro(vtkGeoSource,vtkObject);
61 
62  vtkGeoSource();
63  ~vtkGeoSource();
64 
66 
69  virtual bool FetchRoot(vtkGeoTreeNode* root) = 0;
70  virtual bool FetchChild(vtkGeoTreeNode* node, int index, vtkGeoTreeNode* child) = 0;
72 
74 
83  virtual void RequestChildren(vtkGeoTreeNode* node);
84  virtual vtkCollection* GetRequestedNodes(vtkGeoTreeNode* node);
86 
90  void Initialize(int numThreads = 1);
91 
95  void ShutDown();
96 
97  void WorkerThread();
98 
102  virtual vtkAbstractTransform* GetTransform() { return NULL; }
103 
104 protected:
105 
108 
110 
117 
119 
121 
125 
126  class implementation;
127  implementation* Implementation;
128 
129 private:
130  vtkGeoSource(const vtkGeoSource&) VTK_DELETE_FUNCTION;
131  void operator=(const vtkGeoSource&) VTK_DELETE_FUNCTION;
132 };
133 
134 #endif // vtkGeoSource_h
mutual exclusion locking class
vtkMutexLock * OutputSetLock
Locks the set for reading or writing.
Definition: vtkGeoSource.h:115
abstract base class for most VTK objects
Definition: vtkObject.h:59
virtual vtkAbstractTransform * GetTransform()
Return the projection transformation used by this source.
Definition: vtkGeoSource.h:102
A class for performing multithreaded execution.
vtkMutexLock * ProcessingSetLock
Locks the set for reading or writing.
Definition: vtkGeoSource.h:114
A multi-resolution geographic data source.
Definition: vtkGeoSource.h:57
superclass for all geometric transformations
vtkCollection * InputSet
Definition: vtkGeoSource.h:106
vtkCollection * ProcessingSet
Definition: vtkGeoSource.h:107
Stores data for a patch of the globe.
vtkConditionVariable * Condition
Definition: vtkGeoSource.h:120
vtkMutexLock * Lock
Definition: vtkGeoSource.h:118
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:51
implementation * Implementation
Definition: vtkGeoSource.h:126
vtkMutexLock * InputSetLock
Locks the set for reading or writing.
Definition: vtkGeoSource.h:113
mutual exclusion locking class
Definition: vtkMutexLock.h:87
vtkMultiThreader * Threader
Definition: vtkGeoSource.h:122