#include <Curve.h>
Public Member Functions | |
double | GetArea () const |
void | GetBox (CBox2D &box) |
Point | GetVector (double fraction) const |
double | IncludedAngle () const |
void | Intersect (const Span &s, std::list< Point > &pts) const |
double | Length () const |
Point | MidParam (double param) const |
Point | MidPerim (double d) const |
Point | NearestPoint (const Point &p) const |
Point | NearestPoint (const Span &p, double *d=NULL) const |
bool | On (const Point &p, double *t=NULL) const |
Span () | |
Span (const Point &p, const CVertex &v, bool start_span=false) | |
Public Attributes | |
Point | m_p |
bool | m_start_span |
CVertex | m_v |
Span::Span | ( | ) |
double Span::GetArea | ( | ) | const |
References Point::dist(), IncludedAngle(), CVertex::m_c, CVertex::m_p, m_p, CVertex::m_type, m_v, Point::x, and Point::y.
Referenced by CCurve::GetArea().
void Span::GetBox | ( | CBox2D & | box | ) |
References Point::dist(), CVertex::m_c, CVertex::m_p, m_p, CVertex::m_type, and m_v.
Referenced by CCurve::GetBox().
Point Span::GetVector | ( | double | fraction | ) | const |
returns the direction vector at point which is 0-1 along span
References CVertex::m_c, CVertex::m_p, m_p, CVertex::m_type, m_v, and MidParam().
Referenced by CCurve::Offset(), and CCurve::OffsetForward().
double Span::IncludedAngle | ( | ) | const |
References CVertex::m_c, CVertex::m_p, m_p, CVertex::m_type, m_v, and Point::normalize().
Referenced by GetArea(), Length(), and MidParam().
References geoff_geometry::Span::Intof(), geoff_geometry::Point::x, and geoff_geometry::Point::y.
double Span::Length | ( | void | ) | const |
References Point::dist(), IncludedAngle(), CVertex::m_c, CVertex::m_p, m_p, CVertex::m_type, and m_v.
Referenced by ArchStructure.CommandStructuralSystem::Activated(), ArchPanel.CommandPanel::getPoint(), CCurve::PointToPerim(), ArchPanel.CommandPanel::setLength(), and ArchPanel.CommandPanel::update().
Point Span::MidParam | ( | double | param | ) | const |
returns a point which is 0-1 along span
References IncludedAngle(), CVertex::m_c, CVertex::m_p, m_p, CVertex::m_type, m_v, draftguitools.gui_annotationstyleeditor::param, and Point::Rotate().
Referenced by GetVector().
Point Span::MidPerim | ( | double | d | ) | const |
returns a point which is 0-d along span
References Point::length(), CVertex::m_c, CVertex::m_p, m_p, CVertex::m_type, m_v, and Point::normalize().
References Point::dist(), CVertex::m_p, m_p, and m_v.
Referenced by CCurve::NearestPoint(), NearestPoint(), and On().
References NearestPoint().
References NearestPoint().
Point Span::m_p |
Referenced by GetArea(), GetBox(), GetVector(), IncludedAngle(), Length(), MidParam(), MidPerim(), NearestPoint(), CCurve::Offset(), and CCurve::OffsetForward().
bool Span::m_start_span |
CVertex Span::m_v |
Referenced by GetArea(), GetBox(), GetVector(), IncludedAngle(), Length(), MidParam(), MidPerim(), and NearestPoint().