Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.1 KiB

  1. //====== Copyright � 1996-2004, Valve Corporation, All rights reserved. =======
  2. //
  3. // A class representing a transform
  4. //
  5. //=============================================================================
  6. #ifndef DMEOVERLAY_H
  7. #define DMEOVERLAY_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "datamodel/dmelement.h"
  12. //-----------------------------------------------------------------------------
  13. // Forward declarations
  14. //-----------------------------------------------------------------------------
  15. struct matrix3x4_t;
  16. class CDmeDag;
  17. //-----------------------------------------------------------------------------
  18. // A class representing a transformation matrix
  19. //-----------------------------------------------------------------------------
  20. class CDmeOverlay : public CDmElement
  21. {
  22. DEFINE_ELEMENT( CDmeOverlay, CDmElement );
  23. public:
  24. virtual void OnAttributeChanged( CDmAttribute *pAttribute );
  25. float GetWeight() const;
  26. float GetSequence() const;
  27. float GetPrevCycle() const;
  28. float GetCycle() const;
  29. int GetOrder() const;
  30. float GetPlaybackRate() const;
  31. float GetLayerAnimtime() const;
  32. float GetLayerFadeOuttime() const;
  33. void SetWeight( float flWeight );
  34. void SetSequence( int nSequence );
  35. void SetPrevCycle( float flPrevCycle );
  36. void SetCycle( float flCycle );
  37. void SetOrder( int nOrder );
  38. void SetPlaybackRate( float flPlaybackRate );
  39. void SetLayerAnimttime( float flAnimttime );
  40. void SetLayerFadeOuttime( float flLayerFadeOuttime );
  41. CDmAttribute *GetWeightAttribute();
  42. CDmAttribute *GetSequenceAttribute();
  43. CDmAttribute *GetPrevCycleAttribute();
  44. CDmAttribute *GetCycleAttribute();
  45. CDmAttribute *GetOrderAttribute();
  46. CDmAttribute *GetPlaybackRateAttribute();
  47. CDmAttribute *GetLayerAnimtimeAttribute();
  48. CDmAttribute *GetLayerFadeOuttimeAttribute();
  49. // If transform is contained inside some kind of CDmeDag, return that (it's "parent")
  50. CDmeDag *GetDag();
  51. private:
  52. CDmaVar<float> m_flWeight;
  53. CDmaVar<int> m_nSequence;
  54. CDmaVar<float> m_flPrevCycle;
  55. CDmaVar<float> m_flCycle;
  56. CDmaVar<int> m_nOrder;
  57. CDmaVar<float> m_flPlaybackRate;
  58. CDmaVar<float> m_flLayerAnimtime;
  59. CDmaVar<float> m_flLayerFadeOuttime;
  60. };
  61. #endif // DMEOVERLAY_H