mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-19 13:16:27 +01:00
change rendering technique for waveforms, add back optional gradient, add back amplitude scaling, add rgb/hsv conversion utilities to canvas
This commit is contained in:
parent
abba366fce
commit
ccc9b6adee
5 changed files with 209 additions and 24 deletions
|
|
@ -55,6 +55,8 @@ public:
|
|||
|
||||
void render (Rect const & area, Cairo::RefPtr<Cairo::Context>) const;
|
||||
void compute_bounding_box () const;
|
||||
|
||||
void rebuild ();
|
||||
|
||||
void set_samples_per_pixel (double);
|
||||
void set_height (Distance);
|
||||
|
|
@ -75,6 +77,9 @@ public:
|
|||
void set_shape (Shape);
|
||||
Shape shape() const;
|
||||
|
||||
static void set_gradient_waveforms (bool);
|
||||
static bool gradient_waveforms() { return _gradient_waveforms; }
|
||||
|
||||
#ifdef CANVAS_COMPATIBILITY
|
||||
void*& property_gain_src () {
|
||||
return _foo_void;
|
||||
|
|
@ -149,6 +154,11 @@ private:
|
|||
ARDOUR::frameoffset_t _region_start;
|
||||
|
||||
mutable std::list<CacheEntry*> _cache;
|
||||
|
||||
PBD::ScopedConnection invalidation_connection;
|
||||
|
||||
static bool _gradient_waveforms;
|
||||
static PBD::Signal0<void> InvalidateAllImages;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue