VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
ExecutionModel
vtkSimpleScalarTree.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkSimpleScalarTree.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
=========================================================================*/
34
#ifndef __vtkSimpleScalarTree_h
35
#define __vtkSimpleScalarTree_h
36
37
#include "vtkCommonExecutionModelModule.h"
// For export macro
38
#include "
vtkScalarTree.h
"
39
40
//BTX
41
class
vtkScalarNode;
42
//ETX
43
44
class
VTKCOMMONEXECUTIONMODEL_EXPORT
vtkSimpleScalarTree
:
public
vtkScalarTree
45
{
46
public
:
49
static
vtkSimpleScalarTree
*
New
();
50
52
53
vtkTypeMacro(
vtkSimpleScalarTree
,
vtkScalarTree
);
54
void
PrintSelf
(ostream& os,
vtkIndent
indent);
56
58
62
vtkSetClampMacro(BranchingFactor,
int
,2,
VTK_LARGE_INTEGER
);
63
vtkGetMacro(BranchingFactor,
int
);
65
67
69
vtkGetMacro(Level,
int
);
71
73
74
vtkSetClampMacro(MaxLevel,
int
,1,
VTK_LARGE_INTEGER
);
75
vtkGetMacro(MaxLevel,
int
);
77
81
virtual
void
BuildTree
();
82
84
virtual
void
Initialize
();
85
88
virtual
void
InitTraversal
(
double
scalarValue);
89
91
95
virtual
vtkCell
*
GetNextCell
(
vtkIdType
&cellId,
vtkIdList
* &ptIds,
96
vtkDataArray
*cellScalars);
98
99
protected
:
100
vtkSimpleScalarTree
();
101
~
vtkSimpleScalarTree
();
102
103
vtkDataArray
*
Scalars
;
104
int
MaxLevel
;
105
int
Level
;
106
int
BranchingFactor
;
//number of children per node
107
vtkScalarNode *
Tree
;
//pointerless scalar range tree
108
int
TreeSize
;
//allocated size of tree
109
110
private
:
111
vtkIdType
TreeIndex;
//traversal location within tree
112
vtkIdType
LeafOffset;
//offset to leaf nodes of tree
113
int
ChildNumber;
//current child in traversal
114
vtkIdType
CellId;
//current cell id being examined
115
int
FindStartLeaf(
vtkIdType
index
,
int
level
);
116
int
FindNextLeaf(
vtkIdType
index
,
int
level
);
117
118
private
:
119
vtkSimpleScalarTree
(
const
vtkSimpleScalarTree
&);
// Not implemented.
120
void
operator=(
const
vtkSimpleScalarTree
&);
// Not implemented.
121
};
122
123
#endif
124
125
Generated on Thu May 24 2012 22:22:13 for VTK by
1.8.1