#include <dxf_to_graph.h>
|
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...
|
|
|
std::vector< Segment > | generateGraph (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< Line > | splitArc (const DL_ArcData &_arc, const float _segLength) const |
|
std::vector< Line > | splitCircle (const DL_CircleData &_circle, const float _segLength) const |
|
std::vector< Line > | splitLine (const DL_LineData &_line, const float _segLength) const |
|
Definition at line 46 of file dxf_to_graph.h.
std::vector< Segment > tuw_graph::DxfToGraph::generateGraph |
( |
const std::vector< Line > & |
_lines, |
|
|
const float |
_segWidth, |
|
|
const float & |
_scale, |
|
|
const Eigen::Vector2d & |
_offset |
|
) |
| const |
|
private |
bool tuw_graph::DxfToGraph::getGraphData |
( |
const DL_ImageData & |
_image, |
|
|
float & |
_scale, |
|
|
Eigen::Vector2d & |
_offset |
|
) |
| const |
|
private |
bool tuw_graph::DxfToGraph::parseGraph |
( |
const std::string & |
_dxfPath, |
|
|
const float |
_segLength, |
|
|
const float |
_segWidth |
|
) |
| |
reads the graph from the dx file
- Parameters
-
_dxfPath | the path of the dxf file |
_segLength | the minimum Segment _seglength |
_segWidth | the 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
-
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 |
std::vector< Line > tuw_graph::DxfToGraph::splitCircle |
( |
const DL_CircleData & |
_circle, |
|
|
const float |
_segLength |
|
) |
| const |
|
private |
std::vector< Line > tuw_graph::DxfToGraph::splitLine |
( |
const DL_LineData & |
_line, |
|
|
const float |
_segLength |
|
) |
| const |
|
private |
std::vector<Segment> tuw_graph::DxfToGraph::graphData_ |
|
private |
Eigen::Vector2d tuw_graph::DxfToGraph::offset_ |
|
private |
float tuw_graph::DxfToGraph::scale_ |
|
private |
The documentation for this class was generated from the following files: