Skip to content

shapeworks::Session

Representation of a session. More...

#include <Session.h>

Inherits from QObject

Public Slots

Name
void set_feature_auto_scale(bool value)
void handle_clear_cache()
void handle_new_mesh()
void handle_message(QString s)
void handle_thread_complete()

Public Signals

Name
void data_changed()
signal that the data has changed
void points_changed()
void update_display()
void new_mesh()
void message(QString )
void error(QString )
void feature_range_changed()

Public Functions

Name
Session(QWidget * parent, Preferences & prefs)
constructor
~Session()
destructor
void set_parent(QWidget * parent)
set QWidget parent
bool save_project(std::string filename)
save project to file
bool load_project(QString filename)
load project from file
bool load_light_project(QString filename)
read a lightweight project file
bool load_xl_project(QString filename)
load a shapeworks project
void set_project_path(QString relative_path)
std::shared_ptr< shapeworks::Project > get_project()
void load_original_files(std::vector< std::string > filenames)
import files
void load_groomed_files(std::vector< std::string > file_names, double iso, int domains_per_shape)
load groomed files
bool load_point_files(std::vector< std::string > local, std::vector< std::string > world, int domains_per_shape)
bool update_particles(std::vector< StudioParticles > particles)
void update_procrustes_transforms(std::vector< std::vector< std::vector< double >>> transforms)
bool is_light_project()
bool get_groomed_present()
void remove_shapes(QList< int > list)
remove shapes
QVector< QSharedPointer< Shape > > get_shapes()
return all shapes
void calculate_reconstructed_samples()
QString get_filename()
get the filename
QString get_display_name()
get file display name
bool original_present()
bool groomed_present()
bool particles_present()
bool groups_available()
int get_num_shapes()
int get_domains_per_shape()
std::string get_default_feature_map()
QSharedPointer< MeshManager > get_mesh_manager()
shapeworks::Parameters & parameters()
std::vector< DomainType > get_domain_types()
double update_auto_glyph_size()
double get_auto_glyph_size()
void clear_particles()
clear particles from session (e.g. groom start, optimize start)
bool get_feature_auto_scale()
double get_feature_range_max()
double get_feature_range_min()
void set_feature_range(double min, double max)
void set_feature_range_min(double value)
void set_feature_range_max(double value)
bool is_supported_file_format(std::string filename)
Point3 get_point(const vnl_vector< double > & points, int i)

Public Attributes

Name
const std::string DATA_C
const std::string GROOM_C
const std::string OPTIMIZE_C
const std::string ANALYSIS_C
const std::string DEEPSSM_C

Detailed Description

class shapeworks::Session;

Representation of a session.

The Session class encapsulates everything about a session/project.

Public Slots Documentation

slot set_feature_auto_scale

void set_feature_auto_scale(
    bool value
)

slot handle_clear_cache

void handle_clear_cache()

slot handle_new_mesh

void handle_new_mesh()

slot handle_message

void handle_message(
    QString s
)

slot handle_thread_complete

void handle_thread_complete()

Public Signals Documentation

signal data_changed

void data_changed()

signal that the data has changed

signal points_changed

void points_changed()

signal update_display

void update_display()

signal new_mesh

void new_mesh()

signal message

void message(
    QString 
)

signal error

void error(
    QString 
)

signal feature_range_changed

void feature_range_changed()

Public Functions Documentation

function Session

Session(
    QWidget * parent,
    Preferences & prefs
)

constructor

function ~Session

~Session()

destructor

function set_parent

void set_parent(
    QWidget * parent
)

set QWidget parent

function save_project

bool save_project(
    std::string filename
)

save project to file

function load_project

bool load_project(
    QString filename
)

load project from file

function load_light_project

bool load_light_project(
    QString filename
)

read a lightweight project file

function load_xl_project

bool load_xl_project(
    QString filename
)

load a shapeworks project

function set_project_path

void set_project_path(
    QString relative_path
)

function get_project

std::shared_ptr< shapeworks::Project > get_project()

function load_original_files

void load_original_files(
    std::vector< std::string > filenames
)

import files

function load_groomed_files

void load_groomed_files(
    std::vector< std::string > file_names,
    double iso,
    int domains_per_shape
)

load groomed files

function load_point_files

bool load_point_files(
    std::vector< std::string > local,
    std::vector< std::string > world,
    int domains_per_shape
)

function update_particles

bool update_particles(
    std::vector< StudioParticles > particles
)

function update_procrustes_transforms

void update_procrustes_transforms(
    std::vector< std::vector< std::vector< double >>> transforms
)

function is_light_project

bool is_light_project()

function get_groomed_present

bool get_groomed_present()

function remove_shapes

void remove_shapes(
    QList< int > list
)

remove shapes

function get_shapes

QVector< QSharedPointer< Shape > > get_shapes()

return all shapes

function calculate_reconstructed_samples

void calculate_reconstructed_samples()

function get_filename

QString get_filename()

get the filename

function get_display_name

QString get_display_name()

get file display name

function original_present

bool original_present()

function groomed_present

bool groomed_present()

function particles_present

bool particles_present()

function groups_available

bool groups_available()

function get_num_shapes

int get_num_shapes()

function get_domains_per_shape

int get_domains_per_shape()

function get_default_feature_map

std::string get_default_feature_map()

function get_mesh_manager

inline QSharedPointer< MeshManager > get_mesh_manager()

function parameters

shapeworks::Parameters & parameters()

function get_domain_types

std::vector< DomainType > get_domain_types()

function update_auto_glyph_size

double update_auto_glyph_size()

function get_auto_glyph_size

double get_auto_glyph_size()

function clear_particles

void clear_particles()

clear particles from session (e.g. groom start, optimize start)

function get_feature_auto_scale

bool get_feature_auto_scale()

function get_feature_range_max

double get_feature_range_max()

function get_feature_range_min

double get_feature_range_min()

function set_feature_range

void set_feature_range(
    double min,
    double max
)

function set_feature_range_min

void set_feature_range_min(
    double value
)

function set_feature_range_max

void set_feature_range_max(
    double value
)

function is_supported_file_format

static bool is_supported_file_format(
    std::string filename
)

function get_point

static Point3 get_point(
    const vnl_vector< double > & points,
    int i
)

Public Attributes Documentation

variable DATA_C

static const std::string DATA_C;

variable GROOM_C

static const std::string GROOM_C;

variable OPTIMIZE_C

static const std::string OPTIMIZE_C;

variable ANALYSIS_C

static const std::string ANALYSIS_C;

variable DEEPSSM_C

static const std::string DEEPSSM_C;

Updated on 2022-03-31 at 09:51:19 -0600