Skip to content
Snippets Groups Projects
Commit 686c111d authored by Amorilia's avatar Amorilia
Browse files

Added some const qualifiers.

parent 18677e45
No related branches found
No related tags found
No related merge requests found
......@@ -542,15 +542,15 @@ public:
//--IShapeData--//
//Counts
short GetVertexCount() { return short(vertices.size()); }
short GetUVSetCount() { return short(uv_sets.size()); }
short GetVertexCount() const { return short(vertices.size()); }
short GetUVSetCount() const { return short(uv_sets.size()); }
void SetVertexCount(int n);
void SetUVSetCount(int n);
//Getters
vector<Vector3> GetVertices() { return vertices; }
vector<Vector3> GetNormals() { return normals; }
vector<Color> GetColors() { return colors; }
vector<TexCoord> GetUVSet( int index ) { return uv_sets[index]; }
vector<Vector3> GetVertices() const { return vertices; }
vector<Vector3> GetNormals() const { return normals; }
vector<Color> GetColors() const { return colors; }
vector<TexCoord> GetUVSet( int index ) const { return uv_sets[index]; }
//Setters
void SetVertices( const vector<Vector3> & in );
void SetNormals( const vector<Vector3> & in );
......@@ -1217,7 +1217,7 @@ public:
KeyType GetKeyType() { return _type; }
void SetKeyType( KeyType t ) { _type = t; }
vector< Key<Color> > GetKeys() { return _keys; }
void SetKeys( vector< Key<Color> > & keys ) { _keys = keys; }
void SetKeys( vector< Key<Color> > const & keys ) { _keys = keys; }
private:
KeyType _type;
......@@ -1261,7 +1261,7 @@ public:
KeyType GetKeyType() { return _type; }
void SetKeyType( KeyType t ) { _type = t; }
vector< Key<float> > GetKeys() { return _keys; }
void SetKeys( vector< Key<float> > & keys ) { _keys = keys; }
void SetKeys( vector< Key<float> > const & keys ) { _keys = keys; }
private:
KeyType _type;
......@@ -1366,7 +1366,7 @@ public:
KeyType GetKeyType() { return _type; }
void SetKeyType( KeyType t ) { _type = t; }
vector< Key<Vector3> > GetKeys() { return _keys; }
void SetKeys( vector< Key<Vector3> > & keys ) { _keys = keys; }
void SetKeys( vector< Key<Vector3> > const & keys ) { _keys = keys; }
private:
KeyType _type;
......
......@@ -553,15 +553,15 @@ public:
IShapeData() {}
virtual ~IShapeData() {}
//Counts
virtual short GetVertexCount() = 0;
virtual short GetUVSetCount() = 0;
virtual short GetVertexCount() const = 0;
virtual short GetUVSetCount() const = 0;
virtual void SetVertexCount(int n) = 0;
virtual void SetUVSetCount(int n) = 0;
//Getters
virtual vector<Vector3> GetVertices() = 0;
virtual vector<Vector3> GetNormals() = 0;
virtual vector<Color> GetColors() = 0;
virtual vector<TexCoord> GetUVSet( int index ) = 0;
virtual vector<Vector3> GetVertices() const = 0;
virtual vector<Vector3> GetNormals() const = 0;
virtual vector<Color> GetColors() const = 0;
virtual vector<TexCoord> GetUVSet( int index ) const = 0;
//Setters
virtual void SetVertices( const vector<Vector3> & in ) = 0;
virtual void SetNormals( const vector<Vector3> & in ) = 0;
......@@ -647,7 +647,7 @@ public:
virtual KeyType GetKeyType() = 0;
virtual void SetKeyType( KeyType t ) = 0;
virtual vector< Key<Color> > GetKeys() = 0;
virtual void SetKeys( vector< Key<Color> > & keys ) = 0;
virtual void SetKeys( vector< Key<Color> > const & keys ) = 0;
};
class IFloatData {
......@@ -657,7 +657,7 @@ public:
virtual KeyType GetKeyType() = 0;
virtual void SetKeyType( KeyType t ) = 0;
virtual vector< Key<float> > GetKeys() = 0;
virtual void SetKeys( vector< Key<float> > & keys ) = 0;
virtual void SetKeys( vector< Key<float> > const & keys ) = 0;
};
class IPosData {
......@@ -667,7 +667,7 @@ public:
virtual KeyType GetKeyType() = 0;
virtual void SetKeyType( KeyType t ) = 0;
virtual vector< Key<Vector3> > GetKeys() = 0;
virtual void SetKeys( vector< Key<Vector3> > & keys ) = 0;
virtual void SetKeys( vector< Key<Vector3> > const & keys ) = 0;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment