LibreCAD
|
#include <dimangular.h>
Public Member Functions | |
DimAngular (geo::Coordinate const &definitionPoint, geo::Coordinate const &middleOfText, TextConst::AttachmentPoint const &attachmentPoint, double textAngle, double const lineSpacingFactor, TextConst::LineSpacingStyle const &lineSpacingStyle, std::string const &explicitValue, geo::Coordinate const &_defLine11, geo::Coordinate const &_defLine12, geo::Coordinate const &_defLine21, geo::Coordinate const &_defLine22, const Layer_CSPtr layer, const MetaInfo_CSPtr metaInfo=nullptr, const Block_CSPtr block=nullptr) | |
DimAngular (const DimAngular_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... | |
geo::Coordinate | defLine11 () const |
geo::Coordinate | defLine12 () const |
geo::Coordinate | defLine21 () const |
geo::Coordinate | defLine22 () 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 |
Static Public Member Functions | |
static DimAngular_SPtr | dimAuto (geo::Coordinate const ¢er, geo::Coordinate const &p1, geo::Coordinate const &p2, std::string const &explicitValue, const Layer_CSPtr layer, const MetaInfo_CSPtr metaInfo=nullptr, const Block_CSPtr block=nullptr) |
Protected Attributes | |
const geo::Coordinate | _defLine11 |
const geo::Coordinate | _defLine12 |
const geo::Coordinate | _defLine21 |
const geo::Coordinate | _defLine22 |
Additional Inherited Members | |
![]() | |
static std::atomic< ID_DATATYPE > | __idCounter |
![]() | |
CADEntity (const lc::builder::CADEntityBuilder &builder) | |
Definition at line 15 of file dimangular.h.
DimAngular::DimAngular | ( | geo::Coordinate const & | definitionPoint, |
geo::Coordinate const & | middleOfText, | ||
TextConst::AttachmentPoint const & | attachmentPoint, | ||
double | textAngle, | ||
double const | lineSpacingFactor, | ||
TextConst::LineSpacingStyle const & | lineSpacingStyle, | ||
std::string const & | explicitValue, | ||
geo::Coordinate const & | _defLine11, | ||
geo::Coordinate const & | _defLine12, | ||
geo::Coordinate const & | _defLine21, | ||
geo::Coordinate const & | _defLine22, | ||
const Layer_CSPtr | layer, | ||
const MetaInfo_CSPtr | metaInfo = nullptr , |
||
const Block_CSPtr | block = nullptr |
||
) |
Dimension | dimension |
geo::Coordinate | extension_point1 |
geo::Coordinate | extension_point2 |
double | oblique |
Layer_CSPtr | layer |
Definition at line 7 of file dimangular.cpp.
DimAngular::DimAngular | ( | const DimAngular_CSPtr | other, |
bool | sameID = false |
||
) |
Definition at line 32 of file dimangular.cpp.
|
inlineoverridevirtual |
Reimplemented from lc::entity::CADEntity.
Definition at line 100 of file dimangular.h.
|
overridevirtual |
boundingBox of the entity
Implements lc::entity::CADEntity.
Definition at line 98 of file dimangular.cpp.
|
overridevirtual |
copy, copies by an offset
geo::Coordinate | offset |
Implements lc::entity::CADEntity.
Definition at line 75 of file dimangular.cpp.
geo::Coordinate DimAngular::defLine11 | ( | ) | const |
Definition at line 124 of file dimangular.cpp.
geo::Coordinate DimAngular::defLine12 | ( | ) | const |
Definition at line 128 of file dimangular.cpp.
geo::Coordinate DimAngular::defLine21 | ( | ) | const |
Definition at line 132 of file dimangular.cpp.
geo::Coordinate DimAngular::defLine22 | ( | ) | const |
Definition at line 136 of file dimangular.cpp.
|
static |
Definition at line 41 of file dimangular.cpp.
|
inlineoverridevirtual |
Implements lc::entity::CADEntity.
Definition at line 102 of file dimangular.h.
|
overridevirtual |
Get all points of the entity that can be dragged.
Implements lc::Draggable.
Definition at line 140 of file dimangular.cpp.
|
overridevirtual |
Implements lc::entity::CADEntity.
Definition at line 92 of file dimangular.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 103 of file dimangular.cpp.
|
overridevirtual |
move, moves by an offset
geo::Coordinate | offset |
Implements lc::entity::CADEntity.
Definition at line 69 of file dimangular.cpp.
|
overridevirtual |
rotate, rotate operation
geo::Coordinate | rotation_center |
double | rotation_angle |
Implements lc::entity::CADEntity.
Definition at line 80 of file dimangular.cpp.
|
overridevirtual |
scale, scales the entity
geo::Coordinate | scale_center |
double | scale_factor |
Implements lc::entity::CADEntity.
Definition at line 86 of file dimangular.cpp.
|
overridevirtual |
Return modified entity.
dragPoints | Modified points |
Implements lc::Draggable.
Definition at line 154 of file dimangular.cpp.
|
protected |
Definition at line 95 of file dimangular.h.
|
protected |
Definition at line 96 of file dimangular.h.
|
protected |
Definition at line 97 of file dimangular.h.
|
protected |
Definition at line 98 of file dimangular.h.