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 Attributes

const BoxSelectionPropertysettings_
 
LineSettings lineSettings_
 
algorithm::LineRenderer lineRenderer_
 
vec4 color_
 Dummy color until line color can be set using uniform.
 
ColoredMesh dragRectMesh_
 

Detailed Description

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

See also
BoxSelectionInteractionHandler

Member Data Documentation

◆ dragRectMesh_

ColoredMesh inviwo::plot::BoxSelectionRenderer::dragRectMesh_
protected
Initial value:
= ColoredMesh(DrawType::Lines, ConnectivityType::Strip,
{{vec3{0.f, 0.f, 0.f}, vec4{0.5f, 0.5f, 0.5f, 1.f}},
{vec3{1.f, 0.f, 0.f}, vec4{0.5f, 0.5f, 0.5f, 1.f}},
{vec3{1.f, 1.f, 0.f}, vec4{0.5f, 0.5f, 0.5f, 1.f}},
{vec3{0.f, 1.f, 0.f}, vec4{0.5f, 0.5f, 0.5f, 1.f}}},
{0, 1, 2, 3, 0})
TypedMesh< buffertraits::PositionsBuffer, buffertraits::ColorsBuffer > ColoredMesh
Definition typedmesh.h:611

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