Changeset 6671


Ignore:
Timestamp:
07/08/10 15:13:06 (9 years ago)
Author:
curtis
Message:

Define some constants for FakeReader defaults.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/in/FakeReader.java

    r6606 r6671  
    5959 
    6060  public static final int BOX_SIZE = 10; 
     61 
     62  public static final int DEFAULT_SIZE_X = 512; 
     63  public static final int DEFAULT_SIZE_Y = 512; 
     64  public static final int DEFAULT_SIZE_Z = 1; 
     65  public static final int DEFAULT_SIZE_C = 1; 
     66  public static final int DEFAULT_SIZE_T = 1; 
     67  public static final int DEFAULT_PIXEL_TYPE = FormatTools.UINT8; 
     68  public static final int DEFAULT_RGB_CHANNEL_COUNT = 1; 
     69  public static final String DEFAULT_DIMENSION_ORDER = "XYZCT"; 
     70 
    6171  private static final String TOKEN_SEPARATOR = "&"; 
    6272  private static final long SEED = 0xcafebabe; 
     
    209219 
    210220    String name = null; 
    211     int sizeX = 512; 
    212     int sizeY = 512; 
    213     int sizeZ = 1; 
    214     int sizeC = 1; 
    215     int sizeT = 1; 
     221    int sizeX = DEFAULT_SIZE_X; 
     222    int sizeY = DEFAULT_SIZE_Y; 
     223    int sizeZ = DEFAULT_SIZE_Z; 
     224    int sizeC = DEFAULT_SIZE_C; 
     225    int sizeT = DEFAULT_SIZE_T; 
    216226    int thumbSizeX = 0; // default 
    217227    int thumbSizeY = 0; // default 
    218     int pixelType = FormatTools.UINT8; 
    219     int rgb = 1; 
    220     String dimOrder = "XYZCT"; 
     228    int pixelType = DEFAULT_PIXEL_TYPE; 
     229    int rgb = DEFAULT_RGB_CHANNEL_COUNT; 
     230    String dimOrder = DEFAULT_DIMENSION_ORDER; 
    221231    boolean orderCertain = true; 
    222232    boolean little = true; 
Note: See TracChangeset for help on using the changeset viewer.