class mrpt::gui::CWindowDialogPlots¶
The wx dialog for gui::CDisplayWindowPlots.
#include <mrpt/gui/WxSubsystem.h> class CWindowDialogPlots: public wxFrame { public: // fields CDisplayWindowPlots* m_winPlots; WxSubsystem::CWXMainFrame* m_mainFrame; mpWindow* m_plot; bool m_firstSubmenu; std::map<long, long> m_ID2ID; mrpt::math::TPoint2D m_curCursorPos; wxPoint m_last_mouse_point; static const long ID_PLOT = wxNewId(); static const long ID_MENU_PRINT = wxNewId(); // construction CWindowDialogPlots( CDisplayWindowPlots* winPlots, WxSubsystem::CWXMainFrame* parent, wxWindowID id = -1, const std::string& caption = std::string("[MRPT-CDisplayWindowPlots]"), wxSize initialSize = wxDefaultSize ); // methods void OnMenuSelected(wxCommandEvent& ev); void OnMouseMove(wxMouseEvent& event); void plot( const mrpt::math::CVectorFloat& x, const mrpt::math::CVectorFloat& y, const std::string& lineFormat, const std::string& plotName ); void plotEllipse( const mrpt::math::CVectorFloat& x, const mrpt::math::CVectorFloat& y, const std::string& lineFormat, const std::string& plotName, bool showName = false ); void image( void* theWxImage, float x0, float y0, float w, float h, const std::string& plotName ); };
Fields¶
bool m_firstSubmenu
to know whether to insert a separator the first time.
std::map<long, long> m_ID2ID
wxIDs to user IDs for submenus.
mrpt::math::TPoint2D m_curCursorPos
In graph coords.
wxPoint m_last_mouse_point
In pixels.
Methods¶
void plot( const mrpt::math::CVectorFloat& x, const mrpt::math::CVectorFloat& y, const std::string& lineFormat, const std::string& plotName )
Redirected from CDisplayWindowPlots::plot.
void plotEllipse( const mrpt::math::CVectorFloat& x, const mrpt::math::CVectorFloat& y, const std::string& lineFormat, const std::string& plotName, bool showName = false )
Redirected from CDisplayWindowPlots::plotEllipse.
void image( void* theWxImage, float x0, float y0, float w, float h, const std::string& plotName )
Redirected from CDisplayWindowPlots::image.