Public Member Functions |
virtual | ~MyDXFPathEntity () |
| Virtual destructor.
|
virtual Vec3D | start (void) const =0 |
| Get start point of path entity.
|
virtual Vec3D | end (void) const =0 |
| Get end point of path entity.
|
virtual void | set_start (const Vec3D &s)=0 |
| Set start point of path entity.
|
virtual void | set_end (const Vec3D &e)=0 |
| Set end point of path entity.
|
virtual int | ray_cross (double x, double y) const =0 |
| Check for ray crossing.
|
virtual | ~MyDXFEntity () |
| Virtual destructor.
|
virtual MyDXFEntity * | copy (void) const =0 |
| Get a new copy of entity.
|
virtual void | explode (class MyDXFEntities *ent, MyDXFFile *dxf, const Transformation *t) const =0 |
| Explode into entities.
|
virtual void | write (class MyDXFFile *dxf, std::ofstream &ostr)=0 |
| Write dxf file to stream.
|
virtual void | scale (class MyDXFFile *dxf, double s)=0 |
| Scale entity by factor s.
|
virtual void | translate (class MyDXFFile *dxf, const Vec3D &dx)=0 |
| Translate entity by dx.
|
void | set_layer (const std::string &layer) |
| Set layer.
|
std::string | get_layer (void) const |
| Get layer.
|
virtual EntityType | get_type (void) const =0 |
| Get entity type.
|
void | set_handle (const std::string &handle) |
| Set entity handle.
|
std::string | get_handle (void) const |
| Get entity handle.
|
virtual void | plot (const class MyDXFFile *dxf, cairo_t *cairo, const Transformation *t, const double range[4]) const =0 |
| Plot entity with cairo.
|
virtual void | get_bbox (Vec3D &min, Vec3D &max, const class MyDXFFile *dxf, const Transformation *t) const =0 |
| Return bounding box of entity.
|
virtual void | debug_print (std::ostream &os) const =0 |
| Print debugging information to stream os.
|
DXF path entity base class.
A base class for two dimensional DXF entities, which can be part of a path. All path entities have a start point and an end point, that can be read and set.