Class CWindowManager
Defined in File CWindowManager.h
Inheritance Relationships
Base Type
public mrpt::system::COutputLogger
Class Documentation
-
class CWindowManager : public mrpt::system::COutputLogger
Class acts as a container for storing pointers to mrpt::gui::CDisplayWindow3D, mrpt::graphslam::CWindowObserver instances.
CWindowManager also provides methods for adding/positioning textMessages and viewports in the CDisplayWindow in a compact and consistent way.
Public Functions
-
inline CWindowManager()
Default class constructor.
-
inline CWindowManager(mrpt::gui::CDisplayWindow3D *win_in)
Class constructor.
-
inline CWindowManager(mrpt::gui::CDisplayWindow3D *win_in, mrpt::graphslam::CWindowObserver *observer_in)
Class constructor.
-
~CWindowManager() override = default
Class destructor.
-
inline void setCDisplayWindow3DPtr(mrpt::gui::CDisplayWindow3D *win_in)
Store the CDisplayWindow3D pointer in the CWindowManager instance.
See also
-
inline void setWindowObserverPtr(mrpt::graphslam::CWindowObserver *obsever_in)
Store the CWindowObserver pointer in the CWindowManager instance.
See also
-
inline void assignTextMessageParameters(double *offset_y, int *text_index)
Assign the next available offset_y and text_index for the textMessage under construction.
Used for consistent positioning of textMessages in the CDisplayWindow3D.
See also
assignViewPortParameters
-
inline bool isOpen()
Wrapper call around the CWindowDisplay3D.
-
inline void addTextMessage(const double x, const double y, const std::string &text, const mrpt::img::TColorf &color = mrpt::img::TColorf(1.0, 1.0, 1.0), const size_t unique_index = 0)
Wrapper around the CDisplayWindow3D::addTextMessage method, so that the user does not have to specify the font name and size.
Note
see initCWindowManager method for the default fontName and fontSize used.
-
inline void assignViewportParameters(double *x, double *y, double *width, double *height)
Assign position and size values for the placement of the next viewport.
Used for consistent positioning of the Viewports in the CDisplayWindow3D
See also
Public Members
-
mrpt::gui::CDisplayWindow3D *win
CDisplayWindow instance
-
mrpt::graphslam::CWindowObserver *observer
CWindowObserver instance
-
inline CWindowManager()