1 |
// (c) 2006 Jean-Marc DROUET/OptiS ***************************** primitive.h * > |
2 |
// |
3 |
// 20-03-2006 |
4 |
// |
5 |
//****************************************************************************** |
6 |
|
7 |
#ifndef _primitiveh |
8 |
#define _primitiveh |
9 |
|
10 |
#include "bib_0000.h" |
11 |
|
12 |
//****************************************************************************** |
13 |
// types globaux du module primitive |
14 |
|
15 |
// aucun |
16 |
|
17 |
//****************************************************************************** |
18 |
// constantes globales du module primitive |
19 |
|
20 |
//-- type de primitive --------------------------------------------------------- |
21 |
|
22 |
#define cbspline_pu (ty_RSLT) 0x00 // courbes |
23 |
#define cbspline_puf (ty_RSLT) 0x01 |
24 |
#define cbspline_ou (ty_RSLT) 0x02 |
25 |
#define cbspline_nuo (ty_RSLT) 0x04 |
26 |
#define cbspline_nuf (ty_RSLT) 0x08 |
27 |
|
28 |
#define sbspline_ouv (ty_RSLT) 0x08 // surfaces |
29 |
#define sbspline_pu (ty_RSLT) 0x10 |
30 |
#define sbspline_onu (ty_RSLT) 0x20 |
31 |
|
32 |
//****************************************************************************** |
33 |
// variables globales du module primitive |
34 |
|
35 |
// aucune |
36 |
|
37 |
//****************************************************************************** |
38 |
// classe de base pour toutes les primitives |
39 |
|
40 |
class o_primitive { |
41 |
|
42 |
public: |
43 |
|
44 |
//---------------------------------------------------------------------------- |
45 |
//------------------------------- ATTRIBUTS ---------------------------------- |
46 |
//---------------------------------------------------------------------------- |
47 |
|
48 |
int type; // type de primitive |
49 |
|
50 |
//---------------------------------------------------------------------------- |
51 |
//------------------------------- MÉTHODES ----------------------------------- |
52 |
//---------------------------------------------------------------------------- |
53 |
|
54 |
o_primitive ( void ); // constructeur par défaut |
55 |
~o_primitive ( void ); // destructeur par défaut |
56 |
|
57 |
}; |
58 |
|
59 |
// (c) 2006 Jean-Marc DROUET/OptiS ***************************** primitive.h * < |
60 |
|
61 |
#endif |