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:
60 
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);
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
vtkGeoSource::GetTransform
virtual vtkAbstractTransform * GetTransform()
Definition: vtkGeoSource.h:91
vtkGeoSource::Condition
vtkConditionVariable * Condition
Definition: vtkGeoSource.h:107
vtkGeoSource::FetchRoot
virtual bool FetchRoot(vtkGeoTreeNode *root)=0
vtkGeoSource::Lock
vtkMutexLock * Lock
Definition: vtkGeoSource.h:105
vtkAbstractTransform
superclass for all geometric transformations
Definition: vtkAbstractTransform.h:50
vtkMutexLock
mutual exclusion locking class
Definition: vtkMutexLock.h:87
vtkGeovisCoreModule.h
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkGeoTreeNode
Stores data for a patch of the globe.
Definition: vtkGeoTreeNode.h:46
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:62
vtkGeoSource::InputSet
vtkCollection * InputSet
Definition: vtkGeoSource.h:95
vtkGeoSource::ProcessingSet
vtkCollection * ProcessingSet
Definition: vtkGeoSource.h:96
vtkGeoSource::FetchChild
virtual bool FetchChild(vtkGeoTreeNode *node, int index, vtkGeoTreeNode *child)=0
vtkGeoSource::RequestChildren
virtual void RequestChildren(vtkGeoTreeNode *node)
vtkMultiThreader
A class for performing multithreaded execution.
Definition: vtkMultiThreader.h:94
vtkCollection
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:53
vtkGeoSource::Initialized
bool Initialized
Definition: vtkGeoSource.h:111
vtkGeoSource::InputSetLock
vtkMutexLock * InputSetLock
Definition: vtkGeoSource.h:100
vtkGeoSource::ShutDown
void ShutDown()
vtkGeoSource::~vtkGeoSource
~vtkGeoSource()
vtkGeoSource::ProcessingSetLock
vtkMutexLock * ProcessingSetLock
Definition: vtkGeoSource.h:101
vtkGeoSource::vtkGeoSource
vtkGeoSource()
vtkGeoSource::OutputSetLock
vtkMutexLock * OutputSetLock
Definition: vtkGeoSource.h:102
vtkObject.h
vtkConditionVariable
mutual exclusion locking class
Definition: vtkConditionVariable.h:149
vtkgl::index
GLuint index
Definition: vtkgl.h:11983
VTKGEOVISCORE_EXPORT
#define VTKGEOVISCORE_EXPORT
Definition: vtkGeovisCoreModule.h:15
vtkGeoSource::Implementation
implementation * Implementation
Definition: vtkGeoSource.h:114
vtkGeoSource::StopThread
bool StopThread
Definition: vtkGeoSource.h:110
vtkGeoSource::WorkerThread
void WorkerThread()
vtkGeoSource::Initialize
void Initialize(int numThreads=1)
vtkGeoSource::GetRequestedNodes
virtual vtkCollection * GetRequestedNodes(vtkGeoTreeNode *node)
vtkGeoSource
A multi-resolution geographic data source.
Definition: vtkGeoSource.h:57
vtkGeoSource::Threader
vtkMultiThreader * Threader
Definition: vtkGeoSource.h:109