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
51class vtkCollection;
53class vtkGeoTreeNode;
55class vtkMutexLock;
56
57class VTKGEOVISCORE_EXPORT vtkGeoSource : public vtkObject
58{
59public:
60 vtkTypeMacro(vtkGeoSource,vtkObject);
61
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);
86
90 void Initialize(int numThreads = 1);
91
95 void ShutDown();
96
98
102 virtual vtkAbstractTransform* GetTransform() { return NULL; }
103
104protected:
105
108
110
117
119
121
125
126 class implementation;
127 implementation* Implementation;
128
129private:
130 vtkGeoSource(const vtkGeoSource&) VTK_DELETE_FUNCTION;
131 void operator=(const vtkGeoSource&) VTK_DELETE_FUNCTION;
132};
133
134#endif // vtkGeoSource_h
superclass for all geometric transformations
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:52
mutual exclusion locking class
A multi-resolution geographic data source.
Definition: vtkGeoSource.h:58
virtual bool FetchChild(vtkGeoTreeNode *node, int index, vtkGeoTreeNode *child)=0
vtkMutexLock * ProcessingSetLock
Definition: vtkGeoSource.h:114
virtual vtkCollection * GetRequestedNodes(vtkGeoTreeNode *node)
vtkMutexLock * Lock
Definition: vtkGeoSource.h:118
vtkMutexLock * InputSetLock
Locks the set for reading or writing.
Definition: vtkGeoSource.h:113
void Initialize(int numThreads=1)
Spawn worker threads.
virtual bool FetchRoot(vtkGeoTreeNode *root)=0
Blocking access methods to be implemented in subclasses.
vtkCollection * ProcessingSet
Definition: vtkGeoSource.h:107
implementation * Implementation
Definition: vtkGeoSource.h:127
vtkMutexLock * OutputSetLock
Definition: vtkGeoSource.h:115
virtual vtkAbstractTransform * GetTransform()
Return the projection transformation used by this source.
Definition: vtkGeoSource.h:102
vtkMultiThreader * Threader
Definition: vtkGeoSource.h:122
vtkConditionVariable * Condition
Definition: vtkGeoSource.h:120
void ShutDown()
Shut down the source.
void WorkerThread()
vtkCollection * InputSet
Definition: vtkGeoSource.h:106
virtual void RequestChildren(vtkGeoTreeNode *node)
Non-blocking methods for to use from the main application.
Stores data for a patch of the globe.
A class for performing multithreaded execution.
mutual exclusion locking class
Definition: vtkMutexLock.h:88
abstract base class for most VTK objects
Definition: vtkObject.h:60
@ index
Definition: vtkX3D.h:246