Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLMC
Commits
bea3e163
Commit
bea3e163
authored
Dec 29, 2009
by
Vincent Carrubba
Browse files
Setting slot scope in Semantic object manager
parent
d2fdf756
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/EffectsEngine/EffectNode.cpp
View file @
bea3e163
...
...
@@ -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
);
}
...
...
src/EffectsEngine/PluginsAPI/InSlot.hpp
View file @
bea3e163
...
...
@@ -69,7 +69,7 @@ public:
void
setName
(
QString
const
&
name
);
void
setFather
(
EffectNode
*
father
);
void
setAsInternal
(
void
);
void
set
AsExternal
(
void
);
void
set
Scope
(
bool
isItAnInternalSlot
);
private:
...
...
@@ -227,18 +227,10 @@ void InSlot<T>::setFather( EffectNode* father )
}
template
<
typename
T
>
void
InSlot
<
T
>::
set
As
Internal
(
void
)
void
InSlot
<
T
>::
set
Scope
(
bool
isItAn
Internal
Slot
)
{
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
;
}
...
...
src/EffectsEngine/PluginsAPI/OutSlot.hpp
View file @
bea3e163
...
...
@@ -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
>::
set
As
Internal
(
void
)
void
OutSlot
<
T
>::
set
Scope
(
bool
isItAn
Internal
Slot
)
{
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
;
}
...
...
src/EffectsEngine/SemanticObjectManager.hpp
View file @
bea3e163
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment