ad_rss
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ad::rss::unstructured::DebugDrawing Class Reference
Collaboration diagram for ad::rss::unstructured::DebugDrawing:
Collaboration graph
[legend]

Classes

struct  DebugLine
 
struct  DebugPoint
 
struct  DebugPolygon
 
struct  NullDeleter
 

Public Member Functions

void reset ()
 clean up all geometries to draw (before a new cycle)
 
void enable (bool value)
 enable/disable debug drawing
 
bool isEnabled ()
 enable/disable debug drawing
 
void drawLine (Line const &line, std::string const &color="white", std::string const &ns="")
 draw a line More...
 
void drawPolygon (Polygon const &polygon, std::string const &color="white", std::string const &ns="")
 draw a polygon More...
 

Static Public Member Functions

static std::shared_ptr< DebugDrawinggetInstance ()
 singelton instance getter
 

Public Attributes

std::vector< DebugLinemLines
 
std::vector< DebugPolygonmPolygons
 
bool mEnabled {false}
 

Member Function Documentation

◆ drawLine()

void ad::rss::unstructured::DebugDrawing::drawLine ( Line const &  line,
std::string const &  color = "white",
std::string const &  ns = "" 
)
inline

draw a line

Parameters
[in]lineline to draw
[in]colorline color
[in]nsnamespace to identify geometry

◆ drawPolygon()

void ad::rss::unstructured::DebugDrawing::drawPolygon ( Polygon const &  polygon,
std::string const &  color = "white",
std::string const &  ns = "" 
)
inline

draw a polygon

Parameters
[in]polygonpolygon to draw
[in]colorline color
[in]nsnamespace to identify geometry

The documentation for this class was generated from the following file: