Catchea
Topographic Data Browser
Classes | Public Member Functions | Public Attributes | List of all members
RealTile Struct Reference
Collaboration diagram for RealTile:
Collaboration graph
[legend]

Classes

struct  Coloring
 

Public Member Functions

RealTileRealTile__create (int lat, int lon, int lat_size, int lon_size)
 
bool RealTile__coloring_alloc (RealTile *tile, int height, int width)
 
void RealTile__coloring_place (RealTile *tile, RealTile *data, int place_y, int place_x)
 
void RealTile__coloring_dealloc (RealTile *tile)
 
bool RealTile__texture_alloc (RealTile *tile)
 
bool RealTile__texture_dealloc (RealTile *tile)
 
void RealTile__texture_generate (RealTile *tile)
 
void RealTile__apply_default_coloring (RealTile *tile)
 
void RealTile__destroy (RealTile *tile)
 

Public Attributes

int lat
 
int lon
 
int lat_size
 
int lon_size
 
int height
 
int width
 
struct RealTile::Coloringcoloring
 
signed short * heights
 
Texturetex
 

Member Function Documentation

void RealTile__apply_default_coloring ( RealTile tile)

Apply default coloring algorithm for RealTile

Parameters
tileRealTile to color
bool RealTile__coloring_alloc ( RealTile tile,
int  height,
int  width 
)

Allocate memory for RealTile's coloring

Parameters
tileRealTile to allocate memory for
heightheight of coloring's resolution
widthwidth of coloring's resolution
Returns
was allocation successful
void RealTile__coloring_dealloc ( RealTile tile)

Deallocate memory of RealTile's coloring

Parameters
tile
void RealTile__coloring_place ( RealTile tile,
RealTile data,
int  place_y,
int  place_x 
)

Set values in provided rectangle of RealTile's coloring

Parameters
tiletarget RealTile
datasource RealTile
place_yy coordinate of target coloring where setting should start
place_xx coordinate of target coloring where setting should start
RealTile * RealTile__create ( int  lat,
int  lon,
int  lat_size,
int  lon_size 
)

Create new RealTile instance

Returns
NULL if memory allocation was impossible, otherwise a valid pointer to RealTile
void RealTile__destroy ( RealTile tile)

Destroy RealTile instance

Parameters
tileRealTile to destroy
bool RealTile__texture_alloc ( RealTile tile)

Allocate memory for RealTile's texture

Parameters
tile
Returns
bool RealTile__texture_dealloc ( RealTile tile)
Parameters
tile
Returns
void RealTile__texture_generate ( RealTile tile)

Generate RealTile's texture based on coloring

Parameters
tileRealTile to generate texture for

The documentation for this struct was generated from the following file: