Hide menu
Loading...
Searching...
No Matches
cadex::Drawing::HatchDefinitionLine Class Reference

Represents a line definition used in creating a hatch pattern. More...

#include <cadex/Drawing/HatchDefinitionLine.hxx>

Inheritance diagram for cadex::Drawing::HatchDefinitionLine:
cadex::BaseObject

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.
 
- Public Member Functions inherited from cadex::BaseObject
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

- Public Types inherited from cadex::BaseObject
typedef std::shared_ptr< internal::BaseObjectImpl > ImplType
 
- Protected Member Functions inherited from cadex::BaseObject
 BaseObject (const ImplType &theImpl)
 

Detailed Description

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.

Member Function Documentation

◆ AddDash()

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.

◆ Dash()

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.