class PathWalker
{
public:
- PathWalker(const Path* path);
+ PathWalker(const Path* path, bool running = true);
virtual ~PathWalker();
/**
private:
void advance_node();
void goback_node();
-
+
+ /**
+ * set to false to immediately stop advancing
+ */
+ bool running;
+
size_t current_node_nr;
size_t next_node_nr;
*/
int stop_at_node_nr;
- Vector last_pos;
-
/**
* the position between the current node and the next node as fraction
* between 0 and 1