05Robot 3.0

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

ObjectManipulationProperties.h
Go to the documentation of this file.
1
7 #ifndef OBJECTMANIPULATIONPROPERTIES_H
8 #define OBJECTMANIPULATIONPROPERTIES_H
9
10 #include <QWidget>
11
12 #include "ObjectManipulationWindow.h"
13 #include "cxmlio.h"
14
24 class ObjectManipulationProperties : public cXmlIO
25 {
26 Q_OBJECT
30 Q_PROPERTY(int Interface_size READ interface_size WRITE set_interface_size DESIGNABLE true USER true)
31 Q_CLASSINFO("Interface_size", "minimum=20;maximum=300;singleStep=1;");
35 Q_PROPERTY(int Initial_rotation READ initial_rotation WRITE set_initial_rotation DESIGNABLE true USER true)
36 Q_CLASSINFO("Initial_rotation", "minimum=0;maximum=359;singleStep=1;");
40 Q_PROPERTY(int Rotation_step READ rotation_step WRITE set_rotation_step DESIGNABLE true USER true)
41 Q_CLASSINFO("Rotation_step", "minimum=90;maximum=270;singleStep=90;");
45 Q_PROPERTY(float View_scroll_step READ view_scroll_step WRITE set_view_scroll_step DESIGNABLE true USER true)
46 Q_CLASSINFO("View_scroll_step", "minimum=0.01;maximum=1;singleStep=0.01;");
50 Q_PROPERTY(float Zoom_in_out_factor READ zoom_in_out_factor WRITE set_zoom_in_out_factor DESIGNABLE true USER true)
51 Q_CLASSINFO("Zoom_in_out_factor", "minimum=0.01;maximum=10.0;singleStep=0.1;");
55 Q_PROPERTY(QString Bin_descriptors READ bin_descriptors WRITE set_bin_descriptors DESIGNABLE true USER true)
59 Q_PROPERTY(QString Image_file READ image_file WRITE set_image_file DESIGNABLE true USER true)
63 Q_PROPERTY(QString Object_list_file READ object_list_file WRITE set_object_list_file DESIGNABLE true USER true)
64
65
66 public:
72 ObjectManipulationProperties(ObjectManipulationWindow* managed_window, QObject *parent = 0);
76 int interface_size() const;
80 void set_interface_size(int interface_size);
84 int initial_rotation() const;
88 void set_initial_rotation(int initial_rotation);
92 int rotation_step() const;
96 void set_rotation_step(int rotation_step);
100 float view_scroll_step() const;
104 void set_view_scroll_step(float view_scroll_step);
108 float zoom_in_out_factor() const;
112 void set_zoom_in_out_factor(float zoom_in_out_factor);
116 QString bin_descriptors() const;
120 void set_bin_descriptors(const QString &bin_descriptors);
124 QString image_file() const;
128 void set_image_file(const QString &image_file);
132 QString object_list_file() const;
136 void set_object_list_file(const QString &object_list_file);
141 virtual void readXml(QXmlStreamReader& stream) {
142 while(!(stream.tokenType() == QXmlStreamReader::EndElement && stream.name() == sXmlKey())) {
143 cXmlIO::readXml(stream);
144 stream.readNext();
145 }
146 }
147
148 private:
149 ObjectManipulationWindow* managed_window_ = NULL;
150 };
152 #endif // OBJECTMANIPULATIONPROPERTIES_H
ObjectManipulationProperties::set_object_list_file
void set_object_list_file(const QString &object_list_file)
Sets object list file.
ObjectManipulationProperties::set_initial_rotation
void set_initial_rotation(int initial_rotation)
Sets initial rotation in degrees.
cxmlio.h
ObjectManipulationProperties::Bin_descriptors
QString Bin_descriptors
Bin descriptors.
Definition: ObjectManipulationProperties.h:55
ObjectManipulationProperties::set_interface_size
void set_interface_size(int interface_size)
Sets base button size in pixels.
ObjectManipulationProperties::Object_list_file
QString Object_list_file
Object list file.
Definition: ObjectManipulationProperties.h:63
cXmlIO::readXml
virtual void readXml(QXmlStreamReader &xml)
Called by findInXML. Reads XML entries. Has to be overloaded if additional data was written to file i...
ObjectManipulationProperties::Image_file
QString Image_file
Static image file to display, disables live camera input and switches to object manipulation mode...
Definition: ObjectManipulationProperties.h:59
ObjectManipulationProperties::View_scroll_step
float View_scroll_step
View scroll step (fraction of view window)
Definition: ObjectManipulationProperties.h:45
ObjectManipulationProperties
Object manipulation properties.
Definition: ObjectManipulationProperties.h:24
ObjectManipulationProperties::set_rotation_step
void set_rotation_step(int rotation_step)
Sets rotation step in degrees.
ObjectManipulationProperties::set_zoom_in_out_factor
void set_zoom_in_out_factor(float zoom_in_out_factor)
Sets zoom in/out factor.
ObjectManipulationWindow.h
ObjectManipulationProperties::object_list_file
QString object_list_file() const
Gets object list file.
ObjectManipulationProperties::readXml
virtual void readXml(QXmlStreamReader &stream)
reads XML file TODO
Definition: ObjectManipulationProperties.h:141
ObjectManipulationProperties::Zoom_in_out_factor
float Zoom_in_out_factor
Zoom in/out factor.
Definition: ObjectManipulationProperties.h:50
ObjectManipulationProperties::Rotation_step
int Rotation_step
Rotation step in degrees.
Definition: ObjectManipulationProperties.h:40
ObjectManipulationProperties::Initial_rotation
int Initial_rotation
Initial rotation in degrees units.
Definition: ObjectManipulationProperties.h:35
cXmlIO
Delivers XML file serialisation and deserialisation methods for modules.
Definition: cxmlio.h:22
ObjectManipulationProperties::interface_size
int interface_size() const
Gets base button size in pixels.
cXmlIO::sXmlKey
virtual QString sXmlKey()
Generates key of XML entry (as name of the serialised class is)
Definition: cxmlio.h:36
ObjectManipulationProperties::zoom_in_out_factor
float zoom_in_out_factor() const
Gets zoom in/out factor.
ObjectManipulationProperties::Interface_size
int Interface_size
Base button size in pixels.
Definition: ObjectManipulationProperties.h:30
ObjectManipulationProperties::image_file
QString image_file() const
Gets image file.
ObjectManipulationProperties::view_scroll_step
float view_scroll_step() const
Gets view scroll step (fraction of view window)
ObjectManipulationProperties::set_bin_descriptors
void set_bin_descriptors(const QString &bin_descriptors)
Sets bin descriptors.
ObjectManipulationProperties::rotation_step
int rotation_step() const
Gets rotation step in degrees.
ObjectManipulationProperties::set_image_file
void set_image_file(const QString &image_file)
Sets image file.
ObjectManipulationProperties::set_view_scroll_step
void set_view_scroll_step(float view_scroll_step)
Sets view scroll step (fraction of view window)
ObjectManipulationProperties::initial_rotation
int initial_rotation() const
Gets initial rotation in degrees.
ObjectManipulationWindow
Object manipulation window.
Definition: ObjectManipulationWindow.h:31
ObjectManipulationProperties::bin_descriptors
QString bin_descriptors() const
Gets bin descriptors.