1 #include "bbmaracasvisuPlotterView.h"
2 #include "bbcreaMaracasVisuPackage.h"
4 #include "pPlotterScaleX.h"
5 #include "pPlotterScaleY.h"
8 namespace bbcreaMaracasVisu
11 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,PlotterView)
12 BBTK_BLACK_BOX_IMPLEMENTATION(PlotterView,bbtk::WxBlackBox);
14 //---------------------------------------------------
15 void PlotterView::Process()
19 //---------------------------------------------------
20 void PlotterView::CreateWidget(wxWindow* parent)
22 bbtkDebugMessageInc("Core",9,"PlotterView::CreateWxWindow()"<<std::endl);
24 mwxwidget = new pPlotterWindow( parent , -1,wxDefaultPosition, wxDefaultSize, 0 );
25 mwxwidget->AddLayer(new pPlotterScaleX());
26 mwxwidget->AddLayer(new pPlotterScaleY());
28 // avoid 'taking address of temporary '
29 //pGraphicalFunction *pGF = mwxwidget->getFunctionForVectors( &(bbGetInputInX()), &(bbGetInputInY()) ); // taking address of temporary ! JPRx
30 std::vector<double> inX = bbGetInputInX();
31 std::vector<double> inY = bbGetInputInY();
33 pGraphicalFunction *pGF = mwxwidget->getFunctionForVectors( &inX, &inY );
34 mwxwidget->addFunction(pGF);
35 bbtkDebugDecTab("Core",9);
36 bbSetOutputWidget( mwxwidget );
39 //---------------------------------------------------
40 void PlotterView::bbUserConstructor()
45 //---------------------------------------------------
46 void PlotterView::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
50 //---------------------------------------------------
51 void PlotterView::bbUserDestructor()
56 // EO namespace bbcreaMaracasVisu