Developer documentation
Version 3.0.3-105-gd3941f44
MR::GUI::MRView::Tool::ROI Class Reference

#include "gui/mrview/tool/roi_editor/roi.h"

Inheritance diagram for MR::GUI::MRView::Tool::ROI:
MR::GUI::MRView::Tool::Base

Protected Member Functions

void update_undo_redo ()
 
void updateGL ()
 
void load (vector< std::unique_ptr< MR::Header > > &list)
 
void save (ROI_Item *)
 
int normal2axis (const Eigen::Vector3f &, const ROI_Item &) const
 
void dropEvent (QDropEvent *event) override
 

Protected Attributes

QPushButton * hide_all_button
 
QPushButton * close_button
 
QPushButton * save_button
 
QToolButton * draw_button
 
QToolButton * undo_button
 
QToolButton * redo_button
 
QToolButton * brush_button
 
QToolButton * rectangle_button
 
QToolButton * fill_button
 
QToolButton * copy_from_above_button
 
QToolButton * copy_from_below_button
 
QActionGroup * edit_mode_group
 
QActionGroup * slice_copy_group
 
ROI_Modellist_model
 
QListView * list_view
 
QColorButtoncolour_button
 
QSlider * opacity_slider
 
AdjustButtonbrush_size_button
 
int current_axis
 
int current_slice
 
bool in_insert_mode
 
bool insert_mode_value
 
Eigen::Vector3f current_origin
 
Eigen::Vector3f prev_pos
 
float current_slice_loc
 
Mode::Slice::Shader shader
 

Additional Inherited Members

- Public Member Functions inherited from MR::GUI::MRView::Tool::Base
 Base (Dock *parent)
 
Windowwindow () const
 
virtual bool process_commandline_option (const MR::App::ParsedOption &opt)
 
virtual QSize sizeHint () const override
 
void grab_focus ()
 
void release_focus ()
 
virtual void draw (const Projection &transform, bool is_3D, int axis, int slice)
 
virtual void draw_colourbars ()
 
virtual size_t visible_number_colourbars ()
 
virtual int draw_tool_labels (int, int, const Projection &) const
 
virtual bool mouse_press_event ()
 
virtual bool mouse_move_event ()
 
virtual bool mouse_release_event ()
 
virtual void close_event ()
 
virtual void reset_event ()
 
virtual QCursor * get_cursor ()
 
void update_cursor ()
 
void dragEnterEvent (QDragEnterEvent *event) override
 
void dragMoveEvent (QDragMoveEvent *event) override
 
void dragLeaveEvent (QDragLeaveEvent *event) override
 
- Static Public Member Functions inherited from MR::GUI::MRView::Tool::Base
static void add_commandline_options (MR::App::OptionList &options)
 
- Public Attributes inherited from MR::GUI::MRView::Tool::Base
std::string current_folder
 

Detailed Description

Definition at line 48 of file roi.h.

Member Function Documentation

◆ dropEvent()

void MR::GUI::MRView::Tool::ROI::dropEvent ( QDropEvent *  event)
overrideprotected

◆ load()

void MR::GUI::MRView::Tool::ROI::load ( vector< std::unique_ptr< MR::Header > > &  list)
protected

◆ normal2axis()

int MR::GUI::MRView::Tool::ROI::normal2axis ( const Eigen::Vector3f &  ,
const ROI_Item  
) const
protected

◆ save()

void MR::GUI::MRView::Tool::ROI::save ( ROI_Item )
protected

◆ update_undo_redo()

void MR::GUI::MRView::Tool::ROI::update_undo_redo ( )
protected

◆ updateGL()

void MR::GUI::MRView::Tool::ROI::updateGL ( )
inlineprotected

Definition at line 103 of file roi.h.

Member Data Documentation

◆ brush_button

QToolButton* MR::GUI::MRView::Tool::ROI::brush_button
protected

Definition at line 87 of file roi.h.

◆ brush_size_button

AdjustButton* MR::GUI::MRView::Tool::ROI::brush_size_button
protected

Definition at line 94 of file roi.h.

◆ close_button

QPushButton * MR::GUI::MRView::Tool::ROI::close_button
protected

Definition at line 85 of file roi.h.

◆ colour_button

QColorButton* MR::GUI::MRView::Tool::ROI::colour_button
protected

Definition at line 92 of file roi.h.

◆ copy_from_above_button

QToolButton* MR::GUI::MRView::Tool::ROI::copy_from_above_button
protected

Definition at line 88 of file roi.h.

◆ copy_from_below_button

QToolButton * MR::GUI::MRView::Tool::ROI::copy_from_below_button
protected

Definition at line 88 of file roi.h.

◆ current_axis

int MR::GUI::MRView::Tool::ROI::current_axis
protected

Definition at line 95 of file roi.h.

◆ current_origin

Eigen::Vector3f MR::GUI::MRView::Tool::ROI::current_origin
protected

Definition at line 97 of file roi.h.

◆ current_slice

int MR::GUI::MRView::Tool::ROI::current_slice
protected

Definition at line 95 of file roi.h.

◆ current_slice_loc

float MR::GUI::MRView::Tool::ROI::current_slice_loc
protected

Definition at line 98 of file roi.h.

◆ draw_button

QToolButton* MR::GUI::MRView::Tool::ROI::draw_button
protected

Definition at line 86 of file roi.h.

◆ edit_mode_group

QActionGroup* MR::GUI::MRView::Tool::ROI::edit_mode_group
protected

Definition at line 89 of file roi.h.

◆ fill_button

QToolButton * MR::GUI::MRView::Tool::ROI::fill_button
protected

Definition at line 87 of file roi.h.

◆ hide_all_button

QPushButton* MR::GUI::MRView::Tool::ROI::hide_all_button
protected

Definition at line 85 of file roi.h.

◆ in_insert_mode

bool MR::GUI::MRView::Tool::ROI::in_insert_mode
protected

Definition at line 96 of file roi.h.

◆ insert_mode_value

bool MR::GUI::MRView::Tool::ROI::insert_mode_value
protected

Definition at line 96 of file roi.h.

◆ list_model

ROI_Model* MR::GUI::MRView::Tool::ROI::list_model
protected

Definition at line 90 of file roi.h.

◆ list_view

QListView* MR::GUI::MRView::Tool::ROI::list_view
protected

Definition at line 91 of file roi.h.

◆ opacity_slider

QSlider* MR::GUI::MRView::Tool::ROI::opacity_slider
protected

Definition at line 93 of file roi.h.

◆ prev_pos

Eigen::Vector3f MR::GUI::MRView::Tool::ROI::prev_pos
protected

Definition at line 97 of file roi.h.

◆ rectangle_button

QToolButton * MR::GUI::MRView::Tool::ROI::rectangle_button
protected

Definition at line 87 of file roi.h.

◆ redo_button

QToolButton * MR::GUI::MRView::Tool::ROI::redo_button
protected

Definition at line 86 of file roi.h.

◆ save_button

QPushButton * MR::GUI::MRView::Tool::ROI::save_button
protected

Definition at line 85 of file roi.h.

◆ shader

Mode::Slice::Shader MR::GUI::MRView::Tool::ROI::shader
protected

Definition at line 100 of file roi.h.

◆ slice_copy_group

QActionGroup * MR::GUI::MRView::Tool::ROI::slice_copy_group
protected

Definition at line 89 of file roi.h.

◆ undo_button

QToolButton * MR::GUI::MRView::Tool::ROI::undo_button
protected

Definition at line 86 of file roi.h.


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