![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GUI/LiftChartOverlay.h>
Wrapper of a GlLiftChartOverlay implementing the ViewOverlay interface so that it can be hosted inside a GUI::View. More...
Wrapper of a GlLiftChartOverlay implementing the ViewOverlay interface so that it can be hosted inside a GUI::View.
Public Member Functions | |
LiftChartOverlay (SliceView *view) | |
LiftChartOverlay (ImageView2D *view) | |
GlLiftChartOverlay * | overlay () |
void | addObject (const GlObject *object, const vec3 &color) |
void | removeObject (const GlObject *object) |
void | changeObjectColor (const GlObject *object, const vec3 &color) |
void | clear () |
![]() | |
ViewOverlay (std::unique_ptr< GlOverlay > glOverlay) | |
Instantiate a new ViewOverlay taking ownership of the underlying GlOverlay which must not be null. | |
virtual void | render () |
Calls GlOverlay::render() on the underlying glOverlay() using the current viewport() shrinked by margin(). | |
virtual EventResult | handleInputEvent (const InputEvent &event) |
Handle a user event received from the parent View. | |
const GlOverlay & | glOverlay () const |
Get a pointer to the underlying overlay. | |
GlOverlay & | glOverlay () |
Get a pointer to the underlying overlay. | |
const GL::Viewport & | viewport () |
Returns the area where this overlay is rendered. | |
bool | isVisible () const |
Returns the visibility of this overlay. | |
virtual void | setVisible (bool value) |
Sets the visibility of this overlay. | |
const vec2i & | margin () const |
Returns the margin in pixels between the border of the drawing area and the border of the overlay content. | |
void | setMargin (const vec2i &value) |
Sets the margin in pixels between the border of the drawing area and the border of the overlay content. | |
vec2i | minimalSizeHint () const |
Returns the underlying GlOverlay's minimal size hint plus the configured margin(). | |
vec2i | sizeHint () const |
Returns the underlying GlOverlay's size hint plus the configured margin(). | |
void | configure (const Properties *p) override |
Configure this object instance by de-serializing the given Properties. | |
void | configuration (Properties *p) const override |
Serialize the current object configuration into the given Properties object. | |
![]() | |
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 | |
Configurable & | operator= (const Configurable &) |
Configurable & | operator= (Configurable &&) noexcept |
![]() | |
SignalReceiver ()=default | |
Default constructor. | |
SignalReceiver (const SignalReceiver &other) | |
Copy constructor, does not copy any existing signal connections from other. | |
SignalReceiver & | operator= (SignalReceiver rhs) |
Assignment operator, disconnects all existing connections, does not copy any existing signal connections from rhs. | |
virtual | ~SignalReceiver () |
Virtual destructor disconnects from all connected signals. | |
Additional Inherited Members | |
![]() | |
enum class | Anchor { BottomLeft = 0 , BottomRight = 1 , TopLeft = 2 , TopRight = 3 , Top = 4 , Bottom = 5 , Left = 6 , Right = 7 , Fill = 8 } |
Anchor point of the overlay in the parent View. More... | |
enum class | LayoutDirection { Horizontal = 0 , Vertical = 1 } |
Layout direction when stacking multiple ViewOverlays at the same anchor. | |
![]() | |
Signal | signalUpdateRequested |
Emitted in order to notify the parent Display that it's contents have changed and need to be re-rendered. | |
Signal | signalLayoutNeeded |
Emitted whenever the size hints or margin have changed to notify the parent View that it needs to perform overlay layouting. | |
![]() | |
Signal | signalParametersChanged |
Emitted whenever one of the registered Parameters' or SubPropertys' signalValueChanged signal was emitted. | |
![]() | |
void | disconnectAll () |
Disconnects all existing connections. | |
![]() | |
std::unique_ptr< GlOverlay > | m_glOverlay |
GL::Viewport | m_viewport = {} |
vec2i | m_margin = vec2i::Zero() |
bool | m_isVisible = true |
![]() | |
std::vector< Param > | m_params |
List of all registered Parameter and SubProperty instances. | |