Back AAM-API documentation The AAM-Site

In file AAMWarp.h:

class CAAMWarp

Base class for 2D warp classes.

Inheritance:

CAAMWarp - CAAMObject


Public Methods

[more] CAAMWarp()
Constructor
[more]virtual void SetDestShape(const CAAMShape &s) = 0
Sets the shape to warp to
[more]void SetSrcShape(const CAAMShape &s)
Sets the shape to warp from.
[more]void UseConvexHull( bool enable = true )
Allows warping inside the convex hull (default=off)
[more]virtual inline bool Warp(const CAAMPoint &in, CAAMPoint &out) const = 0
Warps point 'in' to point 'out'.
[more] ~CAAMWarp()
Destructor.

Protected Fields

[more]bool m_bUseConvexHull
Allows warping inside the convex hull

Private Fields

[more]double m_dSrcShapeMaxX
Source shape extents
[more]double m_dSrcShapeMaxY
Source shape extents
[more]double m_dSrcShapeMinX
Source shape extents
[more]double m_dSrcShapeMinY
Source shape extents


Inherited from CAAMObject:

Public Methods

ovoid Dump( const char* szPath ) const
ovoid FromFile( const char* szFilename )
ovoid FromFile( FILE* fh )
ovoid ToFile( FILE* fh ) const
ovoid ToFile( const char* szFilename ) const


Documentation

CAAMWarp defines a 2D warp function between two shapes with an equal amount of points.

odouble m_dSrcShapeMinX
Source shape extents

odouble m_dSrcShapeMaxX
Source shape extents

odouble m_dSrcShapeMinY
Source shape extents

odouble m_dSrcShapeMaxY
Source shape extents

obool m_bUseConvexHull
Allows warping inside the convex hull

o CAAMWarp()
Constructor

ovirtual inline bool Warp(const CAAMPoint &in, CAAMPoint &out) const = 0

Warps the point 'in' to the point 'out' using the two shapes as irregular point clouds defining a 2D warp function. 'in' defines a point contained in the source shape and 'out' is the corrosponding point in the destination shape.

Parameters:
in - Input point.
out - Output point.
Returns:
True if the warp can be done, false if not.
Author:
Mikkel B. Stegmann
Version:
02-14-2000

ovirtual void SetDestShape(const CAAMShape &s) = 0
Sets the shape to warp to

ovoid UseConvexHull( bool enable = true )
Allows warping inside the convex hull (default=off)

o ~CAAMWarp()

Destructor.

Returns:
Nothing.
Author:
Mikkel B. Stegmann
Version:
4-26-2000

ovoid SetSrcShape(const CAAMShape &s)

Sets the shape to warp from.

Returns:
Nothing.
Author:
Mikkel B. Stegmann
Version:
4-26-2000


Direct child classes:
CAAMWarpLinear
Author:
Mikkel B. Stegmann
Version:
02-14-2000
See Also:
CAAMWarpLinear

Alphabetic index Hierarchy of classes


Back AAM-API documentation The AAM-Site