|
| Color3 | average () const |
| | Returns the average value of all elements of the map.
|
| |
| Color3 | bicubic (float x, float y, WrapMode wrap) const |
| | Uses Catmull-Rom splines to interpolate between grid values.
|
| |
| Color3 | bicubic (float x, float y) const |
| |
| Color3 | bicubic (const Vector2 &p, WrapMode wrap) const |
| |
| Color3 | bicubic (const Vector2 &p) const |
| |
| Color3 | bilinear (float x, float y, WrapMode wrap) const |
| | Needs to access elements from (floor(x), floor(y)) to (floor(x) + 1, floor(y) + 1) and will use the wrap mode appropriately (possibly generating out of bounds errors).
|
| |
| Color3 | bilinear (float x, float y) const |
| |
| Color3 | bilinear (const Vector2 &p) const |
| |
| Color3 | bilinear (const Vector2 &p, WrapMode wrap) const |
| |
| bool | changed () |
| | Returns true if this map has been written to since the last call to setChanged(false).
|
| |
| virtual void | crop (int newX, int newY, int newW, int newH) |
| | Crops this map so that it only contains pixels between (x, y) and (x + w - 1, y + h - 1) inclusive.
|
| |
| virtual void | crop (const Rect2D &rect) |
| | iRounds to the nearest x0 and y0.
|
| |
| const Color3 & | fastGet (int x, int y) const |
| | Unsafe access to the underlying data structure with no wrapping support; requires that (x, y) is in bounds.
|
| |
| void | fastSet (int x, int y, const Color3 &v) |
| | Unsafe access to the underlying data structure with no wrapping support; requires that (x, y) is in bounds.
|
| |
| virtual void | flipHorizontal () |
| |
| virtual void | flipVertical () |
| |
| class ImageFormat * | format () const |
| |
| const Color3 & | get (int x, int y, WrapMode wrap) const |
| | Get the value at (x, y).
|
| |
| const Color3 & | get (int x, int y) const |
| |
| const Color3 & | get (const Vector2int16 &p) const |
| |
| const Color3 & | get (const Vector2int16 &p, WrapMode wrap) const |
| |
| Color3 & | get (int x, int y, WrapMode wrap) |
| |
| Color3 & | get (int x, int y) |
| |
| Color3 & | get (const Vector2int16 &p) |
| |
| Array< Color3 > & | getArray () |
| | Row-major array.
|
| |
| const Array< Color3 > & | getArray () const |
| |
| Color3 * | getCArray () |
| | Returns a pointer to the underlying row-major data.
|
| |
| const Color3 * | getCArray () const |
| |
| int32 | height () const |
| | Pixel height.
|
| |
| bool | inBounds (int x, int y) const |
| | is (x, y) strictly within the image bounds, or will it trigger some kind of wrap mode
|
| |
| bool | inBounds (const Vector2int16 &v) const |
| | is (x, y) strictly within the image bounds, or will it trigger some kind of wrap mode
|
| |
| void | load (const std::string &filename) |
| | Loads from any of the file formats supported by G3D::GImage.
|
| |
| void | maybeFlipVertical (bool flip) |
| | flips if flip is true
|
| |
| Color3 | nearest (float x, float y, WrapMode wrap) const |
| | Returns the nearest neighbor.
|
| |
| Color3 | nearest (float x, float y) const |
| |
| Color3 | nearest (const Vector2 &p) const |
| |
| Rect2D | rect2DBounds () const |
| | Rectangle from (0, 0) to (w, h)
|
| |
| void | resize (uint32 newW, uint32 newH) |
| | Resizes without clearing, leaving garbage.
|
| |
| void | save (const std::string &filename) |
| | Saves in any of the formats supported by G3D::GImage.
|
| |
| void | set (const Vector2int16 &p, const Color3 &v) |
| | Sets the changed flag to true.
|
| |
| void | set (int x, int y, const Color3 &v, WrapMode wrap) |
| | Sets the changed flag to true.
|
| |
| void | set (int x, int y, const Color3 &v) |
| |
| void | set (const shared_ptr< Map2D< Color3, T > > &src) |
| | Copy values from src, which must have the same size.
|
| |
| void | setAll (const Color3 &v) |
| |
| void | setChanged (bool c) |
| | Set/unset the changed flag.
|
| |
| void | setWrapMode (WrapMode m) |
| |
| Vector2int16 | size () const |
| | Dimensions in pixels.
|
| |
| size_t | sizeInMemory () const |
| | Number of bytes occupied by the image data and this structure.
|
| |
| int32 | width () const |
| | Pixel width.
|
| |
| WrapMode | wrapMode () const |
| |
|
| static Ref | create (int w=0, int h=0, WrapMode wrap=WrapMode::ERROR) |
| |
| static Ref | createEmpty (int width, int height, WrapMode wrap=WrapMode::ERROR) |
| | Creates an all-zero width x height image.
|
| |
| static Ref | createEmpty (WrapMode wrap=WrapMode::ERROR) |
| | Creates a 0 x 0 image.
|
| |
| static Ref | fromArray (const class Color1unorm8 *ptr, int width, int height, WrapMode wrap=WrapMode::ERROR) |
| |
| static Ref | fromArray (const class Color3unorm8 *ptr, int width, int height, WrapMode wrap=WrapMode::ERROR) |
| |
| static Ref | fromArray (const class Color4unorm8 *ptr, int width, int height, WrapMode wrap=WrapMode::ERROR) |
| |
| static Ref | fromArray (const class Color1 *ptr, int width, int height, WrapMode wrap=WrapMode::ERROR) |
| |
| static Ref | fromArray (const class Color3 *ptr, int width, int height, WrapMode wrap=WrapMode::ERROR) |
| |
| static Ref | fromArray (const class Color4 *ptr, int width, int height, WrapMode wrap=WrapMode::ERROR) |
| |
| static Ref | fromFile (const std::string &filename, WrapMode wrap=WrapMode::ERROR) |
| |
| static Ref | fromImage3unorm8 (const shared_ptr< class Image3unorm8 > &im) |
| |
|
| | Image3 (int w, int h, WrapMode wrap) |
| |
| Color3 | bicubic (const Color3 *ctrl, double s) const |
| | Given four control points and a value on the range [0, 1) evaluates the Catmull-rom spline between the times of the middle two control points.
|
| |
| void | copyArray (const Color1 *src, int w, int h) |
| |
| void | copyArray (const Color3 *src, int w, int h) |
| |
| void | copyArray (const Color4 *src, int w, int h) |
| |
| void | copyArray (const Color1unorm8 *src, int w, int h) |
| |
| void | copyArray (const Color3unorm8 *src, int w, int h) |
| |
| void | copyArray (const Color4unorm8 *src, int w, int h) |
| |
| const Color3 & | slowGet (int x, int y, WrapMode wrap) |
| | Handles the exceptional cases from get.
|
| |
RGB image with 32-bit floating point storage for each channel.
See also G3D::Image3unorm8, G3D::GImage.