Developer documentation | Axl-2.5.1

axlVolumeDiscreteProcessCreator.h
Go to the documentation of this file.
1 /* axlVolumeDiscreteProcessCreator.h ---
2  *
3  * Author: Anais Ducoffe
4  * Copyright (C) 2013 - Anais Ducoffe, Inria.
5  */
6 
7 /* Commentary:
8  *
9  */
10 
11 /* Change log:
12  *
13  */
14 
15 #ifndef AXLVOLUMEDISCRETEPROCESSCREATOR_H
16 #define AXLVOLUMEDISCRETEPROCESSCREATOR_H
17 
18 
19 
20 #include "axlVtkViewPluginExport.h"
22 #include <dtkCoreSupport/dtkAbstractProcess.h>
23 
24 class axlVolumeDiscreteProcessCreatorPrivate;
25 
26 // ///////////////////////////////////////////////////////////////////
27 // axlVolume declaration
28 // ///////////////////////////////////////////////////////////////////
29 
31 {
32  Q_OBJECT
33 
34 public:
36 
37 public:
39 
40 public :
41  //virtual axlAbstractData * getInput(int channel) const;
42  void copyProcess(axlAbstractProcess *process);
43  bool hasParameters(void);
44 
45  //public:
46  // double equationToValue(int i, int j, int k);
47 
48 
49  /* dtk overload */
50 public :
51  virtual int update(void);
52 
53 public :
54 
55  virtual QString description(void) const;
56  virtual QString identifier(void) const;
57 
58 
59 public :
60  static bool registered(void);
61 
62 
63  QString form(void) const
64  {
65  return QString(
66  "INPUT 0 data implicit_surface:\n"
67  "PARAMETER 0 int xDimension: 10\n"
68  "PARAMETER 1 int yDimension: 10\n"
69  "PARAMETER 2 int zDimension: 10\n"
70  "OUTPUT 0 volume"
71  );
72  }
73 
74 public :
75  virtual void setInput(dtkAbstractData *newData, int channel);
76  virtual void setParameter(int value, int channel);
77  virtual dtkAbstractData *output(void);
78 
79 
80 
81 private:
82  axlVolumeDiscreteProcessCreatorPrivate *d;
83 };
84 
85 // /////////////////////////////////////////////////////////////////
86 // Instanciation function
87 // /////////////////////////////////////////////////////////////////
88 
90 
91 #endif // AXLVOLUMEDISCRETEPROCESSCREATOR_H
QString form(void) const
Description of the form for the dialog with the process.
#define AXLVTKVIEWPLUGIN_EXPORT
virtual bool hasParameters(void)
virtual void copyProcess(axlAbstractProcess *process)
virtual QString description(void) const
virtual void setInput(dtkAbstractData *newData, int channel)
AXLVTKVIEWPLUGIN_EXPORT dtkAbstractProcess * createaxlVolumeDiscreteProcessCreator(void)
virtual dtkAbstractData * output(void)
virtual QString identifier(void) const