#include <MRViewportGL.h>
Classes | |
struct | BasePickResult |
struct | PickParameters |
struct | PickResult |
struct | ScaledPickRes |
Public Types | |
typedef unsigned int | GLuint |
typedef float | GLfloat |
using | PickResults = std::vector<PickResult> |
using | BasePickResults = std::vector<BasePickResult> |
Public Member Functions | |
ViewportGL ()=default | |
ViewportGL (const ViewportGL &) | |
ViewportGL & | operator= (const ViewportGL &) |
MRVIEWER_API | ViewportGL (ViewportGL &&other) noexcept |
ViewportGL & | operator= (ViewportGL &&) noexcept |
~ViewportGL () | |
void | init () |
void | free () |
void | drawBorder (const Box2f &rect, const Color &color) const |
void | fillViewport (const Box2f &rect, const Color &color) const |
bool | checkInit () const |
PickResults | pickObjects (const PickParameters ¶ms, const std::vector< Vector2i > &picks) const |
std::vector< unsigned > | findUniqueObjectsInRect (const PickParameters ¶ms, const Box2i &rect, int maxRenderResolutionSide) const |
ScaledPickRes | pickObjectsInRect (const PickParameters ¶ms, const Box2i &rect, int maxRenderResolutionSide) const |
using MR::ViewportGL::BasePickResults = std::vector<BasePickResult> |
typedef float MR::ViewportGL::GLfloat |
typedef unsigned int MR::ViewportGL::GLuint |
using MR::ViewportGL::PickResults = std::vector<PickResult> |
|
default |
|
inline |
|
noexcept |
MR::ViewportGL::~ViewportGL | ( | ) |
bool MR::ViewportGL::checkInit | ( | ) | const |
void MR::ViewportGL::drawBorder | ( | const Box2f & | rect, |
const Color & | color ) const |
void MR::ViewportGL::fillViewport | ( | const Box2f & | rect, |
const Color & | color ) const |
std::vector< unsigned > MR::ViewportGL::findUniqueObjectsInRect | ( | const PickParameters & | params, |
const Box2i & | rect, | ||
int | maxRenderResolutionSide ) const |
void MR::ViewportGL::free | ( | ) |
void MR::ViewportGL::init | ( | ) |
|
inline |
|
noexcept |
PickResults MR::ViewportGL::pickObjects | ( | const PickParameters & | params, |
const std::vector< Vector2i > & | picks ) const |
ScaledPickRes MR::ViewportGL::pickObjectsInRect | ( | const PickParameters & | params, |
const Box2i & | rect, | ||
int | maxRenderResolutionSide ) const |