Constructor
new DecompositionView(decomp) → {DecompositionView}
Parameters:
Name | Type | Description |
---|---|---|
decomp |
DecompositionModel | a DecompositionModel object that will be represented on screen. |
Returns:
- Type
- DecompositionView
Members
axesColor :integer
Axes color.
Type:
- integer
backgroundColor :integer
Background color.
Type:
- integer
count :integer
Number of samples represented in the view.
Type:
- integer
decomp :DecompositionModel
The decomposition model that the view represents.
Type:
lines :Array.<THREE.Line>
Array of line objects shown on screen (used for procustes and vector plots).
Type:
- Array.<THREE.Line>
markers :Array.<THREE.Mesh>
Array of THREE.Mesh objects on screen (represent samples).
Type:
- Array.<THREE.Mesh>
needsUpdate :boolean
True when changes have occured that require re-rendering of the canvas
Type:
- boolean
tubes :Array.<THREE.Mesh>
Tube objects on screen (used for animations)
Type:
- Array.<THREE.Mesh>
visibleCount :integer
Number of visible samples.
Type:
- integer
visibleDimensions :Array.<integer>
Top visible dimensions
Type:
- Array.<integer>
Methods
changeVisibleDimensions(newDims)
Change the visible coordinates
Parameters:
Name | Type | Description |
---|---|---|
newDims |
Array.<integer> | An Array of integers in which each integer is the index to the principal coordinate to show |
flipVisibleDimension(index)
Reorient one of the visible dimensions.
Parameters:
Name | Type | Description |
---|---|---|
index |
integer | The index of the dimension to re-orient, if this
dimension is not visible i.e. not in |
setCategory(attributes, setPlottableAttributes, category) → {Array.<object>}
Change the plottables attributes based on the metadata category using the provided setPlottableAttributes function
Parameters:
Name | Type | Description |
---|---|---|
attributes |
object | Key:value pairs of elements and values to change in plottables. |
setPlottableAttributes |
function | Helper function to change the values of plottables, in general this should be implemented in the controller but it can be nullable if not needed. setPlottableAttributes should receive: the scope where the plottables exist, the value to be applied to the plottables and the plotables to change. For more info see ColorViewController.setPlottableAttribute |
category |
string | The category/column in the mapping file |
Returns:
Array of objects to be consumed by Slick grid.
- Type
- Array.<object>
setGroupColor(color, group)
Change the color for a set of plottables.
Parameters:
Name | Type | Description |
---|---|---|
color |
integer | An RGB color in hexadecimal format. |
group |
Array.<Plottable> | Array of Plottables that will change in color. |