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 
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);
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:
156 
158 
159  int RequestData(
163 
164 private:
165  vtkDotProductSimilarity(const vtkDotProductSimilarity&) VTK_DELETE_FUNCTION;
166  void operator=(const vtkDotProductSimilarity&) VTK_DELETE_FUNCTION;
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
181 
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:287
a simple class to control print indentation
Definition: vtkIndent.h:39
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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.