Lines Matching refs:_width
115 return _width;
244 int _width;
252 _width(graph.width()),
265 if ( _width > 2 && _height > 2 ) {
266 PixelGraph::const_iterator graph_it = graph.begin() + _width + 1;
267 Cell *cells_it = &_cells.front() + _width + 1;
270 for ( int j = 1 ; j != _width - 1 ; ++j, ++graph_it, ++cells_it ) {
295 if ( _width > 2 ) {
300 for ( int i = 1 ; i != _width - 1 ; ++i, ++graph_it, ++cells_it ) {
317 for ( int i = 1 ; i != _width - 1 ; ++i, ++graph_it, ++cells_it ) {
337 if ( _width > 2 && _height > 1 ) {
340 = graph.begin() + (_height - 1) * _width + 1;
341 Cell *cells_it = &_cells.front() + (_height - 1) * _width + 1;
343 for ( int i = 1 ; i != _width - 1 ; ++i, ++graph_it, ++cells_it ) {
363 PixelGraph::const_iterator graph_it = graph.begin() + _width;
364 Cell *cells_it = &_cells.front() + _width;
366 if ( _width > 1 ) {
383 graph_it += _width;
384 cells_it += _width;
403 graph_it += _width;
404 cells_it += _width;
410 if ( _height > 2 && _width > 1 ) {
411 PixelGraph::const_iterator graph_it = graph.begin() + 2 * _width - 1;
412 Cell *cells_it = &_cells.front() + 2 * _width - 1;
419 _complexTopLeft(graph, graph_it, cells_it, _width - 1, i);
422 cells_it->vertices.push_back(Point<T>(_width, i, false));
425 cells_it->vertices.push_back(Point<T>(_width, i + 1, false));
428 _complexBottomLeft(graph, graph_it, cells_it, _width - 1, i);
430 graph_it += _width;
431 cells_it += _width;
451 if ( _width > 1 && _height > 1 )
461 if ( _width > 1 ) {
462 PixelGraph::const_iterator graph_it = graph.begin() + _width - 1;
463 Cell *cells_it = &_cells.front() + _width - 1;
469 cells_it->vertices.push_back(Point<T>(_width - 1, 0, false));
472 cells_it->vertices.push_back(Point<T>(_width, 0, false));
475 cells_it->vertices.push_back(Point<T>(_width, 1, false));
479 _complexBottomLeft(graph, graph_it, cells_it, _width - 1, 0);
481 cells_it->vertices.push_back(Point<T>(_width - 1, 1, false));
487 = graph.begin() + (_height - 1) * _width;
488 Cell *cells_it = &_cells.front() + (_height - 1) * _width;
497 if ( _width > 1)
510 if ( _width > 1 && _height > 1 ) {
518 _complexTopLeft(graph, graph_it, cells_it, _width - 1, _height - 1);
521 cells_it->vertices.push_back(Point<T>(_width, _height - 1, false));
524 cells_it->vertices.push_back(Point<T>(_width, _height, false));
527 cells_it->vertices.push_back(Point<T>(_width - 1, _height, false));