76 this->
Alpha = std::min(std::abs(alpha), 1.0);
109 this->Spacing = spacing;
111 if(!intermediateDiagrams_.empty()) {
113 this->needUpdate_ =
false;
116 vtkGetMacro(Spacing,
double);
119 this->DisplayMethod =
static_cast<DISPLAY>(displayMethod);
121 if(!intermediateDiagrams_.empty()) {
123 this->needUpdate_ =
false;
151 vtkMultiBlockDataSet *output,
152 const std::vector<vtkUnstructuredGrid *> &diagsVTU,
153 const std::vector<ttk::DiagramType> &diags,
154 const std::vector<std::vector<std::vector<ttk::MatchingType>>>
155 &matchingsPerCluster,
156 const std::vector<int> &inv_clustering,
158 const double spacing,
159 const double max_persistence)
const;
161 vtkMultiBlockDataSet *output,
162 const std::vector<ttk::DiagramType> &final_centroids,
163 const std::vector<std::vector<std::vector<ttk::MatchingType>>>
164 &matchingsPerCluster,
165 vtkUnstructuredGrid *
const someInputDiag,
167 const double spacing,
168 const double max_persistence)
const;
170 vtkMultiBlockDataSet *output,
171 const size_t nClusters,
172 const std::vector<ttk::DiagramType> &diags,
173 const std::vector<std::vector<std::vector<ttk::MatchingType>>>
174 &matchingsPerCluster,
175 const std::vector<ttk::DiagramType> ¢roids,
176 const std::vector<int> &inv_clustering,
178 const double spacing,
179 const double max_persistence)
const;
182 vtkInformationVector **inputVector,
183 vtkInformationVector *outputVector)
override;
186 std::vector<ttk::DiagramType> intermediateDiagrams_{};
187 std::vector<std::vector<std::vector<ttk::MatchingType>>> all_matchings_{};
188 std::vector<ttk::DiagramType> final_centroids_{};
189 std::vector<int> inv_clustering_{};
192 double max_dimension_total_{};
194 DISPLAY DisplayMethod{DISPLAY::COMPACT};
195 METHOD Method{METHOD::PROGRESSIVE};
196 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