8#ifndef META_OCEAN_CV_SYNTHESIS_MAPPING_F_H
9#define META_OCEAN_CV_SYNTHESIS_MAPPING_F_H
47 inline const Vector2&
position(
const unsigned int x,
const unsigned int y)
const;
63 inline void setPosition(
const unsigned int x,
const unsigned int y,
const Vector2& pixelPosition);
70 inline const Vector2*
row(
const unsigned int y)
const;
167 *
this = std::move(mappingObject);
245 if (
this != &mappingObject)
271 if (
this != &mappingObject)
274 mappingObject.mappingF_ =
nullptr;
This class implements a mapping with float accuracy.
Definition MappingF.h:33
const Vector2 * row(const unsigned int y) const
Returns the pointer to a mapping row.
Definition MappingF.h:213
~MappingF() override
Destructs a mapping object.
Definition MappingF.h:187
Vector2 * mappingF_
Sub-pixel mappings for each pixel.
Definition MappingF.h:140
MappingF & operator=(const MappingF &mappingObject)
Assign operator.
Definition MappingF.h:243
const Vector2 & position(const unsigned int x, const unsigned int y) const
Returns the mapping for a given position.
Definition MappingF.h:192
const Vector2 * operator()() const
Returns the mappings of this object.
Definition MappingF.h:233
void reset()
Resets the stored mapping.
Definition MappingF.h:227
MappingF()
Creates an empty mapping object.
Definition MappingF.h:143
void setPosition(const unsigned int x, const unsigned int y, const Vector2 &pixelPosition)
Sets a new mapping for a specified position.
Definition MappingF.h:206
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:411
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
VectorT2< Scalar > Vector2
Definition of a 2D vector.
Definition Vector2.h:28
The namespace covering the entire Ocean framework.
Definition Accessor.h:15