public LazyCellImg( final CellGrid grid, final Fraction entitiesPerPixel, final Get< Cell< A > > get ) { super( grid, new LazyCells<>( grid.getGridDimensions(), get ), entitiesPerPixel ); }
public LazyCellImg( final CellGrid grid, final Fraction entitiesPerPixel, final Get< Cell< A > > get ) { super( grid, new LazyCells<>( grid.getGridDimensions(), get ), entitiesPerPixel ); }
public VolatileCachedCellImg( final CellGrid grid, final Fraction entitiesPerPixel, Function< NativeImg< T, ? super A >, T > typeFactory, final CacheHints cacheHints, final Get< Cell< A > > get ) { super( grid, new VolatileCachedCells<>( grid.getGridDimensions(), get, cacheHints ), entitiesPerPixel ); setLinkedType( typeFactory.apply( this ) ); }
public LazyCellImg( final CellGrid grid, final T type, final Get< Cell< A > > get ) { super( grid, new LazyCells<>( grid.getGridDimensions(), get ), type.getEntitiesPerPixel() ); @SuppressWarnings( "unchecked" ) final NativeTypeFactory< T, ? super A > typeFactory = ( NativeTypeFactory< T, ? super A > ) type.getNativeTypeFactory(); setLinkedType( typeFactory.createLinkedType( this ) ); }
public VolatileCachedCellImg( final CellGrid grid, final T type, final CacheHints cacheHints, final Get< Cell< A > > get ) { super( grid, new VolatileCachedCells<>( grid.getGridDimensions(), get, cacheHints ), type.getEntitiesPerPixel() ); @SuppressWarnings( "unchecked" ) final NativeTypeFactory< T, ? super A > typeFactory = ( NativeTypeFactory< T, ? super A > ) type.getNativeTypeFactory(); setLinkedType( typeFactory.createLinkedType( this ) ); }
public LazyCellImg( final CellGrid grid, final T type, final Get< Cell< A > > get ) { super( grid, new LazyCells<>( grid.getGridDimensions(), get ), type.getEntitiesPerPixel() ); @SuppressWarnings( "unchecked" ) final NativeTypeFactory< T, ? super A > typeFactory = ( NativeTypeFactory< T, ? super A > ) type.getNativeTypeFactory(); setLinkedType( typeFactory.createLinkedType( this ) ); }