10 #ifndef CEDGECOUNTER_H 11 #define CEDGECOUNTER_H 125 const std::map<std::string, double>& name_to_offset_y,
126 const std::map<std::string, int>& name_to_text_index);
133 const std::map<std::string, double>& name_to_offset_y,
134 const std::map<std::string, int>& name_to_text_index,
135 const double& offset_y_total_edges,
const int& text_index_total_edges,
136 const double& offset_y_loop_closures,
137 const 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
~CEdgeCounter()
Destructor class.
int getTotalNumOfEdges() const
Return the total amount of registered edges.
GLsizei const GLchar ** string
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.
CEdgeCounter()
Constructor class.
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 initCEdgeCounter()
Initialization method to be called from the various Constructors.
GLuint const GLchar * name
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
const Scalar * const_iterator
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.