Magnetoculus Visualisation de champs en VR avec Oculus

Public Member Functions | List of all members
ColorScaler Class Reference
Inheritance diagram for ColorScaler:

## Public Member Functions
void | ComputeScaler (List< Vector4 > datas)
float | GetScale (float E)

## Detailed Description

Script to provide a correct color contrast for any distribution of field values. It computes the distribution and then integrates it, thus creating a matching between a value and a color. The parameter m_Resolution is used to tweak the accuracy.

## Member Function Documentation

## ◆ ComputeScaler()

void ColorScaler.ComputeScaler | ( | List< Vector4 > | datas | ) |

## ◆ GetScale()

float ColorScaler.GetScale | ( | float | E | ) |

Parameters

  E | the value we want to scale.

First we retreive the Vector2 that defines the boundaries of the set in which paramater E falls. Then we use a Lerp between those boundaries, parameterize by the discrete integration of E.

The documentation for this class was generated from the following file:

- Assets/Scripts/Representation/ColorScaler.cs