|
Envision
A visual programming IDE for object-oriented languages
|
Public Types | |
| typedef ShapeStyle | StyleType |
Public Member Functions | |
| Shape (Item *parent, ShapeStyle *style=nullptr) | |
| virtual | ~Shape () |
| virtual int | contentLeft () |
| virtual QRect | contentRect ()=0 |
| virtual int | contentTop () |
| QSize | innerSize (int outerWidth, int outerHeight) const |
| virtual QSize | innerSize (QSize outerSize) const |
| QSize | outerSize (int innerWidth, int innerHeight) const |
| virtual QSize | outerSize (QSize innerSize) const |
| virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)=0 |
| void | setInnerSize (int width, int height) |
| void | setOffset (int x, int y) |
| void | setOuterSize (int width, int height) |
| virtual void | setStyle (const Visualization::ShapeStyle *style) |
| const StyleType * | style () const |
Static Public Member Functions | |
| static Shape * | createNewShape (const QString &shapeName, Item *parent) |
| static ShapeStyle * | createNewShapeStyle (const QString &shapeName) |
| static StyleSet< Shape > & | itemStyles () |
| template<typename ShapeClass > | |
| static void | registerShape () |
Protected Types | |
| enum | SizeType { InnerSize , OuterSize } |
Protected Member Functions | |
| int | height () const |
| Item * | parentItem () const |
| void | setItemSize (int width, int height) |
| void | setParentNeedsUpdate () |
| SizeType | sizeSpecified () const |
| virtual void | update ()=0 |
| int | width () const |
| int | xOffset () const |
| int | yOffset () const |
Private Types | |
| typedef Shape *(* | ShapeConstructor) (Item *parent_) |
| typedef ShapeStyle *(* | ShapeStyleConstructor) () |
Static Private Member Functions | |
| template<typename Base , typename Actual > | |
| static Base * | makeDefaultShape (Item *parent) |
| template<typename Base , typename Actual > | |
| static Base * | makeDefaultStyle () |
Private Attributes | |
| int | height_ {} |
| Item * | parent_ {} |
| SizeType | sizeToUse {} |
| const ShapeStyle * | style_ {} |
| int | width_ {} |
| int | xOffset_ {} |
| int | yOffset_ {} |
Static Private Attributes | |
| static QMap< QString, ShapeConstructor > | shapeConstructors |
| static QMap< QString, ShapeStyleConstructor > | shapeStyleConstructors |
|
private |
|
protected |
| Visualization::Shape::Shape | ( | Item * | parent, |
| ShapeStyle * | style = nullptr |
||
| ) |
|
virtual |
|
virtual |
|
pure virtual |
|
virtual |
|
static |
|
inlineprotected |
|
inline |
|
virtual |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inline |
|
virtual |
|
pure virtual |
|
inlineprotected |
|
inlinestatic |
| void Visualization::Shape::setInnerSize | ( | int | width, |
| int | height | ||
| ) |
|
protected |
| void Visualization::Shape::setOffset | ( | int | x, |
| int | y | ||
| ) |
| void Visualization::Shape::setOuterSize | ( | int | width, |
| int | height | ||
| ) |
|
protected |
|
virtual |
|
inlineprotected |
|
inline |
|
protectedpure virtual |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |