IBSimu 1.0.4
Public Member Functions | Protected Member Functions
MyDXFPathEntity Class Reference

DXF path entity base class. More...

#include <mydxfentities.hpp>

Inheritance diagram for MyDXFPathEntity:
MyDXFEntity MyDXFArc MyDXFCircle MyDXFLine MyDXFLWPolyline

List of all members.

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.

Protected Member Functions

 MyDXFPathEntity ()
 MyDXFPathEntity (const MyDXFEntity &ent)

Detailed Description

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.


Constructor & Destructor Documentation

MyDXFPathEntity::MyDXFPathEntity ( ) [inline, protected]
MyDXFPathEntity::MyDXFPathEntity ( const MyDXFEntity ent) [inline, protected]
virtual MyDXFPathEntity::~MyDXFPathEntity ( ) [inline, virtual]

Virtual destructor.


Member Function Documentation

virtual Vec3D MyDXFPathEntity::end ( void  ) const [pure virtual]

Get end point of path entity.

Implemented in MyDXFLine, MyDXFLWPolyline, MyDXFArc, and MyDXFCircle.

virtual int MyDXFPathEntity::ray_cross ( double  x,
double  y 
) const [pure virtual]

Check for ray crossing.

Check if ray going from point (x,y) downwards (negative y direction) crosses the entity. Return 1 if crosses odd number of times and 0 if even number of times. Return 2 in case of exact crossing at boundaries. This function is used as a subroutine to inside_loop().

Implemented in MyDXFLine, MyDXFLWPolyline, MyDXFArc, and MyDXFCircle.

virtual void MyDXFPathEntity::set_end ( const Vec3D e) [pure virtual]

Set end point of path entity.

Implemented in MyDXFLine, MyDXFLWPolyline, MyDXFArc, and MyDXFCircle.

virtual void MyDXFPathEntity::set_start ( const Vec3D s) [pure virtual]

Set start point of path entity.

Implemented in MyDXFLine, MyDXFLWPolyline, MyDXFArc, and MyDXFCircle.

virtual Vec3D MyDXFPathEntity::start ( void  ) const [pure virtual]

Get start point of path entity.

Implemented in MyDXFLine, MyDXFLWPolyline, MyDXFArc, and MyDXFCircle.


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