TracktionEngine
|
#include <tracktion_CurveEditor.h>
Public Member Functions | |
CurveEditor (Edit &, SelectionManager &) | |
~CurveEditor () override | |
void | paint (juce::Graphics &) override |
bool | hitTest (int x, int y) override |
void | visibilityChanged () override |
void | mouseDown (const juce::MouseEvent &) override |
void | mouseUp (const juce::MouseEvent &) override |
void | mouseDrag (const juce::MouseEvent &) override |
void | mouseMove (const juce::MouseEvent &) override |
void | mouseEnter (const juce::MouseEvent &) override |
void | mouseExit (const juce::MouseEvent &) override |
void | mouseDoubleClick (const juce::MouseEvent &) override |
void | mouseHovered (int mouseX, int mouseY) override |
void | mouseMovedAfterHover () override |
juce::MouseCursor | getMouseCursor () override |
void | setTimes (TimePosition leftTime, TimePosition rightTime) |
TimeRange | getTimes () const |
float | timeToX (TimePosition) const |
TimePosition | xToTime (double x) const |
float | valueToY (float val) const |
float | yToValue (double y) const |
juce::Point< float > | getPosition (CurvePoint) const |
juce::Point< float > | getPosition (int index) |
void | selectableObjectChanged (Selectable *) override |
void | selectableObjectAboutToBeDeleted (Selectable *) override |
void | changeListenerCallback (juce::ChangeBroadcaster *) override |
void | updateLineThickness () |
Edit & | getEdit () const |
virtual Track * | getTrack () |
virtual TimePosition | snapTime (TimePosition, juce::ModifierKeys) |
virtual float | getValueAt (TimePosition)=0 |
virtual TimePosition | getPointTime (int idx)=0 |
virtual float | getPointValue (int idx)=0 |
virtual float | getPointCurve (int idx)=0 |
virtual void | removePoint (int index)=0 |
virtual int | addPoint (TimePosition time, float value, float curve)=0 |
virtual int | getNumPoints ()=0 |
virtual CurvePoint | getBezierHandle (int idx)=0 |
virtual CurvePoint | getBezierPoint (int idx)=0 |
virtual int | nextIndexAfter (TimePosition)=0 |
virtual void | getBezierEnds (int index, double &x1out, float &y1out, double &x2out, float &y2out)=0 |
virtual int | movePoint (int index, TimePosition newTime, float newValue, bool removeInterveningPoints)=0 |
virtual void | setValueWhenNoPoints (float value)=0 |
virtual CurveEditorPoint * | createPoint (int idx)=0 |
virtual int | curvePoint (int index, float newCurve)=0 |
virtual juce::String | getCurveName ()=0 |
virtual int | getCurveNameOffset ()=0 |
virtual Selectable * | getItem ()=0 |
virtual bool | isShowingCurve () const =0 |
virtual void | updateFromTrack ()=0 |
virtual juce::Colour | getCurrentLineColour ()=0 |
virtual juce::Colour | getCurrentFillColour () |
virtual juce::Colour | getDefaultLineColour () const =0 |
virtual juce::Colour | getSelectedLineColour () const =0 |
virtual juce::Colour | getBackgroundColour () const =0 |
virtual juce::Colour | getCurveNameTextBackgroundColour () const =0 |
virtual juce::Colour | getPointOutlineColour () const =0 |
void | selectPoint (int pointIdx, bool addToSelection) |
![]() | |
virtual | ~SelectableListener () |
![]() | |
MouseHoverDetector (int hoverTimeMillisecs_=400) | |
virtual | ~MouseHoverDetector () |
void | setHoverTimeMillisecs (int newTimeInMillisecs) |
void | setHoverComponent (juce::Component *newSourceComponent, bool wantsEventsForAllNestedChildComponents) |
void | hoverTimerCallback () |
void | checkJustHoveredCallback () |
Protected Member Functions | |
void | updatePointUnderMouse (juce::Point< float >) |
virtual void | showBubbleForPointUnderMouse ()=0 |
virtual void | hideBubble ()=0 |
virtual void | nonRealTimeDragStart () |
virtual void | nonRealTimeDragEnd () |
bool | isPointSelected (int idx) |
bool | areAnyPointsSelected () |
CurveEditorPoint * | getSelectedPoint (int) |
Protected Attributes | |
Edit & | edit |
juce::UndoManager & | undoManager |
SelectionManager & | selectionManager |
float | parameterMinValue = 0 |
float | parameterRange = 1.0f |
TimePosition | leftTime |
TimePosition | rightTime |
int | firstIndexOnScreen = 0 |
int | pointUnderMouse = -1 |
int | pointBeingMoved = -1 |
int | curveUnderMouse = -1 |
int | lineUnderMouse = -1 |
bool | dragged = false |
bool | movingAllPoints = false |
TimePosition | mouseDownTime |
float | mouseDownValue = 0 |
bool | isCurveSelected = false |
float | mouseDownCurve = 0 |
float | point1 = 0 |
float | point2 = 0 |
bool | realTimeDrag = true |
float | defaultCurve = 0 |
float | lineThickness = 1.0f |
Static Protected Attributes | |
static constexpr const float | pointRadius = 5.0f |
tracktion::engine::CurveEditor::CurveEditor | ( | Edit & | , |
SelectionManager & | |||
) |
|
override |
|
override |
|
override |
|
override |
|
override |
|
override |
|
override |
|
override |
|
override |
|
override |
|
override |
|
overridevirtual |
Implements tracktion::engine::MouseHoverDetector.
|
overridevirtual |
Implements tracktion::engine::MouseHoverDetector.
|
override |
void tracktion::engine::CurveEditor::setTimes | ( | TimePosition | leftTime, |
TimePosition | rightTime | ||
) |
TimeRange tracktion::engine::CurveEditor::getTimes | ( | ) | const |
float tracktion::engine::CurveEditor::timeToX | ( | TimePosition | ) | const |
TimePosition tracktion::engine::CurveEditor::xToTime | ( | double | x | ) | const |
float tracktion::engine::CurveEditor::valueToY | ( | float | val | ) | const |
float tracktion::engine::CurveEditor::yToValue | ( | double | y | ) | const |
juce::Point< float > tracktion::engine::CurveEditor::getPosition | ( | CurvePoint | ) | const |
juce::Point< float > tracktion::engine::CurveEditor::getPosition | ( | int | index | ) |
|
overridevirtual |
Implements tracktion::engine::SelectableListener.
|
overridevirtual |
Implements tracktion::engine::SelectableListener.
|
override |
void tracktion::engine::CurveEditor::updateLineThickness | ( | ) |
Edit & tracktion::engine::CurveEditor::getEdit | ( | ) | const |
|
virtual |
|
virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
void tracktion::engine::CurveEditor::selectPoint | ( | int | pointIdx, |
bool | addToSelection | ||
) |
|
protected |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
staticconstexprprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |