Seamly2D
Code documentation
VScaledLine Class Reference

#include <scalesceneitems.h>

Inheritance diagram for VScaledLine:
Collaboration diagram for VScaledLine:

Public Types

enum  { Type = UserType + static_cast<int>(Vis::ScaledLine) }
 

Public Member Functions

 VScaledLine (QGraphicsItem *parent=nullptr)
 
 VScaledLine (const QLineF &line, QGraphicsItem *parent=nullptr)
 
virtual ~VScaledLine ()=default
 
virtual int type () const Q_DECL_OVERRIDE
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) Q_DECL_OVERRIDE
 
qreal GetBasicWidth () const
 
void setBasicWidth (const qreal &value)
 

Private Attributes

qreal basicWidth
 

Detailed Description

Definition at line 62 of file scalesceneitems.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Type 

Definition at line 70 of file scalesceneitems.h.

Constructor & Destructor Documentation

◆ VScaledLine() [1/2]

VScaledLine::VScaledLine ( QGraphicsItem *  parent = nullptr)
explicit

Definition at line 60 of file scalesceneitems.cpp.

◆ VScaledLine() [2/2]

VScaledLine::VScaledLine ( const QLineF &  line,
QGraphicsItem *  parent = nullptr 
)

Definition at line 66 of file scalesceneitems.cpp.

◆ ~VScaledLine()

virtual VScaledLine::~VScaledLine ( )
virtualdefault

Member Function Documentation

◆ GetBasicWidth()

qreal VScaledLine::GetBasicWidth ( ) const

Definition at line 82 of file scalesceneitems.cpp.

References basicWidth.

◆ paint()

void VScaledLine::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = nullptr 
)
virtual

Definition at line 72 of file scalesceneitems.cpp.

References basicWidth, scaleWidth(), and sceneScale().

◆ setBasicWidth()

◆ type()

Member Data Documentation

◆ basicWidth

qreal VScaledLine::basicWidth
private

Definition at line 81 of file scalesceneitems.h.

Referenced by GetBasicWidth(), paint(), and setBasicWidth().


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