Skip to content

Preferences

Application preferences. More...

#include <Preferences.h>

Inherits from QObject

Public Types

Name
enum OrientationMarkerType
enum OrientationMarkerCorner
enum @0

Public Signals

Name
void color_scheme_changed(int newIndex)
void glyph_properties_changed()
void threading_changed_signal()
void sliders_changed_signal()

Public Functions

Name
Preferences()
void restore_defaults()
void add_recent_file(QString file, QString path)
QStringList get_recent_files()
QStringList get_recent_paths()
bool not_saved()
void set_saved(bool saved =true)
QByteArray get_window_geometry()
void set_window_geometry(QByteArray geometry)
QByteArray get_window_state()
void set_window_state(QByteArray state)
QString get_last_directory()
void set_last_directory(QString value)
bool get_cache_enabled()
void set_cache_enabled(bool value)
bool get_parallel_enabled()
void set_parallel_enabled(bool value)
int get_memory_cache_percent()
void set_memory_cache_percent(int value)
int get_num_threads()
void set_num_threads(int num_threads)
float get_glyph_size()
void set_glyph_size(float value)
float get_glyph_quality()
void set_glyph_quality(float value)
bool get_glyph_auto_size()
void set_glyph_auto_size(bool value)
float get_pca_range()
void set_pca_range(float value)
int get_pca_steps()
void set_pca_steps(int value)
void set_color_scheme(int value)
int get_color_scheme()
void set_color_map(int value)
int get_color_map()
void set_discrete_color_mode(bool value)
bool get_discrete_color_mode()
void set_reverse_color_map(bool value)
bool get_reverse_color_map()
bool get_center_checked()
void set_center_checked(bool value)
int get_geodesic_cache_multiplier()
void set_geodesic_cache_multiplier(int value)
OrientationMarkerType get_orientation_marker_type()
void set_orientation_marker_type(OrientationMarkerType type)
OrientationMarkerCorner get_orientation_marker_corner()
void set_orientation_marker_corner(OrientationMarkerCorner corner)
QString get_groom_file_template()
void set_groom_file_template(QString groom_file_template)
QString get_optimize_file_template()
void set_optimize_file_template(QString optimize_file_template)
QSize get_export_override_size()
void set_export_override_size(QSize size)
bool get_export_override_size_enabled()
void set_export_override_size_enabled(bool enabled)
bool get_export_show_orientation_marker()
void set_export_show_orientation_marker(bool value)
bool get_export_show_color_scale()
void set_export_show_color_scale(bool value)
int get_export_num_pca_images()
void set_export_num_pca_images(int number)
double get_export_pca_range()
void set_export_pca_range(double range)
void set_export_pca_modes(QString string)
QString get_export_pca_modes()

Detailed Description

class Preferences;

Application preferences.

The Preferences singleton controls all preferences for the application. Values persist via the QSettings class.

Public Types Documentation

enum OrientationMarkerType

Enumerator Value Description
medical 0
triad 1
none 2

enum OrientationMarkerCorner

Enumerator Value Description
upper_right 0
lower_right 1
lower_left 2
upper_left 3

enum @0

Enumerator Value Description
MAX_RECENT_FILES 64

Public Signals Documentation

signal color_scheme_changed

void color_scheme_changed(
    int newIndex
)

signal glyph_properties_changed

void glyph_properties_changed()

signal threading_changed_signal

void threading_changed_signal()

signal sliders_changed_signal

void sliders_changed_signal()

Public Functions Documentation

function Preferences

Preferences()

function restore_defaults

void restore_defaults()

function add_recent_file

void add_recent_file(
    QString file,
    QString path
)

function get_recent_files

QStringList get_recent_files()

function get_recent_paths

QStringList get_recent_paths()

function not_saved

bool not_saved()

function set_saved

void set_saved(
    bool saved =true
)

function get_window_geometry

QByteArray get_window_geometry()

function set_window_geometry

void set_window_geometry(
    QByteArray geometry
)

function get_window_state

QByteArray get_window_state()

function set_window_state

void set_window_state(
    QByteArray state
)

function get_last_directory

QString get_last_directory()

function set_last_directory

void set_last_directory(
    QString value
)

function get_cache_enabled

bool get_cache_enabled()

function set_cache_enabled

void set_cache_enabled(
    bool value
)

function get_parallel_enabled

bool get_parallel_enabled()

function set_parallel_enabled

void set_parallel_enabled(
    bool value
)

function get_memory_cache_percent

int get_memory_cache_percent()

function set_memory_cache_percent

void set_memory_cache_percent(
    int value
)

function get_num_threads

int get_num_threads()

function set_num_threads

void set_num_threads(
    int num_threads
)

function get_glyph_size

float get_glyph_size()

function set_glyph_size

void set_glyph_size(
    float value
)

function get_glyph_quality

float get_glyph_quality()

function set_glyph_quality

void set_glyph_quality(
    float value
)

function get_glyph_auto_size

bool get_glyph_auto_size()

function set_glyph_auto_size

void set_glyph_auto_size(
    bool value
)

function get_pca_range

float get_pca_range()

function set_pca_range

void set_pca_range(
    float value
)

function get_pca_steps

int get_pca_steps()

function set_pca_steps

void set_pca_steps(
    int value
)

function set_color_scheme

void set_color_scheme(
    int value
)

function get_color_scheme

int get_color_scheme()

function set_color_map

void set_color_map(
    int value
)

function get_color_map

int get_color_map()

function set_discrete_color_mode

void set_discrete_color_mode(
    bool value
)

function get_discrete_color_mode

bool get_discrete_color_mode()

function set_reverse_color_map

void set_reverse_color_map(
    bool value
)

function get_reverse_color_map

bool get_reverse_color_map()

function get_center_checked

bool get_center_checked()

function set_center_checked

void set_center_checked(
    bool value
)

function get_geodesic_cache_multiplier

int get_geodesic_cache_multiplier()

function set_geodesic_cache_multiplier

void set_geodesic_cache_multiplier(
    int value
)

function get_orientation_marker_type

OrientationMarkerType get_orientation_marker_type()

function set_orientation_marker_type

void set_orientation_marker_type(
    OrientationMarkerType type
)

function get_orientation_marker_corner

OrientationMarkerCorner get_orientation_marker_corner()

function set_orientation_marker_corner

void set_orientation_marker_corner(
    OrientationMarkerCorner corner
)

function get_groom_file_template

QString get_groom_file_template()

function set_groom_file_template

void set_groom_file_template(
    QString groom_file_template
)

function get_optimize_file_template

QString get_optimize_file_template()

function set_optimize_file_template

void set_optimize_file_template(
    QString optimize_file_template
)

function get_export_override_size

QSize get_export_override_size()

function set_export_override_size

void set_export_override_size(
    QSize size
)

function get_export_override_size_enabled

bool get_export_override_size_enabled()

function set_export_override_size_enabled

void set_export_override_size_enabled(
    bool enabled
)

function get_export_show_orientation_marker

bool get_export_show_orientation_marker()

function set_export_show_orientation_marker

void set_export_show_orientation_marker(
    bool value
)

function get_export_show_color_scale

bool get_export_show_color_scale()

function set_export_show_color_scale

void set_export_show_color_scale(
    bool value
)

function get_export_num_pca_images

int get_export_num_pca_images()

function set_export_num_pca_images

void set_export_num_pca_images(
    int number
)

function get_export_pca_range

double get_export_pca_range()

function set_export_pca_range

void set_export_pca_range(
    double range
)

function set_export_pca_modes

void set_export_pca_modes(
    QString string
)

function get_export_pca_modes

QString get_export_pca_modes()

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