VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Infovis
vtkPairwiseExtractHistogram2D.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkPairwiseExtractHistogram2D.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 2009 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 __vtkPairwiseExtractHistogram2D_h
45
#define __vtkPairwiseExtractHistogram2D_h
46
47
#include "
vtkStatisticsAlgorithm.h
"
48
#include "
vtkSmartPointer.h
"
//needed for smart pointer ivars
49
class
vtkCollection
;
50
class
vtkExtractHistogram2D
;
51
class
vtkImageData
;
52
class
vtkIdTypeArray
;
53
class
vtkMultiBlockDataSet
;
54
55
class
VTK_INFOVIS_EXPORT
vtkPairwiseExtractHistogram2D
:
public
vtkStatisticsAlgorithm
56
{
57
public
:
58
static
vtkPairwiseExtractHistogram2D
*
New
();
59
vtkTypeMacro(
vtkPairwiseExtractHistogram2D
,
vtkStatisticsAlgorithm
);
60
void
PrintSelf
(ostream& os,
vtkIndent
indent);
61
63
64
vtkSetVector2Macro(NumberOfBins,
int
);
65
vtkGetVector2Macro(NumberOfBins,
int
);
67
69
72
vtkSetMacro(CustomColumnRangeIndex,
int
);
73
void
SetCustomColumnRangeByIndex(
double
,
double
);
75
77
80
void
SetCustomColumnRange(
int
col,
double
range
[2]);
81
void
SetCustomColumnRange(
int
col,
double
rmin,
double
rmax);
83
85
86
vtkSetMacro(ScalarType,
int
);
87
void
SetScalarTypeToUnsignedInt
()
88
{this->SetScalarType(
VTK_UNSIGNED_INT
);};
89
void
SetScalarTypeToUnsignedLong
()
90
{this->SetScalarType(
VTK_UNSIGNED_LONG
);};
91
void
SetScalarTypeToUnsignedShort
()
92
{this->SetScalarType(
VTK_UNSIGNED_SHORT
);};
93
void
SetScalarTypeToUnsignedChar
()
94
{this->SetScalarType(
VTK_UNSIGNED_CHAR
);};
95
vtkGetMacro(ScalarType,
int
);
97
99
double
GetMaximumBinCount(
int
idx);
100
102
double
GetMaximumBinCount();
103
106
int
GetBinRange(
int
idx,
vtkIdType
binX,
vtkIdType
binY,
double
range
[4]);
107
110
int
GetBinRange(
int
idx,
vtkIdType
bin,
double
range
[4]);
111
114
void
GetBinWidth(
int
idx,
double
bw[2]);
115
118
double
* GetHistogramExtents(
int
idx);
119
121
vtkImageData
* GetOutputHistogramImage(
int
idx);
122
124
vtkExtractHistogram2D
* GetHistogramFilter(
int
idx);
125
126
//BTX
127
enum
OutputIndices
128
{
129
HISTOGRAM_IMAGE=3
130
};
131
//ETX
132
134
virtual
void
Aggregate
(
vtkDataObjectCollection
*,
vtkMultiBlockDataSet
* ) {};
135
136
protected
:
137
vtkPairwiseExtractHistogram2D
();
138
~
vtkPairwiseExtractHistogram2D
();
139
140
int
NumberOfBins[2];
141
int
ScalarType
;
142
int
CustomColumnRangeIndex
;
143
144
//BTX
145
vtkSmartPointer<vtkIdTypeArray>
OutputOutlierIds
;
146
vtkSmartPointer<vtkCollection>
HistogramFilters
;
147
class
Internals;
148
Internals*
Implementation
;
149
//ETX
150
152
154
virtual
void
Learn
(
vtkTable
* inData,
155
vtkTable
* inParameters,
156
vtkMultiBlockDataSet
* outMeta );
158
160
virtual
void
Derive
(
vtkMultiBlockDataSet
* ) {};
161
163
164
virtual
void
Assess
(
vtkTable
*,
165
vtkMultiBlockDataSet
*,
166
vtkTable
* ) {};
168
170
171
virtual
void
Test
(
vtkTable
*,
172
vtkMultiBlockDataSet
*,
173
vtkTable
* ) {
return
; };
175
177
178
virtual
void
SelectAssessFunctor
(
vtkTable
* vtkNotUsed(outData),
179
vtkDataObject
* vtkNotUsed(inMeta),
180
vtkStringArray
* vtkNotUsed(rowNames),
181
AssessFunctor
*& vtkNotUsed(dfunc) ) {};
183
185
virtual
vtkExtractHistogram2D
* NewHistogramFilter();
186
187
virtual
int
FillOutputPortInformation
(
int
port
,
vtkInformation
*
info
);
188
189
vtkTimeStamp
BuildTime
;
190
private
:
191
vtkPairwiseExtractHistogram2D
(
const
vtkPairwiseExtractHistogram2D
&);
// Not implemented
192
void
operator=(
const
vtkPairwiseExtractHistogram2D
&);
// Not implemented
193
};
194
195
#endif
Generated on Fri Aug 2 2013 12:19:59 for VTK by
1.8.4