Skip to content

Commit

Permalink
fix QgsArc.in() python-binding
Browse files Browse the repository at this point in the history
  • Loading branch information
stopa85milk committed Sep 27, 2011
1 parent 94b5f99 commit a950830
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions python/analysis/network/qgsgraph.sip
Expand Up @@ -25,12 +25,12 @@ class QgsGraphArc
/**
* return index of outgoing vertex
*/
int out() const;
int outVertex() const;

/**
* return index of incoming vertex
*/
int in() const;
int inVertex() const;
};


Expand Down
10 changes: 10 additions & 0 deletions src/analysis/network/qgsgraph.cpp
Expand Up @@ -97,6 +97,16 @@ QVector< QVariant > QgsGraphArc::properties() const
return mProperties;
}

int QgsGraphArc::inVertex() const
{
return mIn;
}

int QgsGraphArc::outVertex() const
{
return mOut;
}

int QgsGraphArc::in() const
{
return mIn;
Expand Down
4 changes: 3 additions & 1 deletion src/analysis/network/qgsgraph.h
Expand Up @@ -47,7 +47,7 @@ class ANALYSIS_EXPORT QgsGraphArc
* return property value
* @param propertyIndex property index
*/
QVariant property(int propertyIndex ) const;
QVariant property( int propertyIndex ) const;

/**
* get array of proertyes
Expand All @@ -58,11 +58,13 @@ class ANALYSIS_EXPORT QgsGraphArc
* return index of outgoing vertex
*/
int out() const;
int outVertex() const;

/**
* return index of incoming vertex
*/
int in() const;
int inVertex() const;

private:

Expand Down

0 comments on commit a950830

Please sign in to comment.