blob: 59a965f6537bb5b83dda31698c84d2cb5e01efd9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// various transform-related inputs - translation, rotation, etc.
//
//=============================================================================
#ifndef DMETRANSFORMINPUT_H
#define DMETRANSFORMINPUT_H
#ifdef _WIN32
#pragma once
#endif
#include "movieobjects/dmeinput.h"
//-----------------------------------------------------------------------------
// translation input
//-----------------------------------------------------------------------------
class CDmeTranslationInput : public CDmeInput
{
DEFINE_ELEMENT( CDmeTranslationInput, CDmeInput );
public:
virtual bool IsDirty(); // ie needs to operate
virtual void Operate();
virtual void GetInputAttributes ( CUtlVector< CDmAttribute * > &attrs );
virtual void GetOutputAttributes( CUtlVector< CDmAttribute * > &attrs );
protected:
CDmaVar< Vector > m_translation;
};
//-----------------------------------------------------------------------------
// rotation input
//-----------------------------------------------------------------------------
class CDmeRotationInput : public CDmeInput
{
DEFINE_ELEMENT( CDmeRotationInput, CDmeInput );
public:
virtual bool IsDirty(); // ie needs to operate
virtual void Operate();
virtual void GetInputAttributes ( CUtlVector< CDmAttribute * > &attrs );
virtual void GetOutputAttributes( CUtlVector< CDmAttribute * > &attrs );
// these should only be used by the application - not other dme's!
void SetRotation( const Quaternion& quat );
void SetRotation( const QAngle& qangle );
protected:
CDmaVar< Quaternion > m_orientation;
CDmaVar< QAngle > m_angles;
};
#endif // DMETRANSFORMINPUT_H
|