22 lines
583 B
C++
22 lines
583 B
C++
#include "Explicit_Plot_p.h"
|
|
|
|
namespace renderive {
|
|
|
|
Explicit_Plot_Private::Explicit_Plot_Private()
|
|
: Abs_Plot_Private(std::make_unique<Explicit_Refresh_Strategy>()) {
|
|
explicit_strategy = static_cast<Explicit_Refresh_Strategy*>(strategy);
|
|
}
|
|
|
|
Explicit_Plot::Explicit_Plot()
|
|
: Abs_Plot(new Explicit_Plot_Private()) {}
|
|
|
|
void Explicit_Plot::replot() {
|
|
auto* data = static_cast<Explicit_Plot_Private*>(d);
|
|
if (data->explicit_strategy) {
|
|
data->explicit_strategy->request_render();
|
|
data->core->request_manual_refresh();
|
|
}
|
|
}
|
|
|
|
} // namespace renderive
|