Classes | |
struct | EngageState |
Public Member Functions | |
EngagePoint (const Paths &p_toolBoundPaths) | |
DoublePoint | getCurrentDir () |
IntPoint | getCurrentPoint () |
EngageState | GetState () |
bool | moveForward (double distance) |
void | moveToClosestPoint (const IntPoint &pt, double step) |
bool | nextEngagePoint (Adaptive2d *parent, ClearedArea &clearedArea, double step, double minCutArea, double maxCutArea, int maxPases=2) |
bool | nextPath () |
void | ResetPasses () |
void | SetPaths (const Paths &paths) |
void | SetState (const EngageState &new_state) |
AdaptivePath::EngagePoint::EngagePoint | ( | const Paths & | p_toolBoundPaths | ) |
DoublePoint AdaptivePath::EngagePoint::getCurrentDir | ( | ) |
IntPoint AdaptivePath::EngagePoint::getCurrentPoint | ( | ) |
References AdaptivePath::EngagePoint::EngageState::currentPathIndex, AdaptivePath::EngagePoint::EngageState::currentSegmentIndex, AdaptivePath::DistanceSqrd(), AdaptivePath::EngagePoint::EngageState::segmentPos, ClipperLib::IntPoint::X, and ClipperLib::IntPoint::Y.
Referenced by moveToClosestPoint(), and nextEngagePoint().
EngageState AdaptivePath::EngagePoint::GetState | ( | ) |
bool AdaptivePath::EngagePoint::moveForward | ( | double | distance | ) |
References AdaptivePath::EngagePoint::EngageState::currentPathIndex, AdaptivePath::EngagePoint::EngageState::currentPathLength, AdaptivePath::EngagePoint::EngageState::currentSegmentIndex, AdaptivePath::EngagePoint::EngageState::segmentPos, and AdaptivePath::EngagePoint::EngageState::totalDistance.
Referenced by moveToClosestPoint(), and nextEngagePoint().
void AdaptivePath::EngagePoint::moveToClosestPoint | ( | const IntPoint & | pt, |
double | step | ||
) |
References AdaptivePath::EngagePoint::EngageState::currentPathIndex, AdaptivePath::EngagePoint::EngageState::currentSegmentIndex, AdaptivePath::DistanceSqrd(), getCurrentPoint(), moveForward(), nextPath(), AdaptivePath::PopPathWithClosestPoint(), ResetPasses(), AdaptivePath::EngagePoint::EngageState::segmentPos, and AdaptivePath::EngagePoint::EngageState::totalDistance.
bool AdaptivePath::EngagePoint::nextEngagePoint | ( | Adaptive2d * | parent, |
ClearedArea & | clearedArea, | ||
double | step, | ||
double | minCutArea, | ||
double | maxCutArea, | ||
int | maxPases = 2 |
||
) |
bool AdaptivePath::EngagePoint::nextPath | ( | ) |
void AdaptivePath::EngagePoint::ResetPasses | ( | ) |
References AdaptivePath::EngagePoint::EngageState::passes.
Referenced by moveToClosestPoint().
void AdaptivePath::EngagePoint::SetPaths | ( | const Paths & | paths | ) |
References AdaptivePath::EngagePoint::EngageState::currentPathIndex, AdaptivePath::EngagePoint::EngageState::currentSegmentIndex, AdaptivePath::EngagePoint::EngageState::passes, AdaptivePath::EngagePoint::EngageState::segmentPos, and AdaptivePath::EngagePoint::EngageState::totalDistance.
Referenced by EngagePoint().
void AdaptivePath::EngagePoint::SetState | ( | const EngageState & | new_state | ) |