MeshLib
 
Loading...
Searching...
No Matches
MR::ViewportGL Class Reference

#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 &)
 
ViewportGLoperator= (const ViewportGL &)
 
MRVIEWER_API ViewportGL (ViewportGL &&other) noexcept
 
ViewportGLoperator= (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 &params, const std::vector< Vector2i > &picks) const
 
std::vector< unsigned > findUniqueObjectsInRect (const PickParameters &params, const Box2i &rect, int maxRenderResolutionSide) const
 
ScaledPickRes pickObjectsInRect (const PickParameters &params, const Box2i &rect, int maxRenderResolutionSide) const
 

Member Typedef Documentation

◆ BasePickResults

◆ GLfloat

typedef float MR::ViewportGL::GLfloat

◆ GLuint

typedef unsigned int MR::ViewportGL::GLuint

◆ PickResults

Constructor & Destructor Documentation

◆ ViewportGL() [1/3]

MR::ViewportGL::ViewportGL ( )
default

◆ ViewportGL() [2/3]

MR::ViewportGL::ViewportGL ( const ViewportGL & )
inline

◆ ViewportGL() [3/3]

MRVIEWER_API MR::ViewportGL::ViewportGL ( ViewportGL && other)
noexcept

◆ ~ViewportGL()

MR::ViewportGL::~ViewportGL ( )

Member Function Documentation

◆ checkInit()

bool MR::ViewportGL::checkInit ( ) const

◆ drawBorder()

void MR::ViewportGL::drawBorder ( const Box2f & rect,
const Color & color ) const

◆ fillViewport()

void MR::ViewportGL::fillViewport ( const Box2f & rect,
const Color & color ) const

◆ findUniqueObjectsInRect()

std::vector< unsigned > MR::ViewportGL::findUniqueObjectsInRect ( const PickParameters & params,
const Box2i & rect,
int maxRenderResolutionSide ) const

◆ free()

void MR::ViewportGL::free ( )

◆ init()

void MR::ViewportGL::init ( )

◆ operator=() [1/2]

ViewportGL & MR::ViewportGL::operator= ( const ViewportGL & )
inline

◆ operator=() [2/2]

ViewportGL & MR::ViewportGL::operator= ( ViewportGL && )
noexcept

◆ pickObjects()

PickResults MR::ViewportGL::pickObjects ( const PickParameters & params,
const std::vector< Vector2i > & picks ) const

◆ pickObjectsInRect()

ScaledPickRes MR::ViewportGL::pickObjectsInRect ( const PickParameters & params,
const Box2i & rect,
int maxRenderResolutionSide ) const

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