Magnetoculus
Visualisation de champs en VR avec Oculus
|
Public Member Functions | |
Field (ColorScaler colorScaler) | |
void | GetData (string fileName) |
Vector4[] | GetNeighbors (int i) |
Vector4 | GetDataAt (int line) |
float | GetEt (int line) |
bool | IsNotOnTheEdge (int i) |
Color | GetIntensityColor (float Et) |
void | SetupMaterial (Material m) |
float | GetIntensityAtPosition (Vector3 pos) |
Public Attributes | |
int | cubePerLineX |
int | cubePerLineY |
int | cubePerLineZ |
Properties | |
float | width [get] |
float | height [get] |
float | depth [get] |
float | minEt [get] |
float | maxEt [get] |
int | dataCount [get] |
Helper class to help hold and compute data and values related to loaded magnetic fields.
Field.Field | ( | ColorScaler | colorScaler | ) |
void Field.GetData | ( | string | fileName | ) |
Vector4 Field.GetDataAt | ( | int | line | ) |
Get the field data at a certain line in the original file.
float Field.GetEt | ( | int | line | ) |
Get the field value at a certain line in the original file.
float Field.GetIntensityAtPosition | ( | Vector3 | pos | ) |
Returns the intensity at a position given in local field coordinates.
Color Field.GetIntensityColor | ( | float | Et | ) |
Vector4 [] Field.GetNeighbors | ( | int | i | ) |
Get the field value of the 8 neighbors of a vertex in this order : 0, dy, dz, dy + dz, dx, dx + dy, dx + dz, dx + dy + dz
bool Field.IsNotOnTheEdge | ( | int | i | ) |
Tells if a vertex at a certain line in the original file is on the edge of the mesh.
void Field.SetupMaterial | ( | Material | m | ) |
Updates a given material with the required shader uniforms.
int Field.cubePerLineX |
int Field.cubePerLineY |
int Field.cubePerLineZ |
|
get |
How many lines are
|
get |
Z span of the field.
|
get |
Y span of the field.
|
get |
|
get |
The minimum field value in the given file.
|
get |
X span of the field.