38 #ifndef PCL_FEATURES_REGION_XY_
39 #define PCL_FEATURES_REGION_XY_
47 void read (std::istream & stream, Type & value)
49 stream.read (reinterpret_cast<char*> (&value),
sizeof(value));
54 void read (std::istream & stream, Type * value,
int nr_values)
56 for (
int value_index = 0; value_index < nr_values; ++value_index)
58 read (stream, value[value_index]);
64 void write (std::ostream & stream, Type value)
66 stream.write (reinterpret_cast<char*> (&value),
sizeof (value));
71 void write (std::ostream & stream, Type * value,
int nr_values)
73 for (
int value_index = 0; value_index < nr_values; ++value_index)
75 write (stream, value[value_index]);
85 RegionXY () : x (0), y (0), width (0), height (0) {}
103 write (stream, width);
104 write (stream, height);
114 read (stream, width);
115 read (stream, height);
121 #endif // PCL_FEATURES_REGION_XY_
int height
height of the region.
int x
x-position of the region.
int y
y-position of the region.
void write(std::ostream &stream, Type value)
Function for writing data to a stream.
void deserialize(::std::istream &stream)
Deserializes the object from the specified stream.
int width
width of the region.
void read(std::istream &stream, Type &value)
Function for reading data from a stream.
Defines a region in XY-space.
void serialize(std::ostream &stream) const
Serializes the object to the specified stream.