====== View 4D ====== ===== Overview ===== This component visualizes 3d objects in space and time. It is used to show a 3d-stick-figure for marker based motion analysis. But it is also possible to show arbitrary 3d objects like planes, spheres or bones. The scene can move with the time correspondig to the global time position defined by the [[http://nimue-platform.de/doku.php?id=guicomponents:timesynchronization|Time Synchronization component]]. Different views of the same scene at time are possible and a lot of specific 3d objects e.g. to visualize the ground, force plates, bottom of support areas, segments centre of mass points, ... are available. {{ :guicomponents:view3d.png?700 |}} {{ :guicomponents:stick-figure.png?200|}} ===== Configuration ===== ==== Markers and Points ==== - and -elements visualize spherical objects. Many markerbased motion analysis measurement systems use retroreflective spherical markers, with different diameters, which can visualized with the -element. All other points are visualized with the -element. - and -element differs in the diameter and the default colors. Each marker is defined as an child to the -element: And each -element is defined as an child of the -element: The - and the -element must have an attribute "name", which can be used by the graphical user interface to visualize and edit the visualization description. A -element is a specialized version of a -element. It defines a default behavoir to visualize sperical markers as used for marker based motion analysis measurement systems. ^ Attribute ^ Default ^ Description ^ Required ^ | radius | 0.00475mm | float | No ^ | color | gray | red, green, blue, grey | No ^ | origin | | | No ^ | visible | true | (not used) | No ^ | comment | - | comment | No ^ ==== Connection Sets ==== A -element visualizes the connection between two markers or points by a stick. Each connection is defined as a child of the -element. The -element is defined as an child of the -element. ==== Arrows ==== An -element defines a list of arrows and its child elements of type define this arrows. ===Attributes=== ^ Attribute ^ Default ^ Description ^ Required ^ ^ name | | name of the element | Yes | ^ start | | Startposition of the arrow. | Yes | ^ 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 | ^ 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 | ^ 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 | ^ comment | | | No | ^ color | blue | green,red, green, blue, gray | No | ^ visible | true | | No | ===Example=== ==== Frames ==== The -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 -element must be contained in a named -element container. Have a look at the following example: ==== Global Frame ==== The -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^ ==== Shapes ==== The -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 -children elements these elements can be referenced and visualiszed at specified poses. Example: Attributes of the -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 ==== ...