26 lines
No EOL
468 B
C++
26 lines
No EOL
468 B
C++
#pragma once
|
|
|
|
#include "PathElement.h"
|
|
#include "PointCollection.h"
|
|
|
|
#include <vector>
|
|
|
|
class Line : public PathElement
|
|
{
|
|
public:
|
|
Line(const Point& start, const PointCollection& points);
|
|
|
|
const PointCollection& getPoints() const;
|
|
|
|
Line::Type getType() const override;
|
|
|
|
const Point& getLocation() const override;
|
|
|
|
Bounds getBounds() const override;
|
|
|
|
void sample(SparseGrid<bool>* grid) const override {};
|
|
|
|
private:
|
|
Point mStartPoint;
|
|
PointCollection mPoints;
|
|
}; |