|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
be.lassi.lanbox.domain
Class MixMode
java.lang.Object be.lassi.lanbox.domain.MixMode
public final class MixMode
- extends java.lang.Object
Determines the way an engine mixes its data with the other engines.
Field Summary | |
---|---|
static MixMode |
ADD
When a layer is set to ADD the active channel values are
added to the curren mixer values, where a value of 128 means zero, values
less than 128 are negative, and values more than 128 are positive. |
static MixMode[] |
ALL
All possible mix modes. |
static MixMode |
COPY
In COPY mode, the value of each active channel in the
engine is simple copied to the mixer, overwriting the data of lower
priority engines (engine with highest priority takes precendence). |
static MixMode |
HTP
In HTP mode, only the values of each active channel
in the engine that are higher than the current mixer value are
copied to the mixer (highest-takes-precedence effect). |
static MixMode |
LTP
In LTP mode, only the values of each active channel
in the engine that are lower than the current mixer value are
copied to the mixer (lowest-takes-precedence effect). |
static MixMode |
NO_OUTPUT
In NO_OUTPUT mode, the engine channel values are ignored
during mixing. |
static MixMode |
TRANSPARENT
In TANSPARENT mode, the active channel values are averaged
with the current mixer values according to the setting of the
transparency depth. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
|
static MixMode |
get(int id)
Gets the mix mode with given id. |
int |
getId()
Gets the mix mode identifier. |
java.lang.String |
getName()
Gets the textual representation of the mix mode. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
ADD
public static final MixMode ADD
- When a layer is set to
ADD
the active channel values are added to the curren mixer values, where a value of 128 means zero, values less than 128 are negative, and values more than 128 are positive.- 128 means: add zero
- 129 means: add 1
- 127 means: subtract 1
ALL
public static final MixMode[] ALL
- All possible mix modes.
COPY
public static final MixMode COPY
- In
COPY
mode, the value of each active channel in the engine is simple copied to the mixer, overwriting the data of lower priority engines (engine with highest priority takes precendence).
HTP
public static final MixMode HTP
- In
HTP
mode, only the values of each active channel in the engine that are higher than the current mixer value are copied to the mixer (highest-takes-precedence effect).
LTP
public static final MixMode LTP
- In
LTP
mode, only the values of each active channel in the engine that are lower than the current mixer value are copied to the mixer (lowest-takes-precedence effect).
NO_OUTPUT
public static final MixMode NO_OUTPUT
- In
NO_OUTPUT
mode, the engine channel values are ignored during mixing.
TRANSPARENT
public static final MixMode TRANSPARENT
- In
TANSPARENT
mode, the active channel values are averaged with the current mixer values according to the setting of the transparency depth.- depth 0 = 0% means: not transparent, the orginal channel values are copied to the mixer unchanged
- depth 255 = 100% means: completely transparent: the mixer values are not changed
- depth 128 = 50% means: half transparent: the channel values divided by 2 are added to the current mixer values divided by 2
- depth 64 = 25% means: a quarter transparent: 25% of the current mixer values are added to 75% of the channel values
- depth 192 = 75% means: 75% of the current mixer values are added to 25% of the channel values
Method Detail |
---|
equals
public boolean equals(java.lang.Object other)
-
- Overrides:
equals
in classjava.lang.Object
get
public static MixMode get(int id)
- Gets the mix mode with given id.
- Parameters:
id
- mix mode identifier- Returns:
- the mix mode with given id
getId
public int getId()
- Gets the mix mode identifier.
- Returns:
- the mix mode identifier
getName
public java.lang.String getName()
- Gets the textual representation of the mix mode.
- Returns:
- the mix mode string
hashCode
public int hashCode()
-
- Overrides:
hashCode
in classjava.lang.Object
toString
public java.lang.String toString()
-
- Overrides:
toString
in classjava.lang.Object
|
Lighting Assistant 1.2 | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |