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);
Class acts as a container for storing pointers to mrpt::gui::CDisplayWindow3D, mrpt::graphslam::CWind...
Generic class for tracking the total number of edges for different tpes of edges and for storing visu...
int m_text_index_total_edges
int getTotalNumOfEdges() const
Return the total amount of registered edges.
bool m_has_read_textmessage_params
const_iterator cbegin() const
CEdgeCounter()
Constructor class.
~CEdgeCounter()
Destructor class.
std::map< std::string, int > m_name_to_text_index
int getNumForEdgeType(const std::string &name) const
Return the number of edges for the specified type.
mrpt::graphslam::CWindowManager * m_win_manager
int m_text_index_loop_closures
void setRemovedEdges(int removed_edges)
State how many of the existing edges have been removed.
bool m_display_total_edges
std::map< std::string, double > m_name_to_offset_y
mrpt::gui::CDisplayWindow3D * m_win
void initCEdgeCounter()
Initialization method to be called from the various Constructors.
void clearAllEdges()
Reset the state of the CEdgeCounter instance.
void setEdgesManually(const std::string &name, int num_of_edges)
Set number of a specific edge type manually.
void addEdgeType(const std::string &name)
Explicitly register a new edge type.
int getLoopClosureEdges() const
Returns the edges that form loop closures in the current graph.
std::map< std::string, int > m_name_to_edges_num
Map edge name <=> num of edges.
iterator begin()
Instance Iterators.
void setLoopClosureEdgesManually(int num_loop_closures)
Method for manually setting the number of loop closures registered so far.
void setWindowManagerPtr(mrpt::graphslam::CWindowManager *win_manager)
Provide the instance with a CWindowManager.
void addEdge(const std::string &name, bool is_loop_closure=false, bool is_new=false)
Increment the number of edges for the specified type.
int m_offset_y_total_edges
const_iterator cend() const
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 ...
std::map< std::string, int >::const_iterator const_iterator
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 dumpToConsole() const
Dump a report of the registered, so far, edges to the console.
bool m_display_loop_closures
int m_offset_y_loop_closures
std::map< std::string, int >::iterator iterator
A graphical user interface (GUI) for efficiently rendering 3D scenes in real-time.
const Scalar * const_iterator
GLuint const GLchar * name
GLsizei const GLchar ** string
Internal auxiliary classes.