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 | Static Private Member Functions | Static Private Attributes
Visualization::Line Class Reference
Inheritance diagram for Visualization::Line:
Core::Reflect< Base >

Public Types

typedef LineStyle StyleType
 

Public Member Functions

 Line (Item *parent, const LineStyle *style=itemStyles().get())
 
virtual QList< Visualization::VisualizationAddOn * > addOns () override
 
virtual Visualization::InteractionHandlerhandler () const override
 
virtual void setStyle (const Visualization::ItemStyle *itemStyle) override
 
virtual bool sizeDependsOnParent () const override
 
const StyleTypestyle () const
 

Static Public Member Functions

static void addAddOn (Visualization::VisualizationAddOn *addOn)
 
static Visualization::InteractionHandlerdefaultClassHandler ()
 
static Visualization::StyleSet< Line > & itemStyles ()
 
static bool removeAddOn (Visualization::VisualizationAddOn *addOn)
 
static void setDefaultClassHandler (Visualization::InteractionHandler *handler)
 

Protected Member Functions

virtual void determineChildren () override
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 
virtual void updateGeometry (int availableWidth, int availableHeight) override
 

Static Private Member Functions

static QList< Visualization::VisualizationAddOn * > & staticAddOns ()
 

Static Private Attributes

static Visualization::InteractionHandlerdefaultClassHandler_ = nullptr
 

Additional Inherited Members

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

Member Typedef Documentation

◆ StyleType

Constructor & Destructor Documentation

◆ Line()

Visualization::Line::Line ( Item parent,
const LineStyle style = itemStyles().get() 
)

Member Function Documentation

◆ addAddOn()

void Visualization::Line::addAddOn ( Visualization::VisualizationAddOn addOn)
static

◆ addOns()

QList< Visualization::VisualizationAddOn * > Visualization::Line::addOns ( )
overridevirtual

◆ defaultClassHandler()

static Visualization::InteractionHandler* Visualization::Line::defaultClassHandler ( )
inlinestatic

◆ determineChildren()

void Visualization::Line::determineChildren ( )
overrideprotectedvirtual

◆ handler()

Visualization::InteractionHandler * Visualization::Line::handler ( ) const
overridevirtual

◆ itemStyles()

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

◆ paint()

void Visualization::Line::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)
overrideprotectedvirtual

◆ removeAddOn()

bool Visualization::Line::removeAddOn ( Visualization::VisualizationAddOn addOn)
static

◆ setDefaultClassHandler()

static void Visualization::Line::setDefaultClassHandler ( Visualization::InteractionHandler handler)
inlinestatic

◆ setStyle()

void Visualization::Line::setStyle ( const Visualization::ItemStyle itemStyle)
overridevirtual

◆ sizeDependsOnParent()

bool Visualization::Line::sizeDependsOnParent ( ) const
overridevirtual

◆ staticAddOns()

QList< Visualization::VisualizationAddOn * > & Visualization::Line::staticAddOns ( )
staticprivate

◆ style()

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

◆ updateGeometry()

void Visualization::Line::updateGeometry ( int  availableWidth,
int  availableHeight 
)
overrideprotectedvirtual

Member Data Documentation

◆ defaultClassHandler_

Visualization::InteractionHandler * Visualization::Line::defaultClassHandler_ = nullptr
staticprivate