matrix-constant.hh
Go to the documentation of this file.
1 /*
2  * Copyright 2010,
3  * François Bleibel,
4  * Olivier Stasse,
5  *
6  * CNRS/AIST
7  *
8  */
9 
10 #include <dynamic-graph/all-signals.h>
11 #include <dynamic-graph/entity.h>
12 
13 /* Matrix */
14 #include <dynamic-graph/linear-algebra.h>
15 namespace dg = dynamicgraph;
16 
17 /* --------------------------------------------------------------------- */
18 /* --- MATRIX ---------------------------------------------------------- */
19 /* --------------------------------------------------------------------- */
20 
21 namespace dynamicgraph {
22 namespace sot {
23 namespace command {
24 namespace matrixConstant {
25 class Resize;
26 }
27 } // namespace command
28 
29 class MatrixConstant : public Entity {
30  friend class command::matrixConstant::Resize;
31 
32 public:
33  static const std::string CLASS_NAME;
34  virtual const std::string &getClassName(void) const { return CLASS_NAME; }
35 
36  int rows, cols;
37  double color;
38 
39  void setValue(const dg::Matrix &inValue);
40 
41 public:
42  MatrixConstant(const std::string &name);
43 
44  virtual ~MatrixConstant(void) {}
45 
46  SignalTimeDependent<dg::Matrix, int> SOUT;
47 };
48 
49 } // namespace sot
50 } // namespace dynamicgraph
static const std::string CLASS_NAME
Definition: matrix-constant.hh:33
double color
Definition: matrix-constant.hh:37
virtual const std::string & getClassName(void) const
Definition: matrix-constant.hh:34
SignalTimeDependent< dg::Matrix, int > SOUT
Definition: matrix-constant.hh:46
int rows
Definition: matrix-constant.hh:36
virtual ~MatrixConstant(void)
Definition: matrix-constant.hh:44
Definition: matrix-constant.hh:29
Definition: abstract-sot-external-interface.hh:17