Developer documentation | Axl-2.5.1

axlSurfaceRevolutionParametricConverter.h
Go to the documentation of this file.
1 //Author: Hung NGUYEN 9:17 AM 20/05/2014
2 
3 
4 #ifndef AXLSURFACEREVOLUTIONPARAMETRICCONVERTER_H
5 #define AXLSURFACEREVOLUTIONPARAMETRICCONVERTER_H
6 
8 #include "axlPoint.h"
9 #include "axlLine.h"
10 #include "axlCircleArc.h"
12 
13 class axlSurfaceRevolutionParametricConverterPrivate;
14 
15 
17 {
18  Q_OBJECT
19 public:
22 
23  QString description (void) const;
24  QString identifier (void) const;
25 
26  QStringList fromTypes(void) const;
27  QString toType (void) const;
28 
29 public:
30  static bool registered(void);
31 
32 public slots:
33  axlMesh *toMesh(void);
34 
35 public:
36  void setData(dtkAbstractData *data);
37 
38 private:
39  axlSurfaceRevolutionParametricConverterPrivate *d;
40  double angle(axlPoint vCompute, axlPoint vRef, axlPoint normal);
41  double angleOfArc(const axlCircleArc *arc);
43  axlPoint *rotatePoint(double a, double b, double c, double x, double y,double z, double u, double v, double w, double alpha);
44  axlPoint* RotatePoint(axlPoint a,axlPoint x,axlPoint u, double alpha);
45  axlPoint* RotatePoint(axlLine *line,axlPoint *x, double alpha);
46  QList<axlPoint *> Sampling(axlAbstractCurve *curve);
47 
48 };
49 
50 dtkAbstractDataConverter *createaxlSurfaceRevolutionParametricConverter(void);
51 
52 
53 #endif
Class axlPoint defines 3D points.
Definition: axlPoint.h:34
Class axlLine defines 3D lines.
Definition: axlLine.h:35
axlPoint * RotatePoint(axlPoint a, axlPoint x, axlPoint u, double alpha)
double angleOfArc(const axlCircleArc *arc)
axlPoint normalCCWArc(const axlCircleArc &arc)
axlPoint * rotatePoint(double a, double b, double c, double x, double y, double z, double u, double v, double w, double alpha)
QList< axlPoint * > Sampling(axlAbstractCurve *curve)
#define AXLCORE_EXPORT
virtual axlMesh * toMesh(void)
Mesh conversion.
dtkAbstractDataConverter * createaxlSurfaceRevolutionParametricConverter(void)
Class axlMesh defines a piecewise-linear 3D object.
Definition: axlMesh.h:41
double angle(axlPoint vCompute, axlPoint vRef, axlPoint normal)