ui: graphView

Graph view has now toggle-able subnodes. Subnodes connected to the active node are always visible.

fortune cookie message = You will enjoy true success in whatever you do.
This commit is contained in:
Manuel Dobusch
2014-10-20 14:36:57 +02:00
parent ce666acbfd
commit 103e60b52a
16 changed files with 478 additions and 72 deletions
+8
View File
@@ -9,6 +9,7 @@ public:
~Property();
T& operator=(const T& value);
T& operator=(const Property& property);
operator const T&() const;
@@ -34,6 +35,13 @@ T& Property<T>::operator=(const T& value)
return *m_valuePointer;
}
template<class T>
T& Property<T>::operator=(const Property& property)
{
*m_valuePointer = *property.m_valuePointer;
return *m_valuePointer;
}
template<class T>
Property<T>::operator const T&() const
{
+2
View File
@@ -134,6 +134,8 @@ template<class U>
void Vector2<T>::operator=(const Vector2<U>& other)
{
this->assign(other);
x = Property(&VectorBase<T, 2>::m_values[m_xIndex]);
y = Property(&VectorBase<T, 2>::m_values[m_yIndex]);
}
typedef Vector2<float> Vec2f;