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 -------------------------------------------------------------------------*/
41 #ifndef vtkGeoSource_h
42 #define vtkGeoSource_h
43 
44 #include "vtkGeovisCoreModule.h" // For export macro
45 #include "vtkObject.h"
46 
48 class vtkCollection;
50 class vtkGeoTreeNode;
51 class vtkMultiThreader;
52 class vtkMutexLock;
53 
54 class VTKGEOVISCORE_EXPORT vtkGeoSource : public vtkObject
55 {
56 public:
57  vtkTypeMacro(vtkGeoSource,vtkObject);
58 
59  vtkGeoSource();
60  ~vtkGeoSource() VTK_OVERRIDE;
61 
63 
66  virtual bool FetchRoot(vtkGeoTreeNode* root) = 0;
67  virtual bool FetchChild(vtkGeoTreeNode* node, int index, vtkGeoTreeNode* child) = 0;
69 
71 
80  virtual void RequestChildren(vtkGeoTreeNode* node);
81  virtual vtkCollection* GetRequestedNodes(vtkGeoTreeNode* node);
83 
87  void Initialize(int numThreads = 1);
88 
92  void ShutDown();
93 
94  void WorkerThread();
95 
99  virtual vtkAbstractTransform* GetTransform() { return NULL; }
100 
101 protected:
102 
105 
107 
114 
116 
118 
122 
123  class implementation;
124  implementation* Implementation;
125 
126 private:
127  vtkGeoSource(const vtkGeoSource&) VTK_DELETE_FUNCTION;
128  void operator=(const vtkGeoSource&) VTK_DELETE_FUNCTION;
129 };
130 
131 #endif // vtkGeoSource_h
mutual exclusion locking class
vtkMutexLock * OutputSetLock
Locks the set for reading or writing.
Definition: vtkGeoSource.h:112
abstract base class for most VTK objects
Definition: vtkObject.h:53
A class for performing multithreaded execution.
vtkMutexLock * ProcessingSetLock
Locks the set for reading or writing.
Definition: vtkGeoSource.h:111
A multi-resolution geographic data source.
Definition: vtkGeoSource.h:54
superclass for all geometric transformations
vtkCollection * InputSet
Definition: vtkGeoSource.h:103
vtkCollection * ProcessingSet
Definition: vtkGeoSource.h:104
Stores data for a patch of the globe.
vtkConditionVariable * Condition
Definition: vtkGeoSource.h:117
vtkMutexLock * Lock
Definition: vtkGeoSource.h:115
create and manipulate ordered lists of objects
Definition: vtkCollection.h:48
implementation * Implementation
Definition: vtkGeoSource.h:123
vtkMutexLock * InputSetLock
Locks the set for reading or writing.
Definition: vtkGeoSource.h:110
mutual exclusion locking class
Definition: vtkMutexLock.h:84
vtkMultiThreader * Threader
Definition: vtkGeoSource.h:119