VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Geovis
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 "
vtkObject.h
"
47
48
class
vtkAbstractTransform
;
49
class
vtkCollection
;
50
class
vtkConditionVariable
;
51
class
vtkGeoTreeNode
;
52
class
vtkMultiThreader
;
53
class
vtkMutexLock
;
54
55
class
VTK_GEOVIS_EXPORT
vtkGeoSource
:
public
vtkObject
56
{
57
public
:
58
vtkTypeMacro(
vtkGeoSource
,
vtkObject
);
59
60
vtkGeoSource
();
61
~
vtkGeoSource
();
62
64
65
virtual
bool
FetchRoot(
vtkGeoTreeNode
* root) = 0;
66
virtual
bool
FetchChild(
vtkGeoTreeNode
* node,
int
index
,
vtkGeoTreeNode
* child) = 0;
68
70
77
virtual
void
RequestChildren(
vtkGeoTreeNode
* node);
78
virtual
vtkCollection
* GetRequestedNodes(
vtkGeoTreeNode
* node);
80
82
void
Initialize(
int
numThreads = 1);
83
85
void
ShutDown();
86
87
void
WorkerThread();
88
90
virtual
vtkAbstractTransform
*
GetTransform
() {
return
NULL; }
91
92
protected
:
93
94
vtkCollection
*
InputSet
;
95
vtkCollection
*
ProcessingSet
;
96
98
99
vtkMutexLock
*
InputSetLock
;
100
vtkMutexLock
*
ProcessingSetLock
;
101
vtkMutexLock
*
OutputSetLock
;
103
104
vtkMutexLock
*
Lock
;
105
106
vtkConditionVariable
*
Condition
;
107
108
vtkMultiThreader
*
Threader
;
109
bool
StopThread
;
110
bool
Initialized
;
111
112
//BTX
113
class
implementation;
114
implementation*
Implementation
;
115
//ETX
116
117
private
:
118
vtkGeoSource
(
const
vtkGeoSource
&);
// Not implemented
119
void
operator=(
const
vtkGeoSource
&);
// Not implemented
120
};
121
122
#endif // __vtkGeoSource_h
Generated on Sun Sep 9 2012 13:03:29 for VTK by
1.8.1.2