33#include <NDEVR/WidgetOptions.h>
34#include <NDEVR/Bounds.h>
35#include <NDEVR/VectorFunctions.h>
37#include <QApplication>
38#include <QStylePainter>
39#include <QPropertyAnimation>
102 void startAnimation();
104 QPropertyAnimation* m_move_animation;
107 enum QEasingCurve::Type m_animation_type;
110 double m_animation_percent;
A specification of upper and lower bounds in N-dimensions.
void moveHighlight(QWidget *widget)
Moves the highlight bar to cover the given widget with an animated transition.
void setAnimationPercent(double animation_percent)
Sets the current animation progress percentage.
void paintEvent(QPaintEvent *) override
Paints the highlight bar at the current interpolated position.
Bounds< 1, int > currentBounds() const
Returns the current interpolated bounds of the highlight bar.
QSize sizeHint() const override
Returns the recommended size for this highlight bar widget.
SelectionHighlightBar(QWidget *parent=nullptr)
Constructs a SelectionHighlightBar with the given parent widget.
void setVertical(bool vertical)
Sets whether the highlight bar is oriented vertically or horizontally.
double animationPercent() const
Returns the current animation progress as a percentage from 0.0 to 1.0.
void moveHighlight(const Bounds< 1, int > &bounds)
Moves the highlight bar to the given 1D bounds with an animated transition.
The primary namespace for the NDEVR SDK.