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

#include "gui/projection.h"

Inheritance diagram for MR::GUI::Projection:
MR::GUI::ModelViewProjection

Public Member Functions

 Projection (GL::Area *parent, const GL::Font &font)
 
void set_viewport (const QWidget &frame, int x, int y, int w, int h)
 
void set_viewport (const QWidget &) const
 
void render_crosshairs (const Eigen::Vector3f &focus) const
 
void setup_render_text (float red=1.0, float green=1.0, float blue=0.0) const
 
void done_render_text () const
 
void render_text (int x, int y, const std::string &text) const
 
void render_text_align (int x, int y, const std::string &text, int halign=0, int valign=0) const
 
void render_text_inset (int x, int y, const std::string &text, int inset=-1) const
 
void render_text (const std::string &text, int position, int line=0) const
 
void draw_orientation_labels () const
 
const GL::mat4modelview_projection () const
 
const GL::mat4modelview_projection_inverse () const
 
const GL::mat4modelview () const
 
const GL::mat4modelview_inverse () const
 
const GL::mat4projection () const
 
const GL::mat4projection_inverse () const
 
void set (GL::Shader::Program &shader_program) const
 
void set (const GL::mat4 &modelview, const GL::mat4 &projection)
 
- Public Member Functions inherited from MR::GUI::ModelViewProjection
void set_viewport (int x, int y, int w, int h)
 
void set (const GL::mat4 &modelview, const GL::mat4 &projection)
 
GLint x_position () const
 
GLint y_position () const
 
GLint width () const
 
GLint height () const
 
float depth_of (const Eigen::Vector3f &x) const
 
Eigen::Vector3f model_to_screen (const Eigen::Vector3f &x) const
 
Eigen::Vector3f model_to_screen_direction (const Eigen::Vector3f &dir) const
 
Eigen::Vector3f screen_to_model (float x, float y, float depth) const
 
Eigen::Vector3f screen_to_model (const Eigen::Vector3f &x) const
 
Eigen::Vector3f screen_to_model (const Eigen::Vector3f &x, float depth) const
 
Eigen::Vector3f screen_to_model (const Eigen::Vector3f &x, const Eigen::Vector3f &depth) const
 
Eigen::Vector3f screen_to_model (const QPoint &x, float depth) const
 
Eigen::Vector3f screen_to_model (const QPoint &x, const Eigen::Vector3f &depth) const
 
Eigen::Vector3f screen_normal () const
 
Eigen::Vector3f screen_to_model_direction (float x, float y, float depth) const
 
Eigen::Vector3f screen_to_model_direction (const Eigen::Vector3f &dx, float x) const
 
Eigen::Vector3f screen_to_model_direction (const Eigen::Vector3f &dx, const Eigen::Vector3f &x) const
 
Eigen::Vector3f screen_to_model_direction (const QPoint &dx, float x) const
 
Eigen::Vector3f screen_to_model_direction (const QPoint &dx, const Eigen::Vector3f &x) const
 

Protected Attributes

GL::Areaglarea
 
const GL::Fontfont
 
std::shared_ptr< Crosshaircrosshair
 
- Protected Attributes inherited from MR::GUI::ModelViewProjection
GL::mat4 MV
 
GL::mat4 iMV
 
GL::mat4 P
 
GL::mat4 iP
 
GL::mat4 MVP
 
GL::mat4 iMVP
 
GLint viewport [4]
 

Detailed Description

Definition at line 172 of file projection.h.

Constructor & Destructor Documentation

◆ Projection()

MR::GUI::Projection::Projection ( GL::Area parent,
const GL::Font font 
)
inline

Definition at line 175 of file projection.h.

Member Function Documentation

◆ done_render_text()

void MR::GUI::Projection::done_render_text ( ) const
inline

Definition at line 201 of file projection.h.

◆ draw_orientation_labels()

void MR::GUI::Projection::draw_orientation_labels ( ) const

◆ modelview()

const GL::mat4 & MR::GUI::Projection::modelview ( ) const
inline

Definition at line 269 of file projection.h.

◆ modelview_inverse()

const GL::mat4 & MR::GUI::Projection::modelview_inverse ( ) const
inline

Definition at line 270 of file projection.h.

◆ modelview_projection()

const GL::mat4 & MR::GUI::Projection::modelview_projection ( ) const
inline

Definition at line 267 of file projection.h.

◆ modelview_projection_inverse()

const GL::mat4 & MR::GUI::Projection::modelview_projection_inverse ( ) const
inline

Definition at line 268 of file projection.h.

◆ projection()

const GL::mat4 & MR::GUI::Projection::projection ( ) const
inline

Definition at line 271 of file projection.h.

◆ projection_inverse()

const GL::mat4 & MR::GUI::Projection::projection_inverse ( ) const
inline

Definition at line 272 of file projection.h.

◆ render_crosshairs()

void MR::GUI::Projection::render_crosshairs ( const Eigen::Vector3f &  focus) const
inline

Definition at line 196 of file projection.h.

◆ render_text() [1/2]

void MR::GUI::Projection::render_text ( const std::string &  text,
int  position,
int  line = 0 
) const
inline

Definition at line 243 of file projection.h.

◆ render_text() [2/2]

void MR::GUI::Projection::render_text ( int  x,
int  y,
const std::string &  text 
) const
inline

Definition at line 203 of file projection.h.

◆ render_text_align()

void MR::GUI::Projection::render_text_align ( int  x,
int  y,
const std::string &  text,
int  halign = 0,
int  valign = 0 
) const
inline

Definition at line 207 of file projection.h.

◆ render_text_inset()

void MR::GUI::Projection::render_text_inset ( int  x,
int  y,
const std::string &  text,
int  inset = -1 
) const
inline

Definition at line 222 of file projection.h.

◆ set() [1/2]

void MR::GUI::ModelViewProjection::set ( const GL::mat4 modelview,
const GL::mat4 projection 
)
inline

Definition at line 47 of file projection.h.

◆ set() [2/2]

void MR::GUI::Projection::set ( GL::Shader::Program shader_program) const
inline

Definition at line 277 of file projection.h.

◆ set_viewport() [1/2]

void MR::GUI::Projection::set_viewport ( const QWidget &  ) const
inline

Definition at line 191 of file projection.h.

◆ set_viewport() [2/2]

void MR::GUI::Projection::set_viewport ( const QWidget &  frame,
int  x,
int  y,
int  w,
int  h 
)
inline

Definition at line 180 of file projection.h.

◆ setup_render_text()

void MR::GUI::Projection::setup_render_text ( float  red = 1.0,
float  green = 1.0,
float  blue = 0.0 
) const
inline

Definition at line 198 of file projection.h.

Member Data Documentation

◆ crosshair

std::shared_ptr<Crosshair> MR::GUI::Projection::crosshair
protected

Definition at line 285 of file projection.h.

◆ font

const GL::Font& MR::GUI::Projection::font
protected

Definition at line 284 of file projection.h.

◆ glarea

GL::Area* MR::GUI::Projection::glarea
protected

Definition at line 283 of file projection.h.


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