|
BIJ API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--VolumeJ.VJAlphaColor
This class is the abstract type for an alphacolor, i.e. the combination of an RGB color and associated alpha (transparency). It has methods for composing colors. (c) 1999-2002 Michael Abramoff. All rights reserved.
Field Summary | |
float |
alpha
|
float |
b
|
float |
g
|
float |
r
|
Constructor Summary | |
VJAlphaColor()
|
|
VJAlphaColor(float grayvalue)
Use as a grayscale value container. |
|
VJAlphaColor(float alpha,
float r,
float g,
float b)
An alpha-grayscale value for float RGB values. |
|
VJAlphaColor(float alpha,
int grayvalue)
Use as an alpha-grayscale value container. |
|
VJAlphaColor(float alpha,
int r,
int g,
int b)
An alpha-grayscale value. |
|
VJAlphaColor(int grayvalue)
Use as a grayscale value container. |
Method Summary | |
boolean |
almostOpaque()
Return whether this alphacolor is almost opaque. |
void |
attenuate(VJShade shade)
|
void |
blendComposeScalar(VJAlphaColor color,
VJShade shade)
Composing. |
void |
compose(VJAlphaColor color,
float contribution)
Additive color mixing. |
void |
compose(VJAlphaColor color,
VJShade shade,
float contribution)
Additive shading and color mixing. |
void |
copy(VJAlphaColor ac)
Make a copy of this VJAlphaColor. |
float |
getAlpha()
|
int |
getBlue()
|
int |
getGreen()
|
int |
getRed()
|
int |
getValue()
|
boolean |
isGrayscale()
|
boolean |
notOpaque()
|
void |
setAlpha(float alpha)
|
void |
setOpaque()
|
java.lang.String |
toString()
|
boolean |
visible()
|
Methods inherited from class java.lang.Object |
|
Field Detail |
public float alpha
public float r
public float g
public float b
Constructor Detail |
public VJAlphaColor()
public VJAlphaColor(float alpha, int grayvalue)
alpha:
- the transparency [0-1]grayvalue:
- the grayscale value (integer).public VJAlphaColor(int grayvalue)
grayvalue:
- the grayscale value (integer).public VJAlphaColor(float grayvalue)
grayvalue:
- the grayscale value (integer).public VJAlphaColor(float alpha, int r, int g, int b)
alpha:
- the transparency [0-1]r,
- g, b: the RGB components [0-255] in int format.public VJAlphaColor(float alpha, float r, float g, float b)
alpha:
- the transparency [0-1]r,
- g, b: the RGB components [0-1] in float format.Method Detail |
public float getAlpha()
public int getRed()
public int getGreen()
public int getBlue()
public int getValue()
public boolean isGrayscale()
public void compose(VJAlphaColor color, float contribution)
color:
- the color to be composed (added) this alphacolor.contribution:
- the fraction of the components of color that are added.public void blendComposeScalar(VJAlphaColor color, VJShade shade)
g
- the interpolated gradient for shadingcolor
- contains the alpha value and the color (grayscale or RGB) of the classified values.shade
- is the effect of shading.public void compose(VJAlphaColor color, VJShade shade, float contribution)
color:
- the color to be composed (added) this alphacolor.shade:
- the shade with which the fraction of color is shaded before adding.contribution:
- the fraction of the components of color that are added.public boolean visible()
public boolean notOpaque()
public void setOpaque()
public void copy(VJAlphaColor ac)
public void setAlpha(float alpha)
public boolean almostOpaque()
public void attenuate(VJShade shade)
public java.lang.String toString()
toString
in class java.lang.Object
|
BIJ API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |