Space Engineers
Classes | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
VRageRender.Animations.MyAnimatedProperty< T > Class Template Reference
Inheritance diagram for VRageRender.Animations.MyAnimatedProperty< T >:
VRageRender.Animations.IMyAnimatedProperty< T > VRageRender.Animations.MyAnimatedProperty2D< T, V, W >

Classes

struct  ValueHolder
 

Public Member Functions

delegate void InterpolatorDelegate (ref T previousValue, ref T nextValue, float time, out T value)
 
 MyAnimatedProperty ()
 
 MyAnimatedProperty (string name, bool interpolateAfterEnd, InterpolatorDelegate interpolator)
 
void SetValue (object val)
 
void SetValue (T val)
 
GetValue< U > ()
 
void GetInterpolatedValue< U > (float time, out U value)
 
void GetPreviousValue (float time, out T previousValue, out float previousTime)
 
void GetNextValue (float time, out T nextValue, out float nextTime, out float difference)
 
void AddKey (ValueHolder val)
 
int AddKey< U > (float time, U val)
 
void RemoveKey (float time)
 
void ClearKeys ()
 
void GetKey (int index, out float time, out T value)
 
void GetKey (int index, out int id, out float time, out T value)
 
void GetKeyByID (int id, out float time, out T value)
 
int GetKeysCount ()
 
virtual IMyConstProperty Duplicate ()
 
virtual void Serialize (XmlWriter writer)
 
virtual void Deserialize (XmlReader reader)
 
void DeserializeFromObjectBuilder_Animation (Generation2DProperty property, string type)
 
virtual void DeserializeFromObjectBuilder (GenerationProperty property)
 
void DeserializeKeys (List< AnimationKey > keys, string type)
 
virtual void SerializeValue (XmlWriter writer, object value)
 
virtual void DeserializeValue (XmlReader reader, out object value)
 

Public Attributes

InterpolatorDelegate Interpolator
 

Protected Member Functions

virtual void Init ()
 
virtual void Duplicate (IMyConstProperty targetProp)
 
virtual bool EqualsValues (object value1, object value2)
 

Protected Attributes

List< ValueHolderm_keys = new List<ValueHolder>()
 
string m_name
 

Properties

string Name [get, set]
 
virtual string ValueType [get]
 
virtual string BaseValueType [get]
 
virtual bool Animated [get]
 
virtual bool Is2D [get]
 

Detailed Description

Definition at line 99 of file MyAnimatedProperty.cs.

Constructor & Destructor Documentation

Definition at line 153 of file MyAnimatedProperty.cs.

VRageRender.Animations.MyAnimatedProperty< T >.MyAnimatedProperty ( string  name,
bool  interpolateAfterEnd,
InterpolatorDelegate  interpolator 
)
inline

Definition at line 158 of file MyAnimatedProperty.cs.

Member Function Documentation

void VRageRender.Animations.MyAnimatedProperty< T >.AddKey ( ValueHolder  val)
inline

Definition at line 432 of file MyAnimatedProperty.cs.

int VRageRender.Animations.MyAnimatedProperty< T >.AddKey< U > ( float  time,
val 
)
inline
Type Constraints
U :T 

Definition at line 437 of file MyAnimatedProperty.cs.

void VRageRender.Animations.MyAnimatedProperty< T >.ClearKeys ( )
inline

Definition at line 509 of file MyAnimatedProperty.cs.

virtual void VRageRender.Animations.MyAnimatedProperty< T >.Deserialize ( XmlReader  reader)
inlinevirtual

Definition at line 588 of file MyAnimatedProperty.cs.

virtual void VRageRender.Animations.MyAnimatedProperty< T >.DeserializeFromObjectBuilder ( GenerationProperty  property)
inlinevirtual
void VRageRender.Animations.MyAnimatedProperty< T >.DeserializeFromObjectBuilder_Animation ( Generation2DProperty  property,
string  type 
)
inline

Definition at line 623 of file MyAnimatedProperty.cs.

void VRageRender.Animations.MyAnimatedProperty< T >.DeserializeKeys ( List< AnimationKey keys,
string  type 
)
inline

Definition at line 635 of file MyAnimatedProperty.cs.

virtual void VRageRender.Animations.MyAnimatedProperty< T >.DeserializeValue ( XmlReader  reader,
out object  value 
)
inlinevirtual
virtual IMyConstProperty VRageRender.Animations.MyAnimatedProperty< T >.Duplicate ( )
inlinevirtual
virtual void VRageRender.Animations.MyAnimatedProperty< T >.Duplicate ( IMyConstProperty  targetProp)
inlineprotectedvirtual
virtual bool VRageRender.Animations.MyAnimatedProperty< T >.EqualsValues ( object  value1,
object  value2 
)
inlineprotectedvirtual
void VRageRender.Animations.MyAnimatedProperty< T >.GetInterpolatedValue< U > ( float  time,
out U  value 
)
inline
Type Constraints
U :T 

Definition at line 222 of file MyAnimatedProperty.cs.

void VRageRender.Animations.MyAnimatedProperty< T >.GetKey ( int  index,
out float  time,
out T  value 
)
inline

Definition at line 514 of file MyAnimatedProperty.cs.

void VRageRender.Animations.MyAnimatedProperty< T >.GetKey ( int  index,
out int  id,
out float  time,
out T  value 
)
inline

Definition at line 520 of file MyAnimatedProperty.cs.

void VRageRender.Animations.MyAnimatedProperty< T >.GetKeyByID ( int  id,
out float  time,
out T  value 
)
inline

Definition at line 527 of file MyAnimatedProperty.cs.

int VRageRender.Animations.MyAnimatedProperty< T >.GetKeysCount ( )
inline

Definition at line 534 of file MyAnimatedProperty.cs.

void VRageRender.Animations.MyAnimatedProperty< T >.GetNextValue ( float  time,
out T  nextValue,
out float  nextTime,
out float  difference 
)
inline

Definition at line 415 of file MyAnimatedProperty.cs.

void VRageRender.Animations.MyAnimatedProperty< T >.GetPreviousValue ( float  time,
out T  previousValue,
out float  previousTime 
)
inline

Definition at line 296 of file MyAnimatedProperty.cs.

U VRageRender.Animations.MyAnimatedProperty< T >.GetValue< U > ( )
inline

Definition at line 210 of file MyAnimatedProperty.cs.

virtual void VRageRender.Animations.MyAnimatedProperty< T >.Init ( )
inlineprotectedvirtual
delegate void VRageRender.Animations.MyAnimatedProperty< T >.InterpolatorDelegate ( ref T  previousValue,
ref T  nextValue,
float  time,
out T  value 
)
void VRageRender.Animations.MyAnimatedProperty< T >.RemoveKey ( float  time)
inline

Definition at line 479 of file MyAnimatedProperty.cs.

virtual void VRageRender.Animations.MyAnimatedProperty< T >.Serialize ( XmlWriter  writer)
inlinevirtual

Definition at line 566 of file MyAnimatedProperty.cs.

virtual void VRageRender.Animations.MyAnimatedProperty< T >.SerializeValue ( XmlWriter  writer,
object  value 
)
inlinevirtual
void VRageRender.Animations.MyAnimatedProperty< T >.SetValue ( object  val)
inline

Definition at line 197 of file MyAnimatedProperty.cs.

void VRageRender.Animations.MyAnimatedProperty< T >.SetValue ( val)
inline

Definition at line 201 of file MyAnimatedProperty.cs.

Member Data Documentation

Definition at line 146 of file MyAnimatedProperty.cs.

List<ValueHolder> VRageRender.Animations.MyAnimatedProperty< T >.m_keys = new List<ValueHolder>()
protected

Definition at line 144 of file MyAnimatedProperty.cs.

string VRageRender.Animations.MyAnimatedProperty< T >.m_name
protected

Definition at line 147 of file MyAnimatedProperty.cs.

Property Documentation

virtual bool VRageRender.Animations.MyAnimatedProperty< T >.Animated
get

Definition at line 184 of file MyAnimatedProperty.cs.

virtual string VRageRender.Animations.MyAnimatedProperty< T >.BaseValueType
get

Definition at line 179 of file MyAnimatedProperty.cs.

virtual bool VRageRender.Animations.MyAnimatedProperty< T >.Is2D
get

Definition at line 189 of file MyAnimatedProperty.cs.

Definition at line 168 of file MyAnimatedProperty.cs.

virtual string VRageRender.Animations.MyAnimatedProperty< T >.ValueType
get

Definition at line 174 of file MyAnimatedProperty.cs.


The documentation for this class was generated from the following file: