stromx  0.7.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
MatrixDescription.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_MATRIXDESCRIPTION_H
18 #define STROMX_RUNTIME_MATRIXDESCRIPTION_H
19 
20 #include "stromx/runtime/Description.h"
21 
22 namespace stromx
23 {
24  namespace runtime
25  {
26  class Data;
27 
33  class STROMX_RUNTIME_API MatrixDescription : public Description
34  {
35  public:
40  MatrixDescription(const unsigned int id, const VariantHandle& variant);
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_MATRIXDESCRIPTION_H
Description of a connector.
Definition: Description.h:32
Definition: VariantHandle.h:34
virtual unsigned int cols() const
Definition: MatrixDescription.h:43
The stromx class library.
Definition: AdjustRgbChannels.cpp:29
virtual void setRows(const unsigned int value)
Definition: MatrixDescription.h:49
virtual void setCols(const unsigned int value)
Definition: MatrixDescription.h:58
virtual unsigned int rows() const
Definition: MatrixDescription.h:42
Description of a matrix description
Definition: MatrixDescription.h:33