MeshRemapper Class Reference
An abstract base class for objects that calculate an approximate remap specified by quadrilatrials.
More...
#include <MeshRemapper.h>
Inheritance diagram for MeshRemapper:
[legend]List of all members.
Detailed Description
An abstract base class for objects that calculate an approximate remap specified by quadrilatrials.
Each quadrilatrial has vertex coordinates and texture coordinates. The texture coordinates specify for each vertex a point on the image to be mapped to that vertex location, where the range 0 to 1 in either direction is the entirity of the image. The vertex locations are the coordinates in the output in pixels. (They are scaled down to fit in the preview).
A MeshManager then converts the faces specifed into a format sutible for the whatever graphics system is being used to draw them.
Constructor & Destructor Documentation
Member Function Documentation
| void MeshRemapper::ClipFace |
( |
Coords * |
face |
) |
[protected] |
|
|
|
Crop a face to the source image, return true if there is anything left.
SetCrop() must have been called beforehand with up to date information. - Returns:
- true if anything remains, false if the entire face was removed.
|
| virtual bool MeshRemapper::GetNextFaceCoordinates |
( |
Coords * |
result |
) |
[pure virtual] |
|
| bool MeshRemapper::GiveClipFaceResult |
( |
Coords * |
result |
) |
[protected] |
|
|
|
Get a face that was produced by ClipFace.
- Parameters:
-
| result | Place to copy the face to. The pointers in result must be valid. |
- Returns:
- true if a valid face was returned, false if there are no faces.
|
| void MeshRemapper::SetCrop |
( |
|
) |
[protected] |
|
|
|
Fill the crop values of the MeshRemapper from the source image.
|
| void MeshRemapper::UpdateAndResetIndex |
( |
|
) |
[virtual] |
|
Member Data Documentation
|
|
Crop mode of the source image.
|
|
|
The sizes of the input images in pixels.
Children should use this to scale their texture coordinates since the Tranform uses image pixels rather than scaling each image to the range 0 to 1. |
|
|
The number number of units between vertex coorinates that gives a pixel in the display.
|
|
|
A transform to use to remap the images.
|
|
|
The sizes of the input images in pixels.
Children should use this to scale their texture coordinates since the Tranform uses image pixels rather than scaling each image to the range 0 to 1. |
The documentation for this class was generated from the following files: