17#ifndef __gui_dwi_render_frame_h__
18#define __gui_dwi_render_frame_h__
51 void set (
const Eigen::VectorXf& new_values) {
62 delete dirs.release();
91 assert (
mode == mode_t::SH);
98 assert (
mode == mode_t::SH ||
mode == mode_t::TENSOR);
107 delete dirs.release();
115 delete dirs.release();
119 void set_text (
const std::string& text_to_display) {
120 text = text_to_display;
134 void screenshot (
int oversampling,
const std::string& image_name);
141 std::unique_ptr<MR::DWI::Directions::Set>
dirs;
150 std::unique_ptr<QImage>
pix;
void screenshot(int oversampling, const std::string &image_name)
bool get_show_axes() const
void mouseMoveEvent(QMouseEvent *event) override
bool get_use_lighting() const
bool get_hide_neg_lobes() const
void set_mode(mode_t new_mode)
GL::Shader::Program axes_shader
void set_dixels(const MR::DWI::Directions::Set &directions)
void set_scale(float new_scale)
RenderFrame(QWidget *parent)
std::unique_ptr< MR::DWI::Directions::Set > dirs
std::string screenshot_name
void set_rotation(const GL::mat4 &rotation)
GL::VertexArrayObject axes_VAO
void set_color_by_dir(bool yesno=true)
std::unique_ptr< QImage > pix
void set_use_lighting(bool yesno=true)
Eigen::Quaternionf orientation
void set_hide_neg_values(bool yesno=true)
void set_show_axes(bool yesno=true)
void set(const Eigen::VectorXf &new_values)
bool recompute_amplitudes
void wheelEvent(QWheelEvent *event) override
std::unique_ptr< GLubyte[]> framebuffer
virtual void paintGL() override
void mousePressEvent(QMouseEvent *event) override
virtual void initializeGL() override
bool get_color_by_dir() const
bool get_normalise() const
virtual void resizeGL(int w, int h) override
void set_text(const std::string &text_to_display)
constexpr default_type NaN