|
hydrogen 1.2.6
|
#include <AutomationPath.h>
Public Types | |
| typedef std::map< float, float >::const_iterator | const_iterator |
| typedef std::map< float, float >::iterator | iterator |
Public Member Functions | |
| AutomationPath (float min, float max, float def) | |
| void | add_point (float x, float y) |
| Add a point to path. | |
| iterator | begin () |
| const_iterator | begin () const |
| bool | empty () const noexcept |
| iterator | end () |
| const_iterator | end () const |
| iterator | find (float x) |
| Find point near specific location. | |
| float | get_default () const noexcept |
| float | get_max () const noexcept |
| float | get_min () const noexcept |
| float | get_value (float x) const noexcept |
| Get value at given location. | |
| iterator | move (iterator &in, float x, float y) |
| Move point to other location. | |
| void | remove_point (float x) |
| Remove point from path. | |
| QString | toQString (const QString &sPrefix="", bool bShort=true) const override |
| Formatted string version for debugging purposes. | |
Public Member Functions inherited from Object< AutomationPath > | |
| Object () | |
| Object (const Object< AutomationPath > &other) | |
Public Member Functions inherited from Base | |
| Base () | |
| Base (const Base &other) | |
| virtual const char * | class_name () const |
| void | logBacktrace () const |
| Print the current stack at point into the debug log. | |
| void | Print (bool bShort=true) const |
| Prints content of toQString() via DEBUGLOG. | |
Private Attributes | |
| float | _def |
| float | _max |
| float | _min |
| std::map< float, float > | _points |
Friends | |
| bool | operator!= (const AutomationPath &lhs, const AutomationPath &rhs) |
| bool | operator== (const AutomationPath &lhs, const AutomationPath &rhs) |
| Compare two paths. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Base | |
| static const char * | _class_name () |
| return the class name | |
| static QString | base_clock (const QString &sMsg) |
| Measures the current time and stores it in __last_clock. | |
| static QString | base_clock_in (const QString &sMsg) |
| static int | bootstrap (Logger *logger, bool count=false) |
| must be called before any Object instantiation ! | |
| static bool | count_active () |
| static int | getAliveObjectCount () |
| static object_map_t | getObjectMap () |
| static Logger * | logger () |
| return the logger instance | |
| static int | objects_count () |
| static void | printObjectMapDiff (object_map_t map) |
| Creates the difference between a snapshot of the object map and its current state and prints it to std::cout. | |
| static void | set_count (bool flag) |
| enable/disable class instances counting | |
| static void | write_objects_map_to (std::ostream &out, object_map_t *map=nullptr) |
| output the full objects map to a given ostream | |
| static void | write_objects_map_to_cerr () |
| output objects map to stderr | |
Static Public Attributes inherited from Base | |
| static QString | sPrintIndention = " " |
| String used to format the debugging string output of some core classes. | |
Protected Member Functions inherited from Object< AutomationPath > | |
| ~Object () | |
Protected Member Functions inherited from Base | |
| ~Base () | |
Static Protected Member Functions inherited from Base | |
| static void | registerClass (const char *name, const atomic_obj_cpt_t *counters) |
Static Protected Attributes inherited from Base | |
| static bool | __count = false |
| should we count class instances | |
| static timeval | __last_clock = { 0, 0 } |
| static Logger * | __logger = nullptr |
| static bool | bLogColors = true |
Definition at line 37 of file AutomationPath.h.
| typedef std::map<float,float>::const_iterator const_iterator |
Definition at line 43 of file AutomationPath.h.
| typedef std::map<float,float>::iterator iterator |
Definition at line 42 of file AutomationPath.h.
| AutomationPath | ( | float | min, |
| float | max, | ||
| float | def ) |
Definition at line 30 of file AutomationPath.cpp.
| void add_point | ( | float | x, |
| float | y ) |
Add a point to path.
| x | X coordinate |
| y | Y coordinate |
Definition at line 80 of file AutomationPath.cpp.
|
inline |
Definition at line 70 of file AutomationPath.h.
|
inline |
Definition at line 72 of file AutomationPath.h.
|
inlinenoexcept |
Definition at line 57 of file AutomationPath.h.
|
inline |
Definition at line 71 of file AutomationPath.h.
|
inline |
Definition at line 73 of file AutomationPath.h.
| AutomationPath::iterator find | ( | float | x | ) |
Find point near specific location.
If point is faound, iterator pointing to it is returned. Otherwise, AutomationPath::end() is returned.
Definition at line 141 of file AutomationPath.cpp.
|
inlinenoexcept |
Definition at line 60 of file AutomationPath.h.
|
inlinenoexcept |
Definition at line 59 of file AutomationPath.h.
|
inlinenoexcept |
Definition at line 58 of file AutomationPath.h.
|
noexcept |
Get value at given location.
| x | Location |
If location is between points, value is computed
Definition at line 45 of file AutomationPath.cpp.
| AutomationPath::iterator move | ( | iterator & | in, |
| float | x, | ||
| float | y ) |
Move point to other location.
| in | Iterator pointing to point to be moved |
| x | Destination X coordinate |
| y | Destination Y coordinate |
Definition at line 176 of file AutomationPath.cpp.
| void remove_point | ( | float | x | ) |
Remove point from path.
| x | Point location |
Definition at line 189 of file AutomationPath.cpp.
|
overridevirtual |
Formatted string version for debugging purposes.
| sPrefix | String prefix which will be added in front of every new line |
| bShort | Instead of the whole content of all classes stored as members just a single unique identifier will be displayed without line breaks. |
Reimplemented from Base.
Definition at line 107 of file AutomationPath.cpp.
|
friend |
Definition at line 102 of file AutomationPath.cpp.
|
friend |
Compare two paths.
Two paths are considered equal, if they have the same settings (min, max, default) and points in the same places.
Definition at line 93 of file AutomationPath.cpp.
|
private |
Definition at line 49 of file AutomationPath.h.
|
private |
Definition at line 48 of file AutomationPath.h.
|
private |
Definition at line 47 of file AutomationPath.h.
|
private |
Definition at line 51 of file AutomationPath.h.