LibreCAD
|
#include <dimension.h>
Public Member Functions | |
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 |
Private Attributes | |
const geo::Coordinate | _definitionPoint |
const geo::Coordinate | _middleOfText |
const TextConst::AttachmentPoint | _attachmentPoint |
const double | _textAngle |
const double | _lineSpacingFactor |
const TextConst::LineSpacingStyle | _lineSpacingStyle |
const std::string | _explicitValue |
Base class for all dimensions It takes in the values pretty much as given by the DXF reference TODO: Should we move some variables to the implementation of an actual Dimension like DimRadial and have all optional variables as part of the meta map?
Definition at line 16 of file dimension.h.
Dimension::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 | ||
) |
definitionPoint | definition_point of the dimension |
middleOfText | Middle of text |
attachmentPoint | Where the text is located in reference to the text location |
angle | Angle of obliqueness |
lineSpacingFactor | Spacing factor |
lineSpacingStyle | name |
explicitValue | given value |
Definition at line 7 of file dimension.cpp.
Dimension::Dimension | ( | geo::Coordinate const & | _definitionPoint, |
geo::Coordinate const & | _middleOfText, | ||
TextConst::AttachmentPoint | _attachPt, | ||
double | _angle | ||
) |
definitionPoint | definition_point of the dimension |
middleOfText | Middle of text |
attachmentPoint | Where the text is located in reference to the text location |
angle | Angle of obliqueness |
Definition at line 18 of file dimension.cpp.
Dimension::Dimension | ( | Dimension const & | other | ) |
Definition at line 30 of file dimension.cpp.
TextConst::AttachmentPoint const & Dimension::attachmentPoint | ( | ) | const |
Definition at line 83 of file dimension.cpp.
|
noexcept |
move, moves by an offset
geo::Coordinate | offset |
geo::Coordinate | offset |
geo::Coordinate | rotation_center |
double | rotation_angle |
geo::Coordinate | scale_center |
double | scale_factor |
Definition at line 71 of file dimension.cpp.
std::string Dimension::explicitValue | ( | ) | const |
Returns the explicit value of this dimension The explicit value is the value given by the user instead of the measured one default is the measurement. If "" or "<>" if a blank space it's suppressed
Definition at line 95 of file dimension.cpp.
double Dimension::lineSpacingFactor | ( | ) | const |
TextConst::LineSpacingStyle Dimension::lineSpacingStyle | ( | ) | const |
Line spacing style
Definition at line 91 of file dimension.cpp.
|
noexcept |
double Dimension::textAngle | ( | ) | const |
|
private |
Definition at line 120 of file dimension.h.
|
private |
Definition at line 118 of file dimension.h.
|
private |
Definition at line 124 of file dimension.h.
|
private |
Definition at line 122 of file dimension.h.
|
private |
Definition at line 123 of file dimension.h.
|
private |
Definition at line 119 of file dimension.h.
|
private |
Definition at line 121 of file dimension.h.