movement_from_image.hpp
Go to the documentation of this file.
1 /*
2 * Copyright 2019 Shadow Robot Company Ltd.
3 *
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the Free
6 * Software Foundation version 2 of the License.
7 *
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 *
13 * You should have received a copy of the GNU General Public License along
14 * with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16 
28 #ifndef _MOVEMENT_FROM_IMAGE_HPP_
29 #define _MOVEMENT_FROM_IMAGE_HPP_
30 
31 #include <string>
32 #include <Magick++.h>
34 #include <boost/smart_ptr.hpp>
35 
36 namespace shadowrobot
37 {
39 {
40 public:
41  explicit MovementFromImage(std::string image_path);
42  virtual ~MovementFromImage();
43 
44 protected:
52  void generate_movement_();
53 
56 
58  ssize_t nb_cols_;
60  ssize_t nb_rows_;
61 };
62 } // namespace shadowrobot
63 
64 /* For the emacs weenies in the crowd.
65 Local Variables:
66  c-basic-offset: 2
67 End:
68 */
69 
70 #endif
ssize_t nb_cols_
The number of columns in the image.
ssize_t nb_rows_
The number of rows in the image.
boost::shared_ptr< Magick::Image > image_
The image from which the movement is generated.
MovementFromImage(std::string image_path)
This is the main class from which all the different types of movement will inherit.


sr_movements
Author(s): Ugo Cupcic
autogenerated on Fri Mar 11 2022 03:29:39