LibreOffice Module drawinglayer (master) 1
Public Member Functions | Private Attributes | List of all members
drawinglayer::primitive2d::BorderLine Class Reference

BorderLine class Helper class holding the style definition for a single part of a full BorderLine definition. More...

#include <borderlineprimitive2d.hxx>

Collaboration diagram for drawinglayer::primitive2d::BorderLine:
[legend]

Public Member Functions

 BorderLine (const drawinglayer::attribute::LineAttribute &rLineAttribute, double fStartLeft=0.0, double fStartRight=0.0, double fEndLeft=0.0, double fEndRight=0.0)
 
 BorderLine (double fWidth)
 
 ~BorderLine ()
 
 BorderLine (BorderLine const &)=default
 
 BorderLine (BorderLine &&)=default
 
BorderLineoperator= (BorderLine const &)=default
 
BorderLineoperator= (BorderLine &&)=default
 
const drawinglayer::attribute::LineAttributegetLineAttribute () const
 
double getStartLeft () const
 
double getStartRight () const
 
double getEndLeft () const
 
double getEndRight () const
 
bool isGap () const
 
bool operator== (const BorderLine &rBorderLine) const
 compare operator More...
 

Private Attributes

drawinglayer::attribute::LineAttribute maLineAttribute
 
double mfStartLeft
 
double mfStartRight
 
double mfEndLeft
 
double mfEndRight
 
bool mbIsGap
 

Detailed Description

BorderLine class Helper class holding the style definition for a single part of a full BorderLine definition.

Line extends are for start/end and for Left/Right, seen in vector direction. If Left != Right that means the line has a diagonal start/end. Think about it similar to a trapezoid, but not aligned to X-Axis and using the perpendicular vector to the given one in a right-handed coordinate system.

Definition at line 39 of file borderlineprimitive2d.hxx.

Constructor & Destructor Documentation

◆ BorderLine() [1/4]

drawinglayer::primitive2d::BorderLine::BorderLine ( const drawinglayer::attribute::LineAttribute rLineAttribute,
double  fStartLeft = 0.0,
double  fStartRight = 0.0,
double  fEndLeft = 0.0,
double  fEndRight = 0.0 
)

Definition at line 34 of file borderlineprimitive2d.cxx.

◆ BorderLine() [2/4]

drawinglayer::primitive2d::BorderLine::BorderLine ( double  fWidth)

Definition at line 49 of file borderlineprimitive2d.cxx.

◆ ~BorderLine()

drawinglayer::primitive2d::BorderLine::~BorderLine ( )

Definition at line 60 of file borderlineprimitive2d.cxx.

◆ BorderLine() [3/4]

drawinglayer::primitive2d::BorderLine::BorderLine ( BorderLine const &  )
default

◆ BorderLine() [4/4]

drawinglayer::primitive2d::BorderLine::BorderLine ( BorderLine &&  )
default

Member Function Documentation

◆ getEndLeft()

double drawinglayer::primitive2d::BorderLine::getEndLeft ( ) const
inline

◆ getEndRight()

double drawinglayer::primitive2d::BorderLine::getEndRight ( ) const
inline

◆ getLineAttribute()

const drawinglayer::attribute::LineAttribute & drawinglayer::primitive2d::BorderLine::getLineAttribute ( ) const
inline

◆ getStartLeft()

double drawinglayer::primitive2d::BorderLine::getStartLeft ( ) const
inline

◆ getStartRight()

double drawinglayer::primitive2d::BorderLine::getStartRight ( ) const
inline

◆ isGap()

bool drawinglayer::primitive2d::BorderLine::isGap ( ) const
inline

◆ operator=() [1/2]

BorderLine & drawinglayer::primitive2d::BorderLine::operator= ( BorderLine &&  )
default

◆ operator=() [2/2]

BorderLine & drawinglayer::primitive2d::BorderLine::operator= ( BorderLine const &  )
default

◆ operator==()

bool drawinglayer::primitive2d::BorderLine::operator== ( const BorderLine rBorderLine) const

compare operator

Definition at line 64 of file borderlineprimitive2d.cxx.

References getEndLeft(), getEndRight(), getLineAttribute(), getStartLeft(), getStartRight(), and isGap().

Member Data Documentation

◆ maLineAttribute

drawinglayer::attribute::LineAttribute drawinglayer::primitive2d::BorderLine::maLineAttribute
private

Definition at line 43 of file borderlineprimitive2d.hxx.

◆ mbIsGap

bool drawinglayer::primitive2d::BorderLine::mbIsGap
private

Definition at line 52 of file borderlineprimitive2d.hxx.

◆ mfEndLeft

double drawinglayer::primitive2d::BorderLine::mfEndLeft
private

Definition at line 48 of file borderlineprimitive2d.hxx.

◆ mfEndRight

double drawinglayer::primitive2d::BorderLine::mfEndRight
private

Definition at line 49 of file borderlineprimitive2d.hxx.

◆ mfStartLeft

double drawinglayer::primitive2d::BorderLine::mfStartLeft
private

Definition at line 46 of file borderlineprimitive2d.hxx.

◆ mfStartRight

double drawinglayer::primitive2d::BorderLine::mfStartRight
private

Definition at line 47 of file borderlineprimitive2d.hxx.


The documentation for this class was generated from the following files: