Developer documentation | Axl-2.5.1

axlTorusParametric.h
Go to the documentation of this file.
1 /* axlTorusParametric.h ---
2  *
3  * Author: Valentin Michelet
4  * Copyright (C) 2008-2013 - Valentin Michelet, Inria.
5  * Created: Tue Jul 30 16:58:59 2013 (+0100)
6  * Version: $Id$
7  */
8 
9 /* Commentary:
10  *
11  */
12 
13 /* Change log:
14  *
15  */
16 
17 #ifndef AXLTORUSPARAMETRIC_H
18 #define AXLTORUSPARAMETRIC_H
19 
20 #include "axlCoreExport.h"
22 
23 #include <QtCore>
24 
25 class axlPoint;
26 class axlTorus;
27 class axlTorusParametricPrivate;
28 
30  Q_OBJECT
31 
32 public:
35  axlTorusParametric(const axlTorus& torus, const axlPoint& r);
37  virtual ~axlTorusParametric(void);
38 
39  virtual QString description(void) const;
40  virtual QString identifier(void) const;
41 
42  axlPoint* getV(void) const;
43  axlPoint* getR(void) const;
44  void setR(axlPoint* r);
45  axlPoint* getW(void) const;
46 
47  axlTorus* getTorus(void) const;
48  void setTorus(const axlTorus& torus);
49 
50  axlTorusParametric& operator=(const axlTorusParametric& other);
51 
52  void modifyR(double* r);
53 
54  virtual axlPoint eval(double u, double v);
55  virtual void eval(axlPoint *point, double u,double v);
56  virtual void eval(double& x, double& y, double& z, double u,double v);
57 
58  virtual void parameterOf(const axlPoint& point, double& um, double& vm);
59 
60 public slots:
61  void onTorusChanged(axlTorus* torus);
62  void onRChanged(axlPoint* r);
63 
64 private:
65  axlTorusParametricPrivate* d;
66 };
67 
68 #endif // AXLTORUSPARAMETRIC_H
Class axlPoint defines 3D points.
Definition: axlPoint.h:34
virtual axlPoint eval(double u, double v)
virtual void parameterOf(const axlPoint &point, double &um, double &vm)
#define AXLCORE_EXPORT