~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/blender/python/api2_2x/Particle.h

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* 
 
2
 * $Id: Particle.h,v 1.5 2004/10/07 19:25:40 stiv Exp $
2
3
 *
3
4
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
4
5
 *
44
45
#include <DNA_effect_types.h>
45
46
 
46
47
#include "gen_utils.h"
47
 
#include "bpy_types.h"
 
48
 
 
49
extern PyTypeObject Particle_Type;
 
50
 
 
51
#define BPy_Particle_Check(v) ((v)->ob_type==&Particle_Type)
 
52
 
 
53
/* Python BPy_Particle structure definition */
 
54
typedef struct {
 
55
        PyObject_HEAD           /* required py macro */
 
56
        Effect * particle;
 
57
} BPy_Particle;
 
58
 
 
59
 
48
60
 
49
61
/*****************************************************************************/
50
62
/* Python API function prototypes for the Particle module.                   */
51
63
/*****************************************************************************/
52
 
PyObject *M_Particle_New (PyObject *self, PyObject *args);
53
 
PyObject *M_Particle_Get (PyObject *self, PyObject *args);
 
64
PyObject *M_Particle_New( PyObject * self, PyObject * args );
 
65
PyObject *M_Particle_Get( PyObject * self, PyObject * args );
54
66
 
55
67
 
56
68
 
58
70
/*****************************************************************************/
59
71
/* Python BPy_Particle methods declarations:                                 */
60
72
/*****************************************************************************/
61
 
PyObject *Effect_getType(BPy_Effect *self);
62
 
PyObject *Effect_setType(BPy_Effect *self, PyObject *args);
63
 
PyObject *Effect_getFlag(BPy_Effect *self);
64
 
PyObject *Effect_setFlag(BPy_Effect *self, PyObject *args);
65
 
PyObject *Particle_getSta(BPy_Particle *self);
66
 
PyObject *Particle_setSta(BPy_Particle *self,PyObject*a);
67
 
PyObject *Particle_getEnd(BPy_Particle *self);
68
 
PyObject *Particle_setEnd(BPy_Particle *self,PyObject*a);
69
 
PyObject *Particle_getLifetime(BPy_Particle *self);
70
 
PyObject *Particle_setLifetime(BPy_Particle *self,PyObject*a);
71
 
PyObject *Particle_getNormfac(BPy_Particle *self);
72
 
PyObject *Particle_setNormfac(BPy_Particle *self,PyObject*a);
73
 
PyObject *Particle_getObfac(BPy_Particle *self);
74
 
PyObject *Particle_setObfac(BPy_Particle *self,PyObject*a);
75
 
PyObject *Particle_getRandfac(BPy_Particle *self);
76
 
PyObject *Particle_setRandfac(BPy_Particle *self,PyObject*a);
77
 
PyObject *Particle_getTexfac(BPy_Particle *self);
78
 
PyObject *Particle_setTexfac(BPy_Particle *self,PyObject*a);
79
 
PyObject *Particle_getRandlife(BPy_Particle *self);
80
 
PyObject *Particle_setRandlife(BPy_Particle *self,PyObject*a);
81
 
PyObject *Particle_getNabla(BPy_Particle *self);
82
 
PyObject *Particle_setNabla(BPy_Particle *self,PyObject*a);
83
 
PyObject *Particle_getVectsize(BPy_Particle *self);
84
 
PyObject *Particle_setVectsize(BPy_Particle *self,PyObject*a);
85
 
PyObject *Particle_getTotpart(BPy_Particle *self);
86
 
PyObject *Particle_setTotpart(BPy_Particle *self,PyObject*a);
87
 
PyObject *Particle_getTotkey(BPy_Particle *self);
88
 
PyObject *Particle_setTotkey(BPy_Particle *self,PyObject*a);
89
 
PyObject *Particle_getSeed(BPy_Particle *self);
90
 
PyObject *Particle_setSeed(BPy_Particle *self,PyObject*a);
91
 
PyObject *Particle_getForce(BPy_Particle *self);
92
 
PyObject *Particle_setForce(BPy_Particle *self,PyObject*a);
93
 
PyObject *Particle_getMult(BPy_Particle *self);
94
 
PyObject *Particle_setMult(BPy_Particle *self,PyObject*a);
95
 
PyObject *Particle_getLife(BPy_Particle *self);
96
 
PyObject *Particle_setLife(BPy_Particle *self,PyObject*a);
97
 
PyObject *Particle_getMat(BPy_Particle *self);
98
 
PyObject *Particle_setMat(BPy_Particle *self,PyObject*a);
99
 
PyObject *Particle_getChild(BPy_Particle *self);
100
 
PyObject *Particle_setChild(BPy_Particle *self,PyObject*a);
101
 
PyObject *Particle_getDefvec(BPy_Particle *self);
102
 
PyObject *Particle_setDefvec(BPy_Particle *self,PyObject*a);
 
73
PyObject *Effect_getType( BPy_Effect * self );
 
74
PyObject *Effect_setType( BPy_Effect * self, PyObject * args );
 
75
PyObject *Effect_getFlag( BPy_Effect * self );
 
76
PyObject *Effect_setFlag( BPy_Effect * self, PyObject * args );
 
77
PyObject *Particle_getSta( BPy_Particle * self );
 
78
PyObject *Particle_setSta( BPy_Particle * self, PyObject * a );
 
79
PyObject *Particle_getEnd( BPy_Particle * self );
 
80
PyObject *Particle_setEnd( BPy_Particle * self, PyObject * a );
 
81
PyObject *Particle_getLifetime( BPy_Particle * self );
 
82
PyObject *Particle_setLifetime( BPy_Particle * self, PyObject * a );
 
83
PyObject *Particle_getNormfac( BPy_Particle * self );
 
84
PyObject *Particle_setNormfac( BPy_Particle * self, PyObject * a );
 
85
PyObject *Particle_getObfac( BPy_Particle * self );
 
86
PyObject *Particle_setObfac( BPy_Particle * self, PyObject * a );
 
87
PyObject *Particle_getRandfac( BPy_Particle * self );
 
88
PyObject *Particle_setRandfac( BPy_Particle * self, PyObject * a );
 
89
PyObject *Particle_getTexfac( BPy_Particle * self );
 
90
PyObject *Particle_setTexfac( BPy_Particle * self, PyObject * a );
 
91
PyObject *Particle_getRandlife( BPy_Particle * self );
 
92
PyObject *Particle_setRandlife( BPy_Particle * self, PyObject * a );
 
93
PyObject *Particle_getNabla( BPy_Particle * self );
 
94
PyObject *Particle_setNabla( BPy_Particle * self, PyObject * a );
 
95
PyObject *Particle_getVectsize( BPy_Particle * self );
 
96
PyObject *Particle_setVectsize( BPy_Particle * self, PyObject * a );
 
97
PyObject *Particle_getTotpart( BPy_Particle * self );
 
98
PyObject *Particle_setTotpart( BPy_Particle * self, PyObject * a );
 
99
PyObject *Particle_getTotkey( BPy_Particle * self );
 
100
PyObject *Particle_setTotkey( BPy_Particle * self, PyObject * a );
 
101
PyObject *Particle_getSeed( BPy_Particle * self );
 
102
PyObject *Particle_setSeed( BPy_Particle * self, PyObject * a );
 
103
PyObject *Particle_getForce( BPy_Particle * self );
 
104
PyObject *Particle_setForce( BPy_Particle * self, PyObject * a );
 
105
PyObject *Particle_getMult( BPy_Particle * self );
 
106
PyObject *Particle_setMult( BPy_Particle * self, PyObject * a );
 
107
PyObject *Particle_getLife( BPy_Particle * self );
 
108
PyObject *Particle_setLife( BPy_Particle * self, PyObject * a );
 
109
PyObject *Particle_getMat( BPy_Particle * self );
 
110
PyObject *Particle_setMat( BPy_Particle * self, PyObject * a );
 
111
PyObject *Particle_getChild( BPy_Particle * self );
 
112
PyObject *Particle_setChild( BPy_Particle * self, PyObject * a );
 
113
PyObject *Particle_getDefvec( BPy_Particle * self );
 
114
PyObject *Particle_setDefvec( BPy_Particle * self, PyObject * a );
103
115
 
104
116
 
105
117
 
106
118
/*****************************************************************************/
107
119
/* Python Particle_Type callback function prototypes:                        */
108
120
/*****************************************************************************/
109
 
void ParticleDeAlloc (BPy_Particle *msh);
 
121
void ParticleDeAlloc( BPy_Particle * msh );
110
122
//int ParticlePrint (BPy_Particle *msh, FILE *fp, int flags);
111
 
int ParticleSetAttr (BPy_Particle *msh, char *name, PyObject *v);
112
 
PyObject *ParticleGetAttr (BPy_Particle *msh, char *name);
113
 
PyObject *ParticleRepr (BPy_Particle *msh);
114
 
PyObject* ParticleCreatePyObject (struct Effect *particle);
115
 
int ParticleCheckPyObject (PyObject *py_obj);
116
 
struct Particle* ParticleFromPyObject (PyObject *py_obj);
117
 
 
118
 
 
119
 
 
120
 
#endif /* EXPP_PARTICLE_H */
 
123
int ParticleSetAttr( BPy_Particle * msh, char *name, PyObject * v );
 
124
PyObject *ParticleGetAttr( BPy_Particle * msh, char *name );
 
125
PyObject *ParticleRepr( BPy_Particle * msh );
 
126
PyObject *ParticleCreatePyObject( struct Effect *particle );
 
127
int ParticleCheckPyObject( PyObject * py_obj );
 
128
struct Particle *ParticleFromPyObject( PyObject * py_obj );
 
129
 
 
130
 
 
131
 
 
132
#endif                          /* EXPP_PARTICLE_H */