Struct Swath

Struct Documentation

struct Swath

Public Functions

Swath()
explicit Swath(const LineString &path)
explicit Swath(double width)
Swath(const LineString &path, double width, int id = 0, SwathType type = SwathType::MAINLAND)
Swath(const Swath&)
virtual ~Swath()
virtual Swath &operator=(Swath&&)
virtual Swath &operator=(const Swath&)
bool operator!=(const Swath &s) const
bool operator==(const Swath &s) const
bool operator>=(const Swath &s) const
bool operator<=(const Swath &s) const
bool operator>(const Swath &s) const
bool operator<(const Swath &s) const
void setId(int id)
int getId() const
void setPath(const LineString &path)
LineString getPath() const
void setWidth(double width)
double getWidth() const
bool getCreationDir() const
void setCreationDir(bool creation_dir)
SwathType getType() const
void setType(SwathType type)
double length() const
double area() const
double area(const Cells &polys) const
void reverse()
double getInAngle() const
double getOutAngle() const
Point startPoint() const
Point endPoint() const
Cells areaCovered() const
Cells areaCovered(const Cells &polys) const
Swath clone() const
size_t numPoints() const
Point getPoint(int i)
const Point getPoint(int i) const
bool hasSameDir(const Swath &s) const

Check if the difference between swaths angles is less than pi.

void targetSameDirAs(const Swath &s)

Reverse the direction of the swath if the difference of the angles is greater than pi

void targetOppositeDirAs(const Swath &s)

Reverse the direction of the swath if the difference of the angles is less than pi

void moveTo(const Point &ref_pt)

Moves swath data by a reference point.