Go to the documentation of this file.
10 #ifndef CEDGECOUNTER_H
11 #define CEDGECOUNTER_H
129 const std::map<std::string, double>& name_to_offset_y,
130 const std::map<std::string, int>& name_to_text_index);
137 const std::map<std::string, double>& name_to_offset_y,
138 const std::map<std::string, int>& name_to_text_index,
139 const double& offset_y_total_edges,
const int& text_index_total_edges,
140 const double& offset_y_loop_closures,
141 const int& text_index_loop_closures);
const Scalar * const_iterator
CEdgeCounter()
Constructor class.
std::map< std::string, int > m_name_to_text_index
const_iterator cbegin() const
void dumpToConsole() const
Dump a report of the registered, so far, edges to the console.
std::string getAsString() const
Return a detailed report of the registered, so far, edges in a string representation.
int m_text_index_loop_closures
std::map< std::string, int > m_name_to_edges_num
Map edge name <=> num of edges.
const_iterator cend() const
bool m_has_read_textmessage_params
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Class acts as a container for storing pointers to mrpt::gui::CDisplayWindow3D, mrpt::graphslam::CWind...
void addEdge(const std::string &name, bool is_loop_closure=false, bool is_new=false)
Increment the number of edges for the specified type.
GLuint const GLchar * name
void updateTextMessages() const
Update the given CDisplayWindow3D with the edges registered so far.
int m_offset_y_total_edges
int m_text_index_total_edges
std::map< std::string, double > m_name_to_offset_y
void initCEdgeCounter()
Initialization method to be called from the various Constructors.
void setEdgesManually(const std::string &name, int num_of_edges)
Set number of a specific edge type manually.
bool m_display_total_edges
bool m_display_loop_closures
std::map< std::string, int >::iterator iterator
int getNumForEdgeType(const std::string &name) const
Return the number of edges for the specified type.
iterator begin()
Instance Iterators.
int getLoopClosureEdges() const
Returns the edges that form loop closures in the current graph.
std::map< std::string, int >::const_iterator const_iterator
mrpt::gui::CDisplayWindow3D * m_win
void addEdgeType(const std::string &name)
Explicitly register a new edge type.
int m_offset_y_loop_closures
int getTotalNumOfEdges() const
Return the total amount of registered edges.
void setRemovedEdges(int removed_edges)
State how many of the existing edges have been removed.
void setWindowManagerPtr(mrpt::graphslam::CWindowManager *win_manager)
Provide the instance with a CWindowManager.
void setLoopClosureEdgesManually(int num_loop_closures)
Method for manually setting the number of loop closures registered so far.
GLsizei const GLchar ** string
mrpt::graphslam::CWindowManager * m_win_manager
void clearAllEdges()
Reset the state of the CEdgeCounter instance.
A graphical user interface (GUI) for efficiently rendering 3D scenes in real-time.
void setTextMessageParams(const std::map< std::string, double > &name_to_offset_y, const std::map< std::string, int > &name_to_text_index)
Add the textMessage parameters to the object All the names in the given std::maps have to be already ...
Generic class for tracking the total number of edges for different tpes of edges and for storing visu...
~CEdgeCounter()
Destructor class.
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |