Main MRPT website > C++ reference for MRPT 1.5.9
List of all members | Public Types | Public Member Functions | Protected Attributes
mrpt::graphs::detail::CVisualizer< CPOSE, MAPS_IMPLEMENTATION, NODE_ANNOTATIONS, EDGE_ANNOTATIONS > Class Template Reference

Detailed Description

template<class CPOSE, class MAPS_IMPLEMENTATION, class NODE_ANNOTATIONS = mrpt::graphs::detail::TNodeAnnotations, class EDGE_ANNOTATIONS = mrpt::graphs::detail::edge_annotations_empty>
class mrpt::graphs::detail::CVisualizer< CPOSE, MAPS_IMPLEMENTATION, NODE_ANNOTATIONS, EDGE_ANNOTATIONS >

Base class for C*Visualizer classes.

By default provides visualization for a CNetowrkOfPoses containing nodes and edges as constructed by a single agent/robot. Derived classes can inherit and partially modify the class behavior

Definition at line 58 of file CNetworkOfPoses.h.

#include <mrpt/graphs/CNetworkOfPoses.h>

Inheritance diagram for mrpt::graphs::detail::CVisualizer< CPOSE, MAPS_IMPLEMENTATION, NODE_ANNOTATIONS, EDGE_ANNOTATIONS >:
Inheritance graph

Public Types

typedef mrpt::graphs::CNetworkOfPoses< CPOSE, MAPS_IMPLEMENTATION, NODE_ANNOTATIONS, EDGE_ANNOTATIONS > GRAPH_T
 

Public Member Functions

 CVisualizer (const GRAPH_T &graph_in)
 Constructor. More...
 
virtual ~CVisualizer ()
 Destructor. More...
 
virtual void getAs3DObject (mrpt::opengl::CSetOfObjectsPtr &object, mrpt::utils::TParametersDouble viz_params) const
 Common visualization stuff for all derived classes. More...
 

Protected Member Functions

Work-splitting methods

Smaller functions that do add very specific parts to the visual representation

Following functions take an optional TParametersDouble instance containing visualization parameters

virtual void drawGroundGrid (mrpt::opengl::CSetOfObjectsPtr &object, const mrpt::utils::TParametersDouble *viz_params=NULL) const
 
virtual void drawNodeCorners (mrpt::opengl::CSetOfObjectsPtr &object, const mrpt::utils::TParametersDouble *viz_params=NULL) const
 
virtual void drawNodePoints (mrpt::opengl::CSetOfObjectsPtr &object, const mrpt::utils::TParametersDouble *viz_params=NULL) const
 
virtual void drawEdgeRelPoses (mrpt::opengl::CSetOfObjectsPtr &object, const mrpt::utils::TParametersDouble *viz_params=NULL) const
 
virtual void drawEdges (mrpt::opengl::CSetOfObjectsPtr &object, const mrpt::utils::TParametersDouble *viz_params=NULL) const
 

Protected Attributes

bool m_is_3D_graph
 
const GRAPH_Tm_graph
 

Member Typedef Documentation

◆ GRAPH_T

template<class CPOSE, class MAPS_IMPLEMENTATION, class NODE_ANNOTATIONS = mrpt::graphs::detail::TNodeAnnotations, class EDGE_ANNOTATIONS = mrpt::graphs::detail::edge_annotations_empty>
typedef mrpt::graphs::CNetworkOfPoses< CPOSE, MAPS_IMPLEMENTATION, NODE_ANNOTATIONS, EDGE_ANNOTATIONS> mrpt::graphs::detail::CVisualizer< CPOSE, MAPS_IMPLEMENTATION, NODE_ANNOTATIONS, EDGE_ANNOTATIONS >::GRAPH_T

Definition at line 34 of file CVisualizer.h.

Constructor & Destructor Documentation

◆ CVisualizer()

template<class CPOSE , class MAPS_IMPLEMENTATION , class NODE_ANNOTATIONS , class EDGE_ANNOTATIONS >
mrpt::graphs::detail::CVisualizer< CPOSE, MAPS_IMPLEMENTATION, NODE_ANNOTATIONS, EDGE_ANNOTATIONS >::CVisualizer ( const GRAPH_T graph_in)

Constructor.

Definition at line 10 of file CVisualizer_impl.h.

◆ ~CVisualizer()

template<class CPOSE , class MAPS_IMPLEMENTATION , class NODE_ANNOTATIONS , class EDGE_ANNOTATIONS >
mrpt::graphs::detail::CVisualizer< CPOSE, MAPS_IMPLEMENTATION, NODE_ANNOTATIONS, EDGE_ANNOTATIONS >::~CVisualizer ( )
virtual

Destructor.

Definition at line 19 of file CVisualizer_impl.h.

Member Function Documentation

◆ drawEdgeRelPoses()

template<class CPOSE , class MAPS_IMPLEMENTATION , class NODE_ANNOTATIONS , class EDGE_ANNOTATIONS >
void mrpt::graphs::detail::CVisualizer< CPOSE, MAPS_IMPLEMENTATION, NODE_ANNOTATIONS, EDGE_ANNOTATIONS >::drawEdgeRelPoses ( mrpt::opengl::CSetOfObjectsPtr &  object,
const mrpt::utils::TParametersDouble viz_params = NULL 
) const
protectedvirtual

Definition at line 181 of file CVisualizer_impl.h.

◆ drawEdges()

template<class CPOSE , class MAPS_IMPLEMENTATION , class NODE_ANNOTATIONS , class EDGE_ANNOTATIONS >
void mrpt::graphs::detail::CVisualizer< CPOSE, MAPS_IMPLEMENTATION, NODE_ANNOTATIONS, EDGE_ANNOTATIONS >::drawEdges ( mrpt::opengl::CSetOfObjectsPtr &  object,
const mrpt::utils::TParametersDouble viz_params = NULL 
) const
protectedvirtual

◆ drawGroundGrid()

template<class CPOSE , class MAPS_IMPLEMENTATION , class NODE_ANNOTATIONS , class EDGE_ANNOTATIONS >
void mrpt::graphs::detail::CVisualizer< CPOSE, MAPS_IMPLEMENTATION, NODE_ANNOTATIONS, EDGE_ANNOTATIONS >::drawGroundGrid ( mrpt::opengl::CSetOfObjectsPtr &  object,
const mrpt::utils::TParametersDouble viz_params = NULL 
) const
protectedvirtual

Definition at line 70 of file CVisualizer_impl.h.

◆ drawNodeCorners()

template<class CPOSE , class MAPS_IMPLEMENTATION , class NODE_ANNOTATIONS , class EDGE_ANNOTATIONS >
void mrpt::graphs::detail::CVisualizer< CPOSE, MAPS_IMPLEMENTATION, NODE_ANNOTATIONS, EDGE_ANNOTATIONS >::drawNodeCorners ( mrpt::opengl::CSetOfObjectsPtr &  object,
const mrpt::utils::TParametersDouble viz_params = NULL 
) const
protectedvirtual

Definition at line 142 of file CVisualizer_impl.h.

◆ drawNodePoints()

template<class CPOSE , class MAPS_IMPLEMENTATION , class NODE_ANNOTATIONS , class EDGE_ANNOTATIONS >
void mrpt::graphs::detail::CVisualizer< CPOSE, MAPS_IMPLEMENTATION, NODE_ANNOTATIONS, EDGE_ANNOTATIONS >::drawNodePoints ( mrpt::opengl::CSetOfObjectsPtr &  object,
const mrpt::utils::TParametersDouble viz_params = NULL 
) const
protectedvirtual

◆ getAs3DObject()

template<class CPOSE , class MAPS_IMPLEMENTATION , class NODE_ANNOTATIONS , class EDGE_ANNOTATIONS >
void mrpt::graphs::detail::CVisualizer< CPOSE, MAPS_IMPLEMENTATION, NODE_ANNOTATIONS, EDGE_ANNOTATIONS >::getAs3DObject ( mrpt::opengl::CSetOfObjectsPtr &  object,
mrpt::utils::TParametersDouble  viz_params 
) const
virtual

Common visualization stuff for all derived classes.

Function delegates visualization tasks to the draw* methods according to the user preferences

Definition at line 25 of file CVisualizer_impl.h.

Member Data Documentation

◆ m_graph

template<class CPOSE, class MAPS_IMPLEMENTATION, class NODE_ANNOTATIONS = mrpt::graphs::detail::TNodeAnnotations, class EDGE_ANNOTATIONS = mrpt::graphs::detail::edge_annotations_empty>
const GRAPH_T& mrpt::graphs::detail::CVisualizer< CPOSE, MAPS_IMPLEMENTATION, NODE_ANNOTATIONS, EDGE_ANNOTATIONS >::m_graph
protected

◆ m_is_3D_graph

template<class CPOSE, class MAPS_IMPLEMENTATION, class NODE_ANNOTATIONS = mrpt::graphs::detail::TNodeAnnotations, class EDGE_ANNOTATIONS = mrpt::graphs::detail::edge_annotations_empty>
bool mrpt::graphs::detail::CVisualizer< CPOSE, MAPS_IMPLEMENTATION, NODE_ANNOTATIONS, EDGE_ANNOTATIONS >::m_is_3D_graph
protected

Definition at line 73 of file CVisualizer.h.




Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020