Benutzer-Werkzeuge

Webseiten-Werkzeuge


guicomponents:3dview

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
guicomponents:3dview [2017/12/13 12:26] – [Markers and Points] oliverguicomponents:3dview [2021/05/19 09:50] (aktuell) – [Frames] oliver
Zeile 36: Zeile 36:
  
 ^ Attribute ^ Default ^ Description ^ Required ^ ^ Attribute ^ Default ^ Description ^ Required ^
-| radius | 0.014 | float | No ^ +| radius | 0.00475mm | float | No ^ 
 +| color | gray | red, green, blue, grey | No ^ 
 +| origin | | | No ^ 
 +| visible | true | (not used) | No ^ 
 +| comment |  -  | comment | No ^
  
 ==== Connection Sets ==== ==== Connection Sets ====
Zeile 58: Zeile 61:
 ^ end | | Endposition of the arrow. | No |  ^ end | | Endposition of the arrow. | No | 
 ^ mid (not implemented yet)| | Alternative to the attributes start and end, the arrow can be defined by the attributes mid and vector (and optional length). The attribute mid defines the mid of the arrow. The direction is then defined by the attribute vector. The default length is 0.1m. This can be changed by the attribute length. | No | ^ mid (not implemented yet)| | Alternative to the attributes start and end, the arrow can be defined by the attributes mid and vector (and optional length). The attribute mid defines the mid of the arrow. The direction is then defined by the attribute vector. The default length is 0.1m. This can be changed by the attribute length. | No |
-^ vector | | Alternative to the attributes start and end, the arrow can be defined by start and vector. The attribute vector defines the direction of the arrow. The default length is 0.1m.  This can be changed by the attribute length. | No |+^ vector | | Alternative to the attributes start and end, the arrow can be defined by start and vector. The attribute vector defines the direction of the arrow. The default length is 0.1m.  This can be changed by the attribute length. If the attribute "start" is not set, than (0,0,0) is used as start position. | No |
 ^ radius (not yet implemented) | 0.005 | Radius of the cylinder. | No | ^ radius (not yet implemented) | 0.005 | Radius of the cylinder. | No |
 ^ length (not implemented yet) | 0.1m | This attribute is used optional in combination with the vector attribute. It defines the length of the arrow. The current implementation uses a fix length of 0.1m only. | No | ^ length (not implemented yet) | 0.1m | This attribute is used optional in combination with the vector attribute. It defines the length of the arrow. The current implementation uses a fix length of 0.1m only. | No |
Zeile 74: Zeile 77:
 ==== Frames ==== ==== Frames ====
  
-=== Example ===+The <Frame>-elements shows a coordinate system represented by three orthogonal vectors. The colors of these vectors are identical to the colors used by Vicon Nexus: 
 + 
 +^ Axis ^ Color ^ 
 +| X | green ^ 
 +| Y | blue ^ 
 +| Z | red ^ 
 + 
 +The following attributes can be used to customize the frame visualization: 
 + 
 +^ Attribute ^ Default ^ Unit ^ Description ^ Required ^ 
 +^ name | | String | Name of the element | Yes ^ 
 +^ xColor | red | RGB | color of the x-axis | No ^ 
 +^ yColor | green | RGB | color of the y-axis | No ^ 
 +^ zColor | blue | RGB | color of the z-axis | No ^ 
 +^ origin | | [m,m,m] | Vector-3d position of the coordinate system | No | 
 +^ visible | true | boolean | | No ^ 
 +^ rotation | | | Quat4d or Matrix3d data | Yes ^ 
 +^ radius | 0.1 | [m] | Radius of the sphere to visualize the origin of the coordinate syste | No ^ 
 +^ length | 0.15 | [m] | length of the axis (not yet implemented) | No ^ 
 +^ diameter | length/20.0 | [m] | diamter of the coordinate system axes (not yet implemented) | No ^ 
 + 
 +Each <Frame>-element must be contained in a named <FrameSet>-element container. Have a look at the following example:
  
 <code xml> <code xml>
Zeile 87: Zeile 111:
 </code> </code>
  
 +==== Global Frame ====
 +
 +The <GlobalFrame>-element visualized the global coordinate system, represented by three orthogonal vectors. The colors of these vectors are different to the colors used by Vicon Nexus:
 +
 +^ Axis ^ Color ^
 +| X | red^
 +| Y | green^
 +| Z | blue^
 +
 +<code xml>
 +    <GlobalFrame/>
 +</code>
 +==== Shapes ====
 +The <ShapeSet>-element defines a [[https://en.wikipedia.org/wiki/Wavefront_.obj_file|".obj"-file]] in the view-folder of the project, which includes one or more shapes. With the <Shape>-children elements these elements can be referenced and visualiszed at specified poses.
 +
 +Example:
 +
 +<code xml>
 +  <ShapeSet name="Golembones" filename="golembones.obj">
 +        <Shape name="head"
 +               origin="HeadPosition"
 +               rotation="HeadRotation"/>
 +  </ShapeSet>
 +</code>
 +
 +Attributes of the <Shape>-elements:
 +
 +^ Attribute ^ Default ^ Description ^ Required ^
 +^ name | default | Name of the element as defined in the ".obj"-file. | Yes |
 +^ origin |  | name of the timeserie, which defines the position, where to place the shape. | Yes |
 +^ rotation | | name of the timeserie which defines the orientation the shape is shown. | Yes |
 +^ scale | 0.2 | Scale applyed to the bone size | No |
 +
 +The loader of the obj-fileformat is not complete. Only a [[https://download.java.net/media/java3d/javadoc/1.4.0/com/sun/j3d/loaders/objectfile/ObjectFile.html | subset]] of the identifiers are currently supported.
 ==== Example ==== ==== Example ====
  
guicomponents/3dview.1513164375.txt.gz · Zuletzt geändert: 2017/12/13 12:26 von oliver

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki