MRPT  2.0.4
List of all members | Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions
mrpt::gui::CWindowDialogPlots Class Reference

Detailed Description

The wx dialog for gui::CDisplayWindowPlots.

Definition at line 413 of file WxSubsystem.h.

#include <mrpt/gui/WxSubsystem.h>

Inheritance diagram for mrpt::gui::CWindowDialogPlots:

Public Member Functions

 CWindowDialogPlots (CDisplayWindowPlots *winPlots, WxSubsystem::CWXMainFrame *parent, wxWindowID id=-1, const std::string &caption=std::string("[MRPT-CDisplayWindowPlots]"), wxSize initialSize=wxDefaultSize)
 
 ~CWindowDialogPlots () override
 
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)
 Redirected from CDisplayWindowPlots::plot. More...
 
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. More...
 
void image (void *theWxImage, float x0, float y0, float w, float h, const std::string &plotName)
 Redirected from CDisplayWindowPlots::image. More...
 

Public Attributes

CDisplayWindowPlotsm_winPlots
 
WxSubsystem::CWXMainFramem_mainFrame
 
mpWindow * m_plot
 
bool m_firstSubmenu
 to know whether to insert a separator the first time. More...
 
std::map< long, long > m_ID2ID
 wxIDs to user IDs for submenus. More...
 
mrpt::math::TPoint2D m_curCursorPos
 In graph coords. More...
 
wxPoint m_last_mouse_point
 In pixels. More...
 

Static Public Attributes

static const long ID_PLOT = wxNewId()
 
static const long ID_MENU_PRINT = wxNewId()
 

Private Member Functions

void OnClose (wxCloseEvent &event)
 
void OnMenuPrint (wxCommandEvent &event)
 
void OnMenuClose (wxCommandEvent &event)
 
void OnMenuAbout (wxCommandEvent &event)
 
void OnChar (wxKeyEvent &event)
 
void OnResize (wxSizeEvent &event)
 
void OnMouseDown (wxMouseEvent &event)
 

Constructor & Destructor Documentation

◆ CWindowDialogPlots()

CWindowDialogPlots::CWindowDialogPlots ( CDisplayWindowPlots winPlots,
WxSubsystem::CWXMainFrame parent,
wxWindowID  id = -1,
const std::string &  caption = std::string("[MRPT-CDisplayWindowPlots]"),
wxSize  initialSize = wxDefaultSize 
)

Definition at line 39 of file CDisplayWindowPlots.cpp.

References mrpt::opengl::internal::data, mrpt::gui::WxSubsystem::getMRPTDefaultIcon(), ID_MENUITEM1, ID_MENUITEM2, mrpt::gui::WxSubsystem::CWXMainFrame::notifyWindowCreation(), OnChar(), OnClose(), OnMenuAbout(), OnMenuClose(), OnMenuPrint(), OnMouseDown(), OnMouseMove(), and OnResize().

Here is the call graph for this function:

◆ ~CWindowDialogPlots()

CWindowDialogPlots::~CWindowDialogPlots ( )
overridedefault

Member Function Documentation

◆ image()

void CWindowDialogPlots::image ( void *  theWxImage,
float  x0,
float  y0,
float  w,
float  h,
const std::string &  plotName 
)

Redirected from CDisplayWindowPlots::image.

Definition at line 599 of file CDisplayWindowPlots.cpp.

◆ OnChar()

void CWindowDialogPlots::OnChar ( wxKeyEvent &  event)
private

Definition at line 173 of file CDisplayWindowPlots.cpp.

References mrpt::gui::keyEventToMrptKeyModifier().

Referenced by CWindowDialogPlots().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnClose()

void CWindowDialogPlots::OnClose ( wxCloseEvent &  event)
private

Definition at line 146 of file CDisplayWindowPlots.cpp.

References mrpt::gui::mrptEventWindowClosed::allow_close, and mrpt::gui::WxSubsystem::CWXMainFrame::notifyWindowDestruction().

Referenced by CWindowDialogPlots().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnMenuAbout()

void CWindowDialogPlots::OnMenuAbout ( wxCommandEvent &  event)
private

Definition at line 240 of file CDisplayWindowPlots.cpp.

Referenced by CWindowDialogPlots().

Here is the caller graph for this function:

◆ OnMenuClose()

void CWindowDialogPlots::OnMenuClose ( wxCommandEvent &  event)
private

Definition at line 233 of file CDisplayWindowPlots.cpp.

Referenced by CWindowDialogPlots().

Here is the caller graph for this function:

◆ OnMenuPrint()

void CWindowDialogPlots::OnMenuPrint ( wxCommandEvent &  event)
private

Definition at line 235 of file CDisplayWindowPlots.cpp.

Referenced by CWindowDialogPlots().

Here is the caller graph for this function:

◆ OnMenuSelected()

void CWindowDialogPlots::OnMenuSelected ( wxCommandEvent &  ev)

Definition at line 248 of file CDisplayWindowPlots.cpp.

References mrpt::d2f().

Referenced by mrpt::gui::WxSubsystem::CWXMainFrame::OnTimerProcessRequests().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnMouseDown()

void CWindowDialogPlots::OnMouseDown ( wxMouseEvent &  event)
private

Definition at line 214 of file CDisplayWindowPlots.cpp.

Referenced by CWindowDialogPlots().

Here is the caller graph for this function:

◆ OnMouseMove()

void CWindowDialogPlots::OnMouseMove ( wxMouseEvent &  event)

Definition at line 260 of file CDisplayWindowPlots.cpp.

Referenced by CWindowDialogPlots().

Here is the caller graph for this function:

◆ OnResize()

void CWindowDialogPlots::OnResize ( wxSizeEvent &  event)
private

Definition at line 196 of file CDisplayWindowPlots.cpp.

Referenced by CWindowDialogPlots().

Here is the caller graph for this function:

◆ plot()

void CWindowDialogPlots::plot ( const mrpt::math::CVectorFloat x,
const mrpt::math::CVectorFloat y,
const std::string &  lineFormat,
const std::string &  plotName 
)

Redirected from CDisplayWindowPlots::plot.

Definition at line 286 of file CDisplayWindowPlots.cpp.

References mrpt::system::os::memcpy(), and mrpt::math::CVectorDynamic< T >::size().

Here is the call graph for this function:

◆ plotEllipse()

void CWindowDialogPlots::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.

Definition at line 442 of file CDisplayWindowPlots.cpp.

References mrpt::math::CVectorDynamic< T >::size().

Here is the call graph for this function:

Member Data Documentation

◆ ID_MENU_PRINT

const long CWindowDialogPlots::ID_MENU_PRINT = wxNewId()
static

Definition at line 429 of file WxSubsystem.h.

◆ ID_PLOT

const long CWindowDialogPlots::ID_PLOT = wxNewId()
static

Definition at line 428 of file WxSubsystem.h.

◆ m_curCursorPos

mrpt::math::TPoint2D mrpt::gui::CWindowDialogPlots::m_curCursorPos

In graph coords.

Definition at line 435 of file WxSubsystem.h.

◆ m_firstSubmenu

bool mrpt::gui::CWindowDialogPlots::m_firstSubmenu

to know whether to insert a separator the first time.

Definition at line 431 of file WxSubsystem.h.

◆ m_ID2ID

std::map<long, long> mrpt::gui::CWindowDialogPlots::m_ID2ID

wxIDs to user IDs for submenus.

Definition at line 433 of file WxSubsystem.h.

◆ m_last_mouse_point

wxPoint mrpt::gui::CWindowDialogPlots::m_last_mouse_point

In pixels.

Definition at line 437 of file WxSubsystem.h.

◆ m_mainFrame

WxSubsystem::CWXMainFrame* mrpt::gui::CWindowDialogPlots::m_mainFrame

Definition at line 424 of file WxSubsystem.h.

◆ m_plot

mpWindow* mrpt::gui::CWindowDialogPlots::m_plot

Definition at line 426 of file WxSubsystem.h.

◆ m_winPlots

CDisplayWindowPlots* mrpt::gui::CWindowDialogPlots::m_winPlots

Definition at line 423 of file WxSubsystem.h.




Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020