Developer documentation | Axl-2.5.1

axlAbstractCurveParametric.h
Go to the documentation of this file.
1 /* axlAbstractCurveParametric.h ---
2  *
3  * Author: Meriadeg Perrinel
4  * Copyright (C) 2008 - Meriadeg Perrinel, Inria.
5  * Created: Tue Nov 9 16:58:59 2010 (+0100)
6  * Version: $Id$
7  * Last-Updated: Mon Dec 6 15:33:05 2010 (+0100)
8  * By: Meriadeg Perrinel
9  * Update #: 22
10  */
11 
12 /* Commentary:
13  *
14  */
15 
16 /* Change log:
17  *
18  */
19 
20 #ifndef AXLABSTRACTCURVEPARAMETRIC_H
21 #define AXLABSTRACTCURVEPARAMETRIC_H
22 
23 #include "axlAbstractCurve.h"
24 #include "axlCoreExport.h"
25 
26 class axlPoint;
27 class axlMesh;
28 
29 class axlAbstractCurveParametricPrivate;
30 //class axlAbstractVisitorParametric;
31 
37 {
38  Q_OBJECT
39  Q_PROPERTY(int samples READ samples WRITE setSamples)
40 
41 public:
43  virtual ~axlAbstractCurveParametric(void);
44 
45 
46  virtual double startParam(void);
47  virtual double endParam(void);
48 
49  virtual axlPoint eval(double u);
50  virtual void eval(axlPoint *point, double u);
51  virtual axlMesh eval(double u, int derivs, bool from_right = true);
52 
53  double parameterOf(const axlPoint& p);
54 
55  virtual double length(double tolerance);
56  virtual int numSamples(void);
57  virtual void setNumSamples(int numSamples);
58 
59 
60 //public :
61 // virtual axlAbstractVisitorParametric *getVisitor(void);
62 // virtual void setVisitor(axlAbstractVisitorParametric *visitor);
63 
64 
65 
66 
67 
68 public:
69  const int& samples(void) const;
70 
71 public slots:
72  virtual void onDirectChanged(bool direct);
73  void setSamples(const int& color);
74 
75 private:
76  axlAbstractCurveParametricPrivate *d;
77 };
78 #endif
Class axlPoint defines 3D points.
Definition: axlPoint.h:34
Generic interface for parametric curve.
#define AXLCORE_EXPORT
Class axlMesh defines a piecewise-linear 3D object.
Definition: axlMesh.h:41