Files
Upsilon/apps/sequence/graph/graph_view.h
Émilie Feral 8a9df36a35 [apps/sequence] Cleaner resolution and comments
Change-Id: I3e4919f9f76ede2a81a672f21060adda2b98f1bd
2017-04-18 10:52:29 +02:00

34 lines
1.0 KiB
C++

#ifndef SEQUENCE_GRAPH_VIEW_H
#define SEQUENCE_GRAPH_VIEW_H
#include "../../shared/function_graph_view.h"
#include "../sequence_store.h"
namespace Sequence {
class GraphView : public Shared::FunctionGraphView {
public:
GraphView(SequenceStore * sequenceStore, Shared::InteractiveCurveViewRange * graphRange,
Shared::CurveViewCursor * cursor, Shared::BannerView * bannerView, View * cursorView);
void drawRect(KDContext * ctx, KDRect rect) const override;
void setVerticalCursor(bool verticalCursor);
void reload() override;
void selectSequence(Sequence * sequence);
void setHighlight(int start, int end);
void setHighlightColor(bool highlightColor);
private:
float samplingRatio() const override;
float evaluateModelWithParameter(Model * expression, float abscissa) const override;
KDSize cursorSize() override;
SequenceStore * m_sequenceStore;
bool m_verticalCursor;
int m_highlightedDotStart;
int m_highlightedDotEnd;
bool m_shouldColorHighlighted;
Sequence * m_selectedSequence;
};
}
#endif