Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
TestNodes::PositionExtension Class Reference

Public Member Functions

 PositionExtension (::Model::CompositeNode *self, const QVector< ::Model::CompositeIndex > &extensionAttributes)
 
void setX (const int &val)
 
void setXNode (Model::Integer *node)
 
void setY (const int &val)
 
void setYNode (Model::Integer *node)
 
int x () const
 
Model::IntegerxNode () const
 
int y () const
 
Model::IntegeryNode () const
 

Static Public Member Functions

template<typename T >
static void extendNode (QVector< Model::CompositeIndex > &extensionAttributes)
 
static int extensionId ()
 
static void registerExtension ()
 

Static Private Member Functions

static int addAttributeToRegister_ (::Model::Attribute attribute)
 
static QList< ::Model::Attribute > & attributesToRegister_ ()
 

Private Attributes

const QVector< ::Model::CompositeIndex > & attr_
 
::Model::CompositeNodeself_
 

Static Private Attributes

static int extensionId_ = -1
 
static int xIndex = PositionExtension ::addAttributeToRegister_( ::Model::Attribute{"_ext_" "PositionExtension" "_" "x", "Integer", false , false , true })
 
static int yIndex = PositionExtension ::addAttributeToRegister_( ::Model::Attribute{"_ext_" "PositionExtension" "_" "y", "Integer", false , false , true })
 

Constructor & Destructor Documentation

◆ PositionExtension()

TestNodes::PositionExtension::PositionExtension ( ::Model::CompositeNode self,
const QVector< ::Model::CompositeIndex > &  extensionAttributes 
)

Member Function Documentation

◆ addAttributeToRegister_()

int TestNodes::PositionExtension::addAttributeToRegister_ ( ::Model::Attribute  attribute)
staticprivate

◆ attributesToRegister_()

QList<::Model::Attribute > & TestNodes::PositionExtension::attributesToRegister_ ( )
staticprivate

◆ extendNode()

template<typename T >
static void TestNodes::PositionExtension::extendNode ( QVector< Model::CompositeIndex > &  extensionAttributes)
inlinestatic

◆ extensionId()

static int TestNodes::PositionExtension::extensionId ( )
inlinestatic

◆ registerExtension()

void TestNodes::PositionExtension::registerExtension ( )
static

◆ setX()

void TestNodes::PositionExtension::setX ( const int &  val)
inline

◆ setXNode()

void TestNodes::PositionExtension::setXNode ( Model::Integer node)
inline

◆ setY()

void TestNodes::PositionExtension::setY ( const int &  val)
inline

◆ setYNode()

void TestNodes::PositionExtension::setYNode ( Model::Integer node)
inline

◆ x()

int TestNodes::PositionExtension::x ( ) const
inline

◆ xNode()

Model::Integer* TestNodes::PositionExtension::xNode ( ) const
inline

◆ y()

int TestNodes::PositionExtension::y ( ) const
inline

◆ yNode()

Model::Integer* TestNodes::PositionExtension::yNode ( ) const
inline

Member Data Documentation

◆ attr_

const QVector< ::Model::CompositeIndex >& TestNodes::PositionExtension::attr_
private

◆ extensionId_

int TestNodes::PositionExtension::extensionId_ = -1
staticprivate

◆ self_

::Model::CompositeNode* TestNodes::PositionExtension::self_
private

◆ xIndex

int TestNodes::PositionExtension::xIndex = PositionExtension ::addAttributeToRegister_( ::Model::Attribute{"_ext_" "PositionExtension" "_" "x", "Integer", false , false , true })
staticprivate

◆ yIndex

int TestNodes::PositionExtension::yIndex = PositionExtension ::addAttributeToRegister_( ::Model::Attribute{"_ext_" "PositionExtension" "_" "y", "Integer", false , false , true })
staticprivate