The Vish Visualization Shell 0.3
Vish
Classes | Public Member Functions | Public Attributes | List of all members
Wizt::ImageTile Struct Reference

A tile as part of an image. More...

#include <ocean/shrimp/ImageTile.hpp>

Classes

struct  Size
 Local size class, used for tiles. More...
 

Public Member Functions

 ImageTile ()
 Default constructor.
 
 ImageTile (const ImageTile &)
 Copy constructor, shares pixel data (NO copy)
 
 ImageTile (const Size &pixelSize, const RefPtr< ChunkBase > &ColorData, const RefPtr< ChunkBase > &DepthData, const Size &TileID=Size(0, 0), const Size &MaxTileID=Size(1, 1))
 Construct image tile from pixel data and size/location information.
 
const Sizesize () const
 pixels
 
 ~ImageTile ()
 Destructor.
 

Public Attributes

RefPtr< ChunkBaseColorData
 pixel values
 
RefPtr< ChunkBaseDepthData
 depth information
 
Size MaxTileID
 maximal tile ID
 
Size mySize
 Pixel dimensions.
 
Size TileID
 optional location within a tiled image
 

Detailed Description

A tile as part of an image.

Constructor & Destructor Documentation

◆ ImageTile()

Wizt::ImageTile::ImageTile ( const Size pixelSize,
const RefPtr< ChunkBase > &  ColorData,
const RefPtr< ChunkBase > &  DepthData,
const Size TileID = Size(0,0),
const Size MaxTileID = Size(1,1) 
)

Construct image tile from pixel data and size/location information.

Parameters
TileID The identification of this tile within the image (optional, default 0,0)
MaxTileIDThe maximally allowed tile ID (optional, default 1,1)