public class LightAttributes extends AttributeSubject
Modifier and Type | Field and Description |
---|---|
static int |
LIGHTTYPE_AMBIENT |
static int |
LIGHTTYPE_CAMERA |
static int |
LIGHTTYPE_OBJECT |
Constructor and Description |
---|
LightAttributes() |
LightAttributes(int nMoreFields) |
LightAttributes(LightAttributes obj) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(LightAttributes obj) |
double |
GetBrightness() |
ColorAttribute |
GetColor() |
double[] |
GetDirection() |
boolean |
GetEnabledFlag() |
boolean |
GetEnabledFlagCanBeToggled() |
int |
GetNumAdditionalAttributes()
Returns the number of attributes added in this level of the state object.
|
int |
GetType() |
int |
Offset()
Returns the offset into the selected table where this state object's fields begin.
|
void |
ReadAtts(int index,
CommunicationBuffer buf)
Reads the specified index's data from the buffer into the object.
|
void |
SetBrightness(double brightness_) |
void |
SetColor(ColorAttribute color_) |
void |
SetDirection(double[] direction_) |
void |
SetDirection(double e0,
double e1,
double e2) |
void |
SetEnabledFlag(boolean enabledFlag_) |
void |
SetEnabledFlagCanBeToggled(boolean enabledFlagCanBeToggled_) |
void |
SetType(int type_) |
java.lang.String |
toString(java.lang.String indent) |
void |
WriteAtts(CommunicationBuffer buf)
Writes the selected fields of the object to the buffer.
|
Attach, boolArrayToString, boolToString, boolVectorToString, Detach, doubleArrayToString, doubleToString, doubleVectorToString, floatArrayToString, floatToString, floatVectorToString, GetAttributeId, GetClassName, intArrayToString, intToString, intVectorToString, IsSelected, Notify, NumAttributes, NumAttributesSelected, Read, Select, SelectAll, SetAttributeId, stringToString, stringVectorToString, toString, ucharArrayToString, ucharToString, ucharVectorToString, UnSelectAll, Write, WriteSelect
public static final int LIGHTTYPE_AMBIENT
public static final int LIGHTTYPE_OBJECT
public static final int LIGHTTYPE_CAMERA
public LightAttributes()
public LightAttributes(int nMoreFields)
public LightAttributes(LightAttributes obj)
public int Offset()
AttributeSubject
Offset
in class AttributeSubject
public int GetNumAdditionalAttributes()
AttributeSubject
GetNumAdditionalAttributes
in class AttributeSubject
public boolean equals(LightAttributes obj)
public void SetEnabledFlagCanBeToggled(boolean enabledFlagCanBeToggled_)
public void SetEnabledFlag(boolean enabledFlag_)
public void SetType(int type_)
public void SetDirection(double[] direction_)
public void SetDirection(double e0, double e1, double e2)
public void SetColor(ColorAttribute color_)
public void SetBrightness(double brightness_)
public boolean GetEnabledFlagCanBeToggled()
public boolean GetEnabledFlag()
public int GetType()
public double[] GetDirection()
public ColorAttribute GetColor()
public double GetBrightness()
public void WriteAtts(CommunicationBuffer buf)
AttributeSubject
WriteAtts
in class AttributeSubject
buf
- The communication buffer to which the object will be written.public void ReadAtts(int index, CommunicationBuffer buf)
AttributeSubject
ReadAtts
in class AttributeSubject
buf
- The communication buffer to from which the object will be read.public java.lang.String toString(java.lang.String indent)
toString
in class AttributeSubject