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 #if !defined(VTK_LEGACY_REMOVE)
55 class VTKGEOVISCORE_EXPORT vtkGeoSource : public vtkObject
56 {
57 public:
58  vtkTypeMacro(vtkGeoSource,vtkObject);
59 
60  vtkGeoSource();
61  ~vtkGeoSource() override;
62 
64 
67  virtual bool FetchRoot(vtkGeoTreeNode* root) = 0;
68  virtual bool FetchChild(vtkGeoTreeNode* node, int index, vtkGeoTreeNode* child) = 0;
70 
72 
81  virtual void RequestChildren(vtkGeoTreeNode* node);
82  virtual vtkCollection* GetRequestedNodes(vtkGeoTreeNode* node);
84 
88  void Initialize(int numThreads = 1);
89 
93  void ShutDown();
94 
95  void WorkerThread();
96 
100  virtual vtkAbstractTransform* GetTransform() { return nullptr; }
101 
102 protected:
103 
106 
108 
115 
117 
119 
123 
124  class implementation;
125  implementation* Implementation;
126 
127 private:
128  vtkGeoSource(const vtkGeoSource&) = delete;
129  void operator=(const vtkGeoSource&) = delete;
130 };
131 
132 #endif //VTK_LEGACY_REMOVE
133 #endif // vtkGeoSource_h
mutual exclusion locking class
vtkMutexLock * OutputSetLock
Locks the set for reading or writing.
Definition: vtkGeoSource.h:113
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:100
A class for performing multithreaded execution.
vtkMutexLock * ProcessingSetLock
Locks the set for reading or writing.
Definition: vtkGeoSource.h:112
A multi-resolution geographic data source.
Definition: vtkGeoSource.h:55
superclass for all geometric transformations
vtkCollection * InputSet
Definition: vtkGeoSource.h:104
vtkCollection * ProcessingSet
Definition: vtkGeoSource.h:105
Stores data for a patch of the globe.
vtkConditionVariable * Condition
Definition: vtkGeoSource.h:118
vtkMutexLock * Lock
Definition: vtkGeoSource.h:116
create and manipulate ordered lists of objects
Definition: vtkCollection.h:51
implementation * Implementation
Definition: vtkGeoSource.h:124
vtkMutexLock * InputSetLock
Locks the set for reading or writing.
Definition: vtkGeoSource.h:111
mutual exclusion locking class
Definition: vtkMutexLock.h:80
vtkMultiThreader * Threader
Definition: vtkGeoSource.h:120