Skip to content
Permalink
Browse files

fix QgsArc.in() python-binding

  • Loading branch information
Sergey Yakushevs
Sergey Yakushevs committed Sep 27, 2011
1 parent 94b5f99 commit a950830dcf1dfe4a2d650f6babe7d3902d6d1ce7
Showing with 15 additions and 3 deletions.
  1. +2 −2 python/analysis/network/qgsgraph.sip
  2. +10 −0 src/analysis/network/qgsgraph.cpp
  3. +3 −1 src/analysis/network/qgsgraph.h
@@ -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;
};


@@ -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;
@@ -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
@@ -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:

0 comments on commit a950830

Please sign in to comment.
You can’t perform that action at this time.