Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::plot::ScatterPlotGL Class Reference
+ Inheritance diagram for inviwo::plot::ScatterPlotGL:

Classes

struct  Points
 
class  Properties
 

Public Types

enum class  SortingOrder { Ascending , Descending }
 
using ToolTipFunc = void(PickingEvent*, size_t)
 
using ToolTipCallbackHandle = std::shared_ptr<std::function<ToolTipFunc>>
 
using HighlightFunc = void(const BitSet&)
 
using HighlightCallbackHandle = std::shared_ptr<std::function<HighlightFunc>>
 
using SelectionFunc = void(const BitSet&)
 
using SelectionCallbackHandle = std::shared_ptr<std::function<SelectionFunc>>
 

Public Member Functions

 ScatterPlotGL (Processor *processor=nullptr)
 
void plot (Image &dest, bool useAxisRanges=false)
 
void plot (Image &dest, const Image &src, bool useAxisRanges=false)
 
void plot (ImageOutport &dest, bool useAxisRanges=false)
 
void plot (ImageOutport &dest, ImageInport &src, bool useAxisRanges=false)
 
void plot (const ivec2 &start, const ivec2 &size, bool useAxisRanges=false)
 
void setXAxisLabel (const std::string &label)
 
void setYAxisLabel (const std::string &label)
 
void setXAxis (const Column *col)
 
void setYAxis (const Column *col)
 
void setXAxisData (const Column *col)
 
void setYAxisData (const Column *col)
 
void setColorData (const Column *col)
 
void setRadiusData (const Column *col)
 
void setSortingData (const Column *col)
 
void setIndexColumn (std::shared_ptr< const TemplateColumn< uint32_t > > indexcol)
 
void setSortingOrder (SortingOrder order)
 
void setIndices (const BitSet &filtered, const BitSet &selected, const BitSet &highlighted)
 
void setFilteredIndices (const BitSet &indices)
 
void setSelectedIndices (const BitSet &indices)
 
void setHighlightedIndices (const BitSet &indices)
 
ToolTipCallbackHandle addToolTipCallback (std::function< ToolTipFunc > callback)
 
HighlightCallbackHandle addHighlightChangedCallback (std::function< HighlightFunc > callback)
 
SelectionCallbackHandle addSelectionChangedCallback (std::function< SelectionFunc > callback)
 
SelectionCallbackHandle addFilteringChangedCallback (std::function< SelectionFunc > callback)
 
virtual void invokeEvent (Event *event) override
 
virtual std::string getClassIdentifier () const override
 
- Public Member Functions inherited from inviwo::InteractionHandler
virtual void serialize (Serializer &s) const
 
virtual void deserialize (Deserializer &d)
 
- Public Member Functions inherited from inviwo::EventListener
- Public Member Functions inherited from inviwo::Serializable

Public Attributes

Properties properties_
 
Shader shader_
 

Protected Member Functions

void plot (const size2_t &dims, bool useAxisRanges)
 
void attachVertexAttributes ()
 
void setShaderUniforms (TextureUnitContainer &cont, const size2_t &dims, bool useAxisRanges)
 
void renderAxis (const size2_t &dims)
 
void objectPicked (PickingEvent *p)
 
uint32_t getGlobalPickId (uint32_t localIndex) const
 
void partitionData ()
 

Protected Attributes

Points points_
 
std::shared_ptr< const TemplateColumn< uint32_t > > indexColumn_
 
SortingOrder sortOrder_ = SortingOrder::Ascending
 
vec2 minmaxX_ = vec2(0.0f, 1.0f)
 
vec2 minmaxY_ = vec2(0.0f, 1.0f)
 
vec2 minmaxC_ = vec2(0.0f, 1.0f)
 
vec2 minmaxR_ = vec2(0.0f, 1.0f)
 
std::array< AxisRenderer, 2 > axisRenderers_
 
PickingMapper picking_
 
BitSet filtered_
 
BitSet selected_
 
BitSet highlighted_
 
bool partitionDirty_
 
Processorprocessor_
 
Dispatcher< ToolTipFunc > tooltipCallback_
 
Dispatcher< HighlightFunc > highlightChangedCallback_
 
Dispatcher< SelectionFunc > selectionChangedCallback_
 
Dispatcher< SelectionFunc > filteringChangedCallback_
 
BoxSelectionInteractionHandler::SelectionCallbackHandle boxSelectionChangedCallback_
 
BoxSelectionInteractionHandler::SelectionCallbackHandle boxFilteringChangedCallback_
 
BoxSelectionInteractionHandler boxSelectionHandler_
 
BoxSelectionRenderer selectionRectRenderer_
 

Member Function Documentation

◆ getClassIdentifier()

virtual std::string inviwo::plot::ScatterPlotGL::getClassIdentifier ( ) const
inlineoverridevirtual

◆ invokeEvent()

virtual void inviwo::plot::ScatterPlotGL::invokeEvent ( Event * event)
overridevirtual

Reimplemented from inviwo::EventListener.

◆ setFilteredIndices()

void inviwo::plot::ScatterPlotGL::setFilteredIndices ( const BitSet & indices)

Set indices of data points that should be hidden.

Precondition
Indices must be zero-based, that is idx in [0, numDataPoints).
See also
setIndices setSelectedIndices setHighlightedIndices

◆ setHighlightedIndices()

void inviwo::plot::ScatterPlotGL::setHighlightedIndices ( const BitSet & indices)

Set indices of data points that should be highlighted.

Precondition
Indices must be zero-based, that is idx in [0, numDataPoints).
See also
setIndices setFilteredIndices setSelectedIndices

◆ setIndices()

void inviwo::plot::ScatterPlotGL::setIndices ( const BitSet & filtered,
const BitSet & selected,
const BitSet & highlighted )

Set the brushed indices for filtered, selected, and highlighted data points.

Precondition
Indices must be zero-based, that is idx in [0, numDataPoints).
See also
setFilteredIndices setSelectedIndices setHighlightedIndices

◆ setSelectedIndices()

void inviwo::plot::ScatterPlotGL::setSelectedIndices ( const BitSet & indices)

Set indices of data points that are selected.

Precondition
Indices must be zero-based, that is idx in [0, numDataPoints).
See also
setIndices setFilteredIndices setHighlightedIndices

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