Developer documentation | Axl-2.5.1

axlFieldDiscrete.h
Go to the documentation of this file.
1 /* axlFieldDiscrete.h ---
2  *
3  * Author: Thibaud Kloczko
4  * Copyright (C) 2008 - Thibaud Kloczko, Inria.
5  * Created: Wed Jul 28 11:21:06 2010 (+0200)
6  * Version: $Id$
7  * Last-Updated: Fri Feb 4 21:54:24 2011 (+0100)
8  * By: Regis Duvigneau
9  * Update #: 142
10  */
11 
12 /* Commentary:
13  *
14  */
15 
16 /* Change log:
17  *
18  */
19 
20 #ifndef AXLFIELDDISCRETE_H
21 #define AXLFIELDDISCRETE_H
22 
23 #include "axlCoreExport.h"
24 
25 
26 
28 
29 class axlFieldDiscretePrivate;
30 
32 {
33  Q_OBJECT
34 
35 public:
37  axlFieldDiscrete(QString name, Type type, Kind kind, Support support, int size);
38  //axlFieldDiscrete(void *array);
39  virtual ~axlFieldDiscrete(void);
40 
41  static bool registered(void);
42 
43  // virtual void setType(Type type);
44  // virtual void setKind(Kind kind);
45  // virtual void setSupport(Support support);
46 
47  virtual void setScalar(int index, double v1);
48  virtual void setVector(int index, double v1, double v2, double v3);
49  virtual void setTensor(int index, double v1, double v2, double v3, double v4, double v5, double v6, double v7, double v8, double v9);
50 
51  virtual int size(void);
52  virtual void setSize(int size);
53 
54  virtual double scalar(int index);
55  virtual double *vector(int index);
56  virtual double *tensor(int index);
57 
58  QString description(void) const;
59  QString identifier(void) const;
60 
61 signals :
62  void updated(void);
63 
64 public slots:
65  virtual void update(void);
66 
67 private:
68  axlFieldDiscretePrivate *d;
69 };
70 
71 dtkAbstractData *createaxlFieldDiscrete(void);
72 
73 
74 #endif // AXLFIELDDISCRETE_H
virtual QString identifier(void) const
virtual double scalar(int index)
Returns the value at index location of the scalar array.
Class axlAbstractFieldDiscrete defines an API for arrays of numeric data.
virtual void setTensor(int index, double v1, double v2, double v3, double v4, double v5, double v6, double v7, double v8, double v9)
virtual void setVector(int index, double v1, double v2, double v3)
virtual double * tensor(int index)
Returns the value at index location of the tensor array.
virtual void setScalar(int index, double v1)
dtkAbstractData * createaxlFieldDiscrete(void)
Class axlFieldDiscrete defines an API for arrays of numeric data.
virtual double * vector(int index)
Returns the value at index location of the vector array.
#define AXLCORE_EXPORT