LibreCAD
|
#include <dimradial.h>
Public Member Functions | |
DimRadial (geo::Coordinate const &definitionPoint, geo::Coordinate const &middleOfText, TextConst::AttachmentPoint const &attachmentPoint, double angle, double const lineSpacingFactor, TextConst::LineSpacingStyle const &lineSpacingStyle, std::string const &explicitValue, geo::Coordinate const &definitionPoint2, const double leader, const Layer_CSPtr layer, const MetaInfo_CSPtr metaInfo=nullptr, const Block_CSPtr block=nullptr) | |
DimRadial. More... | |
DimRadial (geo::Coordinate const &definitionPoint, TextConst::AttachmentPoint const &attachmentPoint, double const lineSpacingFactor, TextConst::LineSpacingStyle const &lineSpacingStyle, std::string const &explicitValue, geo::Coordinate const &definitionPoint2, const double leader, const Layer_CSPtr layer, const MetaInfo_CSPtr metaInfo=nullptr, const Block_CSPtr block=nullptr) | |
DimRadial (const DimRadial_CSPtr other, bool sameID=false) | |
virtual CADEntity_CSPtr | move (const geo::Coordinate &offset) const override |
move, moves by an offset More... | |
virtual CADEntity_CSPtr | copy (const geo::Coordinate &offset) const override |
copy, copies by an offset More... | |
virtual CADEntity_CSPtr | rotate (const geo::Coordinate &rotation_center, const double rotation_angle) const override |
rotate, rotate operation More... | |
virtual CADEntity_CSPtr | scale (const geo::Coordinate &scale_center, const geo::Coordinate &scale_factor) const override |
scale, scales the entity More... | |
virtual CADEntity_CSPtr | mirror (const geo::Coordinate &axis1, const geo::Coordinate &axis2) const override |
virtual const geo::Area | boundingBox () const override |
boundingBox of the entity More... | |
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 information #return new entity with same ID More... | |
double | leader () const |
geo::Coordinate | definitionPoint2 () const |
virtual void | accept (GeoEntityVisitor &v) const override |
virtual void | dispatch (EntityDispatch &ed) const override |
virtual std::map< unsigned int, lc::geo::Coordinate > | dragPoints () const override |
Get all points of the entity that can be dragged. More... | |
virtual CADEntity_CSPtr | setDragPoints (std::map< unsigned int, lc::geo::Coordinate > dragPoints) const override |
Return modified entity. More... | |
![]() | |
CADEntity () | |
CADEntity (Layer_CSPtr layer, const MetaInfo_CSPtr metaInfo=nullptr, const Block_CSPtr block=nullptr) | |
CADEntity Constructor. More... | |
CADEntity (CADEntity_CSPtr cadEntity, bool sameID) | |
CADEntity (CADEntity_CSPtr cadEntity) | |
virtual | ~CADEntity ()=default |
Layer_CSPtr | layer () const |
layer return the layer this entity is placed on More... | |
template<typename T > | |
const std::shared_ptr< const T > | metaInfo (std::string metaName) const |
MetaInfo_CSPtr | metaInfo () const |
Block_CSPtr | block () const |
Return the current entity block. More... | |
![]() | |
ID () | |
Default constructor, provides a new unique ID to each entity. More... | |
ID (ID_DATATYPE) | |
virtual | ~ID ()=default |
ID_DATATYPE | id () const |
returns the ID of the entity More... | |
bool | operator== (const ID &id) const |
void | setID (ID_DATATYPE id) |
![]() | |
virtual | ~Visitable ()=default |
![]() | |
Dimension (geo::Coordinate const &definitionPoint, geo::Coordinate const &middleOfText, TextConst::AttachmentPoint const &attachmentPoint, double const textAngle, double lineSpacingFactor, TextConst::LineSpacingStyle const &lineSpacingStyle, std::string const &explicitValue) | |
Dimension. More... | |
Dimension (geo::Coordinate const &_definitionPoint, geo::Coordinate const &_middleOfText, TextConst::AttachmentPoint _attachPt, double _angle) | |
Dimension. More... | |
Dimension (Dimension const &other) | |
const geo::Coordinate & | definitionPoint () const noexcept |
move, moves by an offset More... | |
const geo::Coordinate & | middleOfText () const noexcept |
TextConst::AttachmentPoint const & | attachmentPoint () const |
double | textAngle () const |
double | lineSpacingFactor () const |
TextConst::LineSpacingStyle | lineSpacingStyle () const |
std::string | explicitValue () const |
Protected Attributes | |
const double | _leader |
const geo::Coordinate | _definitionPoint2 |
Additional Inherited Members | |
![]() | |
static std::atomic< ID_DATATYPE > | __idCounter |
![]() | |
CADEntity (const lc::builder::CADEntityBuilder &builder) | |
DimRadial dimension DefinitionPoint hold's the center of the radius DefinitionPoint2 holds the circle/arc edge CenterText holds' the location of the text
Definition at line 21 of file dimradial.h.
DimRadial::DimRadial | ( | geo::Coordinate const & | definitionPoint, |
geo::Coordinate const & | middleOfText, | ||
TextConst::AttachmentPoint const & | attachmentPoint, | ||
double | angle, | ||
double const | lineSpacingFactor, | ||
TextConst::LineSpacingStyle const & | lineSpacingStyle, | ||
std::string const & | explicitValue, | ||
geo::Coordinate const & | definitionPoint2, | ||
const double | leader, | ||
const Layer_CSPtr | layer, | ||
const MetaInfo_CSPtr | metaInfo = nullptr , |
||
const Block_CSPtr | block = nullptr |
||
) |
Dimension | dimension |
double | leader |
Layer_CSPtr | layer |
MetaTypes_CSPtr | metaTypes |
Definition at line 6 of file dimradial.cpp.
DimRadial::DimRadial | ( | geo::Coordinate const & | definitionPoint, |
TextConst::AttachmentPoint const & | attachmentPoint, | ||
double const | lineSpacingFactor, | ||
TextConst::LineSpacingStyle const & | lineSpacingStyle, | ||
std::string const & | explicitValue, | ||
geo::Coordinate const & | definitionPoint2, | ||
const double | leader, | ||
const Layer_CSPtr | layer, | ||
const MetaInfo_CSPtr | metaInfo = nullptr , |
||
const Block_CSPtr | block = nullptr |
||
) |
Simplified version that set's the midpoint to the middle of the radius and angle to the angle of definitionPoint and definitionPoint2
Definition at line 25 of file dimradial.cpp.
DimRadial::DimRadial | ( | const DimRadial_CSPtr | other, |
bool | sameID = false |
||
) |
Definition at line 41 of file dimradial.cpp.
|
inlineoverridevirtual |
Reimplemented from lc::entity::CADEntity.
Definition at line 113 of file dimradial.h.
|
overridevirtual |
boundingBox of the entity
Implements lc::entity::CADEntity.
Definition at line 74 of file dimradial.cpp.
|
overridevirtual |
copy, copies by an offset
geo::Coordinate | offset |
Implements lc::entity::CADEntity.
Definition at line 51 of file dimradial.cpp.
geo::Coordinate DimRadial::definitionPoint2 | ( | ) | const |
Definition at line 101 of file dimradial.cpp.
|
inlineoverridevirtual |
Implements lc::entity::CADEntity.
Definition at line 115 of file dimradial.h.
|
overridevirtual |
Get all points of the entity that can be dragged.
Implements lc::Draggable.
Definition at line 105 of file dimradial.cpp.
double DimRadial::leader | ( | ) | const |
Definition at line 97 of file dimradial.cpp.
|
overridevirtual |
Implements lc::entity::CADEntity.
Definition at line 68 of file dimradial.cpp.
|
overridevirtual |
modify Return a new entity with the same ID bit with possible modified metainfo and/pr layer information #return new entity with same ID
Implements lc::entity::CADEntity.
Definition at line 79 of file dimradial.cpp.
|
overridevirtual |
move, moves by an offset
geo::Coordinate | offset |
Implements lc::entity::CADEntity.
Definition at line 45 of file dimradial.cpp.
|
overridevirtual |
rotate, rotate operation
geo::Coordinate | rotation_center |
double | rotation_angle |
Implements lc::entity::CADEntity.
Definition at line 56 of file dimradial.cpp.
|
overridevirtual |
scale, scales the entity
geo::Coordinate | scale_center |
double | scale_factor |
Implements lc::entity::CADEntity.
Definition at line 62 of file dimradial.cpp.
|
overridevirtual |
Return modified entity.
dragPoints | Modified points |
Implements lc::Draggable.
Definition at line 116 of file dimradial.cpp.
|
protected |
Definition at line 111 of file dimradial.h.
|
protected |
Definition at line 110 of file dimradial.h.