34 const Layer_CSPtr
layer,
35 const MetaInfo_CSPtr
metaInfo =
nullptr,
36 const Block_CSPtr
block =
nullptr
48 Image(
const Image_CSPtr other,
bool sameID =
false);
52 int maxNumberOfSnapPoints)
const override;
77 virtual CADEntity_CSPtr
rotate(
const geo::Coordinate &rotation_center,
const double rotation_angle)
const override;
99 virtual CADEntity_CSPtr
modify(Layer_CSPtr layer,
const MetaInfo_CSPtr
metaInfo, Block_CSPtr
block)
const override;
101 const std::string &
name()
const {
142 ed.
visit(shared_from_this());
const geo::Coordinate & base() const
const geo::Coordinate & uv() const
virtual CADEntity_CSPtr scale(const geo::Coordinate &scale_center, const geo::Coordinate &scale_factor) const override
scale, scales the entity
virtual void dispatch(EntityDispatch &ed) const override
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 const geo::Area boundingBox() const override
boundingBox of the entity
virtual void visit(entity::Line_CSPtr)=0
double _fade
Brightness value, code 283, (0-100) default 0.
Layer_CSPtr layer() const
layer return the layer this entity is placed on
virtual std::vector< EntityCoordinate > snapPoints(const geo::Coordinate &coord, const SimpleSnapConstrain &constrain, double minDistanceToSnap, int maxNumberOfSnapPoints) const override
Find a number of snap points the line has available This function returns a ordered list...
virtual CADEntity_CSPtr rotate(const geo::Coordinate &rotation_center, const double rotation_angle) const override
rotate, rotate operation
virtual CADEntity_CSPtr move(const geo::Coordinate &offset) const override
move, moves by an offset
MetaInfo_CSPtr metaInfo() const
DECLARE_SHORT_SHARED_PTR(Document)
Image(const std::string &name, const geo::Coordinate &base, const geo::Coordinate &uv, const geo::Coordinate &vv, double width, double height, double brightness, double contrast, double fade, const Layer_CSPtr layer, const MetaInfo_CSPtr metaInfo=nullptr, const Block_CSPtr block=nullptr)
const geo::Coordinate & vv() const
Block_CSPtr block() const
Return the current entity block.
double _brightness
Brightness value, code 281, (0-100) default 50.
virtual CADEntity_CSPtr copy(const geo::Coordinate &offset) const override
copy, copies Image by an offset
virtual CADEntity_CSPtr mirror(const geo::Coordinate &axis1, const geo::Coordinate &axis2) const override
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...
virtual void accept(GeoEntityVisitor &v) const override
double _contrast
Brightness value, code 282, (0-100) default 50.
const std::string & name() const
A Image that can be put in a drawing.
double brightness() const