Skip to content

shapeworks::AnalysisTool

Inherits from QWidget

Public Types

Name
enum GroupAnalysisType
enum McaMode
using Analyze::AlignmentType AlignmentType
using itk::Point< double, 3 > PointType

Public Slots

Name
void on_tabWidget_currentChanged()
void handle_analysis_options()
void handle_median()
void on_mean_button_clicked()
void on_group1_button_clicked()
void on_group2_button_clicked()
void on_difference_button_clicked()
void on_pcaSlider_valueChanged()
void on_group_slider_valueChanged()
void on_pcaModeSpinBox_valueChanged(int i)
void handle_pca_animate_state_changed()
void handle_pca_timer()
void handle_group_animate_state_changed()
void handle_group_timer()
void handle_reconstruction_complete()
void on_reconstructionButton_clicked()
void set_feature_map(const std::string & feature_map)
Set the currently selected feature map.
std::string get_display_feature_map()
void group_changed()
bool groups_active()
bool pca_groups_active()
QStringList get_checked_pca_groups()
void on_view_open_button_toggled()
void on_surface_open_button_toggled()
void on_metrics_open_button_toggled()
void reconstruction_method_changed()
void initialize_mesh_warper()
void group_p_values_clicked()
void network_analysis_clicked()
void handle_eval_thread_complete(ShapeEvaluationJob::JobType job_type, Eigen::VectorXd data)
void handle_eval_thread_progress(ShapeEvaluationJob::JobType job_type, float progress)
void handle_eval_particle_normals_progress(float progress)
void handle_eval_particle_normals_complete(std::vector< bool > good_bad)
void handle_group_pvalues_complete()
void handle_alignment_changed(int new_alignment)
void handle_distance_method_changed()
void run_good_bad_particles()
void handle_lda_progress(double progress)
void handle_lda_complete()
void handle_dwd_progress(double progress)
void handle_dwd_complete()
void handle_network_analysis_progress(int progress)
void handle_network_analysis_complete()
void show_difference_to_mean_clicked()
void group_analysis_combo_changed()
void change_pca_analysis_type()
Eigen::VectorXd construct_mean_shape()
Compute the mean shape outside of the PCA in case we are using scalars only.
void handle_samples_predicted_scalar_options()
void samples_table_context_menu()
void samples_table_copy_to_clipboard()
void mesh_warp_median_clicked()
void mesh_warp_sample_changed()
void mesh_warp_method_changed()
void mesh_warp_run_clicked()
void handle_tab_changed()

Public Signals

Name
void update_view()
void analysis_mode_changed()
void pca_update()
void progress(int )
void reconstruction_complete()

Public Functions

Name
AnalysisTool(Preferences & prefs)
~AnalysisTool()
void set_session(QSharedPointer< Session > session)
set the pointer to the session
QSharedPointer< Session > get_session()
Return the session.
void set_app(ShapeWorksStudioApp * app)
set the pointer to the application
ShapeWorksStudioApp * get_app()
void set_active(bool active)
Set if this tool is active.
bool get_active()
Return if this tool is active.
bool get_group_difference_mode()
std::vector< Shape::Point > get_group_difference_vectors()
std::string get_analysis_mode()
void set_analysis_mode(std::string mode)
void set_labels(QString which, QString value)
int get_pca_mode()
double get_group_ratio()
double get_pca_value()
bool pca_animate()
McaMode get_mca_level() const
int get_sample_number()
bool compute_stats()
void update_slider()
void reset_stats()
void enable_actions(bool newly_enabled =false)
Particles get_mean_shape_points()
ShapeHandle get_mean_shape()
Particles get_shape_points(int mode, double value)
Particles get_multi_level_shape_points(int mode, double value, McaMode level)
ShapeHandle get_mode_shape(int mode, double value)
ShapeHandle get_mca_mode_shape(int mode, double value, McaMode level)
ShapeHandle get_current_shape()
ParticleShapeStatistics get_stats()
void load_settings()
void store_settings()
void shutdown()
bool export_variance_graph(QString filename)
void compute_shape_evaluations()
GroupAnalysisType get_group_analysis_type()
bool pca_scalar_only_mode()
bool pca_shape_plus_scalar_mode()
bool pca_shape_only_mode()

Public Attributes

Name
const std::string MODE_ALL_SAMPLES_C
const std::string MODE_MEAN_C
const std::string MODE_PCA_C
const std::string MODE_SINGLE_SAMPLE_C
const std::string MODE_REGRESSION_C

Public Types Documentation

enum GroupAnalysisType

Enumerator Value Description
None 0
Pvalues 1
NetworkAnalysis 2
LDA 3
DWD 4

enum McaMode

Enumerator Value Description
Vanilla
Within
Between

using AlignmentType

cpp using shapeworks::AnalysisTool::AlignmentType = Analyze::AlignmentType;

using PointType

cpp using shapeworks::AnalysisTool::PointType = itk::Point<double, 3>;

Public Slots Documentation

slot on_tabWidget_currentChanged

cpp void on_tabWidget_currentChanged()

slot handle_analysis_options

cpp void handle_analysis_options()

slot handle_median

cpp void handle_median()

slot on_mean_button_clicked

cpp void on_mean_button_clicked()

slot on_group1_button_clicked

cpp void on_group1_button_clicked()

slot on_group2_button_clicked

cpp void on_group2_button_clicked()

slot on_difference_button_clicked

cpp void on_difference_button_clicked()

slot on_pcaSlider_valueChanged

cpp void on_pcaSlider_valueChanged()

slot on_group_slider_valueChanged

cpp void on_group_slider_valueChanged()

slot on_pcaModeSpinBox_valueChanged

cpp void on_pcaModeSpinBox_valueChanged( int i )

slot handle_pca_animate_state_changed

cpp void handle_pca_animate_state_changed()

slot handle_pca_timer

cpp void handle_pca_timer()

slot handle_group_animate_state_changed

cpp void handle_group_animate_state_changed()

slot handle_group_timer

cpp void handle_group_timer()

slot handle_reconstruction_complete

cpp void handle_reconstruction_complete()

slot on_reconstructionButton_clicked

cpp void on_reconstructionButton_clicked()

slot set_feature_map

cpp void set_feature_map( const std::string & feature_map )

Set the currently selected feature map.

slot get_display_feature_map

cpp std::string get_display_feature_map()

slot group_changed

cpp void group_changed()

slot groups_active

cpp bool groups_active()

slot pca_groups_active

cpp bool pca_groups_active()

slot get_checked_pca_groups

cpp QStringList get_checked_pca_groups()

slot on_view_open_button_toggled

cpp void on_view_open_button_toggled()

slot on_surface_open_button_toggled

cpp void on_surface_open_button_toggled()

slot on_metrics_open_button_toggled

cpp void on_metrics_open_button_toggled()

slot reconstruction_method_changed

cpp void reconstruction_method_changed()

slot initialize_mesh_warper

cpp void initialize_mesh_warper()

slot group_p_values_clicked

cpp void group_p_values_clicked()

slot network_analysis_clicked

cpp void network_analysis_clicked()

slot handle_eval_thread_complete

cpp void handle_eval_thread_complete( ShapeEvaluationJob::JobType job_type, Eigen::VectorXd data )

slot handle_eval_thread_progress

cpp void handle_eval_thread_progress( ShapeEvaluationJob::JobType job_type, float progress )

slot handle_eval_particle_normals_progress

cpp void handle_eval_particle_normals_progress( float progress )

slot handle_eval_particle_normals_complete

cpp void handle_eval_particle_normals_complete( std::vector< bool > good_bad )

slot handle_group_pvalues_complete

cpp void handle_group_pvalues_complete()

slot handle_alignment_changed

cpp void handle_alignment_changed( int new_alignment )

slot handle_distance_method_changed

cpp void handle_distance_method_changed()

slot run_good_bad_particles

cpp void run_good_bad_particles()

slot handle_lda_progress

cpp void handle_lda_progress( double progress )

slot handle_lda_complete

cpp void handle_lda_complete()

slot handle_dwd_progress

cpp void handle_dwd_progress( double progress )

slot handle_dwd_complete

cpp void handle_dwd_complete()

slot handle_network_analysis_progress

cpp void handle_network_analysis_progress( int progress )

slot handle_network_analysis_complete

cpp void handle_network_analysis_complete()

slot show_difference_to_mean_clicked

cpp void show_difference_to_mean_clicked()

slot group_analysis_combo_changed

cpp void group_analysis_combo_changed()

slot change_pca_analysis_type

cpp void change_pca_analysis_type()

slot construct_mean_shape

cpp Eigen::VectorXd construct_mean_shape()

Compute the mean shape outside of the PCA in case we are using scalars only.

slot handle_samples_predicted_scalar_options

cpp void handle_samples_predicted_scalar_options()

slot samples_table_context_menu

cpp void samples_table_context_menu()

slot samples_table_copy_to_clipboard

cpp void samples_table_copy_to_clipboard()

slot mesh_warp_median_clicked

cpp void mesh_warp_median_clicked()

slot mesh_warp_sample_changed

cpp void mesh_warp_sample_changed()

slot mesh_warp_method_changed

cpp void mesh_warp_method_changed()

slot mesh_warp_run_clicked

cpp void mesh_warp_run_clicked()

slot handle_tab_changed

cpp void handle_tab_changed()

Public Signals Documentation

signal update_view

cpp void update_view()

signal analysis_mode_changed

cpp void analysis_mode_changed()

signal pca_update

cpp void pca_update()

signal progress

cpp void progress( int )

signal reconstruction_complete

cpp void reconstruction_complete()

Public Functions Documentation

function AnalysisTool

cpp AnalysisTool( Preferences & prefs )

function ~AnalysisTool

cpp ~AnalysisTool()

function set_session

cpp void set_session( QSharedPointer< Session > session )

set the pointer to the session

function get_session

cpp QSharedPointer< Session > get_session()

Return the session.

function set_app

cpp void set_app( ShapeWorksStudioApp * app )

set the pointer to the application

function get_app

cpp inline ShapeWorksStudioApp * get_app()

function set_active

cpp void set_active( bool active )

Set if this tool is active.

function get_active

cpp bool get_active()

Return if this tool is active.

function get_group_difference_mode

cpp bool get_group_difference_mode()

function get_group_difference_vectors

cpp std::vector< Shape::Point > get_group_difference_vectors()

function get_analysis_mode

cpp std::string get_analysis_mode()

function set_analysis_mode

cpp void set_analysis_mode( std::string mode )

function set_labels

cpp void set_labels( QString which, QString value )

function get_pca_mode

cpp int get_pca_mode()

function get_group_ratio

cpp double get_group_ratio()

function get_pca_value

cpp double get_pca_value()

function pca_animate

cpp bool pca_animate()

function get_mca_level

cpp McaMode get_mca_level() const

function get_sample_number

cpp int get_sample_number()

function compute_stats

cpp bool compute_stats()

function update_slider

cpp void update_slider()

function reset_stats

cpp void reset_stats()

function enable_actions

cpp void enable_actions( bool newly_enabled =false )

function get_mean_shape_points

cpp Particles get_mean_shape_points()

function get_mean_shape

cpp ShapeHandle get_mean_shape()

function get_shape_points

cpp Particles get_shape_points( int mode, double value )

function get_multi_level_shape_points

cpp Particles get_multi_level_shape_points( int mode, double value, McaMode level )

function get_mode_shape

cpp ShapeHandle get_mode_shape( int mode, double value )

function get_mca_mode_shape

cpp ShapeHandle get_mca_mode_shape( int mode, double value, McaMode level )

function get_current_shape

cpp ShapeHandle get_current_shape()

function get_stats

cpp ParticleShapeStatistics get_stats()

function load_settings

cpp void load_settings()

function store_settings

cpp void store_settings()

function shutdown

cpp void shutdown()

function export_variance_graph

cpp bool export_variance_graph( QString filename )

function compute_shape_evaluations

cpp void compute_shape_evaluations()

function get_group_analysis_type

cpp GroupAnalysisType get_group_analysis_type()

function pca_scalar_only_mode

cpp bool pca_scalar_only_mode()

function pca_shape_plus_scalar_mode

cpp bool pca_shape_plus_scalar_mode()

function pca_shape_only_mode

cpp bool pca_shape_only_mode()

Public Attributes Documentation

variable MODE_ALL_SAMPLES_C

cpp static const std::string MODE_ALL_SAMPLES_C;

variable MODE_MEAN_C

cpp static const std::string MODE_MEAN_C;

variable MODE_PCA_C

cpp static const std::string MODE_PCA_C;

variable MODE_SINGLE_SAMPLE_C

cpp static const std::string MODE_SINGLE_SAMPLE_C;

variable MODE_REGRESSION_C

cpp static const std::string MODE_REGRESSION_C;


Updated on 2026-03-31 at 16:02:09 +0000