Developer documentation | Axl-2.5.1

axlBarycenterProcess.h
Go to the documentation of this file.
1 /* axlBarycenterProcess.h ---
2  *
3  * Author: Anais Ducoffe
4  * Copyright (C) 2012, Anais Ducoffe, INRIA.
5  */
6 
7 /* Commentary:
8  */
9 
10 /* Change log:
11  *
12  */
13 
14 #ifndef axlBarycenterProcess_H
15 #define axlBarycenterProcess_H
16 
17 #include "axlCoreExport.h"
18 
19 #include "axlAbstractProcess.h"
20 
21 #include <QtCore>
22 
23 class axlPoint;
24 class axlLine;
25 class axlAbstractData;
26 
27 class axlBarycenterProcessPrivate;
28 
30 {
31  Q_OBJECT
32 
33 public:
34  axlBarycenterProcess(QObject *parent = 0);
35  ~axlBarycenterProcess(void);
36 
37 public :
38  axlAbstractData * getInput(int channel) const;
39  double getCoeffValue(void) const;
40 
41 public :
42  virtual int update(void);
43 
44 public :
45  QString description(void) const;
46  QString identifier(void) const;
47 
48 public :
49  dtkAbstractData *output(void);
50  void setInput(dtkAbstractData *newData, int channel = 0);
51  void setParameter(double data, int channel = 0);
52  int channelCount(void);
53 
54 public:
55  QString form(void) const
56  {
57  return QString(
58  " INPUT:0 data line \n"
59  " PARAMETER:0 double coefficient 0.5 \n"
60  " OUTPUT:0 data barycenterPoint ");
61  }
62 
63 signals:
64  void dataInserted(axlAbstractData *data);
65 
66 private:
67  axlBarycenterProcessPrivate *d;
68 };
69 
70 AXLCORE_EXPORT dtkAbstractProcess *createaxlBarycenterProcess(void);
71 
72 #endif// axlBarycenterProcess_H
Class axlPoint defines 3D points.
Definition: axlPoint.h:34
Class axlLine defines 3D lines.
Definition: axlLine.h:35
virtual QString description(void) const
#define AXLCORE_EXPORT
QString form(void) const
Description of the form for the dialog with the process.
AXLCORE_EXPORT dtkAbstractProcess * createaxlBarycenterProcess(void)
virtual QString identifier(void) const
Class axlAbstractData defines an API for all type of axel data.