cogdebugger.ui.fieldvisualizations.complexvector
The FieldType of the ComplexVectorField being visualized. Created by gonztobi on 3/5/14.
A subpanel that is responsible for the visualization of a single vector component or plane.
A subpanel that is responsible for the visualization of a single vector component or plane. Contains a pair of images for showing the real and imaginary parts of the component, as well as a label (for indicating the component index) and color key.
When true, force the value zero to map to the exact center of the grayscale spectrum - we push either the min or max away from zero until both have the same absolute value, and then shade from there.
When true, force the value zero to map to the exact center of the grayscale spectrum - we push either the min or max away from zero until both have the same absolute value, and then shade from there. When false, the min and max used in shading correspond to the actual smallest and largest values present in the field.
When true, shade display based on the min/max values in the latest data only.
When true, shade display based on the min/max values in the latest data only. When false, display based based on the min/max values since last reset.
If true, the color white represents a minimum value and black a maximum.
If true, the color white represents a minimum value and black a maximum. If false, black is a minimum and white a maximum.
A list of properties that should be persisted when the app closes, and restored the next time it's launched.
A list of properties that should be persisted when the app closes, and restored the next time it's launched. A common example of a persistent is the zoom/magnification level of the viewer. Be sure to add any relevenant properties to this list in your Viewer subclasses!
Returns the XML representation of this viewer's properties, suitable for saving into a file.
Returns the XML representation of this viewer's properties, suitable for saving into a file.
"Clears" the min/max histories (historical minimum is reset to Float.MaxValue and historical max to Float.minValue) for both the real and imaginary parts of all vector components.
"Clears" the min/max histories (historical minimum is reset to Float.MaxValue and historical max to Float.minValue) for both the real and imaginary parts of all vector components.
Restore this object to the state described in the given XML node.
Restore this object to the state described in the given XML node.
Encode the state of this object into an XML node.
Encode the state of this object into an XML node.
Controls for this visualization that container components may wish to make available to users somewhere on the UI.
Controls for this visualization that container components may wish to make available to users somewhere on the UI.
Update the visualization with new data.
Updates the visualization based on the contents of data
.
Updates the visualization based on the contents of data
.
The src
argument was orignally meant to reference the
kernel/field/object that generated the data, in order to support
composite visualizations (that is, viewers that produce a visual based on
the data from several different sources), but launching such viewers in
the current UI is clunky at beset, so this feature isn't used. Viewers
that only visualize a single field's data can probably safely ignore this
arument (and indeed, most of the current ones do).
The field or object that generated the data
argument
New field data that needs to be rendered by this viewer
The ComputeGraph's step count at the time the data
argument was generated
Parses the XML tag produced by the propertiesTag
method and restores
any saved valued to this Viewer.
Parses the XML tag produced by the propertiesTag
method and restores
any saved valued to this Viewer.
Increase zoom level by zDelta
.
Increase zoom level by zDelta
.
Default zoom/unzoom increment
Default zoom/unzoom increment
Decrease zoom level by zDelta
.
Decrease zoom level by zDelta
.
Controls how zDelta is applied to the current zoom level.
Controls how zDelta is applied to the current zoom level. In Additive, a delta is added to the current zoom level; in Multiplicative mode, the zoom level is multiplied by delta when zooming in, and by its reciprocal when zooming out.
Default zoom type is additive. If you change it to multiplicative, you should probably ensure that the default zDelta is something other than 1f, as multiplying by one probably won't do anything.
A visualization for complex vector fields that renders the field by treating each vector component or plane as a separate field of complex numbers, which can in turn be rendered as a pair of grayscale images - one for the real component and one for the imaginary.
This is very similar to the VectorComponentsPanel, which renders each "plane" of the vector as a separate scalar field.
This visualization can take a lot of space. Consider wrapping it in a ScrollPane before installing it in a container panel.