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
64#ifndef vtkDotProductSimilarity_h
65#define vtkDotProductSimilarity_h
66
67#include "vtkInfovisCoreModule.h" // For export macro
68#include "vtkTableAlgorithm.h"
69
70class VTKINFOVISCORE_EXPORT vtkDotProductSimilarity : public vtkTableAlgorithm
71{
72public:
75 void PrintSelf(ostream& os, vtkIndent indent) override;
76
78
82 vtkGetMacro(VectorDimension, vtkIdType);
83 vtkSetMacro(VectorDimension, vtkIdType);
85
87
91 vtkGetMacro(UpperDiagonal, int);
92 vtkSetMacro(UpperDiagonal, int);
94
96
100 vtkGetMacro(Diagonal, int);
101 vtkSetMacro(Diagonal, int);
103
105
109 vtkGetMacro(LowerDiagonal, int);
110 vtkSetMacro(LowerDiagonal, int);
112
114
118 vtkGetMacro(FirstSecond, int);
119 vtkSetMacro(FirstSecond, int);
121
123
127 vtkGetMacro(SecondFirst, int);
128 vtkSetMacro(SecondFirst, int);
130
132
136 vtkGetMacro(MinimumThreshold, double);
137 vtkSetMacro(MinimumThreshold, double);
139
141
144 vtkGetMacro(MinimumCount, vtkIdType);
145 vtkSetMacro(MinimumCount, vtkIdType);
147
149
152 vtkGetMacro(MaximumCount, vtkIdType);
153 vtkSetMacro(MaximumCount, vtkIdType);
155
156protected:
159
161
163
164private:
166 void operator=(const vtkDotProductSimilarity&) = delete;
167
168 vtkIdType VectorDimension;
169 double MinimumThreshold;
170 vtkIdType MinimumCount;
171 vtkIdType MaximumCount;
172
173 int UpperDiagonal;
174 int Diagonal;
175 int LowerDiagonal;
176 int FirstSecond;
177 int SecondFirst;
178};
179
180#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