OPTPiX SpriteStudio SDK
Main Page
Related Pages
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Enumerations
Enumerator
Pages
bind_SsKeyframe.h
1
#ifndef __BIND_SSKYEFRAME__
2
#define __BIND_SSKYEFRAME__
3
4
5
#include "package_SpriteStudio.h"
6
7
class
Bind_SsKeyValue
8
{
9
private
:
10
int
m_type;
11
SsValue
* m_value;
12
13
//構造体に変換しなくてはいけないのがいくつか
14
15
public
:
16
void
setValue(
SsValue
* v ) { m_value = v ; }
17
void
setType(
int
t ){ m_type = t ;}
18
int
getType(){
return
m_type;}
19
20
int
toInt(){
return
m_value->get<
int
>();}
21
float
toFloat(){
return
m_value->get<
float
>();}
22
bool
toBool(){
return
m_value->get<
bool
>();}
23
24
};
25
26
27
28
class
Bind_SsKeyframe
:
public
myPyBinder
<SsKeyframe>
29
{
30
private
:
31
Bind_SsKeyValue
m_tempValue;
32
SsAttributeKind::_enum
m_attributeKind;
33
34
public
:
35
36
Bind_SsKeyframe
(){}
37
Bind_SsKeyframe
(
SsKeyframe
* a ,
SsAttributeKind::_enum
attr ){bind(a);m_attributeKind = attr;}
38
virtual
~
Bind_SsKeyframe
(){}
39
40
int
time(){
return
bind_inst->
time
; }
41
int
InterpolationType(){
return
bind_inst->
ipType
; }
42
SsCurve
& getCurveParam(){
return
bind_inst->
curve
; }
43
44
Bind_SsKeyValue
& getValue(){
45
m_tempValue.setType( m_attributeKind );
// 型変換に使用
46
m_tempValue.setValue(&bind_inst->
value
);
47
return
m_tempValue; }
48
49
50
SsColorAnime
* getColorAnime();
51
SsVertexAnime
* getVertexAnime();
52
SsRefCell
* getRefCell();
53
SsUserDataAnime
* getUserDataAnime();
54
55
};
56
57
58
#endif
Build
PythonBinder
bind_SsKeyframe.h
Generated on Mon Jun 16 2014 17:55:45 for OPTPiX SpriteStudio SDK by
1.8.4