IBSimu 1.0.4
|
DXF insert entity class. More...
#include <mydxfentities.hpp>
Public Member Functions | |
MyDXFInsert () | |
Default constructor. | |
MyDXFInsert (class MyDXFFile *dxf) | |
Construct entity by reading from DXF file. | |
virtual | ~MyDXFInsert () |
Virtual destructor. | |
virtual MyDXFInsert * | copy (void) const |
Get a new copy of entity. | |
virtual void | explode (class MyDXFEntities *ent, MyDXFFile *dxf, const Transformation *t) const |
Explode into entities. | |
virtual void | write (class MyDXFFile *dxf, std::ofstream &ostr) |
Write dxf file to stream. | |
virtual EntityType | get_type (void) const |
Get entity type. | |
virtual void | plot (const class MyDXFFile *dxf, cairo_t *cairo, const Transformation *t, const double range[4]) const |
Plot entity with cairo. | |
virtual void | get_bbox (Vec3D &min, Vec3D &max, const class MyDXFFile *dxf, const Transformation *t) const |
Return bounding box of entity. | |
virtual void | scale (class MyDXFFile *dxf, double s) |
Scale entity by factor s. | |
const std::string & | block_name (void) const |
Return name of the block inserted. |
DXF insert entity class.
MyDXFInsert::MyDXFInsert | ( | ) |
Default constructor.
MyDXFInsert::MyDXFInsert | ( | class MyDXFFile * | dxf | ) |
Construct entity by reading from DXF file.
virtual MyDXFInsert::~MyDXFInsert | ( | ) | [inline, virtual] |
Virtual destructor.
const std::string& MyDXFInsert::block_name | ( | void | ) | const [inline] |
Return name of the block inserted.
virtual MyDXFInsert* MyDXFInsert::copy | ( | void | ) | const [inline, virtual] |
Get a new copy of entity.
Implements MyDXFEntity.
virtual void MyDXFInsert::explode | ( | class MyDXFEntities * | ent, |
MyDXFFile * | dxf, | ||
const Transformation * | t | ||
) | const [virtual] |
Explode into entities.
Break entity into atomic entities and tranform entities them with tranformation t. Add the tranformed entities to the database ent.
Implements MyDXFEntity.
virtual void MyDXFInsert::get_bbox | ( | Vec3D & | min, |
Vec3D & | max, | ||
const class MyDXFFile * | dxf, | ||
const Transformation * | t | ||
) | const [virtual] |
Return bounding box of entity.
Implements MyDXFEntity.
virtual EntityType MyDXFInsert::get_type | ( | void | ) | const [inline, virtual] |
Get entity type.
Implements MyDXFEntity.
virtual void MyDXFInsert::plot | ( | const class MyDXFFile * | dxf, |
cairo_t * | cairo, | ||
const Transformation * | t, | ||
const double | range[4] | ||
) | const [virtual] |
Plot entity with cairo.
Plot the entity using the transformation from from the object space to cairo coordinates. The visible range is specified by range (xmin,ymin,xmax,ymax) in cairo coordinates.
Implements MyDXFEntity.
virtual void MyDXFInsert::scale | ( | class MyDXFFile * | dxf, |
double | s | ||
) | [virtual] |
Scale entity by factor s.
Implements MyDXFEntity.
virtual void MyDXFInsert::write | ( | class MyDXFFile * | dxf, |
std::ofstream & | ostr | ||
) | [virtual] |
Write dxf file to stream.
Implements MyDXFEntity.