Rotation Filter Listener
Rotation Filter Listener
RotationFilter.png
Description This is a listener that allows you to apply transforms to data based on clicks.
Threaded Yes
Memory Usage Light
Stream Support No
Added In —-

Rotation Filter Listener

This is a filter that applies transforms to some of the elements based on some formulas. It is also a listener and takes input from the user based on clicks and drags on a plot. To make it easier for people to use, there are "wizard" buttons that will automatically set formulas for rotating and translating points. If you set the formulas with the buttons it will update the actual values in in the text fields where you have full control over the transforms that are used.

In order to make this work, it has its own private source type that will provide 5 different values and act as the second input to this filter. Those values are the x and y click location, the compiled rotation angle, and the compiled linear drag in x and y. These are referred to in the formulas as x, y, ang, dx, and dy respectively. The figure below shows the settings panel for the Rotation Filter in a simple example.

RotationFilter.png

The figure below shows how the rotation filter can be used to rotate data points around. To get the rotated values shown on the right, the mouse was clicked and dragged on the right.

RotationFilterPlot.png

NOTE: As a listener, this filter does not support multiple streams. Also remember that for a listener to be active, you have to add it under the Listeners tab of the plot.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License