Skip to content

shapeworks::SliceView

SliceView. More...

#include <SliceView.h>

Public Types

Name
enum SliceChange

Public Functions

Name
SliceView(Viewer * viewer)
void set_volume(std::shared_ptr< Image > volume)
void add_mesh(vtkSmartPointer< vtkPolyData > poly_data)
void set_mask(std::shared_ptr< Image > mask)
void clear_meshes()
void set_orientation(int orientation)
bool is_image_loaded()
void update_colormap()
void update_renderer()
void update_camera()
Point handle_key(std::string key)
void change_slice(SliceChange change)
Point get_slice_position()
void set_slice_position(Point point)
void set_brightness_and_contrast(double brightness, double contrast)
double get_spacing()
int get_orientation_index()
void update_particles()
Viewer * get_viewer()
bool should_point_show(double x, double y, double z)
int get_slice_number()
vtkSmartPointer< vtkImageActor > get_image_actor()
vtkPlane * get_slice_plane()
void update()

Detailed Description

cpp class shapeworks::SliceView;

SliceView.

Provide slice viewing to the Viewer

Public Types Documentation

enum SliceChange

Enumerator Value Description
Down
Up

Public Functions Documentation

function SliceView

cpp SliceView( Viewer * viewer )

function set_volume

cpp void set_volume( std::shared_ptr< Image > volume )

function add_mesh

cpp void add_mesh( vtkSmartPointer< vtkPolyData > poly_data )

function set_mask

cpp void set_mask( std::shared_ptr< Image > mask )

function clear_meshes

cpp void clear_meshes()

function set_orientation

cpp void set_orientation( int orientation )

function is_image_loaded

cpp bool is_image_loaded()

function update_colormap

cpp void update_colormap()

function update_renderer

cpp void update_renderer()

function update_camera

cpp void update_camera()

function handle_key

cpp Point handle_key( std::string key )

function change_slice

cpp void change_slice( SliceChange change )

function get_slice_position

cpp Point get_slice_position()

function set_slice_position

cpp void set_slice_position( Point point )

function set_brightness_and_contrast

cpp void set_brightness_and_contrast( double brightness, double contrast )

function get_spacing

cpp double get_spacing()

function get_orientation_index

cpp int get_orientation_index()

function update_particles

cpp void update_particles()

function get_viewer

cpp Viewer * get_viewer()

function should_point_show

cpp bool should_point_show( double x, double y, double z )

function get_slice_number

cpp int get_slice_number()

function get_image_actor

cpp vtkSmartPointer< vtkImageActor > get_image_actor()

function get_slice_plane

cpp vtkPlane * get_slice_plane()

function update

cpp void update()


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