|
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 (EditPosition leftTime, EditPosition rightTime) |
| EditTimeRange | getTimes () const |
| bool | getDrawPointInsertionIndicator () const |
| void | setDrawPointInsertionIndicator (bool) |
| virtual float | timeToX (EditPosition) const |
| virtual EditPosition | 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 EditPosition | snapTime (EditPosition, juce::ModifierKeys) |
| virtual float | getValueAt (EditPosition)=0 |
| virtual EditPosition | getPointPosition (int idx)=0 |
| virtual float | getPointValue (int idx)=0 |
| virtual float | getPointCurve (int idx)=0 |
| virtual void | removePoint (int index)=0 |
| virtual int | addPoint (EditPosition 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 (EditPosition)=0 |
| virtual void | getBezierEnds (int index, double &x1out, float &y1out, double &x2out, float &y2out)=0 |
| virtual std::pair< CurvePoint, CurvePoint > | getBezierEnds (int index)=0 |
| virtual int | movePoint (int index, EditPosition 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 |
| virtual float | getLineThickness (bool mouseOverOrDragging, bool curveOrPointsSelected) const |
| virtual void | drawLine (juce::Graphics &, juce::Path, float lineThickness) |
| void | selectPoint (int pointIdx, bool addToSelection) |
| virtual EditPosition | toEditPosition (const TimePosition &t) |
| virtual juce::Range< float > | getParameterRange () const =0 |
Public Member Functions inherited from tracktion::engine::SelectableListener | |
| virtual | ~SelectableListener () |
Public Member Functions inherited from tracktion::engine::MouseHoverDetector | |
| MouseHoverDetector (int hoverTimeMillisecs_=400) | |
| virtual | ~MouseHoverDetector () |
| void | setHoverTimeMillisecs (int newTimeInMillisecs) |
| void | setHoverComponent (juce::Component *newSourceComponent, bool wantsEventsForAllNestedChildComponents) |
| void | hoverTimerCallback () |
| void | checkJustHoveredCallback () |
Protected Member Functions | |
| virtual bool | fillPath () const |
| virtual bool | isBeats () const |
| EditPosition | fromUnderlying (double u) |
| void | updatePointUnderMouse (juce::Point< float >) |
| virtual void | showBubbleForPointUnderMouse ()=0 |
| virtual void | hideBubble ()=0 |
| virtual void | nonRealTimeDragStart () |
| virtual void | nonRealTimeDragEnd () |
| virtual bool | canSelectItem () const |
| bool | isPointSelected (int idx) |
| bool | areAnyPointsSelected () |
| CurveEditorPoint * | getSelectedPoint (int) |
Protected Attributes | |
| Edit & | edit |
| juce::UndoManager & | undoManager |
| SelectionManager & | selectionManager |
| EditPosition | leftTime |
| EditPosition | rightTime |
| int | firstIndexOnScreen = 0 |
| int | pointUnderMouse = -1 |
| int | pointBeingMoved = -1 |
| int | curveUnderMouse = -1 |
| int | lineUnderMouse = -1 |
| bool | dragged = false |
| bool | movingAllPoints = false |
| EditPosition | 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 |
| bool | drawPointInsertionIndicator = false |
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 | ( | EditPosition | leftTime, |
| EditPosition | rightTime | ||
| ) |
| EditTimeRange tracktion::engine::CurveEditor::getTimes | ( | ) | const |
| bool tracktion::engine::CurveEditor::getDrawPointInsertionIndicator | ( | ) | const |
| void tracktion::engine::CurveEditor::setDrawPointInsertionIndicator | ( | bool | ) |
|
virtual |
|
virtual |
| 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 |
|
pure virtual |
|
virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
virtual |
|
virtual |
| void tracktion::engine::CurveEditor::selectPoint | ( | int | pointIdx, |
| bool | addToSelection | ||
| ) |
|
virtual |
|
pure virtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedvirtual |
|
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 |