3rd Eye Scene C#
3rd Eye Scene C# documentation
Tes::Net::ObjectAttributes Struct Reference

Defines the core attributes for a 3D shape or object. More...

List of all members.

Public Member Functions

bool Read (BinaryReader reader)
 Read the message from the given reader .
bool Write (PacketBuffer packet)
 Write this message to packet .
void SetFromTransform (Matrix4 transform)
 Initialise the attributes from a 4x4 transformation matrix.
Matrix4 GetTransform ()
 Extract a 4x4 transformation matrix from the stored attributes.

Public Attributes

uint Colour
 The encoded colour.
float X
 The position X coordinate.
float Y
 The position X coordinate.
float Z
 The position X coordinate.
float RotationX
 Quaternion rotation X value.
float RotationY
 Quaternion rotation Y value.
float RotationZ
 Quaternion rotation Z value.
float RotationW
 Quaternion rotation Z value (angle component).
float ScaleX
 Scale along the X axis.
float ScaleY
 Scale along the Y axis.
float ScaleZ
 Scale along the Z axis.

Properties

uint Color [get, set]
 Alias the Colour member.

Detailed Description

Defines the core attributes for a 3D shape or object.

Defines the object's:

  • Colour
  • Position/translation
  • Quaternion rotation.
  • Scale.

Semantics may vary for different shapes, especially scale interpretation.


Member Function Documentation

Matrix4 Tes::Net::ObjectAttributes::GetTransform ( ) [inline]

Extract a 4x4 transformation matrix from the stored attributes.

Returns:
The extracted transformation matrix.
bool Tes::Net::ObjectAttributes::Read ( BinaryReader  reader) [inline]

Read the message from the given reader .

Parameters:
readerThe reader to read from.
Returns:
True
void Tes::Net::ObjectAttributes::SetFromTransform ( Matrix4  transform) [inline]

Initialise the attributes from a 4x4 transformation matrix.

Does not modify Colour.

Parameters:
transformThe transformation matrix.
bool Tes::Net::ObjectAttributes::Write ( PacketBuffer  packet) [inline]

Write this message to packet .

Parameters:
packetThe packet to write to.
Returns:
True

Member Data Documentation


The documentation for this struct was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Properties Events