TIFFtoJP2.smlb

  Download

More scripts: Import & Export

Syntax Highlighing:

comments, key words, predefined symbols, class members & methods, functions & classes
            
<?xml version="1.0"?>
<SML>
  <Version>1.8</Version>
  <ScrollH>0</ScrollH>
  <ScrollV>0</ScrollV>
  <class>
    <name>tiff</name>
    <classname>IMAGE_PIPELINE_SOURCE_TIFF</classname>
    <rect>
      <xinit>528</xinit>
      <yinit>197</yinit>
      <xlast>677</xlast>
      <ylast>256</ylast>
    </rect>
    <minimized>1</minimized>
    <order>3</order>
    <comments></comments>
    <func>
      <name>IMAGE_PIPELINE_SOURCE_TIFF</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
        <parm>Filepath</parm>
        <connect>
          <builderparent>filepath</builderparent>
          <funcparent>FILEPATH</funcparent>
          <num>1</num>
        </connect>
      </inputconnect>
      <outputconnect>
        <num>1</num>
        <func>IMAGE_PIPELINE_SOURCE_TIFF</func>
        <connect>
          <builderparent>j2k</builderparent>
          <funcparent>IMAGE_PIPELINE_TARGET_J2K</funcparent>
          <num>1</num>
        </connect>
      </outputconnect>
      <outputconnect>
        <num>2</num>
        <func>IMAGE_PIPELINE_SOURCE_TIFF</func>
      </outputconnect>
    </func>
    <func>
      <name>Initialize</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <outputconnect>
        <num>1</num>
        <func>Initialize</func>
      </outputconnect>
    </func>
  </class>
  <class>
    <name>filepath</name>
    <classname>FILEPATH</classname>
    <rect>
      <xinit>312</xinit>
      <yinit>140</yinit>
      <xlast>482</xlast>
      <ylast>200</ylast>
    </rect>
    <minimized>1</minimized>
    <order>2</order>
    <comments></comments>
    <func>
      <name>FILEPATH</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
        <parm>str</parm>
        <connect>
          <builderparent>str_1</builderparent>
          <funcparent></funcparent>
          <num>1</num>
        </connect>
      </inputconnect>
      <outputconnect>
        <num>1</num>
        <func>FILEPATH</func>
        <connect>
          <builderparent>tiff</builderparent>
          <funcparent>IMAGE_PIPELINE_SOURCE_TIFF</funcparent>
          <num>1</num>
        </connect>
      </outputconnect>
      <outputconnect>
        <num>2</num>
        <func>FILEPATH</func>
      </outputconnect>
    </func>
    <func>
      <name>_$</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
      </inputconnect>
      <outputconnect>
        <num>1</num>
      </outputconnect>
    </func>
  </class>
  <class>
    <name>str_1</name>
    <symbolname>GetInputFileName</symbolname>
    <rect>
      <xinit>6</xinit>
      <yinit>48</yinit>
      <xlast>286</xlast>
      <ylast>114</ylast>
    </rect>
    <minimized>1</minimized>
    <order>1</order>
    <comments></comments>
    <func>
      <name></name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
        <parm>default$</parm>
        <value>c:/data/temp/</value>
      </inputconnect>
      <inputconnect>
        <num>2</num>
        <parm>prompt$</parm>
        <value>Choose input TIFF:</value>
      </inputconnect>
      <inputconnect>
        <num>3</num>
        <parm>ext$</parm>
        <value>.tif</value>
      </inputconnect>
      <outputconnect>
        <num>1</num>
        <func>GetInputFileName</func>
        <connect>
          <builderparent>filepath</builderparent>
          <funcparent>FILEPATH</funcparent>
          <num>1</num>
        </connect>
      </outputconnect>
      <outputconnect>
        <num>2</num>
        <func>GetInputFileName</func>
      </outputconnect>
    </func>
  </class>
  <class>
    <name>j2k</name>
    <classname>IMAGE_PIPELINE_TARGET_J2K</classname>
    <rect>
      <xinit>708</xinit>
      <yinit>277</yinit>
      <xlast>885</xlast>
      <ylast>407</ylast>
    </rect>
    <minimized>1</minimized>
    <order>7</order>
    <comments></comments>
    <func>
      <name>IMAGE_PIPELINE_TARGET_J2K</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
        <parm>InputStage</parm>
        <connect>
          <builderparent>tiff</builderparent>
          <funcparent>IMAGE_PIPELINE_SOURCE_TIFF</funcparent>
          <num>1</num>
        </connect>
      </inputconnect>
      <inputconnect>
        <num>2</num>
        <parm>filepath</parm>
        <connect>
          <builderparent>filepath_1</builderparent>
          <funcparent>FILEPATH</funcparent>
          <num>1</num>
        </connect>
      </inputconnect>
      <inputconnect>
        <num>3</num>
        <parm>settings</parm>
        <connect>
          <builderparent>j2k_settings</builderparent>
          <funcparent>IMAGE_PIPELINE_TARGET_J2K_SETTINGS</funcparent>
          <num>1</num>
        </connect>
      </inputconnect>
      <inputconnect>
        <num>4</num>
        <parm>geoformat</parm>
        <value>ArcWorld</value>
      </inputconnect>
      <outputconnect>
        <num>1</num>
        <func>IMAGE_PIPELINE_TARGET_J2K</func>
      </outputconnect>
    </func>
    <func>
      <name>Initialize</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <outputconnect>
        <num>1</num>
        <func>Initialize</func>
      </outputconnect>
    </func>
    <func>
      <name>Process</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
        <parm>ShowStatus</parm>
      </inputconnect>
      <outputconnect>
        <num>1</num>
        <func>Process</func>
      </outputconnect>
    </func>
  </class>
  <class>
    <name>filepath_1</name>
    <classname>FILEPATH</classname>
    <rect>
      <xinit>342</xinit>
      <yinit>288</yinit>
      <xlast>519</xlast>
      <ylast>348</ylast>
    </rect>
    <minimized>1</minimized>
    <order>5</order>
    <comments></comments>
    <func>
      <name>FILEPATH</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
        <parm>str</parm>
        <connect>
          <builderparent>str_2</builderparent>
          <funcparent></funcparent>
          <num>1</num>
        </connect>
      </inputconnect>
      <outputconnect>
        <num>1</num>
        <func>FILEPATH</func>
        <connect>
          <builderparent>j2k</builderparent>
          <funcparent>IMAGE_PIPELINE_TARGET_J2K</funcparent>
          <num>2</num>
        </connect>
      </outputconnect>
      <outputconnect>
        <num>2</num>
        <func>FILEPATH</func>
      </outputconnect>
    </func>
    <func>
      <name>_$</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
      </inputconnect>
      <outputconnect>
        <num>1</num>
      </outputconnect>
    </func>
  </class>
  <class>
    <name>str_2</name>
    <symbolname>GetOutputFileName</symbolname>
    <rect>
      <xinit>31</xinit>
      <yinit>282</yinit>
      <xlast>276</xlast>
      <ylast>349</ylast>
    </rect>
    <minimized>1</minimized>
    <order>4</order>
    <comments></comments>
    <func>
      <name></name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
        <parm>default$</parm>
        <value>c:/data/temp/</value>
      </inputconnect>
      <inputconnect>
        <num>2</num>
        <parm>prompt$</parm>
        <value>Choose output JP2:</value>
      </inputconnect>
      <inputconnect>
        <num>3</num>
        <parm>ext$</parm>
        <value>.j2k</value>
      </inputconnect>
      <outputconnect>
        <num>1</num>
        <func>GetOutputFileName</func>
        <connect>
          <builderparent>filepath_1</builderparent>
          <funcparent>FILEPATH</funcparent>
          <num>1</num>
        </connect>
      </outputconnect>
      <outputconnect>
        <num>2</num>
        <func>GetOutputFileName</func>
      </outputconnect>
    </func>
  </class>
  <class>
    <name>j2k_settings</name>
    <classname>IMAGE_PIPELINE_TARGET_J2K_SETTINGS</classname>
    <rect>
      <xinit>370</xinit>
      <yinit>461</yinit>
      <xlast>545</xlast>
      <ylast>547</ylast>
    </rect>
    <minimized>1</minimized>
    <order>6</order>
    <comments></comments>
    <func>
      <name>IMAGE_PIPELINE_TARGET_J2K_SETTINGS</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <outputconnect>
        <num>1</num>
        <func>IMAGE_PIPELINE_TARGET_J2K_SETTINGS</func>
        <connect>
          <builderparent>j2k</builderparent>
          <funcparent>IMAGE_PIPELINE_TARGET_J2K</funcparent>
          <num>3</num>
        </connect>
      </outputconnect>
      <outputconnect>
        <num>2</num>
        <func>IMAGE_PIPELINE_TARGET_J2K_SETTINGS</func>
      </outputconnect>
    </func>
    <func>
      <name>SetReversible</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
        <parm>reversible</parm>
        <value>1</value>
      </inputconnect>
    </func>
    <func>
      <name>SetGeoMethod</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
        <parm>GeoMethod</parm>
        <value>GeoTIFF</value>
      </inputconnect>
    </func>
  </class>
</SML>