ui: typed edges
Edges in the graph view are now colored according to their type.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user