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

#include "gui/projection.h"

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

Public Member Functions

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::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 37 of file projection.h.

Member Function Documentation

◆ depth_of()

float MR::GUI::ModelViewProjection::depth_of ( const Eigen::Vector3f &  x) const
inline

Definition at line 73 of file projection.h.

◆ height()

GLint MR::GUI::ModelViewProjection::height ( ) const
inline

Definition at line 69 of file projection.h.

◆ model_to_screen()

Eigen::Vector3f MR::GUI::ModelViewProjection::model_to_screen ( const Eigen::Vector3f &  x) const
inline

Definition at line 79 of file projection.h.

◆ model_to_screen_direction()

Eigen::Vector3f MR::GUI::ModelViewProjection::model_to_screen_direction ( const Eigen::Vector3f &  dir) const
inline

Definition at line 91 of file projection.h.

◆ screen_normal()

Eigen::Vector3f MR::GUI::ModelViewProjection::screen_normal ( ) const
inline

Definition at line 133 of file projection.h.

◆ screen_to_model() [1/6]

Eigen::Vector3f MR::GUI::ModelViewProjection::screen_to_model ( const Eigen::Vector3f &  x) const
inline

Definition at line 113 of file projection.h.

◆ screen_to_model() [2/6]

Eigen::Vector3f MR::GUI::ModelViewProjection::screen_to_model ( const Eigen::Vector3f &  x,
const Eigen::Vector3f &  depth 
) const
inline

Definition at line 121 of file projection.h.

◆ screen_to_model() [3/6]

Eigen::Vector3f MR::GUI::ModelViewProjection::screen_to_model ( const Eigen::Vector3f &  x,
float  depth 
) const
inline

Definition at line 117 of file projection.h.

◆ screen_to_model() [4/6]

Eigen::Vector3f MR::GUI::ModelViewProjection::screen_to_model ( const QPoint &  x,
const Eigen::Vector3f &  depth 
) const
inline

Definition at line 129 of file projection.h.

◆ screen_to_model() [5/6]

Eigen::Vector3f MR::GUI::ModelViewProjection::screen_to_model ( const QPoint &  x,
float  depth 
) const
inline

Definition at line 125 of file projection.h.

◆ screen_to_model() [6/6]

Eigen::Vector3f MR::GUI::ModelViewProjection::screen_to_model ( float  x,
float  y,
float  depth 
) const
inline

Definition at line 101 of file projection.h.

◆ screen_to_model_direction() [1/5]

Eigen::Vector3f MR::GUI::ModelViewProjection::screen_to_model_direction ( const Eigen::Vector3f &  dx,
const Eigen::Vector3f &  x 
) const
inline

Definition at line 150 of file projection.h.

◆ screen_to_model_direction() [2/5]

Eigen::Vector3f MR::GUI::ModelViewProjection::screen_to_model_direction ( const Eigen::Vector3f &  dx,
float  x 
) const
inline

Definition at line 146 of file projection.h.

◆ screen_to_model_direction() [3/5]

Eigen::Vector3f MR::GUI::ModelViewProjection::screen_to_model_direction ( const QPoint &  dx,
const Eigen::Vector3f &  x 
) const
inline

Definition at line 158 of file projection.h.

◆ screen_to_model_direction() [4/5]

Eigen::Vector3f MR::GUI::ModelViewProjection::screen_to_model_direction ( const QPoint &  dx,
float  x 
) const
inline

Definition at line 154 of file projection.h.

◆ screen_to_model_direction() [5/5]

Eigen::Vector3f MR::GUI::ModelViewProjection::screen_to_model_direction ( float  x,
float  y,
float  depth 
) const
inline

Definition at line 137 of file projection.h.

◆ set()

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

Definition at line 47 of file projection.h.

◆ set_viewport()

void MR::GUI::ModelViewProjection::set_viewport ( int  x,
int  y,
int  w,
int  h 
)
inline

Definition at line 40 of file projection.h.

◆ width()

GLint MR::GUI::ModelViewProjection::width ( ) const
inline

Definition at line 65 of file projection.h.

◆ x_position()

GLint MR::GUI::ModelViewProjection::x_position ( ) const
inline

Definition at line 57 of file projection.h.

◆ y_position()

GLint MR::GUI::ModelViewProjection::y_position ( ) const
inline

Definition at line 61 of file projection.h.

Member Data Documentation

◆ iMV

GL::mat4 MR::GUI::ModelViewProjection::iMV
protected

Definition at line 163 of file projection.h.

◆ iMVP

GL::mat4 MR::GUI::ModelViewProjection::iMVP
protected

Definition at line 163 of file projection.h.

◆ iP

GL::mat4 MR::GUI::ModelViewProjection::iP
protected

Definition at line 163 of file projection.h.

◆ MV

GL::mat4 MR::GUI::ModelViewProjection::MV
protected

Definition at line 163 of file projection.h.

◆ MVP

GL::mat4 MR::GUI::ModelViewProjection::MVP
protected

Definition at line 163 of file projection.h.

◆ P

GL::mat4 MR::GUI::ModelViewProjection::P
protected

Definition at line 163 of file projection.h.

◆ viewport

GLint MR::GUI::ModelViewProjection::viewport[4]
protected

Definition at line 164 of file projection.h.


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