79 this->
Alpha = std::min(std::abs(alpha), 1.0);
112 this->Spacing = spacing;
114 if(!intermediateDiagrams_.empty()) {
116 this->needUpdate_ =
false;
119 vtkGetMacro(Spacing,
double);
122 this->DisplayMethod =
static_cast<DISPLAY>(displayMethod);
124 if(!intermediateDiagrams_.empty()) {
126 this->needUpdate_ =
false;
154 vtkMultiBlockDataSet *output,
155 const std::vector<vtkUnstructuredGrid *> &diagsVTU,
156 const std::vector<ttk::DiagramType> &diags,
157 const std::vector<std::vector<std::vector<ttk::MatchingType>>>
158 &matchingsPerCluster,
159 const std::vector<int> &inv_clustering,
161 const double spacing,
162 const double max_persistence)
const;
164 vtkMultiBlockDataSet *output,
165 const std::vector<ttk::DiagramType> &final_centroids,
166 const std::vector<std::vector<std::vector<ttk::MatchingType>>>
167 &matchingsPerCluster,
168 vtkUnstructuredGrid *
const someInputDiag,
170 const double spacing,
171 const double max_persistence)
const;
173 vtkMultiBlockDataSet *output,
174 const size_t nClusters,
175 const std::vector<ttk::DiagramType> &diags,
176 const std::vector<std::vector<std::vector<ttk::MatchingType>>>
177 &matchingsPerCluster,
178 const std::vector<ttk::DiagramType> ¢roids,
179 const std::vector<int> &inv_clustering,
181 const double spacing,
182 const double max_persistence)
const;
185 vtkInformationVector **inputVector,
186 vtkInformationVector *outputVector)
override;
189 std::vector<ttk::DiagramType> intermediateDiagrams_{};
190 std::vector<std::vector<std::vector<ttk::MatchingType>>> all_matchings_{};
191 std::vector<ttk::DiagramType> final_centroids_{};
192 std::vector<int> inv_clustering_{};
195 double max_dimension_total_{};
197 DISPLAY DisplayMethod{DISPLAY::COMPACT};
198 METHOD Method{METHOD::PROGRESSIVE};
199 bool needUpdate_{
true};
void outputCentroids(vtkMultiBlockDataSet *output, const std::vector< ttk::DiagramType > &final_centroids, const std::vector< std::vector< std::vector< ttk::MatchingType > > > &matchingsPerCluster, vtkUnstructuredGrid *const someInputDiag, const DISPLAY dm, const double spacing, const double max_persistence) const
void outputClusteredDiagrams(vtkMultiBlockDataSet *output, const std::vector< vtkUnstructuredGrid * > &diagsVTU, const std::vector< ttk::DiagramType > &diags, const std::vector< std::vector< std::vector< ttk::MatchingType > > > &matchingsPerCluster, const std::vector< int > &inv_clustering, const DISPLAY dm, const double spacing, const double max_persistence) const
void outputMatchings(vtkMultiBlockDataSet *output, const size_t nClusters, const std::vector< ttk::DiagramType > &diags, const std::vector< std::vector< std::vector< ttk::MatchingType > > > &matchingsPerCluster, const std::vector< ttk::DiagramType > ¢roids, const std::vector< int > &inv_clustering, const ttkPersistenceDiagramClustering::DISPLAY dm, const double spacing, const double max_persistence) const