class mrpt::gui::CWindowDialogPlots

Overview

The wx dialog for gui::CDisplayWindowPlots.

#include <mrpt/gui/WxSubsystem.h>

class CWindowDialogPlots: public wxFrame
{
public:
    // fields

    CDisplayWindowPlots* m_winPlots {nullptr};
    WxSubsystem::CWXMainFrame* m_mainFrame {nullptr};
    mpWindow* m_plot {nullptr};
    bool m_firstSubmenu {true};
    std::map<long, long> m_ID2ID;
    mrpt::math::TPoint2D m_curCursorPos;
    wxPoint m_last_mouse_point;
    static const wxWindowID ID_PLOT = wxNewId();
    static const wxWindowID 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 {true}

True until the first user submenu is inserted (separator not yet added).

std::map<long, long> m_ID2ID

Maps internal wxIDs to user-defined IDs for submenus.

mrpt::math::TPoint2D m_curCursorPos

Current cursor position in graph coordinates.

wxPoint m_last_mouse_point

Current cursor position 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.