ImFusion SDK 4.3
GraphDataController::FeatureLegend Class Referencefinal

#include <ImFusion/Graph/GraphDataController.h>

Provides a colormap legend overlay for a graph. More...

+ Inheritance diagram for GraphDataController::FeatureLegend:

Detailed Description

Provides a colormap legend overlay for a graph.

Public Member Functions

 FeatureLegend (ImageView3D *view)
 
void setLabels (double minVal, double maxVal)
 Set legend labels based on given value range.
 
void setVisible (bool visible)
 
void updateForFeature (Graph *graph, const std::string &featureName, GlColormap::Preset preset, double min, double max)
 Update the legend based on a given feature and color mapping.
 
FeatureLegendoperator= (const FeatureLegend &)=delete
 
 FeatureLegend (FeatureLegend &&) noexcept=default
 
FeatureLegendoperator= (FeatureLegend &&) noexcept=default
 
bool operator== (const FeatureLegend &rhs) const noexcept
 
GUI::ColorBarOverlayoverlay () noexcept
 
const GUI::ColorBarOverlayoverlay () const noexcept
 
- Public Member Functions inherited from TemporaryDataComponent
std::string id () const override
 Returns a unique string identifier for this type of data component.
 
std::unique_ptr< DataComponentBaseclone () const override
 Creates a clone of this data component.
 
bool assign (const DataComponentBase &) override
 Assigns the content of other to this data component.
 
bool equals (const DataComponentBase &) const override
 Compares this data component to other for equality.
 
void configure (const Properties *) override
 Configure this object instance by de-serializing the given Properties.
 
void configuration (Properties *) const override
 Serialize the current object configuration into the given Properties object.
 
- Public Member Functions inherited from Configurable
virtual void configureDefaults ()
 Retrieve the properties of this object, replaces values with their defaults and sets it again.
 
void registerParameter (ParameterBase *param)
 Register the given Parameter or SubProperty, so that it will be configured during configure()/configuration().
 
void unregisterParameter (const ParameterBase *param)
 Remove the given Parameter or SubProperty from the list of registered parameters.
 
 Configurable (const Configurable &rhs)
 
 Configurable (Configurable &&rhs) noexcept
 
Configurableoperator= (const Configurable &)
 
Configurableoperator= (Configurable &&) noexcept
 

Additional Inherited Members

- Public Attributes inherited from Configurable
Signal signalParametersChanged
 Emitted whenever one of the registered Parameters' or SubPropertys' signalValueChanged signal was emitted.
 
- Protected Member Functions inherited from DataComponentBase
 DataComponentBase (const DataComponentBase &)=default
 
DataComponentBaseoperator= (const DataComponentBase &other)=default
 
- Protected Attributes inherited from Configurable
std::vector< Paramm_params
 List of all registered Parameter and SubProperty instances.
 

Member Function Documentation

◆ setLabels()

void setLabels ( double minVal,
double maxVal )

Set legend labels based on given value range.

This is fixed to generating four labels, could be generalized in the future.


The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close