Controls color key.
Controls color key. Normal mode (invert off) shows minimum values as black and maximums as white.
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.
Resets the viewer its initial state.
Resets the viewer its initial state. In particular, clears the tracked min/max data so that the Floating Max option continues to work.
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.
A sequence of components related to this viewer that belong in a panel other than the main display (usually a toolbar).
A sequence of components related to this viewer that belong in a panel other than the main display (usually a toolbar). These components may be controls (buttons, combo boxes, spinners etc.) or small labels/displays (e.g. min/max, color key).
Updates the visualization based on the contents of data
.
Updates the visualization based on the contents of data
.
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
Update the legend for the given panel with the latest min/max values.
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
.
Controls size of zoom steps
Controls size of zoom steps
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.
An alternative view for matrix fields that decomposes the field into collections of like components rather than displaying individual matrices, analogous to the VectorComponents view defined for vector fields. This view is most useful for large fields of small matrices.
In the same way that a vector is a collection of components (x, y, z, ...) a matrix is a collection of components - it just happens to be a tensor of a higher dimension. Just as we could collect all the x's from all the vectors in a vector field and display them together, we can collect the first elements from all the matrices and display them together, and we could do the same for the second element, and the third, and so on.
Consider this 2x3 field of 2x2 matrices, rendered the "normal" or intuitive way (like MatrixMemoryView does). The outer indices tell you the location of a particular tensor (matrix) within the field, the inner indices tell you the location of the element within the tensor:
Each individual matrix has a component (0, 0), (0, 1), (1, 0), and so forth. Displayed as above, we have many small matrices. We can instead gather all the (0, 0) tensor elements and display them together, then do the same for the (0, 1) tensor elements and so on. The outer indices now refer to the element index within tensors, and the inner index which of the tensors in the field a particular element came from.
This swapping of indices compacts the visualization for this particular matrix field a bit - rather than many small images, we have a few larger ones.
Created by gonztobi on 4/23/2014.