Skip to content

shapeworks::Viewer

3D Viewer More...

#include <Viewer.h>

Public Functions

Name
Viewer()
~Viewer() =default
void set_renderer(vtkSmartPointer< vtkRenderer > renderer)
vtkSmartPointer< vtkRenderer > get_renderer()
void display_shape(QSharedPointer< Shape > shape)
void clear_viewer()
void reset_camera(std::array< double, 3 > c)
void set_glyph_size_and_quality(double size, double quality)
void set_show_glyphs(bool show)
void set_show_surface(bool show)
void update_points()
void update_glyph_properties()
int handle_pick(int * click_pos)
void set_selected_point(int id)
void set_lut(vtkSmartPointer< vtkLookupTable > lut)
void set_loading_screen(vtkSmartPointer< vtkImageData > loading_screen)
void set_color_scheme(int i)
void handle_new_mesh()
bool is_viewer_ready()
void set_visualizer(Visualizer * visualizer)
void update_feature_range(double * range)
void update_opacities()
QSharedPointer< Shape > get_shape()

Detailed Description

class shapeworks::Viewer;

3D Viewer

The Viewer class encapsulates all the functionality for visualizing a single subject/shape

Public Functions Documentation

function Viewer

Viewer()

function ~Viewer

~Viewer() =default

function set_renderer

void set_renderer(
    vtkSmartPointer< vtkRenderer > renderer
)

function get_renderer

vtkSmartPointer< vtkRenderer > get_renderer()

function display_shape

void display_shape(
    QSharedPointer< Shape > shape
)

function clear_viewer

void clear_viewer()

function reset_camera

void reset_camera(
    std::array< double, 3 > c
)

function set_glyph_size_and_quality

void set_glyph_size_and_quality(
    double size,
    double quality
)

function set_show_glyphs

void set_show_glyphs(
    bool show
)

function set_show_surface

void set_show_surface(
    bool show
)

function update_points

void update_points()

function update_glyph_properties

void update_glyph_properties()

function handle_pick

int handle_pick(
    int * click_pos
)

function set_selected_point

void set_selected_point(
    int id
)

function set_lut

void set_lut(
    vtkSmartPointer< vtkLookupTable > lut
)

function set_loading_screen

void set_loading_screen(
    vtkSmartPointer< vtkImageData > loading_screen
)

function set_color_scheme

void set_color_scheme(
    int i
)

function handle_new_mesh

void handle_new_mesh()

function is_viewer_ready

bool is_viewer_ready()

function set_visualizer

void set_visualizer(
    Visualizer * visualizer
)

function update_feature_range

void update_feature_range(
    double * range
)

function update_opacities

void update_opacities()

function get_shape

QSharedPointer< Shape > get_shape()

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