MyDXFBlock Class Reference
DXF block class. More...
#include <mydxfblocks.hpp>
Public Member Functions | |
| MyDXFBlock (class MyDXFFile *dxf) | |
| void | write (class MyDXFFile *dxf, std::ofstream &ostr) |
| Write dxf file to stream. More... | |
| const std::string & | name (void) |
| Return name of block. More... | |
| class MyDXFEntities * | get_entities (void) |
| Get a pointer to the entities of block. More... | |
| const class MyDXFEntities * | get_entities (void) const |
| Get a const pointer to the entities of block. More... | |
| void | explode (class MyDXFEntities *ent, MyDXFFile *dxf, const Transformation *t) const |
| Explode block into entities. More... | |
| void | plot (const class MyDXFFile *dxf, cairo_t *cairo, const Transformation *t, const double range[4]) const |
| Plot block with cairo. More... | |
| void | get_bbox (Vec3D &min, Vec3D &max, const class MyDXFFile *dxf, const Transformation *t) const |
| Return bounding box of entities within the block. More... | |
| void | scale (class MyDXFFile *dxf, double s) |
| Scale entities within block by factor s. More... | |
| void | translate (class MyDXFFile *dxf, const Vec3D &dx) |
| Translate entity by dx. More... | |
| void | debug_print (std::ostream &os) const |
| Print debugging information to stream os. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const MyDXFBlock &blk) |
| Print debugging information to stream os. More... | |
Detailed Description
DXF block class.
Member Function Documentation
◆ debug_print()
| void MyDXFBlock::debug_print | ( | std::ostream & | os | ) | const |
Print debugging information to stream os.
◆ explode()
| void MyDXFBlock::explode | ( | class MyDXFEntities * | ent, |
| MyDXFFile * | dxf, | ||
| const Transformation * | t | ||
| ) | const |
Explode block into entities.
Tranform entities in the block with tranformation t and add the tranformed entities to the database ent.
◆ get_bbox()
| void MyDXFBlock::get_bbox | ( | Vec3D & | min, |
| Vec3D & | max, | ||
| const class MyDXFFile * | dxf, | ||
| const Transformation * | t | ||
| ) | const |
Return bounding box of entities within the block.
◆ get_entities() [1/2]
|
inline |
Get a pointer to the entities of block.
◆ get_entities() [2/2]
|
inline |
Get a const pointer to the entities of block.
◆ name()
|
inline |
Return name of block.
◆ plot()
| void MyDXFBlock::plot | ( | const class MyDXFFile * | dxf, |
| cairo_t * | cairo, | ||
| const Transformation * | t, | ||
| const double | range[4] | ||
| ) | const |
Plot block with cairo.
Plot the entities withing the block using the transformation t from the object space to cairo coordinates. The visible range is specified by range (xmin,ymin,xmax,ymax) in cairo coordinates.
◆ scale()
| void MyDXFBlock::scale | ( | class MyDXFFile * | dxf, |
| double | s | ||
| ) |
Scale entities within block by factor s.
◆ translate()
◆ write()
| void MyDXFBlock::write | ( | class MyDXFFile * | dxf, |
| std::ofstream & | ostr | ||
| ) |
Write dxf file to stream.
Friends And Related Function Documentation
◆ operator<<
|
friend |
Print debugging information to stream os.
The documentation for this class was generated from the following files: