move.xml 3.41 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
<OpenFlipper>  
  <element name="move_translate">
    <category>Object Manipulation</category>
    <short>Move/rotate</short>
    <long>Translates and transforms all vertices of an object.</long>
    <dataflow>true</dataflow>
    <inputs>
      <input name="obj" type="ObjectId">
        <short>ID</short>
        <long>ID of an object</long>
      </input>
      <input name="vec" type="Vector">
        <short>Translation vector</short>
        <long>Vector to translate with</long>
      </input>
      <input name="mat" type="Matrix">
        <short>Transformation matrix</short>
        <long>Matrix to transform with</long>
      </input>
    </inputs>
    <code>
	move.translate([input="obj"], [input="vec"]);
	move.transform([input="obj"], [input="mat"]);
    </code>
  </element>


  <element name="move_rendering_matrixi_identity">
      <category>Object Manipulation</category>
      <short>Scenegraph matrix identity</short>
      <long>Resets the scenegraph matrix used for rendering to identity</long>
      <dataflow>true</dataflow>
      <inputs>
        <input name="obj" type="ObjectId">
          <short>ID</short>
          <long>ID of an object</long>
        </input>
      </inputs>
      <code>
        move.objectRenderingMatrixIdentity([input="obj"]);
      </code>
  </element>

  <element name="move_rendering_matrix_scale">
      <category>Object Manipulation</category>
      <short>Scenegraph matrix scale</short>
      <long>Adds a scaling factor to the scenegraph matrix used for rendering</long>
      <dataflow>true</dataflow>
      <inputs>
        <input name="obj" type="ObjectId">
          <short>ID</short>
          <long>ID of an object</long>
        </input>
        <input name="factor" type="Number">
          <short>scaling factor</short>
          <long>Scaling factor</long>
        </input>
      </inputs>
      <code>
        move.objectRenderingMatrixScale([input="obj"],[input="factor"]);
      </code>
  </element>

  <element name="move_rendering_matrix_translate">
      <category>Object Manipulation</category>
      <short>Scenegraph matrix translate</short>
      <long>Adds a translation to the scenegraph matrix used for rendering</long>
      <dataflow>true</dataflow>
      <inputs>
        <input name="obj" type="ObjectId">
          <short>ID</short>
          <long>ID of an object</long>
        </input>
        <input name="translation" type="Vector">
          <short>translation vector</short>
          <long>translation vector</long>
        </input>
      </inputs>
      <code>
        move.objectRenderingMatrixTranslate([input="obj"],[input="translation"]);
      </code>
  </element>

  <element name="move_rendering_matrix_rotate">
      <category>Object Manipulation</category>
      <short>Scenegraph matrix rotate</short>
      <long>Adds a rotation to the scenegraph matrix used for rendering</long>
      <dataflow>true</dataflow>
      <inputs>
        <input name="obj" type="ObjectId">
          <short>ID</short>
          <long>ID of an object</long>
        </input>
        <input name="axis" type="Vector">
          <short>rotation axis</short>
          <long>rotation axis</long>
        </input>
        <input name="angle" type="Number">
          <short>rotation anlge</short>
          <long>rotation ange</long>
        </input>
      </inputs>
      <code>
104
        move.objectRenderingMatrixRotate([input="obj"],[input="axis"],[input="angle"]);
105 106 107 108
      </code>
  </element>

</OpenFlipper>