Represents a line definition used in creating a hatch pattern. More...
#include <cadex/Drawing/HatchDefinitionLine.hxx>
Public Member Functions | |
HatchDefinitionLine () | |
Constructor. | |
void | SetAngle (double theAngle) |
Sets the angle for the hatch definition line. | |
double | Angle () const |
Returns the angle of the hatch definition line. | |
void | SetBasePoint (const Geom::Point2d &thePoint) |
Sets the base point for the hatch definition line. | |
Geom::Point2d | BasePoint () const |
Returns the base point of the hatch definition line. | |
void | SetOffset (const Geom::Vector2d &theOffset) |
Sets the offset for the hatch definition line. | |
Geom::Vector2d | Offset () const |
Returns the offset of the hatch definition line. | |
void | AddDash (double theDash) |
Adds the dash. | |
size_t | NumberOfDashes () const |
Returns the number of dashes. | |
double | Dash (size_t theIndex) const |
Returns the dash. | |
![]() | |
size_t | Id () const |
Return unique identifier of public object. | |
internal::BaseObjectImpl * | Impl () const |
bool | IsNull () const |
operator bool () const | |
template<typename T > | |
bool | IsOfType () const |
template<typename T > | |
T * | Impl () const |
Reserved for internal use. | |
Additional Inherited Members | |
![]() | |
typedef std::shared_ptr< internal::BaseObjectImpl > | ImplType |
![]() | |
BaseObject (const ImplType &theImpl) | |
Represents a line definition used in creating a hatch pattern.
This class defines parameters such as angle, base point, offset, and dashes for the definition lines in hatch patterns. It follows the scheme used by AutoCAD.
void cadex::Drawing::HatchDefinitionLine::AddDash | ( | double | theDash | ) |
Adds the dash.
Adds a dash with a specified length (positive) or gap (negative). Order is determined by the sequence of additions.
double cadex::Drawing::HatchDefinitionLine::Dash | ( | size_t | theIndex | ) | const |
Returns the dash.
theIndex must be in the range [0, NumberOfDashes()-1]. Otherwise the result is undefined.