Commit bea3e163 authored by Vincent Carrubba's avatar Vincent Carrubba
Browse files

Setting slot scope in Semantic object manager

parent d2fdf756
......@@ -38,8 +38,12 @@ EffectNode::EffectNode(IEffectPlugin* plugin) : m_rwl( QReadWriteLock::Recursive
{
m_staticVideosInputs.setFather( this );
m_staticVideosOutputs.setFather( this );
m_staticVideosInputs.setScope( false );
m_staticVideosOutputs.setScope( false );
m_internalsStaticVideosInputs.setFather( this );
m_internalsStaticVideosOutputs.setFather( this );
m_internalsStaticVideosInputs.setScope( true );
m_internalsStaticVideosOutputs.setScope( true );
m_enf.setFather( this );
m_plugin->init( this );
}
......@@ -49,8 +53,12 @@ EffectNode::EffectNode() : m_father( NULL ), m_plugin( NULL ), m_visited( false
{
m_staticVideosInputs.setFather( this );
m_staticVideosOutputs.setFather( this );
m_staticVideosInputs.setScope( false );
m_staticVideosOutputs.setScope( false );
m_internalsStaticVideosInputs.setFather( this );
m_internalsStaticVideosOutputs.setFather( this );
m_internalsStaticVideosInputs.setScope( true );
m_internalsStaticVideosOutputs.setScope( true );
m_enf.setFather( this );
}
......
......@@ -69,7 +69,7 @@ public:
void setName( QString const & name );
void setFather( EffectNode* father );
void setAsInternal( void );
void setAsExternal( void );
void setScope( bool isItAnInternalSlot );
private:
......@@ -227,18 +227,10 @@ void InSlot<T>::setFather( EffectNode* father )
}
template<typename T>
void InSlot<T>::setAsInternal( void )
void InSlot<T>::setScope( bool isItAnInternalSlot )
{
QWriteLocker wl( &m_rwl );
m_isItAnInternalSlot = true;
return ;
}
template<typename T>
void InSlot<T>::setAsExternal( void )
{
QWriteLocker wl( &m_rwl );
m_isItAnInternalSlot = false;
m_isItAnInternalSlot = isItAnInternalSlot;
return ;
}
......
......@@ -72,8 +72,7 @@ public:
void setId( quint32 id );
void setName( QString const & name );
void setFather( EffectNode* father );
void setAsInternal( void );
void setAsExternal( void );
void setScope( bool isItAnInternalSlot );
private:
......@@ -246,18 +245,10 @@ void OutSlot<T>::setFather( EffectNode* father )
}
template<typename T>
void OutSlot<T>::setAsInternal( void )
void OutSlot<T>::setScope( bool isItAnInternalSlot )
{
QWriteLocker wl( &m_rwl );
m_isItAnInternalSlot = true;
return ;
}
template<typename T>
void OutSlot<T>::setAsExternal( void )
{
QWriteLocker wl( &m_rwl );
m_isItAnInternalSlot = false;
m_isItAnInternalSlot = isItAnInternalSlot;
return ;
}
......
......@@ -57,6 +57,12 @@ public:
return ;
}
inline void setScope( bool isItInternal )
{
m_isItInternal = isItInternal
return ;
}
// OBJECTS INFORMATIONS
inline QList<QString> getObjectsNamesList( void ) const
......@@ -109,6 +115,7 @@ public:
newObject->setId( objectId );
newObject->setName( objectName );
newObject->setFather( m_father );
newObject->setScope( m_isItInternal );
m_objectByName[ objectName ] = newObject;
m_objectById[ objectId ] = newObject;
......@@ -136,6 +143,8 @@ public:
newObject->setId( objectId );
newObject->setName( objectName );
newObject->setFather( m_father );
newObject->setScope( m_isItInternal );
m_objectByName[ objectName ] = newObject;
m_objectById[ objectId ] = newObject;
m_nameById[ objectId ] = objectName;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment