VTKFIG  0.20.20181114
Easy VTK based in situ visualization
void vtkfig::XYPlot::ServerRTSend ( vtkSmartPointer< internals::Communicator communicator)
finaloverrideprivatevirtual

Server-Client send.

Reimplemented from vtkfig::Figure.

Definition at line 549 of file vtkfigXYPlot.cxx.

550  {
551  communicator->SendString(title);
552  communicator->SendString(xtitle);
553  communicator->SendString(ytitle);
554 
555  communicator->SendCharBuffer((char*)&PlotState,sizeof(PlotState));
556 
557 
558  communicator->SendInt(num_plots);
559  communicator->SendInt(AllPlotInfo.size());
560  int ndata=AllPlotInfo.size()*sizeof(PlotInfo);
561  communicator->SendCharBuffer((char*)AllPlotInfo.data(),ndata);
562 
563 
564  for (int i=0;i<num_plots;i++)
565  {
566  auto &plot=AllPlotData[i];
567  communicator->Send(plot.X,1,1);
568  communicator->Send(plot.Y,1,1);
569  }
570  };
std::vector< PlotInfo > AllPlotInfo
Vector holding all plot info.
Definition: vtkfigXYPlot.h:274
std::string xtitle
Definition: vtkfigXYPlot.h:187
struct vtkfig::XYPlot::@4 PlotState
General state of the XYPlot.
size_t num_plots
Number of "real" plots.
Definition: vtkfigXYPlot.h:166
std::vector< PlotData > AllPlotData
vector holding data of all plots
Definition: vtkfigXYPlot.h:227
std::string title
Definition: vtkfigXYPlot.h:185
std::string ytitle
Definition: vtkfigXYPlot.h:186