summaryrefslogtreecommitdiff
path: root/trunk/glagen/dll/classes/dot.cc
diff options
context:
space:
mode:
authorhugues <hugues@0f7e0d06-a6f9-0310-a55f-d5f984f55e4c>2006-03-25 15:07:51 +0000
committerHugues Hiegel <hugues@hiegel.fr>2008-03-18 10:06:55 +0100
commit56cc59cf44ec64440ba4d1c0d005196195c758e6 (patch)
tree0e4bc431438a05c2e32b8703a8c79dcbf26a7cbf /trunk/glagen/dll/classes/dot.cc
parentd49be924baa2759aefa5b5311a35adf50db48e12 (diff)
Nettoyage du repository glagenHEADmaster
git-svn-id: file:///usr/local/opt/svn/repos/glagen@12 0f7e0d06-a6f9-0310-a55f-d5f984f55e4c
Diffstat (limited to 'trunk/glagen/dll/classes/dot.cc')
-rw-r--r--trunk/glagen/dll/classes/dot.cc100
1 files changed, 0 insertions, 100 deletions
diff --git a/trunk/glagen/dll/classes/dot.cc b/trunk/glagen/dll/classes/dot.cc
deleted file mode 100644
index 10e766a..0000000
--- a/trunk/glagen/dll/classes/dot.cc
+++ /dev/null
@@ -1,100 +0,0 @@
-//
-// dot.cc for Glagen in ~/Galgen/3d
-//
-// Made by Zavie
-// Login <guerta_j@epita.fr>
-//
-// Started on Fri Aug 16 17:08:16 2002 Zavie
-//
-
-#include <cstdio>
-#include <cstdlib>
-#include <cmath>
-#include "data_glagen.hh"
-#include "dot.hh"
-
-// Constructor and destructor
-Dot :: Dot (double x, double y, double z)
-{
- int current;
-
- _x = x;
- _y = y;
- _z = z;
- _use = 0;
- _property = new void *[GL_property];
- for (current = 0; current < GL_property; current++)
- _property[current] = NULL;
- step = GL_step;
-}
-
-Dot :: ~Dot ()
-{
- int current;
-
- for (current = 0; current < GL_property; current++)
- if (_property[current] != NULL)
- delete _property[current];
-}
-
-// Reading
-double Dot :: x () { return _x; }
-double Dot :: y () { return _y; }
-double Dot :: z () { return _z; }
-
-void *Dot :: Property (int i)
-{
- return _property[i];
-}
-bool Dot :: Is_checked () { return (step == GL_step); }
-
-// Writing
-void Dot :: set (double x, double y, double z)
-{
- _x = x;
- _y = y;
- _z = z;
-}
-
-void Dot :: Use () { _use = _use + 1; }
-
-void Dot :: Drop ()
-{
- _use = _use - 1;
- if (0 == _use)
- {
- delete this;
- printf("destroy !\n");
- }
-}
-
-void Dot :: Del_property (int i)
-{
- delete _property[i];
- _property[i] = NULL;
-}
-
-void Dot :: Set_property (int i, void *property)
-{
- _property[i] = property;
-}
-
-void Dot :: Checked () { step = GL_step; }
-
-// Other tools
-Dot *Dot :: Middle (Dot *b)
-{
- double xc;
- double yc;
- double zc;
- double adjust;
-
- xc = (this->x () + b->x ()) / 2;
- yc = (this->y () + b->y ()) / 2;
- zc = (this->z () + b->z ()) / 2;
- adjust = sqrt (GL_square_size / (xc * xc + yc * yc + zc * zc));
- xc = xc * adjust;
- yc = yc * adjust;
- zc = zc * adjust;
- return new Dot (xc, yc, zc);
-}