Changeset 8648:45c827e39969 in orange


Ignore:
Timestamp:
08/10/11 12:48:18 (3 years ago)
Author:
miha <miha.stajdohar@…>
Branch:
default
Convert:
beca41afeb5fbeccf13161d913ca6c4bd7917b20
Message:

Added set_node_coordinates method.

Location:
source/orangeplot
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • source/orangeplot/networkcurve.cpp

    r8637 r8648  
    10071007} 
    10081008 
     1009void NetworkCurve::set_node_coordinates(const QMap<int, QPair<double, double> >& coordinates) 
     1010{ 
     1011    NodeItem *node; 
     1012    QMap<int, QPair<double, double> >::ConstIterator it = coordinates.constBegin(); 
     1013    for (; it != coordinates.constEnd(); ++it) 
     1014    { 
     1015        node = m_nodes[it.key()]; 
     1016        node->set_x(it.value().first); 
     1017        node->set_y(it.value().second); 
     1018    } 
     1019} 
     1020 
    10091021void NetworkCurve::set_edge_color(const QList<QColor>& colors) 
    10101022{ 
  • source/orangeplot/networkcurve.h

    r8636 r8648  
    236236    void set_node_marks(const QMap<int, bool>& marks); 
    237237    void clear_node_marks(); 
     238    void set_node_coordinates(const QMap<int, QPair<double, double> >& coordinates); 
    238239 
    239240    void set_min_node_size(double size); 
  • source/orangeplot/networkcurve.sip

    r8636 r8648  
    109109    void set_node_marks(const QMap<int, bool>& marks); 
    110110    void clear_node_marks(); 
     111    void set_node_coordinates(const QMap<int, QPair<double, double> >& coordinates); 
    111112     
    112113    void set_edge_color(const QList<QColor>& colors); 
Note: See TracChangeset for help on using the changeset viewer.