Skip to content

Studio/Utils/AnalysisUtils.h

Namespaces

Name
shapeworks
User usage reporting (telemetry)

Classes

Name
class shapeworks::AnalysisUtils
struct shapeworks::AnalysisUtils::RankedSeries
one line of a ranked plot

Source code

#pragma once

#include <Particles/ParticleSystemEvaluation.h>

#include <QColor>
#include <QString>

class JKQTPlotter;

namespace shapeworks {

class Session;

class AnalysisUtils {
 public:
  static ParticleSystemEvaluation get_local_particle_system(Session* session, int domain);

  static void create_plot(JKQTPlotter* plot, Eigen::VectorXd data, QString title, QString x_label, QString y_label);

  static void create_box_plot(JKQTPlotter* plot, Eigen::VectorXd data, QString title, QString x_label,
                              QColor color = Qt::blue);

  enum class KeyCorner { BottomLeft, BottomRight };

  struct RankedSeries {
    Eigen::VectorXd values;
    QString label;
    QColor color{Qt::blue};
  };

  static void create_ranked_plot(JKQTPlotter* plot, const std::vector<RankedSeries>& series,
                                 const std::vector<double>& reference_lines, QString title, QString x_label,
                                 QString y_label, bool log_y, KeyCorner key_corner = KeyCorner::BottomLeft);
};

}  // namespace shapeworks

Updated on 2026-09-20 at 15:51:02 +0000