#include <Arc.h>
Public Member Functions | |
bool | AlmostALine () const |
CArc () | |
CArc (const Point &s, const Point &e, const Point &c, bool dir, int user_data) | |
void | GetSegments (void(*callbackfunc)(const double *p), double pixels_per_mm) const |
double | IncludedAngle () const |
Point | MidParam (double param) const |
void | SetDirWithPoint (const Point &p) |
Public Attributes | |
Point | m_c |
bool | m_dir |
Point | m_e |
Point | m_s |
int | m_user_data |
CArc::CArc | ( | ) |
bool CArc::AlmostALine | ( | ) | const |
References Point::dist(), m_c, m_e, m_s, MidParam(), and Point::tolerance.
void CArc::GetSegments | ( | void(*)(const double *p) | callbackfunc, |
double | pixels_per_mm | ||
) | const |
double CArc::IncludedAngle | ( | ) | const |
Point CArc::MidParam | ( | double | param | ) | const |
returns a point which is 0-1 along arc
References IncludedAngle(), m_c, m_e, m_s, draftguitools.gui_annotationstyleeditor::param, and Point::Rotate().
Referenced by AlmostALine().
void CArc::SetDirWithPoint | ( | const Point & | p | ) |
Point CArc::m_c |
Referenced by AlmostALine(), GetSegments(), IncludedAngle(), MidParam(), and SetDirWithPoint().
bool CArc::m_dir |
Referenced by GetSegments(), IncludedAngle(), and SetDirWithPoint().
Point CArc::m_e |
Referenced by AlmostALine(), GetSegments(), IncludedAngle(), MidParam(), and SetDirWithPoint().
Point CArc::m_s |
Referenced by AlmostALine(), GetSegments(), IncludedAngle(), MidParam(), and SetDirWithPoint().
int CArc::m_user_data |