gravatar
alpar (Alpar Juttner)
alpar@cs.elte.hu
Change the order of the Palette constructor parameters
0 2 0
default
2 files changed with 2 insertions and 2 deletions:
↑ Collapse diff ↑
Ignore white space 6 line context
... ...
@@ -33,25 +33,25 @@
33 33
#include <lemon/math.h>
34 34

	
35 35
#include<lemon/graph_to_eps.h>
36 36
#include<lemon/list_graph.h>
37 37
#include<lemon/graph_utils.h>
38 38

	
39 39
using namespace std;
40 40
using namespace lemon;
41 41

	
42 42
int main()
43 43
{
44 44
  Palette palette;
45
  Palette paletteW(-1,true);
45
  Palette paletteW(true);
46 46

	
47 47
  ListDigraph g;
48 48
  typedef ListDigraph::Node Node;
49 49
  typedef ListDigraph::NodeIt NodeIt;
50 50
  typedef ListDigraph::Arc Arc;
51 51
  typedef dim2::Point<int> Point;
52 52
  
53 53
  Node n1=g.addNode();
54 54
  Node n2=g.addNode();
55 55
  Node n3=g.addNode();
56 56
  Node n4=g.addNode();
57 57
  Node n5=g.addNode();
Ignore white space 24 line context
... ...
@@ -110,25 +110,25 @@
110 110
  public:
111 111
    ///Constructor
112 112

	
113 113
    ///Constructor 
114 114
    ///\param num the number of the allocated colors. If it is \c -1,
115 115
    ///the default color configuration is set up (26 color plus the
116 116
    ///white).  If \c num is less then 26/27 then the default color
117 117
    ///list is cut. Otherwise the color list is filled repeatedly with
118 118
    ///the default color list.  (The colors can be changed later on.)
119 119
    ///\param have_white indicates whether white is amongst the
120 120
    ///provided color (\c true) or not (\c false). If it is true,
121 121
    ///white will be assigned to \c 0.
122
    Palette(int num=-1,bool have_white=false)
122
    Palette(bool have_white=false,int num=-1)
123 123
    {
124 124
      if (num==0) return;
125 125
      do {
126 126
        if(have_white) colors.push_back(Color(1,1,1));
127 127

	
128 128
        colors.push_back(Color(0,0,0));
129 129
        colors.push_back(Color(1,0,0));
130 130
        colors.push_back(Color(0,1,0));
131 131
        colors.push_back(Color(0,0,1));
132 132
        colors.push_back(Color(1,1,0));
133 133
        colors.push_back(Color(1,0,1));
134 134
        colors.push_back(Color(0,1,1));
0 comments (0 inline)