BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ColorMapCanvas::ColorMapCanvasImpl Struct Reference
Collaboration diagram for ColorMapCanvas::ColorMapCanvasImpl:
[legend]

Public Member Functions

 ColorMapCanvasImpl ()
 
QCustomPlot * customPlot ()
 

Public Attributes

QCustomPlot * custom_plot {nullptr}
 
std::unique_ptr< StatusStringReporterreporter
 
StatusLabelstatus_label {nullptr}
 
std::unique_ptr< ColorMapViewportPlotControllerviewport_controller
 

Detailed Description

Definition at line 26 of file colormapcanvas.cpp.

Constructor & Destructor Documentation

◆ ColorMapCanvasImpl()

ColorMapCanvas::ColorMapCanvasImpl::ColorMapCanvasImpl ( )
inline

Definition at line 32 of file colormapcanvas.cpp.

32  : custom_plot(new QCustomPlot), status_label(new StatusLabel)
33  {
34  viewport_controller = std::make_unique<ColorMapViewportPlotController>(custom_plot);
35 
36  auto on_mouse_move = [this](const std::string& str) {
37  status_label->setText(QString::fromStdString(str));
38  };
40  }
Shows a single line of text on a white background.
Definition: statuslabel.h:29
void setText(const QString &text)
Definition: statuslabel.cpp:31
std::unique_ptr< StatusStringReporter > CreateColorMapReporter(QCustomPlot *custom_plot, std::function< void(const std::string &)> callback)
Creates reporter for status string in QCustomPlot containing QCPColorMap.
std::unique_ptr< ColorMapViewportPlotController > viewport_controller
std::unique_ptr< StatusStringReporter > reporter

References ModelView::CreateColorMapReporter().

Here is the call graph for this function:

Member Function Documentation

◆ customPlot()

QCustomPlot* ColorMapCanvas::ColorMapCanvasImpl::customPlot ( )
inline

Definition at line 42 of file colormapcanvas.cpp.

42 { return custom_plot; }

Member Data Documentation

◆ custom_plot

QCustomPlot* ColorMapCanvas::ColorMapCanvasImpl::custom_plot {nullptr}

Definition at line 27 of file colormapcanvas.cpp.

◆ reporter

std::unique_ptr<StatusStringReporter> ColorMapCanvas::ColorMapCanvasImpl::reporter

Definition at line 29 of file colormapcanvas.cpp.

◆ status_label

StatusLabel* ColorMapCanvas::ColorMapCanvasImpl::status_label {nullptr}

Definition at line 30 of file colormapcanvas.cpp.

◆ viewport_controller

std::unique_ptr<ColorMapViewportPlotController> ColorMapCanvas::ColorMapCanvasImpl::viewport_controller

Definition at line 28 of file colormapcanvas.cpp.


The documentation for this struct was generated from the following file: