summaryrefslogtreecommitdiff
path: root/tags/START/glagen/dll/classes/dot.hh
blob: e13f23c17382396cea5ab30edd839d5fe5594571 (plain)
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
//
// dot.hh for Glagen in ~/Galgen/3d
// 
// Made by Zavie
// Login   <guerta_j@epita.fr>
// 
// Started on  Fri Aug 16 17:08:16 2002 Zavie
//

#ifndef		DOT_HH_
# define	DOT_HH_

class		Dot
{
public:

  // Constructor and destructor
  Dot (double x, double y, double z);
  ~Dot ();

  // Reading
  double	x ();
  double	y ();
  double	z ();

  void		*Property (int i);
  bool		Is_checked ();

  // Writing
  void		set (double x, double y, double z);
  void		Use ();
  void		Drop ();
  void		Del_property (int i);
  void		Set_property (int i, void *property);
  void		Checked ();

  // Other tools
  Dot		*Middle (Dot *b);

protected:
  double	_x;
  double	_y;
  double	_z;
  unsigned char	_use;
  void		**_property;
  char		step;
};

#endif		// DOT_HH_