47 const Layer_CSPtr
layer,
48 const MetaInfo_CSPtr
metaInfo =
nullptr,
49 const Block_CSPtr
block =
nullptr
52 Ellipse(
const Ellipse_CSPtr other,
bool sameID =
false);
75 virtual CADEntity_CSPtr
97 virtual CADEntity_CSPtr
110 virtual std::vector<EntityCoordinate>
112 int maxNumberOfSnapPoints)
const override;
120 ed.
visit(shared_from_this());
virtual std::vector< EntityCoordinate > snapPoints(const geo::Coordinate &coord, const SimpleSnapConstrain &constrain, double minDistanceToSnap, int maxNumberOfSnapPoints) const override
see interface Snapable
virtual CADEntity_CSPtr rotate(const geo::Coordinate &rotation_center, const double rotation_angle) const override
rotate, rotate operation
double startAngle() const
startAngle, Returns Start elliptic!! angle of ellipse
virtual CADEntity_CSPtr copy(const geo::Coordinate &offset) const override
copy, copies by an offset
virtual geo::Coordinate nearestPointOnPath(const geo::Coordinate &coord) const override
Find the nearest point on the path for this entity for the coordinate coord The path of a entity that...
std::vector< lc::geo::Coordinate > findBoxPoints() const
virtual CADEntity_CSPtr modify(Layer_CSPtr layer, const MetaInfo_CSPtr metaInfo, Block_CSPtr block) const override
modify Return a new entity with the same ID bit with possible modified metainfo and/pr layer informat...
virtual void visit(entity::Line_CSPtr)=0
Layer_CSPtr layer() const
layer return the layer this entity is placed on
virtual CADEntity_CSPtr mirror(const geo::Coordinate &axis1, const geo::Coordinate &axis2) const override
MetaInfo_CSPtr metaInfo() const
DECLARE_SHORT_SHARED_PTR(Document)
A ellipse that can be put in a drawing.
virtual void dispatch(EntityDispatch &ed) const override
Block_CSPtr block() const
Return the current entity block.
virtual const geo::Area boundingBox() const override
boundingBox of the entity
virtual CADEntity_CSPtr scale(const geo::Coordinate &scale_center, const geo::Coordinate &scale_factor) const override
scale, scales the entity
double endAngle() const
endAngle, Return the end elliptic!! angle of ellipse
virtual CADEntity_CSPtr move(const geo::Coordinate &offset) const override
move, moves by an offset
virtual void accept(GeoEntityVisitor &v) const override
Ellipse(const geo::Coordinate ¢er, const geo::Coordinate &majorP, double minorRadius, double startAngle, double endAngle, bool reversed, const Layer_CSPtr layer, const MetaInfo_CSPtr metaInfo=nullptr, const Block_CSPtr block=nullptr)
Create ellipse.
const Coordinate center() const
center, Returns Center point of Ellipse
double minorRadius() const
minorRadius, Returns the minor radius of ellipse
const Coordinate majorP() const
majorP, Returns major point of the ellipse, relative to center