VTK  9.1.0
vtkDotProductSimilarity.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkDotProductSimilarity.h
5
6-------------------------------------------------------------------------
7 Copyright 2008 Sandia Corporation.
8 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
9 the U.S. Government retains certain rights in this software.
10-------------------------------------------------------------------------
11
12 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
13 All rights reserved.
14 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
15
16 This software is distributed WITHOUT ANY WARRANTY; without even
17 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
18 PURPOSE. See the above copyright notice for more information.
19
20=========================================================================*/
21
58#ifndef vtkDotProductSimilarity_h
59#define vtkDotProductSimilarity_h
60
61#include "vtkInfovisCoreModule.h" // For export macro
62#include "vtkTableAlgorithm.h"
63
64class VTKINFOVISCORE_EXPORT vtkDotProductSimilarity : public vtkTableAlgorithm
65{
66public:
69 void PrintSelf(ostream& os, vtkIndent indent) override;
70
72
76 vtkGetMacro(VectorDimension, vtkIdType);
77 vtkSetMacro(VectorDimension, vtkIdType);
79
81
85 vtkGetMacro(UpperDiagonal, int);
86 vtkSetMacro(UpperDiagonal, int);
88
90
94 vtkGetMacro(Diagonal, int);
95 vtkSetMacro(Diagonal, int);
97
99
103 vtkGetMacro(LowerDiagonal, int);
104 vtkSetMacro(LowerDiagonal, int);
106
108
112 vtkGetMacro(FirstSecond, int);
113 vtkSetMacro(FirstSecond, int);
115
117
121 vtkGetMacro(SecondFirst, int);
122 vtkSetMacro(SecondFirst, int);
124
126
130 vtkGetMacro(MinimumThreshold, double);
131 vtkSetMacro(MinimumThreshold, double);
133
135
138 vtkGetMacro(MinimumCount, vtkIdType);
139 vtkSetMacro(MinimumCount, vtkIdType);
141
143
146 vtkGetMacro(MaximumCount, vtkIdType);
147 vtkSetMacro(MaximumCount, vtkIdType);
149
150protected:
153
155
157
158private:
160 void operator=(const vtkDotProductSimilarity&) = delete;
161
162 vtkIdType VectorDimension;
163 double MinimumThreshold;
164 vtkIdType MinimumCount;
165 vtkIdType MaximumCount;
166
167 int UpperDiagonal;
168 int Diagonal;
169 int LowerDiagonal;
170 int FirstSecond;
171 int SecondFirst;
172};
173
174#endif
compute dot-product similarity metrics.
~vtkDotProductSimilarity() override
static vtkDotProductSimilarity * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only vtkTables as output.
int vtkIdType
Definition: vtkType.h:332