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 reset_camera()
void set_color_series(ColorMap color_series)
void set_glyph_size_and_quality(double size, double quality)
double get_glyph_size()
double get_glyph_quality()
void set_session(QSharedPointer< Session > session)
QSharedPointer< Session > get_session()
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)
PickResult handle_ctrl_click(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()
void update_landmarks()
void update_planes()
void update_ffc_mode()
std::vector< vtkSmartPointer< vtkActor > > get_surface_actors()
std::vector< vtkSmartPointer< vtkActor > > get_unclipped_surface_actors()
MeshGroup get_meshes()
vtkSmartPointer< vtkTransform > get_transform(int alignment_domain, int domain)
vtkSmartPointer< vtkTransform > get_landmark_transform(int domain)
vtkSmartPointer< vtkTransform > get_inverse_landmark_transform(int domain)
vtkSmartPointer< vtkTransform > get_image_transform()
SliceView & slice_view()
void update_image_volume()
vtkSmartPointer< vtkPoints > get_glyph_points()
vtkSmartPointer< vtkTransform > get_alignment_transform()
void update_clipping_planes()
vtkSmartPointer< vtkPolygonalSurfacePointPlacer > get_point_placer()
void handle_ffc_paint(double display_pos[2], double world_pos[3])
void update_actors()
void remove_scalar_bar()
bool is_ready()
vtkFloatArray * get_particle_scalars()
vtkSmartPointer< vtkPolyData > get_particle_poly_data()
void insert_compare_meshes()
void set_scalar_visibility(vtkSmartPointer< vtkPolyData > poly_data, vtkSmartPointer< vtkPolyDataMapper > mapper, std::string scalar)
bool is_reverse(vtkSmartPointer< vtkTransform > transform)

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 reset_camera

void reset_camera()

function set_color_series

void set_color_series(
    ColorMap color_series
)

function set_glyph_size_and_quality

void set_glyph_size_and_quality(
    double size,
    double quality
)

function get_glyph_size

double get_glyph_size()

function get_glyph_quality

double get_glyph_quality()

function set_session

void set_session(
    QSharedPointer< Session > session
)

function get_session

QSharedPointer< Session > get_session()

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 handle_ctrl_click

PickResult handle_ctrl_click(
    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()

function update_landmarks

void update_landmarks()

function update_planes

void update_planes()

function update_ffc_mode

void update_ffc_mode()

function get_surface_actors

std::vector< vtkSmartPointer< vtkActor > > get_surface_actors()

function get_unclipped_surface_actors

std::vector< vtkSmartPointer< vtkActor > > get_unclipped_surface_actors()

function get_meshes

MeshGroup get_meshes()

function get_transform

vtkSmartPointer< vtkTransform > get_transform(
    int alignment_domain,
    int domain
)

function get_landmark_transform

vtkSmartPointer< vtkTransform > get_landmark_transform(
    int domain
)

function get_inverse_landmark_transform

vtkSmartPointer< vtkTransform > get_inverse_landmark_transform(
    int domain
)

function get_image_transform

vtkSmartPointer< vtkTransform > get_image_transform()

function slice_view

SliceView & slice_view()

function update_image_volume

void update_image_volume()

function get_glyph_points

vtkSmartPointer< vtkPoints > get_glyph_points()

function get_alignment_transform

vtkSmartPointer< vtkTransform > get_alignment_transform()

function update_clipping_planes

void update_clipping_planes()

function get_point_placer

vtkSmartPointer< vtkPolygonalSurfacePointPlacer > get_point_placer()

function handle_ffc_paint

void handle_ffc_paint(
    double display_pos[2],
    double world_pos[3]
)

function update_actors

void update_actors()

function remove_scalar_bar

void remove_scalar_bar()

function is_ready

inline bool is_ready()

function get_particle_scalars

vtkFloatArray * get_particle_scalars()

function get_particle_poly_data

vtkSmartPointer< vtkPolyData > get_particle_poly_data()

function insert_compare_meshes

void insert_compare_meshes()

function set_scalar_visibility

void set_scalar_visibility(
    vtkSmartPointer< vtkPolyData > poly_data,
    vtkSmartPointer< vtkPolyDataMapper > mapper,
    std::string scalar
)

function is_reverse

static bool is_reverse(
    vtkSmartPointer< vtkTransform > transform
)

Updated on 2022-07-23 at 17:50:04 -0600