ui: typed edges

Edges in the graph view are now colored according to their type.
This commit is contained in:
Manuel Dobusch
2014-07-16 15:38:54 +02:00
parent 40ca86a172
commit 2c9c83d003
9 changed files with 94 additions and 49 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ public:
Vector2<T> normalized() const;
template<class U>
void operator=(Vector2<U>& other);
void operator=(const Vector2<U>& other);
protected:
static const unsigned int m_xIndex = 0;
@@ -131,7 +131,7 @@ Vector2<T> Vector2<T>::normalized() const
template<class T>
template<class U>
void Vector2<T>::operator=(Vector2<U>& other)
void Vector2<T>::operator=(const Vector2<U>& other)
{
this->assign(other);
}
+9 -2
View File
@@ -30,7 +30,7 @@ public:
Vector4<T> normalized() const;
template<class U>
void operator=(Vector4<U>& other);
void operator=(const Vector4<U>& other);
protected:
static const unsigned int m_xIndex = 0;
@@ -145,9 +145,16 @@ Vector4<T> Vector4<T>::normalized() const
return VectorBase<T, 4>::normalized();
}
//template<class T>
//template<class U>
//void Vector4<T>::operator=(Vector4<U>& other)
//{
// this->assign(other);
//}
template<class T>
template<class U>
void Vector4<T>::operator=(Vector4<U>& other)
void Vector4<T>::operator=(const Vector4<U>& other)
{
this->assign(other);
}
+2 -2
View File
@@ -57,7 +57,7 @@ public:
T operator[](const unsigned int index);
template<class U>
void operator=(VectorBase<U, N>& other);
void operator=(const VectorBase<U, N>& other);
template<class U>
VectorBase<T, N> operator+(const VectorBase<U, N>& other) const;
@@ -325,7 +325,7 @@ T VectorBase<T, N>::operator[](const unsigned int index)
template<class T, unsigned int N>
template<class U>
void VectorBase<T, N>::operator=(VectorBase<U, N>& other)
void VectorBase<T, N>::operator=(const VectorBase<U, N>& other)
{
assign(other);
}