jpl.mipl.mars.viewer.util
Class RdrImageContentFactory

java.lang.Object
  extended byjpl.mipl.mars.viewer.util.RdrImageContentFactory

public class RdrImageContentFactory
extends Object

Purpose: Factory class for vending RdrImageContent objects. Supported special types: disp, xyz, rough, reach, normal, range. All other formats return the default type.

   Copyright 2003, California Institute of Technology.
   ALL RIGHTS RESERVED.
   U.S. Government Sponsorship acknowledge. 2003.
   
 ============================================================================
 Modification History :
 ----------------------

 Date              Who                        What
 ----------------------------------------------------------------------------
 08/27/2003        Nick                       Initial Release
 12/05/2003        Nick                       Added Mask file type
 ============================================================================
 

Version:
2003.12.05
Author:
Nicholas Toole (Nicholas.T.Toole@jpl.nasa.gov)

Constructor Summary
RdrImageContentFactory()
           
 
Method Summary
static RdrImageContent create(String filename, String type, MarsImageViewModel model)
          Factory method, returns an instance of RdrImageContent using the RDR type to determine the approrpiate subclass.
protected static boolean isDispType(String type)
          Disp type includes following types: DIS, DIL, DIT, DIN, DSS, DSL, DST, DSN, DLS, DLL, DLT, DLN.
protected static boolean isMaskType(String type)
          Mask type includes following types: MSK, MSL, MST, MSN.
protected static boolean isNormalType(String type)
          Normal type includes following types: UVW, UVL, UVT, UVN, UUU, UUL, UUT, UUN, VVV, VVL, VVT, VVN, WWW, WWL, WWT, WWN.
protected static boolean isRangeType(String type)
          Range type includes following types: RNG, RNL, RNT, RNN.
protected static boolean isReachType(String type)
          Reach type includes following types: IDD, IDL, IDT, IDN.
protected static boolean isRoughType(String type)
          Rough type includes following types: RUF, RUL, RUT, RUN.
protected static boolean isXyzType(String type)
          XYZ type includes following types: XYZ, XYL, XYT, XYN, XXX, XXL, XXT, XXN, YYY, YYL, YYT, YYN, ZZZ, ZZL, ZZT, ZZN.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RdrImageContentFactory

public RdrImageContentFactory()
Method Detail

create

public static RdrImageContent create(String filename,
                                     String type,
                                     MarsImageViewModel model)
Factory method, returns an instance of RdrImageContent using the RDR type to determine the approrpiate subclass.


isXyzType

protected static boolean isXyzType(String type)
XYZ type includes following types: XYZ, XYL, XYT, XYN, XXX, XXL, XXT, XXN, YYY, YYL, YYT, YYN, ZZZ, ZZL, ZZT, ZZN.


isRangeType

protected static boolean isRangeType(String type)
Range type includes following types: RNG, RNL, RNT, RNN.


isDispType

protected static boolean isDispType(String type)
Disp type includes following types: DIS, DIL, DIT, DIN, DSS, DSL, DST, DSN, DLS, DLL, DLT, DLN.


isNormalType

protected static boolean isNormalType(String type)
Normal type includes following types: UVW, UVL, UVT, UVN, UUU, UUL, UUT, UUN, VVV, VVL, VVT, VVN, WWW, WWL, WWT, WWN.


isRoughType

protected static boolean isRoughType(String type)
Rough type includes following types: RUF, RUL, RUT, RUN.


isReachType

protected static boolean isReachType(String type)
Reach type includes following types: IDD, IDL, IDT, IDN.


isMaskType

protected static boolean isMaskType(String type)
Mask type includes following types: MSK, MSL, MST, MSN.