Public Member Functions | Private Member Functions | Private Attributes | List of all members
tuw_graph::DxfToGraph Class Reference

#include <dxf_to_graph.h>

Public Member Functions

bool parseGraph (const std::string &_dxfPath, const float _segLength, const float _segWidth)
 reads the graph from the dx file More...
 
void serializeGraph (const std::string &_graphPath) const
 serializes the graph and saves it to memory More...
 

Private Member Functions

std::vector< SegmentgenerateGraph (const std::vector< Line > &_lines, const float _segWidth, const float &_scale, const Eigen::Vector2d &_offset) const
 
bool getGraphData (const DL_ImageData &_image, float &_scale, Eigen::Vector2d &_offset) const
 
std::vector< LinesplitArc (const DL_ArcData &_arc, const float _segLength) const
 
std::vector< LinesplitCircle (const DL_CircleData &_circle, const float _segLength) const
 
std::vector< LinesplitLine (const DL_LineData &_line, const float _segLength) const
 

Private Attributes

std::vector< SegmentgraphData_
 
Eigen::Vector2d offset_
 
float scale_
 

Detailed Description

Definition at line 46 of file dxf_to_graph.h.

Member Function Documentation

std::vector< Segment > tuw_graph::DxfToGraph::generateGraph ( const std::vector< Line > &  _lines,
const float  _segWidth,
const float &  _scale,
const Eigen::Vector2d &  _offset 
) const
private

Definition at line 181 of file dxf_to_graph.cpp.

bool tuw_graph::DxfToGraph::getGraphData ( const DL_ImageData &  _image,
float &  _scale,
Eigen::Vector2d &  _offset 
) const
private

Definition at line 160 of file dxf_to_graph.cpp.

bool tuw_graph::DxfToGraph::parseGraph ( const std::string &  _dxfPath,
const float  _segLength,
const float  _segWidth 
)

reads the graph from the dx file

Parameters
_dxfPaththe path of the dxf file
_segLengththe minimum Segment _seglength
_segWidththe segment width for all segments
Returns
sucess

Definition at line 38 of file dxf_to_graph.cpp.

void tuw_graph::DxfToGraph::serializeGraph ( const std::string &  _graphPath) const

serializes the graph and saves it to memory

Parameters
_graphPaththe graph path

Definition at line 224 of file dxf_to_graph.cpp.

std::vector< Line > tuw_graph::DxfToGraph::splitArc ( const DL_ArcData &  _arc,
const float  _segLength 
) const
private

Definition at line 129 of file dxf_to_graph.cpp.

std::vector< Line > tuw_graph::DxfToGraph::splitCircle ( const DL_CircleData &  _circle,
const float  _segLength 
) const
private

Definition at line 122 of file dxf_to_graph.cpp.

std::vector< Line > tuw_graph::DxfToGraph::splitLine ( const DL_LineData &  _line,
const float  _segLength 
) const
private

Definition at line 94 of file dxf_to_graph.cpp.

Member Data Documentation

std::vector<Segment> tuw_graph::DxfToGraph::graphData_
private

Definition at line 69 of file dxf_to_graph.h.

Eigen::Vector2d tuw_graph::DxfToGraph::offset_
private

Definition at line 71 of file dxf_to_graph.h.

float tuw_graph::DxfToGraph::scale_
private

Definition at line 70 of file dxf_to_graph.h.


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


tuw_voronoi_graph
Author(s): Benjamin Binder
autogenerated on Mon Jun 10 2019 15:42:44