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

#include "gui/mrview/window.h"

Inheritance diagram for MR::GUI::MRView::Window:
MR::GUI::MRView::ColourMapButtonObserver

Public Slots

void on_scaling_changed ()
 
void updateGL ()
 
void drawGL ()
 

Signals

void focusChanged ()
 
void targetChanged ()
 
void sliceChanged ()
 
void planeChanged ()
 
void orientationChanged ()
 
void fieldOfViewChanged ()
 
void modeChanged ()
 
void imageChanged ()
 
void imageVisibilityChanged (bool)
 
void scalingChanged ()
 
void volumeChanged ()
 
void syncChanged ()
 

Public Member Functions

 Window ()
 
 ~Window ()
 
void parse_arguments ()
 
void add_images (vector< std::unique_ptr< MR::Header > > &list)
 
const QPoint & mouse_position () const
 
const QPoint & mouse_displacement () const
 
Qt::MouseButtons mouse_buttons () const
 
Qt::KeyboardModifiers modifiers () const
 
void selected_colourmap (size_t colourmap, const ColourMapButton &) override
 
void selected_custom_colour (const QColor &colour, const ColourMapButton &) override
 
const Imageimage () const
 
QActionGroup * tools () const
 
int slice () const
 
Mode::Baseget_current_mode () const
 
const Eigen::Vector3f & focus () const
 
const Eigen::Vector3f & target () const
 
float FOV () const
 
int plane () const
 
const Eigen::Quaternionf & orientation () const
 
bool snap_to_image () const
 
Imageimage ()
 
void set_focus (const Eigen::Vector3f &p)
 
void set_target (const Eigen::Vector3f &p)
 
void set_FOV (float value)
 
void set_plane (int p)
 
void set_orientation (const Eigen::Quaternionf &V)
 
void set_scaling (float min, float max)
 
void set_snap_to_image (bool onoff)
 
void set_scaling_all (float min, float max)
 
void set_image_volume (size_t axis, ssize_t index)
 
bool get_image_visibility () const
 
void set_image_visibility (bool flag)
 
bool show_crosshairs () const
 
bool show_comments () const
 
bool show_voxel_info () const
 
bool show_orientation_labels () const
 
bool show_colourbar () const
 
bool sync_focus_on () const
 
void captureGL (std::string filename)
 
GL::Areaglwidget () const
 
GL::Lightinglighting ()
 
void register_camera_interactor (Tool::CameraInteractor *agent=nullptr)
 
Tool::CameraInteractoractive_camera_interactor ()
 

Static Public Member Functions

static void add_commandline_options (MR::App::OptionList &options)
 

Public Attributes

ColourBars colourbar_renderer
 

Static Public Attributes

static Windowmain
 
static bool tools_floating
 

Friends

class ImageBase
 
class Mode::Base
 
class Tool::Base
 
class Tool::ODF
 
class Window::GLArea
 
class GrabContext
 

Detailed Description

Definition at line 54 of file window.h.

Constructor & Destructor Documentation

◆ Window()

MR::GUI::MRView::Window::Window ( )

◆ ~Window()

MR::GUI::MRView::Window::~Window ( )

Member Function Documentation

◆ active_camera_interactor()

Tool::CameraInteractor * MR::GUI::MRView::Window::active_camera_interactor ( )
inline

Definition at line 157 of file window.h.

◆ add_commandline_options()

static void MR::GUI::MRView::Window::add_commandline_options ( MR::App::OptionList options)
static

◆ add_images()

void MR::GUI::MRView::Window::add_images ( vector< std::unique_ptr< MR::Header > > &  list)

◆ captureGL()

void MR::GUI::MRView::Window::captureGL ( std::string  filename)
inline

Definition at line 147 of file window.h.

◆ drawGL

void MR::GUI::MRView::Window::drawGL ( )
slot

◆ fieldOfViewChanged

void MR::GUI::MRView::Window::fieldOfViewChanged ( )
signal

◆ focus()

const Eigen::Vector3f & MR::GUI::MRView::Window::focus ( ) const
inline

Definition at line 112 of file window.h.

◆ focusChanged

void MR::GUI::MRView::Window::focusChanged ( )
signal

◆ FOV()

float MR::GUI::MRView::Window::FOV ( ) const
inline

Definition at line 114 of file window.h.

◆ get_current_mode()

Mode::Base * MR::GUI::MRView::Window::get_current_mode ( ) const
inline

Definition at line 111 of file window.h.

◆ get_image_visibility()

bool MR::GUI::MRView::Window::get_image_visibility ( ) const
inline

Definition at line 136 of file window.h.

◆ glwidget()

GL::Area * MR::GUI::MRView::Window::glwidget ( ) const
inline

Definition at line 152 of file window.h.

◆ image() [1/2]

Image * MR::GUI::MRView::Window::image ( )
inline

Definition at line 118 of file window.h.

◆ image() [2/2]

const Image * MR::GUI::MRView::Window::image ( ) const
inline

Definition at line 97 of file window.h.

◆ imageChanged

void MR::GUI::MRView::Window::imageChanged ( )
signal

◆ imageVisibilityChanged

void MR::GUI::MRView::Window::imageVisibilityChanged ( bool  )
signal

◆ lighting()

GL::Lighting & MR::GUI::MRView::Window::lighting ( )
inline

Definition at line 153 of file window.h.

◆ modeChanged

void MR::GUI::MRView::Window::modeChanged ( )
signal

◆ modifiers()

Qt::KeyboardModifiers MR::GUI::MRView::Window::modifiers ( ) const
inline

Definition at line 92 of file window.h.

◆ mouse_buttons()

Qt::MouseButtons MR::GUI::MRView::Window::mouse_buttons ( ) const
inline

Definition at line 91 of file window.h.

◆ mouse_displacement()

const QPoint & MR::GUI::MRView::Window::mouse_displacement ( ) const
inline

Definition at line 90 of file window.h.

◆ mouse_position()

const QPoint & MR::GUI::MRView::Window::mouse_position ( ) const
inline

Definition at line 89 of file window.h.

◆ on_scaling_changed

void MR::GUI::MRView::Window::on_scaling_changed ( )
slot

◆ orientation()

const Eigen::Quaternionf & MR::GUI::MRView::Window::orientation ( ) const
inline

Definition at line 116 of file window.h.

◆ orientationChanged

void MR::GUI::MRView::Window::orientationChanged ( )
signal

◆ parse_arguments()

void MR::GUI::MRView::Window::parse_arguments ( )

◆ plane()

int MR::GUI::MRView::Window::plane ( ) const
inline

Definition at line 115 of file window.h.

◆ planeChanged

void MR::GUI::MRView::Window::planeChanged ( )
signal

◆ register_camera_interactor()

void MR::GUI::MRView::Window::register_camera_interactor ( Tool::CameraInteractor agent = nullptr)

◆ scalingChanged

void MR::GUI::MRView::Window::scalingChanged ( )
signal

◆ selected_colourmap()

void MR::GUI::MRView::Window::selected_colourmap ( size_t  colourmap,
const ColourMapButton  
)
overridevirtual

◆ selected_custom_colour()

void MR::GUI::MRView::Window::selected_custom_colour ( const QColor &  colour,
const ColourMapButton  
)
overridevirtual

◆ set_focus()

void MR::GUI::MRView::Window::set_focus ( const Eigen::Vector3f &  p)
inline

Definition at line 120 of file window.h.

◆ set_FOV()

void MR::GUI::MRView::Window::set_FOV ( float  value)
inline

Definition at line 122 of file window.h.

◆ set_image_visibility()

void MR::GUI::MRView::Window::set_image_visibility ( bool  flag)

◆ set_image_volume()

void MR::GUI::MRView::Window::set_image_volume ( size_t  axis,
ssize_t  index 
)

◆ set_orientation()

void MR::GUI::MRView::Window::set_orientation ( const Eigen::Quaternionf &  V)
inline

Definition at line 124 of file window.h.

◆ set_plane()

void MR::GUI::MRView::Window::set_plane ( int  p)
inline

Definition at line 123 of file window.h.

◆ set_scaling()

void MR::GUI::MRView::Window::set_scaling ( float  min,
float  max 
)
inline

Definition at line 125 of file window.h.

◆ set_scaling_all()

void MR::GUI::MRView::Window::set_scaling_all ( float  min,
float  max 
)
inline

Definition at line 128 of file window.h.

◆ set_snap_to_image()

void MR::GUI::MRView::Window::set_snap_to_image ( bool  onoff)
inline

Definition at line 126 of file window.h.

◆ set_target()

void MR::GUI::MRView::Window::set_target ( const Eigen::Vector3f &  p)
inline

Definition at line 121 of file window.h.

◆ show_colourbar()

bool MR::GUI::MRView::Window::show_colourbar ( ) const
inline

Definition at line 143 of file window.h.

◆ show_comments()

bool MR::GUI::MRView::Window::show_comments ( ) const
inline

Definition at line 140 of file window.h.

◆ show_crosshairs()

bool MR::GUI::MRView::Window::show_crosshairs ( ) const
inline

Definition at line 139 of file window.h.

◆ show_orientation_labels()

bool MR::GUI::MRView::Window::show_orientation_labels ( ) const
inline

Definition at line 142 of file window.h.

◆ show_voxel_info()

bool MR::GUI::MRView::Window::show_voxel_info ( ) const
inline

Definition at line 141 of file window.h.

◆ slice()

int MR::GUI::MRView::Window::slice ( ) const
inline

Definition at line 104 of file window.h.

◆ sliceChanged

void MR::GUI::MRView::Window::sliceChanged ( )
signal

◆ snap_to_image()

bool MR::GUI::MRView::Window::snap_to_image ( ) const
inline

Definition at line 117 of file window.h.

◆ sync_focus_on()

bool MR::GUI::MRView::Window::sync_focus_on ( ) const
inline

Definition at line 145 of file window.h.

◆ syncChanged

void MR::GUI::MRView::Window::syncChanged ( )
signal

◆ target()

const Eigen::Vector3f & MR::GUI::MRView::Window::target ( ) const
inline

Definition at line 113 of file window.h.

◆ targetChanged

void MR::GUI::MRView::Window::targetChanged ( )
signal

◆ tools()

QActionGroup * MR::GUI::MRView::Window::tools ( ) const
inline

Definition at line 100 of file window.h.

◆ updateGL

void MR::GUI::MRView::Window::updateGL ( )
slot

◆ volumeChanged

void MR::GUI::MRView::Window::volumeChanged ( )
signal

Friends And Related Function Documentation

◆ GrabContext

friend class GrabContext
friend

Definition at line 353 of file window.h.

◆ ImageBase

friend class ImageBase
friend

Definition at line 348 of file window.h.

◆ Mode::Base

friend class Mode::Base
friend

Definition at line 349 of file window.h.

◆ Tool::Base

friend class Tool::Base
friend

Definition at line 350 of file window.h.

◆ Tool::ODF

friend class Tool::ODF
friend

Definition at line 351 of file window.h.

◆ Window::GLArea

friend class Window::GLArea
friend

Definition at line 352 of file window.h.

Member Data Documentation

◆ colourbar_renderer

ColourBars MR::GUI::MRView::Window::colourbar_renderer

Definition at line 154 of file window.h.

◆ main

Window* MR::GUI::MRView::Window::main
static

Definition at line 160 of file window.h.

◆ tools_floating

bool MR::GUI::MRView::Window::tools_floating
static

Definition at line 161 of file window.h.


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