Envision
A visual programming IDE for object-oriented languages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
Visualization::Diamond Class Reference
Inheritance diagram for Visualization::Diamond:
Core::Reflect< Base >

Public Types

typedef DiamondStyle StyleType
 

Public Member Functions

 Diamond (Item *parent, StyleType *style=itemStyles().get())
 
virtual int contentLeft () override
 
virtual QRect contentRect () override
 
virtual int contentTop () override
 
virtual QSize innerSize (QSize outerSize) const override
 
virtual QSize outerSize (QSize innerSize) const override
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 
virtual void setStyle (const Visualization::ShapeStyle *shapeStyle) override
 
const StyleTypestyle () const
 
virtual void update () override
 

Static Public Member Functions

static StyleSet< Diamond > & itemStyles ()
 

Protected Member Functions

QPainterPath getDiamondPath (qreal x, qreal y, int width, int height)
 

Protected Attributes

qreal contentLeft_
 
qreal contentTop_
 
qreal heightWithoutShadow
 
qreal widthWithoutShadow
 

Additional Inherited Members

- Protected Types inherited from Core::Reflect< Base >
using Super = Reflect< Base >
 

Member Typedef Documentation

◆ StyleType

Constructor & Destructor Documentation

◆ Diamond()

Visualization::Diamond::Diamond ( Item parent,
StyleType style = itemStyles().get() 
)

Member Function Documentation

◆ contentLeft()

int Visualization::Diamond::contentLeft ( )
overridevirtual

◆ contentRect()

QRect Visualization::Diamond::contentRect ( )
overridevirtual

◆ contentTop()

int Visualization::Diamond::contentTop ( )
overridevirtual

◆ getDiamondPath()

QPainterPath Visualization::Diamond::getDiamondPath ( qreal  x,
qreal  y,
int  width,
int  height 
)
protected

◆ innerSize()

QSize Visualization::Diamond::innerSize ( QSize  outerSize) const
overridevirtual

◆ itemStyles()

StyleSet< Diamond > & Visualization::Diamond::itemStyles ( )
static

◆ outerSize()

QSize Visualization::Diamond::outerSize ( QSize  innerSize) const
overridevirtual

◆ paint()

void Visualization::Diamond::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)
overridevirtual

◆ setStyle()

void Visualization::Diamond::setStyle ( const Visualization::ShapeStyle shapeStyle)
overridevirtual

◆ style()

const StyleType* Visualization::Diamond::style ( ) const
inline

◆ update()

void Visualization::Diamond::update ( )
overridevirtual

Member Data Documentation

◆ contentLeft_

qreal Visualization::Diamond::contentLeft_
protected

◆ contentTop_

qreal Visualization::Diamond::contentTop_
protected

◆ heightWithoutShadow

qreal Visualization::Diamond::heightWithoutShadow
protected

◆ widthWithoutShadow

qreal Visualization::Diamond::widthWithoutShadow
protected