8 #ifndef META_OCEAN_CV_SYNTHESIS_MAPPING_F_H
9 #define META_OCEAN_CV_SYNTHESIS_MAPPING_F_H
44 inline const Vector2&
position(
const unsigned int x,
const unsigned int y)
const;
60 inline void setPosition(
const unsigned int x,
const unsigned int y,
const Vector2& pixelPosition);
67 inline const Vector2*
row(
const unsigned int y)
const;
164 *
this = std::move(mappingObject);
242 if (
this != &mappingObject)
268 if (
this != &mappingObject)
271 mappingObject.mappingF_ =
nullptr;
This class implements a mapping with float accuracy.
Definition: MappingF.h:30
const Vector2 * row(const unsigned int y) const
Returns the pointer to a mapping row.
Definition: MappingF.h:210
~MappingF() override
Destructs a mapping object.
Definition: MappingF.h:184
Vector2 * mappingF_
Sub-pixel mappings for each pixel.
Definition: MappingF.h:137
MappingF & operator=(const MappingF &mappingObject)
Assign operator.
Definition: MappingF.h:240
const Vector2 & position(const unsigned int x, const unsigned int y) const
Returns the mapping for a given position.
Definition: MappingF.h:189
const Vector2 * operator()() const
Returns the mappings of this object.
Definition: MappingF.h:230
void reset()
Resets the stored mapping.
Definition: MappingF.h:224
MappingF()
Creates an empty mapping object.
Definition: MappingF.h:140
void setPosition(const unsigned int x, const unsigned int y, const Vector2 &pixelPosition)
Sets a new mapping for a specified position.
Definition: MappingF.h:203
This class is the base class for all mappings.
Definition: Mapping.h:35
unsigned int width_
Width of this pixel mapping object in pixel.
Definition: Mapping.h:147
unsigned int width() const
Returns the width of this mapping object.
Definition: Mapping.h:282
Mapping & operator=(const Mapping &mapping)
Assign operator.
Definition: Mapping.h:407
unsigned int height_
Height of this pixel mapping object in pixel.
Definition: Mapping.h:150
unsigned int height() const
Returns the height of this mapping object.
Definition: Mapping.h:287
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15