Skip to content

Studio/src/Data/DataTool.h

Namespaces

Name
shapeworks

Classes

Name
class shapeworks::DataTool

Source code

#pragma once

#include <Data/Preferences.h>

#include <QElapsedTimer>
#include <QObject>
#include <QProgressDialog>
#include <QSharedPointer>
#include <QWidget>
#include <memory>
#include <string>

class Ui_DataTool;
class QComboBox;

namespace shapeworks {

class Session;
class LandmarkTableModel;

class DataTool : public QWidget {
  Q_OBJECT;

 public:
  DataTool(Preferences& prefs);
  ~DataTool();

  void set_session(QSharedPointer<Session> session);

  void activate();

  void disable_actions();

  void enable_actions();

  void update_table();

  void update_landmark_table();

  void landmark_domain_changed();

  void constraints_domain_changed();

  void delete_planes_clicked();

  void delete_ffc_clicked();

  void update_notes();

  std::string get_notes();

  void store_data();

 public Q_SLOTS:

  void delete_button_clicked();

  void delete_landmarks_clicked();

  void set_placing_button_clicked(int id);

  void handle_landmark_mode_changed();
  void handle_constraints_mode_changed();
  void handle_ffc_active_changed();

 Q_SIGNALS:
  void import_button_clicked();

 private:
  void update_domain_box(QComboBox* box);

  void update_plane_table();
  void update_ffc_table();

  Preferences& preferences_;

  Ui_DataTool* ui_;
  QSharedPointer<Session> session_;

  std::shared_ptr<LandmarkTableModel> landmark_table_model_;
};
}  // namespace shapeworks

Updated on 2022-07-23 at 16:40:07 -0600