fw4spl
fwGuiQt::SliceSelector Class Reference

A qt panel used to control a VTK 2D Negatoscope view. More...

#include <SliceSelector.hpp>

+ Inheritance diagram for fwGuiQt::SliceSelector:
+ Collaboration diagram for fwGuiQt::SliceSelector:

Public Types

typedef std::function< void(int) > ChangeIndexCallback
 
typedef std::function< void(int) > ChangeTypeCallback
 

Public Member Functions

FWGUIQT_API SliceSelector (QWidget *const parent=nullptr) noexcept
 Constructor. More...
 
virtual FWGUIQT_API ~SliceSelector () noexcept
 Destructor.
 
FWGUIQT_API void setSliceRange (int min, int max)
 
FWGUIQT_API void setSliceValue (int index)
 
FWGUIQT_API void setTypeSelection (int type)
 
FWGUIQT_API void setEnable (bool enable)
 
FWGUIQT_API void setChangeIndexCallback (ChangeIndexCallback fct)
 
FWGUIQT_API void setChangeTypeCallback (ChangeTypeCallback fct)
 

Protected Slots

FWGUIQT_API void onSliceTypeChange (int index)
 Event handler for a slice type change. More...
 
FWGUIQT_API void onSliceIndexChange (int value) noexcept
 Event handler for a slice index change. More...
 

Detailed Description

A qt panel used to control a VTK 2D Negatoscope view.

Definition at line 33 of file SliceSelector.hpp.

Constructor & Destructor Documentation

fwGuiQt::SliceSelector::SliceSelector ( QWidget *const  parent = nullptr)
noexcept

Constructor.

Parameters
parentThe parent widget.

Slice type names as a qt string array.

Definition at line 26 of file SliceSelector.cpp.

Member Function Documentation

void fwGuiQt::SliceSelector::onSliceIndexChange ( int  value)
protectedslotnoexcept

Event handler for a slice index change.

Parameters
valuecurrent value of the slice index slider.

Definition at line 95 of file SliceSelector.cpp.

References OSLM_TRACE, and SLM_TRACE_FUNC.

Referenced by ~SliceSelector().

+ Here is the caller graph for this function:

void fwGuiQt::SliceSelector::onSliceTypeChange ( int  index)
protectedslot

Event handler for a slice type change.

Parameters
indexindex of the selected type item.

Definition at line 140 of file SliceSelector.cpp.

Referenced by ~SliceSelector().

+ Here is the caller graph for this function:


The documentation for this class was generated from the following files: