DATAKIT API  V2025.1
Dtk_HatchingPattern Class Reference

This is the Hatching Pattern class. This describes a repetition of lines/dots or coloring. It includes line style and colors as well. More...

Public Member Functions

Dtk_Double64Angle ()
 
const Dtk_Double64Angle () const
 Retrieves the angle between horizontal line and hatch line (or dot). Applies for hatching and dotting. More...
 
Dtk_RGBColor ()
 
const Dtk_RGBColor () const
 Retrieves the color of the pattern element. More...
 
 Dtk_HatchingPattern ()
 
 Dtk_HatchingPattern (const Dtk_HatchingPattern &p)
 
Dtk_HatchingStyleHatchingStyle ()
 
const Dtk_HatchingStyleHatchingStyle () const
 Retrieves the hatching style, one of the following : hatching, coloring or dotting. More...
 
Dtk_Int32LineType ()
 
const Dtk_Int32LineType () const
 Retrieves the hatch line type. Applies for hatching. The value can be casted to enum Dtk_FontLineType Returns one of the following values : More...
 
Dtk_Double64LineWidth ()
 
const Dtk_Double64LineWidth () const
 Retrieves the hatch line width. Applies for hatching. More...
 
Dtk_Double64Offset ()
 
const Dtk_Double64Offset () const
 Retrieves the position start offset along the hatch line. Applies for hatching and dotting. More...
 
Dtk_HatchingPatternoperator= (const Dtk_HatchingPattern &inToBeAssigned)
 
Dtk_Double64Pitch ()
 
const Dtk_Double64Pitch () const
 Retrieves the position offset perpendicular to the hatch line (or dot). Applies for hatching and dotting. More...
 

Data Fields

Dtk_Double64 _angle
 
Dtk_RGB _color
 
Dtk_Int32 _line_style
 
Dtk_Double64 _line_width
 
Dtk_Double64 _offset
 
Dtk_Double64 _pitch
 
Dtk_HatchingStyle _style
 

Detailed Description

This is the Hatching Pattern class. This describes a repetition of lines/dots or coloring. It includes line style and colors as well.

Constructor & Destructor Documentation

◆ Dtk_HatchingPattern() [1/2]

Dtk_HatchingPattern::Dtk_HatchingPattern ( )
8089  {
8090  this->_angle = 0.0;
8091  this->_line_style = 0;
8092  this->_line_width = 0.0;
8093  this->_offset = 0.0;
8094  this->_style = (Dtk_HatchingStyle) 0;
8095  this->_pitch = 0.0;
8096 
8097  }

◆ Dtk_HatchingPattern() [2/2]

Dtk_HatchingPattern::Dtk_HatchingPattern ( const Dtk_HatchingPattern p)
8100  {
8101  this->_angle = p._angle;
8102  this->_color = p._color;
8103  this->_line_style = p._line_style;
8104  this->_line_width = p._line_width;
8105  this->_offset = p._offset;
8106  this->_style = p._style;
8107  this->_pitch = p._pitch;
8108  }

Member Function Documentation

◆ Angle() [1/2]

Dtk_Double64& Dtk_HatchingPattern::Angle ( )

◆ Angle() [2/2]

const Dtk_Double64& Dtk_HatchingPattern::Angle ( ) const

Retrieves the angle between horizontal line and hatch line (or dot). Applies for hatching and dotting.

Returns
The angle between horizontal line and hatch line

◆ Color() [1/2]

Dtk_RGB& Dtk_HatchingPattern::Color ( )

◆ Color() [2/2]

const Dtk_RGB& Dtk_HatchingPattern::Color ( ) const

Retrieves the color of the pattern element.

Returns
The color of the pattern element.

◆ HatchingStyle() [1/2]

Dtk_HatchingStyle& Dtk_HatchingPattern::HatchingStyle ( )

◆ HatchingStyle() [2/2]

const Dtk_HatchingStyle& Dtk_HatchingPattern::HatchingStyle ( ) const

Retrieves the hatching style, one of the following : hatching, coloring or dotting.

Returns
The hatching style : Dtk_HatchingStyle_Hatching, Dtk_HatchingStyle_Coloring or Dtk_HatchingStyle_Dotting

◆ LineType() [1/2]

Dtk_Int32& Dtk_HatchingPattern::LineType ( )

◆ LineType() [2/2]

const Dtk_Int32& Dtk_HatchingPattern::LineType ( ) const

Retrieves the hatch line type. Applies for hatching. The value can be casted to enum Dtk_FontLineType Returns one of the following values :

See also
0 : No Pattern
1 : ________________________________ Solid
2 : _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Dash
3 : ________ _ _ _________ _ _ _____ Phantom
4 : ________ _ _________ _ _________ Center Line
5 : ................................ Dotted
6 : ___ ___ ___ ___ ___ ___ ___ ___ Long Dashed
7 : ___ . ___ . ___ . ___ . ___ . __ Dotted Dashed
8 : –'\,--—'\,--—'\,--—'\,— Breakline

◆ LineWidth() [1/2]

Dtk_Double64& Dtk_HatchingPattern::LineWidth ( )

◆ LineWidth() [2/2]

const Dtk_Double64& Dtk_HatchingPattern::LineWidth ( ) const

Retrieves the hatch line width. Applies for hatching.

Returns
The hatch line width

◆ Offset() [1/2]

Dtk_Double64& Dtk_HatchingPattern::Offset ( )

◆ Offset() [2/2]

const Dtk_Double64& Dtk_HatchingPattern::Offset ( ) const

Retrieves the position start offset along the hatch line. Applies for hatching and dotting.

Returns
The first position offset along the hatch line

◆ operator=()

Dtk_HatchingPattern& Dtk_HatchingPattern::operator= ( const Dtk_HatchingPattern inToBeAssigned)
8111  {
8112  if (&inToBeAssigned!=this)
8113  {
8114  this->_angle = inToBeAssigned._angle;
8115  this->_color = inToBeAssigned._color;
8116  this->_line_style = inToBeAssigned._line_style;
8117  this->_line_width = inToBeAssigned._line_width;
8118  this->_offset = inToBeAssigned._offset;
8119  this->_pitch = inToBeAssigned._pitch;
8120  this->_style = inToBeAssigned._style;
8121  }
8122  return *this;
8123 
8124  }

◆ Pitch() [1/2]

Dtk_Double64& Dtk_HatchingPattern::Pitch ( )

◆ Pitch() [2/2]

const Dtk_Double64& Dtk_HatchingPattern::Pitch ( ) const

Retrieves the position offset perpendicular to the hatch line (or dot). Applies for hatching and dotting.

Returns
The position offset perpendicular to the hatch line

Field Documentation

◆ _angle

Dtk_Double64 Dtk_HatchingPattern::_angle

◆ _color

Dtk_RGB Dtk_HatchingPattern::_color

◆ _line_style

Dtk_Int32 Dtk_HatchingPattern::_line_style

◆ _line_width

Dtk_Double64 Dtk_HatchingPattern::_line_width

◆ _offset

Dtk_Double64 Dtk_HatchingPattern::_offset

◆ _pitch

Dtk_Double64 Dtk_HatchingPattern::_pitch

◆ _style

Dtk_HatchingStyle Dtk_HatchingPattern::_style
Dtk_HatchingPattern::_offset
Dtk_Double64 _offset
Definition: util_draw_dtk.hpp:8081
Dtk_HatchingPattern::_style
Dtk_HatchingStyle _style
Definition: util_draw_dtk.hpp:8080
Dtk_HatchingPattern::_color
Dtk_RGB _color
Definition: util_draw_dtk.hpp:8084
Dtk_HatchingPattern::_line_style
Dtk_Int32 _line_style
Definition: util_draw_dtk.hpp:8085
Dtk_HatchingPattern::_line_width
Dtk_Double64 _line_width
Definition: util_draw_dtk.hpp:8086
Dtk_HatchingPattern::_pitch
Dtk_Double64 _pitch
Definition: util_draw_dtk.hpp:8083
Dtk_HatchingPattern::_angle
Dtk_Double64 _angle
Definition: util_draw_dtk.hpp:8082
Dtk_HatchingStyle
Dtk_HatchingStyle
Definition: util_draw_dtk.hpp:8066