VTK  9.0.1
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 
61 #ifndef vtkDotProductSimilarity_h
62 #define vtkDotProductSimilarity_h
63 
64 #include "vtkInfovisCoreModule.h" // For export macro
65 #include "vtkTableAlgorithm.h"
66 
67 class VTKINFOVISCORE_EXPORT vtkDotProductSimilarity : public vtkTableAlgorithm
68 {
69 public:
70  static vtkDotProductSimilarity* New();
72  void PrintSelf(ostream& os, vtkIndent indent) override;
73 
75 
79  vtkGetMacro(VectorDimension, vtkIdType);
80  vtkSetMacro(VectorDimension, vtkIdType);
82 
84 
88  vtkGetMacro(UpperDiagonal, int);
89  vtkSetMacro(UpperDiagonal, int);
91 
93 
97  vtkGetMacro(Diagonal, int);
98  vtkSetMacro(Diagonal, int);
100 
102 
106  vtkGetMacro(LowerDiagonal, int);
107  vtkSetMacro(LowerDiagonal, int);
109 
111 
115  vtkGetMacro(FirstSecond, int);
116  vtkSetMacro(FirstSecond, int);
118 
120 
124  vtkGetMacro(SecondFirst, int);
125  vtkSetMacro(SecondFirst, int);
127 
129 
133  vtkGetMacro(MinimumThreshold, double);
134  vtkSetMacro(MinimumThreshold, double);
136 
138 
141  vtkGetMacro(MinimumCount, vtkIdType);
142  vtkSetMacro(MinimumCount, vtkIdType);
144 
146 
149  vtkGetMacro(MaximumCount, vtkIdType);
150  vtkSetMacro(MaximumCount, vtkIdType);
152 
153 protected:
155  ~vtkDotProductSimilarity() override;
156 
157  int FillInputPortInformation(int, vtkInformation*) override;
158 
160 
161 private:
163  void operator=(const vtkDotProductSimilarity&) = delete;
164 
165  vtkIdType VectorDimension;
166  double MinimumThreshold;
167  vtkIdType MinimumCount;
168  vtkIdType MaximumCount;
169 
170  int UpperDiagonal;
171  int Diagonal;
172  int LowerDiagonal;
173  int FirstSecond;
174  int SecondFirst;
175 };
176 
177 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkTableAlgorithm * New()
Store vtkAlgorithm input/output information.
int vtkIdType
Definition: vtkType.h:338
a simple class to control print indentation
Definition: vtkIndent.h:33
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Superclass for algorithms that produce only vtkTables as output.
Store zero or more vtkInformation instances.
compute dot-product similarity metrics.