stromx  0.8.0
MatrixParameter.h
1 /*
2 * Copyright 2013 Matthias Fuchs
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 
17 #ifndef STROMX_RUNTIME_MATRIXPARAMETER_H
18 #define STROMX_RUNTIME_MATRIXPARAMETER_H
19 
20 #include "stromx/runtime/Parameter.h"
21 
22 namespace stromx
23 {
24  namespace runtime
25  {
26  class Data;
27 
33  class STROMX_RUNTIME_API MatrixParameter : public Parameter
34  {
35  public:
40  MatrixParameter(const unsigned int id, const VariantHandle& variant, ParameterGroup* const group = 0);
41 
42  virtual unsigned int rows() const { return m_rows; }
43  virtual unsigned int cols() const { return m_cols; }
44 
49  virtual void setRows(const unsigned int value)
50  {
51  m_rows = value;
52  }
53 
58  virtual void setCols(const unsigned int value)
59  {
60  m_cols = value;
61  }
62 
63  private:
64  unsigned int m_rows;
65  unsigned int m_cols;
66  };
67  }
68 }
69 
70 #endif // STROMX_RUNTIME_MATRIXPARAMETER_H
Definition: VariantHandle.h:34
A group of parameters.
Definition: ParameterGroup.h:28
Description of a matrix parameter
Definition: MatrixParameter.h:33
The stromx class library.
Definition: AdjustRgbChannels.cpp:29
virtual void setCols(const unsigned int value)
Definition: MatrixParameter.h:58
virtual unsigned int rows() const
Definition: MatrixParameter.h:42
Description of a parameter.
Definition: Parameter.h:34
virtual void setRows(const unsigned int value)
Definition: MatrixParameter.h:49
virtual unsigned int cols() const
Definition: MatrixParameter.h:43