Class RampEntry
java.lang.Object
com.ardor3d.extension.effect.particle.RampEntry
- All Implemented Interfaces:
Savable
RampEntry
defines an entry for a ParticleAppearanceRamp.- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetColor()
double
getMass()
double
double
getSize()
double
getSpin()
boolean
boolean
boolean
boolean
void
read
(InputCapsule capsule) void
setColor
(ReadOnlyColorRGBA color) void
setMass
(double mass) void
setOffset
(double offset) void
setSize
(double size) void
setSpin
(double spin) toString()
void
write
(OutputCapsule capsule)
-
Field Details
-
DEFAULT_OFFSET
public static final double DEFAULT_OFFSET- See Also:
-
DEFAULT_SIZE
public static final double DEFAULT_SIZE- See Also:
-
DEFAULT_SPIN
public static final double DEFAULT_SPIN- See Also:
-
DEFAULT_MASS
public static final double DEFAULT_MASS- See Also:
-
DEFAULT_COLOR
-
_offset
protected double _offset -
_color
-
_size
protected double _size -
_spin
protected double _spin -
_mass
protected double _mass
-
-
Constructor Details
-
RampEntry
public RampEntry() -
RampEntry
public RampEntry(double offset) Construct new addition to color ramp- Parameters:
offset
- amount of time (as a percent of total lifetime) between the last appearance and this one.
-
-
Method Details
-
getColor
-
setColor
-
hasColorSet
public boolean hasColorSet() -
getSize
public double getSize() -
setSize
public void setSize(double size) -
hasSizeSet
public boolean hasSizeSet() -
getSpin
public double getSpin() -
setSpin
public void setSpin(double spin) -
hasSpinSet
public boolean hasSpinSet() -
getMass
public double getMass() -
setMass
public void setMass(double mass) -
hasMassSet
public boolean hasMassSet() -
getOffset
public double getOffset() -
setOffset
public void setOffset(double offset) -
getClassTag
- Specified by:
getClassTag
in interfaceSavable
-
read
- Specified by:
read
in interfaceSavable
- Throws:
IOException
-
write
- Specified by:
write
in interfaceSavable
- Throws:
IOException
-
toString
-