|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectFlowJ.FlowJDynamicColor
public class FlowJDynamicColor
This is a class that implements 2D and 3D Dynamic Color Mapping. Dynamic Color Mapping maps flow fields to a 6 basis-color-space with 3 axes. one axis is blue-yellow, another red-green and the third white-black. 3D vectors (speed-orientationxy-orientationz) are mapped to a point on these three axes. with hue and value (intensity) coding for orientation in x,y,z and saturation coding for speed. Copyright (c) 1999-2002, Michael Abramoff. All rights reserved.
| Constructor Summary | |
|---|---|
FlowJDynamicColor()
|
|
| Method Summary | |
|---|---|
static void |
hue(float[] rgb,
double orientation)
Transform the 2D orientation of a vector into a hue (in float rgb format [0-1.0]). |
static void |
map(byte[] rgb,
double magnitude,
double orientationxy,
double orientationz)
This method maps a polar 3d vector with orientations and speed (0-1) to a dynamic color in rgb. |
static java.awt.Color |
map(double speed,
double orientationxy,
double orientationz)
|
static void |
map2D(byte[] rgb,
double magnitude,
double orientationxy)
This method maps a polar 2d vector with orientation and magnitude (0-1) to a dynamic color in rgb. |
static void |
map3D(byte[] rgb,
double magnitude,
double orientationxy,
double orientationz)
Transform a polar 3D vector (orientationxy in the xy-plane, orientationz along the z axis and normalized magnitude (0-1)), to a dynamic color in rgb (0-255), with hue standing for orientationxy, intensity standing for orientationz and saturation standing for magnitude. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FlowJDynamicColor()
| Method Detail |
|---|
public static void map2D(byte[] rgb,
double magnitude,
double orientationxy)
public static void map(byte[] rgb,
double magnitude,
double orientationxy,
double orientationz)
public static java.awt.Color map(double speed,
double orientationxy,
double orientationz)
public static void map3D(byte[] rgb,
double magnitude,
double orientationxy,
double orientationz)
public static void hue(float[] rgb,
double orientation)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||