automation line: add dump() method to inspect GUI control points

This commit is contained in:
Paul Davis 2023-02-06 20:19:38 -07:00
parent 8c6fa19bcf
commit 3d96a318ac
2 changed files with 13 additions and 0 deletions

View File

@ -1398,6 +1398,18 @@ AutomationLine::add_visible_control_point (uint32_t view_index, uint32_t pi, dou
}
}
void
AutomationLine::dump (std::ostream& ostr) const
{
for (auto const & cp : control_points) {
if (cp->model() != alist->end()) {
ostr << '#' << cp->view_index() << " @ " << cp->get_x() << ", " << cp->get_y() << " for " << (*cp->model())->value << " @ " << (*(cp->model()))->when << std::endl;
} else {
ostr << "dead point\n";
}
}
}
void
AutomationLine::connect_to_list ()
{

View File

@ -165,6 +165,7 @@ public:
void set_width (Temporal::timecnt_t const &);
Temporal::timepos_t session_position (Temporal::timepos_t const &) const;
void dump (std::ostream&) const;
protected: