HOPS
HOPS class reference
Public Member Functions | List of all members
hops::MHO_SubprocessPythonPlotVisitor Class Reference

No-embed (subprocess) default fringe plotter. Implements the same MHO_FringePlotVisitor interface as the embedded MHO_DefaultPythonPlotVisitor, but renders by shelling out to the user's python3 (python -m hops_visualization.fourfit_plot <request.json>), passing the plot data as JSON. No libpython is linked. More...

#include <MHO_SubprocessPythonPlotVisitor.hh>

Inheritance diagram for hops::MHO_SubprocessPythonPlotVisitor:
[legend]

Public Member Functions

 MHO_SubprocessPythonPlotVisitor ()
 
virtual ~MHO_SubprocessPythonPlotVisitor ()
 
virtual void Plot (MHO_FringeData *data) override
 Render the fringe plot via the python3 subprocess. More...
 
- Public Member Functions inherited from hops::MHO_FringePlotVisitor
 MHO_FringePlotVisitor ()
 
virtual ~MHO_FringePlotVisitor ()
 
virtual void Visit (MHO_FringeFitter *fitter) override
 Visits a fringe fitter and plots its data. More...
 
- Public Member Functions inherited from hops::MHO_FringeFitterVisitor
 MHO_FringeFitterVisitor ()
 
 MHO_FringeFitterVisitor ()
 
virtual ~MHO_FringeFitterVisitor ()
 
virtual ~MHO_FringeFitterVisitor ()
 

Detailed Description

No-embed (subprocess) default fringe plotter. Implements the same MHO_FringePlotVisitor interface as the embedded MHO_DefaultPythonPlotVisitor, but renders by shelling out to the user's python3 (python -m hops_visualization.fourfit_plot <request.json>), passing the plot data as JSON. No libpython is linked.

Author
J. Barrett - barre.nosp@m.ttj@.nosp@m.mit.e.nosp@m.du

The C++ side already holds the plot data as mho_json (MHO_FringeData:: GetPlotData()), and the Python renderer (make_fourfit_plot) is entirely dict-driven, so the subprocess path produces the same plot as the embedded path for the DEFAULT plotter.

Scope / behavior (decided):

Constructor & Destructor Documentation

◆ MHO_SubprocessPythonPlotVisitor()

hops::MHO_SubprocessPythonPlotVisitor::MHO_SubprocessPythonPlotVisitor ( )
inline

◆ ~MHO_SubprocessPythonPlotVisitor()

virtual hops::MHO_SubprocessPythonPlotVisitor::~MHO_SubprocessPythonPlotVisitor ( )
inlinevirtual

Member Function Documentation

◆ Plot()

void hops::MHO_SubprocessPythonPlotVisitor::Plot ( MHO_FringeData data)
overridevirtual

Render the fringe plot via the python3 subprocess.

Parameters
dataInput MHO_FringeData (provides plot_dict + cmdline params).
Note
This is a virtual function.

Implements hops::MHO_FringePlotVisitor.


The documentation for this class was generated from the following files: