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

base class for plotting a persistence diagram using OpenGL More...

#include <modules/plottinggl/plotters/persistencediagramplotgl.h>

Classes

class  Properties

Public Types

using SelectionCallbackHandle = std::shared_ptr<std::function<SelectionFunc>>
using SelectionFunc = void(const BitSet&)
using ToolTipCallbackHandle = std::shared_ptr<std::function<ToolTipFunc>>
using ToolTipFunc = void(PickingEvent*, size_t)
enum class  Type { Death , Persistence }

Public Member Functions

SelectionCallbackHandle addSelectionChangedCallback (std::function< SelectionFunc > callback)
ToolTipCallbackHandle addToolTipCallback (std::function< ToolTipFunc > callback)
 PersistenceDiagramPlotGL (Processor *processor=nullptr)
void plot (const ivec2 &start, const ivec2 &size, IndexBuffer *indices=nullptr, bool useAxisRanges=false)
void plot (Image &dest, const Image &src, IndexBuffer *indices=nullptr, bool useAxisRanges=false)
void plot (Image &dest, IndexBuffer *indices=nullptr, bool useAxisRanges=false)
void plot (ImageOutport &dest, ImageInport &src, IndexBuffer *indices=nullptr, bool useAxisRanges=false)
void plot (ImageOutport &dest, IndexBuffer *indices=nullptr, bool useAxisRanges=false)
void setColorData (std::shared_ptr< const BufferBase > buffer)
void setIndexColumn (std::shared_ptr< const TemplateColumn< uint32_t > > indexcol)
void setSelectedIndices (const BitSet &indices)
void setXAxis (std::shared_ptr< const Column > col)
void setXAxisData (std::shared_ptr< const BufferBase > buffer)
void setXAxisLabel (const std::string &label)
void setYAxis (std::shared_ptr< const Column > col, Type type=Type::Death)
void setYAxisData (std::shared_ptr< const BufferBase > buffer)
void setYAxisLabel (const std::string &label)

Public Attributes

Shader lineShader_
Shader pointShader_
Properties properties_

Protected Member Functions

uint32_t getGlobalPickId (uint32_t localIndex) const
void objectPicked (PickingEvent *p)
void plot (const size2_t &dims, IndexBuffer *indices, bool useAxisRanges)
void renderAxis (const size2_t &dims)
void renderLines (const size2_t &dims, const std::vector< uint32_t > &diagonalIndices, const std::vector< uint32_t > &indices)
void renderPoints (const size2_t &dims, const std::vector< uint32_t > &indices)

Protected Attributes

std::array< AxisRenderer, 2 > axisRenderers_
std::shared_ptr< const BufferBasecolor_
std::set< uint32_t > hoveredIndices_
std::shared_ptr< const TemplateColumn< uint32_t > > indexColumn_
vec2 minmaxC_
vec2 minmaxR_
vec2 minmaxX_
vec2 minmaxY_
PickingMapper picking_
Processorprocessor_
BitSet selectedIndices_
Dispatcher< SelectionFunc > selectionChangedCallback_
Dispatcher< ToolTipFunc > tooltipCallback_
Type type = Type::Death
std::shared_ptr< const BufferBasexAxis_
std::shared_ptr< const BufferBaseyAxis_

Detailed Description

base class for plotting a persistence diagram using OpenGL


The documentation for this class was generated from the following file:
  • modules/plottinggl/include/modules/plottinggl/plotters/persistencediagramplotgl.h