<?xml version="1.0" encoding="utf-8" ?>
<!-- Description of the model "AddImage" Operation -->
<SMTK_AttributeResource Version="3">
  <Definitions>
    <!-- Operation -->
    <include href="smtk/operation/Operation.xml"/>
    <AttDef Type="add image" BaseType="operation" Label="Model - Add Image">
      <!-- In the future Label shoud be removed when SMTK supports compound auxiliary geometry -->
      <AssociationsDef Name="entities" Label="model" NumberOfRequiredValues="1">
        <Accepts><Resource Name="smtk::model::Resource" Filter="model"/></Accepts>
      </AssociationsDef>
      <BriefDescription>
        Add an image as  auxiliary geometry (scene geometry not part of the model domain)
        to a model or to another auxiliary geometry instance.
      </BriefDescription>
      <DetailedDescription>
        &lt;p&gt;Add an image as auxiliary geometry (scene geometry not part of a model's domain)
        to a model or to another auxiliary geometry instance.

        &lt;p&gt;Images with geographic metadata (such as GeoTIFFs) will use the coordinate
        system specified in the image, so if you do not immediately see the image after adding
        it, you may need to change the viewport zoom or pan settings.
      </DetailedDescription>
      <ItemDefinitions>
        <File Name="url" Label="Image File Name" Optional="true" NumberOfRequiredValues="1"
          IsEnabledByDefault="true" ShouldExist="true"
          FileFilters="Image files (*.tif *.tiff *.dem *.vti);;All files (*.*)">
          <BriefDescription>The file containing the image.</BriefDescription>
        </File>

        <Void Name="separate representation" AdvanceLevel="11" Optional="true" IsEnabledByDefault="true"
          Label="Display as separate representation from model">
          <BriefDescription>
            Should the auxiliary geometry's representation be separate from its owning model's?
          </BriefDescription>
          <DetailedDescription>
            &lt;p&gt;Should the auxiliary geometry's representation be separate from its owning model's?
            If yes, a separate rendering pipeline will be created for auxiliary geometry and
            its representation will be controlled with its own set of display properties;
            if no, the geometry will be shown and controlled as sub-blocks in the model's multiblock dataset,
            which may be less flexible.
          </DetailedDescription>
        </Void>

      </ItemDefinitions>
    </AttDef>
    <!-- Result -->
    <include href="smtk/operation/Result.xml"/>
    <AttDef Type="result(add image)" BaseType="result">
      <ItemDefinitions>
        <!-- The modified entities are stored in the base result's "modified" item. -->
        <Component Name="tess_changed" NumberOfRequiredValues="1">
          <Accepts><Resource Name="smtk::model::Resource" Filter=""/></Accepts>
        </Component>
        <Void Name="allow camera reset" IsEnabledByDefault="true" AdvanceLevel="11"/>
      </ItemDefinitions>
    </AttDef>
  </Definitions>
</SMTK_AttributeResource>
