24 #ifndef _GEMA_INTERPOLATOR_OUTPUT_BINDINGS_H_ 25 #define _GEMA_INTERPOLATOR_OUTPUT_BINDINGS_H_ 50 virtual int dim(
int srcIndex)
const = 0;
71 virtual int dim(
int srcIndex)
const { Q_UNUSED(srcIndex); assert(srcIndex == 0);
return _dim; }
93 for(
int i = 0; i< nresults; i++)
101 virtual int dim(
int srcIndex)
const { Q_UNUSED(srcIndex); assert(srcIndex >= 0 && srcIndex <
_outList.
size());
return _dim; }
129 virtual int dim(
int srcIndex)
const { Q_UNUSED(srcIndex); assert(srcIndex == 0);
return _dim; }
135 assert(srcIndex == 0);
136 assert(
_ac->valueSize() == data.n_elem);
165 virtual int dim(
int srcIndex)
const { Q_UNUSED(srcIndex); assert(srcIndex >= 0 && srcIndex <
_acList.
size());
return _dim; }
170 assert(srcIndex >= 0 && srcIndex <
_acList.
size());
171 assert(
_acList.
at(srcIndex)->valueSize() == data.n_elem);
200 virtual int dim(
int srcIndex)
const { Q_UNUSED(srcIndex); assert(srcIndex == 0);
return _dim; }
206 assert(srcIndex == 0);
235 virtual int dim(
int srcIndex)
const { Q_UNUSED(srcIndex); assert(srcIndex >= 0 && srcIndex <
_acList.
size());
return _dim; }
240 assert(srcIndex >= 0 && srcIndex <
_acList.
size());
241 assert(
_acList.
at(srcIndex)->valueSize() == data.n_elem);
270 virtual int dim(
int srcIndex)
const = 0;
294 virtual int dim(
int srcIndex)
const { Q_UNUSED(srcIndex); assert(srcIndex == 0);
return _dim; }
316 for(
int i = 0; i< nresults; i++)
324 virtual int dim(
int srcIndex)
const { Q_UNUSED(srcIndex); assert(srcIndex >= 0 && srcIndex <
_outList.
size());
return _dim; }
Base interface for FEM (finite element) mesh elements.
Definition: gmElement.h:37
int _ip
The element Gauss point index where the result will be stored.
Definition: gmInterpolatorOutputBindings.h:143
GmInterpolatorOutputMultiDataBinding implementation storing a single value in a matrix.
Definition: gmInterpolatorOutputBindings.h:280
GmInterpolatorOutputDataBinding implementation storing a single value in a node attribute through an ...
Definition: gmInterpolatorOutputBindings.h:185
const QList< GmGaussAccessor * > & _acList
The list with accessors for storing results.
Definition: gmInterpolatorOutputBindings.h:176
GmGaussAccessor * _ac
The accessor for storing results.
Definition: gmInterpolatorOutputBindings.h:141
virtual void setValue(int srcIndex, const GmMatrix &data)
Saves the given matrix as the result for the given data src. The data matrix stores results per colum...
Definition: gmInterpolatorOutputBindings.h:327
int _dim
The selected dimension when converting vector data to scalars or -1 if not needed.
Definition: gmInterpolatorOutputBindings.h:108
virtual int dim(int srcIndex) const =0
Returns the access index for retrieving scalar values from vector data or -1 if unused.
int valueSize() const
Returns the size of the array returned by value(), i.e. 1 for scalar values and nlin * ncol for vecto...
Definition: gmValueAccessor.h:102
Binding class used to host the data structure where calculated interpolated values will be stored for...
Definition: gmInterpolatorOutputBindings.h:262
GmInterpolatorOutputDataBinding implementation storing multiple values in a vector list.
Definition: gmInterpolatorOutputBindings.h:82
virtual int numSrcs()
Returns the number o data srcs (accessors) stored by this object.
Definition: gmInterpolatorOutputBindings.h:98
virtual void setValue(int srcIndex, const GmVector &data)
Saves the given vector as the result for the given data src.
Definition: gmInterpolatorOutputBindings.h:74
The GmGaussAccessor class is a proxy object to a value accesor implementing a more convenient interfa...
Definition: gmGaussAccessor.h:38
Declaration of usefull configuration definitions for the Core library.
const T & at(int i) const const
virtual int dim(int srcIndex) const =0
Returns the access index for retrieving scalar values from vector data or -1 if unused.
int _dim
The selected dimension when converting vector data to scalars or -1 if not needed.
Definition: gmInterpolatorOutputBindings.h:179
virtual int dim(int srcIndex) const
Returns the access index for retrieving scalar values from vector data or -1 if unused.
Definition: gmInterpolatorOutputBindings.h:129
int _dim
The selected dimension when converting vector data to scalars or -1 if not needed.
Definition: gmInterpolatorOutputBindings.h:331
GmInterpolatorNodeOutputDataBinding(GmValueAccessor *ac, int nodeIndex, int dim=-1)
Constructor, receiving the node accessor along with the node identification plus the dimension inform...
Definition: gmInterpolatorOutputBindings.h:193
virtual int dim(int srcIndex) const
Returns the access index for retrieving scalar values from vector data or -1 if unused.
Definition: gmInterpolatorOutputBindings.h:235
const QList< GmValueAccessor * > & _acList
The list with accessors for storing results.
Definition: gmInterpolatorOutputBindings.h:246
virtual int numSrcs()=0
Returns the number o data srcs (accessors) stored by this object.
Interface class for accessing and setting values from an "indexable" collection of values.
Definition: gmValueAccessor.h:59
virtual int dim(int srcIndex) const
Returns the access index for retrieving scalar values from vector data or -1 if unused.
Definition: gmInterpolatorOutputBindings.h:200
const GmElement * _elem
The element where the result will be stored.
Definition: gmInterpolatorOutputBindings.h:142
GmVector & _outData
A reference to the vector where the interpolation result will be stored.
Definition: gmInterpolatorOutputBindings.h:77
virtual void setValue(int srcIndex, const GmMatrix &data)
Saves the given matrix as the result for the given data src. The data matrix stores results per colum...
Definition: gmInterpolatorOutputBindings.h:297
virtual int numSrcs()
Returns the number o data srcs (accessors) stored by this object.
Definition: gmInterpolatorOutputBindings.h:321
int _dim
The selected dimension when converting vector data to scalars or -1 if not needed.
Definition: gmInterpolatorOutputBindings.h:144
int _dim
The selected dimension when converting vector data to scalars or -1 if not needed.
Definition: gmInterpolatorOutputBindings.h:248
void append(const T &value)
virtual int dim(int srcIndex) const
Returns the access index for retrieving scalar values from vector data or -1 if unused.
Definition: gmInterpolatorOutputBindings.h:324
int _nodeIndex
The node index where the result will be stored.
Definition: gmInterpolatorOutputBindings.h:213
virtual int numSrcs()=0
Returns the number o data srcs (accessors) stored by this object.
GmInterpolatorVectorOutputDataBinding(GmVector &outData, int dim=-1)
Constructor, receiving a reference to the vector that will be filled plus the dimension information u...
Definition: gmInterpolatorOutputBindings.h:64
GmInterpolatorMMatrixOutputMultiDataBinding(QList< GmMatrix > &outList, int nresults, int dim=-1)
Constructor, receiving a reference to the matrix list that will be filled plus the dimension informat...
Definition: gmInterpolatorOutputBindings.h:312
const GmElement * _elem
The element where the result will be stored.
Definition: gmInterpolatorOutputBindings.h:177
int _ip
The element Gauss point index where the result will be stored.
Definition: gmInterpolatorOutputBindings.h:178
virtual void setValue(int srcIndex, const GmMatrix &data)=0
Saves the given matrix as the result for the given data src. The data matrix stores results per colum...
GmInterpolatorMGaussOutputDataBinding(const QList< GmGaussAccessor * > &acList, const GmElement *elem, int ip, int dim=-1)
Constructor, receiving the Gauss accessor list along with the Gauss point identification (element + p...
Definition: gmInterpolatorOutputBindings.h:158
GmInterpolatorOutputDataBinding implementation storing a single value in a Gauss point through an acc...
Definition: gmInterpolatorOutputBindings.h:114
Implementation of the GmGaussAccessor proxy class.
Binding class used to host the data structure where calculated interpolated values will be stored....
Definition: gmInterpolatorOutputBindings.h:42
virtual void setValue(int srcIndex, const GmVector &data)=0
Saves the given vector as the result for the given data src.
GmInterpolatorOutputDataBinding implementation storing a single value in a vector.
Definition: gmInterpolatorOutputBindings.h:57
virtual void setValue(int srcIndex, const GmVector &data)
Saves the given vector as the result for the given data src.
Definition: gmInterpolatorOutputBindings.h:203
GmInterpolatorOutputDataBinding implementation storing multiple values in a node through an accessor ...
Definition: gmInterpolatorOutputBindings.h:220
virtual int numSrcs()
Returns the number o data srcs (accessors) stored by this object.
Definition: gmInterpolatorOutputBindings.h:126
virtual int dim(int srcIndex) const
Returns the access index for retrieving scalar values from vector data or -1 if unused.
Definition: gmInterpolatorOutputBindings.h:294
QList< GmVector > & _outList
A reference to the vector list where the interpolation results will be stored.
Definition: gmInterpolatorOutputBindings.h:107
GmInterpolatorMatrixOutputMultiDataBinding(GmMatrix &outData, int dim=-1)
Constructor, receiving a reference to the vector that will be filled plus the dimension information u...
Definition: gmInterpolatorOutputBindings.h:287
virtual int numSrcs()
Returns the number o data srcs (accessors) stored by this object.
Definition: gmInterpolatorOutputBindings.h:68
virtual int dim(int srcIndex) const
Returns the access index for retrieving scalar values from vector data or -1 if unused.
Definition: gmInterpolatorOutputBindings.h:165
GmInterpolatorOutputMultiDataBinding implementation storing multiple values in a matrix list.
Definition: gmInterpolatorOutputBindings.h:305
virtual void setValue(int srcIndex, const GmVector &data)
Saves the given vector as the result for the given data src.
Definition: gmInterpolatorOutputBindings.h:132
GmInterpolatorMNodeOutputDataBinding(const QList< GmValueAccessor * > &acList, int nodeIndex, int dim=-1)
Constructor, receiving the node accessor list along with the node identification plus the dimension i...
Definition: gmInterpolatorOutputBindings.h:228
int _nodeIndex
The node index where the results will be stored.
Definition: gmInterpolatorOutputBindings.h:247
virtual int numSrcs()
Returns the number o data srcs (accessors) stored by this object.
Definition: gmInterpolatorOutputBindings.h:291
QList< GmMatrix > & _outList
A reference to the matrix list where the interpolation results will be stored.
Definition: gmInterpolatorOutputBindings.h:330
GmMatrix & _outData
A reference to the matrix where the interpolation result will be stored.
Definition: gmInterpolatorOutputBindings.h:300
bool setVectorValue(int index, const GmVector &vec)
Similar to setValue() but receiving the data as a vector.
Definition: gmValueAccessor.h:231
GmInterpolatorOutputDataBinding implementation storing multiple values in a Gauss point through an ac...
Definition: gmInterpolatorOutputBindings.h:150
virtual int numSrcs()
Returns the number o data srcs (accessors) stored by this object.
Definition: gmInterpolatorOutputBindings.h:197
virtual int dim(int srcIndex) const
Returns the access index for retrieving scalar values from vector data or -1 if unused.
Definition: gmInterpolatorOutputBindings.h:71
GmInterpolatorGaussOutputDataBinding(GmGaussAccessor *ac, const GmElement *elem, int ip, int dim=-1)
Constructor, receiving the Gauss accessor along with the Gauss point identification (element + point ...
Definition: gmInterpolatorOutputBindings.h:122
GmInterpolatorMVectorOutputDataBinding(QList< GmVector > &outList, int nresults, int dim=-1)
Constructor, receiving a reference to the vector list that will be filled plus the dimension informat...
Definition: gmInterpolatorOutputBindings.h:89
arma::vec GmVector
The basic type for a GeMA vector object. Currently based on an Armadillo vector.
Definition: gmVector.h:34
int _dim
The selected dimension when converting vector data to scalars or -1 if not needed.
Definition: gmInterpolatorOutputBindings.h:301
GmValueAccessor * _ac
The accessor for storing results.
Definition: gmInterpolatorOutputBindings.h:212
virtual void setValue(int srcIndex, const GmVector &data)
Saves the given vector as the result for the given data src.
Definition: gmInterpolatorOutputBindings.h:104
virtual int numSrcs()
Returns the number o data srcs (accessors) stored by this object.
Definition: gmInterpolatorOutputBindings.h:232
arma::mat GmMatrix
The basic type for a GeMA matrix object. Currently based on an Armadillo matrix.
Definition: gmMatrix.h:38
int _dim
The selected dimension when converting vector data to scalars or -1 if not needed.
Definition: gmInterpolatorOutputBindings.h:78
virtual void setValue(int srcIndex, const GmVector &data)
Saves the given vector as the result for the given data src.
Definition: gmInterpolatorOutputBindings.h:238
virtual int dim(int srcIndex) const
Returns the access index for retrieving scalar values from vector data or -1 if unused.
Definition: gmInterpolatorOutputBindings.h:101
int _dim
The selected dimension when converting vector data to scalars or -1 if not needed.
Definition: gmInterpolatorOutputBindings.h:214
virtual int numSrcs()
Returns the number o data srcs (accessors) stored by this object.
Definition: gmInterpolatorOutputBindings.h:162
virtual void setValue(int srcIndex, const GmVector &data)
Saves the given vector as the result for the given data src.
Definition: gmInterpolatorOutputBindings.h:168