Changeset fc43dda in git for src/model.h


Ignore:
Timestamp:
29/08/19 07:08:47 (7 weeks ago)
Author:
Olly Betts <olly@…>
Branches:
master
Children:
72fac59
Parents:
b0908ea
Message:

Allow colouring by horizontal or vertical error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/model.h

    rb0908ea rfc43dda  
    8484class traverse : public vector<PointInfo> {
    8585  public:
    86     int n_legs;
     86    int n_legs = 0;
    8787    // Bitmask of img_FLAG_SURFACE, img_FLAG_SPLAY and img_FLAG_DUPLICATE.
    88     int flags;
    89     double length;
    90     double E, H, V;
     88    int flags = 0;
     89    double length = 0.0;
     90    enum { ERROR_3D = 0, ERROR_H = 1, ERROR_V = 2 };
     91    double errors[3] = {0, 0, 0};
    9192    wxString name;
    9293
    9394    explicit
    94     traverse(const char* name_)
    95         : n_legs(0), flags(0),
    96           length(0), E(-1), H(-1), V(-1),
    97           name(name_, wxConvUTF8) {
     95    traverse(const char* name_) : name(name_, wxConvUTF8) {
    9896        if (name.empty() && !name_[0]) {
    9997            // If name isn't valid UTF-8 then this conversion will
Note: See TracChangeset for help on using the changeset viewer.