- void set_position(const Point &);
- const Point &get_position() const { return pos; }
- void set_rotation(float);
- float get_rotation() const { return rot; }
- void set_slope(float);
- float get_slope() const { return slope; }
- void set_flex(bool);
- bool get_flex() const { return flex; }
- void set_turnout_id(unsigned);
- unsigned get_turnout_id() const { return turnout_id; }
- void set_sensor_id(unsigned);
- unsigned get_sensor_id() const { return sensor_id; }
- int get_endpoint_by_link(const Track &) const;
- Point get_endpoint_position(unsigned) const;
- float get_endpoint_direction(unsigned) const;
- bool snap_to(Track &, bool);
- bool snap(Point &, float &) const;
- void break_link(Track &);
- void break_links();
+
+ void set_position(const Point &);
+ void set_rotation(float);
+ void set_slope(float);
+ void set_flex(bool);
+ const Point &get_position() const { return pos; }
+ float get_rotation() const { return rot; }
+ float get_slope() const { return slope; }
+ bool get_flex() const { return flex; }
+ void check_slope();
+
+ void set_turnout_id(unsigned);
+ void set_sensor_id(unsigned);
+ unsigned get_turnout_id() const { return turnout_id; }
+ unsigned get_sensor_id() const { return sensor_id; }
+ void set_active_path(unsigned);
+ unsigned get_active_path() const { return active_path; }
+
+ int get_endpoint_by_link(const Track &) const;
+ Point get_endpoint_position(unsigned) const;
+ float get_endpoint_direction(unsigned) const;
+ bool snap_to(Track &, bool);
+ bool snap(Point &, float &) const;
+ void break_link(Track &);
+ void break_links();