Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::plot::BoxSelectionRenderer Class Reference

Renders a 2D rectangle in screen space. Use in combination with BoxSelectionInteractionHandler. More...

#include <boxselectionrenderer.h>

Public Member Functions

 BoxSelectionRenderer (const BoxSelectionProperty &settings)
 
void render (std::optional< std::array< dvec2, 2 > > dragRect, size2_t screenDim)
 

Protected Types

using PositionMesh = TypedMesh<buffertraits::PositionsBuffer2D>
 

Protected Attributes

const BoxSelectionPropertysettings_
 
LineSettings lineSettings_
 
algorithm::LineRenderer lineRenderer_
 
PositionMesh dragRectMesh_
 

Detailed Description

Renders a 2D rectangle in screen space. Use in combination with BoxSelectionInteractionHandler.

See also
BoxSelectionInteractionHandler

Member Data Documentation

◆ dragRectMesh_

PositionMesh inviwo::plot::BoxSelectionRenderer::dragRectMesh_
protected
Initial value:
{DrawType::Lines,
ConnectivityType::Loop,
{
{vec2{0.f, 0.f}},
{vec2{1.f, 0.f}},
{vec2{1.f, 1.f}},
{vec2{0.f, 1.f}},
},
{0, 1, 2, 3}}

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