Go to the documentation of this file.
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);
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
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.
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 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
Internal auxiliary classes.
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.
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...
Page generated by Doxygen 1.8.17 for MRPT 2.0.4 at Sat Jun 27 14:00:59 UTC 2020 | |