14 #ifndef YARP_THRIFT_GENERATOR_STRUCT_PIXEL_H
15 #define YARP_THRIFT_GENERATOR_STRUCT_PIXEL_H
17 #include <yarp/os/Wire.h>
18 #include <yarp/os/idl/WireTypes.h>
27 public yarp::os::idl::WirePortable
44 Pixel(
const std::int32_t
x,
45 const std::int32_t
y);
48 bool read(yarp::os::idl::WireReader& reader)
override;
51 bool read(yarp::os::ConnectionReader& connection)
override;
54 bool write(
const yarp::os::idl::WireWriter& writer)
const override;
57 bool write(yarp::os::ConnectionWriter& connection)
const override;
60 std::string toString()
const;
63 typedef yarp::os::idl::Unwrapped<Pixel> unwrapped;
66 public yarp::os::Wire,
67 public yarp::os::PortWriter
80 Editor(
const Editor& rhs) =
delete;
81 Editor(Editor&& rhs) =
delete;
82 Editor& operator=(
const Editor& rhs) =
delete;
83 Editor& operator=(Editor&& rhs) =
delete;
86 bool edit(
Pixel& obj,
bool dirty =
true);
97 #ifndef YARP_NO_DEPRECATED
98 YARP_DEPRECATED_MSG(
"Use start_editing() instead")
108 #ifndef YARP_NO_DEPRECATED
109 YARP_DEPRECATED_MSG(
"Use stop_editing() instead")
117 void set_x(
const std::int32_t
x);
118 std::int32_t get_x()
const;
119 virtual bool will_set_x();
120 virtual bool did_set_x();
123 void set_y(
const std::int32_t
y);
124 std::int32_t get_y()
const;
125 virtual bool will_set_y();
126 virtual bool did_set_y();
132 bool read(yarp::os::ConnectionReader& connection)
override;
135 bool write(yarp::os::ConnectionWriter& connection)
const override;
160 void dirty_flags(
bool flag);
165 bool read_x(yarp::os::idl::WireReader& reader);
166 bool write_x(
const yarp::os::idl::WireWriter& writer)
const;
167 bool nested_read_x(yarp::os::idl::WireReader& reader);
168 bool nested_write_x(
const yarp::os::idl::WireWriter& writer)
const;
171 bool read_y(yarp::os::idl::WireReader& reader);
172 bool write_y(
const yarp::os::idl::WireWriter& writer)
const;
173 bool nested_read_y(yarp::os::idl::WireReader& reader);
174 bool nested_write_y(
const yarp::os::idl::WireWriter& writer)
const;
Pixel position in the image frame.
std::int32_t y
Index of pixel along vertical axis.
std::int32_t x
Index of pixel along horizontal axis.