30 using iterator = std::map<std::string, int>::iterator;
86 const std::string& name,
bool is_loop_closure =
false,
120 const std::map<std::string, double>& name_to_offset_y,
121 const std::map<std::string, int>& name_to_text_index);
128 const std::map<std::string, double>& name_to_offset_y,
129 const std::map<std::string, int>& name_to_text_index,
130 double offset_y_total_edges,
int text_index_total_edges,
131 double offset_y_loop_closures,
int text_index_loop_closures);
bool m_display_loop_closures
int getNumForEdgeType(const std::string &name) const
Return the number of edges for the specified type.
void addEdgeType(const std::string &name)
Explicitly register a new edge type.
iterator begin()
Instance Iterators.
mrpt::gui::CDisplayWindow3D * m_win
std::map< std::string, int >::const_iterator const_iterator
bool m_display_total_edges
std::map< std::string, double > m_name_to_offset_y
mrpt::graphslam::CWindowManager * m_win_manager
void setLoopClosureEdgesManually(int num_loop_closures)
Method for manually setting the number of loop closures registered so far.
int getLoopClosureEdges() const
Returns the edges that form loop closures in the current graph.
int m_offset_y_loop_closures
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.
Generic class for tracking the total number of edges for different tpes of edges and for storing visu...
const_iterator cbegin() const
int getTotalNumOfEdges() const
Return the total amount of registered edges.
void clearAllEdges()
Reset the state of the CEdgeCounter instance.
std::map< std::string, int > m_name_to_edges_num
Map edge name <=> num of edges.
int m_text_index_loop_closures
std::map< std::string, int > m_name_to_text_index
void dumpToConsole() const
Dump a report of the registered, so far, edges to the console.
const_iterator cend() const
int m_text_index_total_edges
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 ...
void setEdgesManually(const std::string &name, int num_of_edges)
Set number of a specific edge type manually.
int m_offset_y_total_edges
void updateTextMessages() const
Update the given CDisplayWindow3D with the edges registered so far.
std::string getAsString() const
Return a detailed report of the registered, so far, edges in a string representation.
void addEdge(const std::string &name, bool is_loop_closure=false, bool is_new=false)
Increment the number of edges for the specified type.
std::map< std::string, int >::iterator iterator
bool m_has_read_textmessage_params
Internal auxiliary classes.
Class acts as a container for storing pointers to mrpt::gui::CDisplayWindow3D, mrpt::graphslam::CWind...
A graphical user interface (GUI) for efficiently rendering 3D scenes in real-time.