VTK
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 
64 class VTKINFOVISCORE_EXPORT vtkDotProductSimilarity : public vtkTableAlgorithm
65 {
66 public:
67  static vtkDotProductSimilarity* New();
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 
150 protected:
152  ~vtkDotProductSimilarity() override;
153 
154  int FillInputPortInformation(int, vtkInformation*) override;
155 
156  int RequestData(
159  vtkInformationVector*) override;
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
178 
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:347
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.