74 Point p1 = Point::diagonal( -1 );
75 Point p2 = Point::diagonal( 1 );
76 Point c = Point::diagonal( 0 );
79 Point q1 = Point::diagonal( -1 );
80 Point q2 = Point::diagonal( 4*16-1 );
81 Domain fullDomain( q1, q2 );
84 for (
unsigned int y = 0; y < 16; ++y )
85 for (
unsigned int x = 0; x < 16; ++x, ++cfg )
87 bool simple = map[ cfg ];
88 Point base( x*4, y*4 );
89 unsigned int mask = 1;
93 Point q = base + (*it);
97 Color( 30, 30, 30 ) ) );
105 Color( 10, 255, 10 ) )
107 Color( 255, 10, 10 ) ) );
113 Color( 245, 255, 245 ) )
115 Color( 255, 245, 245 ) ) );
152 functions::generateSimplicityTable< Object4_8 >( dt4_8, table4_8 );
157 functions::generateSimplicityTable< Object8_4 >( dt8_4, table8_4 );
162 displaySimplicityTable< Object4_8 >( board, dt4_8, table4_8 );
163 board.
saveEPS(
"table4_8.eps" );
168 displaySimplicityTable< Object8_4 >( board, dt8_4, table8_4 );
169 board.
saveEPS(
"table8_4.eps" );
179 using ConfigMapBit = std::bitset<256> ;
180 ConfigMapBit bit_table8_4;
181 ConfigMapBit bit_table4_8;
182 functions::generateSimplicityTable< Object8_4 >( dt8_4, bit_table8_4 );
183 functions::generateSimplicityTable< Object4_8 >( dt4_8, bit_table4_8 );
189 string filename =
"simplicity_table8_4.zlib";
190 ofstream file( filename );
191 ConfigMapBit* table = &bit_table8_4;
192 std::stringstream table_stream;
193 table_stream << *table;
194 namespace io = boost::iostreams;
195 io::filtering_streambuf<io::input> filter;
196 filter.push(io::zlib_compressor());
197 filter.push(table_stream);
198 io::copy(filter,file);
207 string filename =
"simplicity_table4_8.zlib";
208 ofstream file( filename );
209 ConfigMapBit* table = &bit_table4_8;
210 std::stringstream table_stream;
211 table_stream << *table;
212 namespace io = boost::iostreams;
213 io::filtering_streambuf<io::input> filter;
214 filter.push(io::zlib_compressor());
215 filter.push(table_stream);
216 io::copy(filter,file);
Iterator for HyperRectDomain.
const ConstIterator & begin() const
std::string className() const
const ConstIterator & end() const