# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NL3D::CTileFarBank::CTileFar Class Reference

#include <tile_far_bank.h>

Collaboration diagram for NL3D::CTileFarBank::CTileFar:

Collaboration graph
[legend]
List of all members.

Public Methods

 CTileFar ()
 Default constructor. More...

const NLMISC::CRGBAgetPixels (TFarType type, TFarOrder order) const
 Return the pointer on the pixels data. Call this method only if isFill () returns true. More...

bool isFill (TFarType type) const
 Return true if pixel value are presents, else return false. More...

uint getSize (TFarType type, TFarOrder order) const
 Return the pixel array size. Should be 0 for empty, 64 for a 128x128 tile and 256 for a 256x256 tile. More...

void setPixels (TFarType type, TFarOrder order, NLMISC::CRGBA* pixels, uint size)
 Set the pixel array of a far Tile. More...

void erasePixels (TFarType type)
 Erase a pixel array type. More...

void serial (class NLMISC::IStream &f) throw (NLMISC::EStream)
 Serial this tile. More...


Private Attributes

std::vector<NLMISC::CRGBA_Pixels [typeCount][orderCount]
 RGBA Pixels vector. More...


Static Private Attributes

const sint _Version = 0x0
 The version of this class. More...


Friends

class  CTileFarBank

Constructor & Destructor Documentation

NL3D::CTileFarBank::CTileFar::CTileFar ( ) [inline]
 

Default constructor.

Definition at line 72 of file tile_far_bank.h.


Member Function Documentation

void NL3D::CTileFarBank::CTileFar::erasePixels ( TFarType type ) [inline]
 

Erase a pixel array type.

Definition at line 98 of file tile_far_bank.h.

const NLMISC::CRGBA * NL3D::CTileFarBank::CTileFar::getPixels ( TFarType type,
TFarOrder order ) const [inline]
 

Return the pointer on the pixels data. Call this method only if isFill () returns true.

Definition at line 77 of file tile_far_bank.h.

uint NL3D::CTileFarBank::CTileFar::getSize ( TFarType type,
TFarOrder order ) const [inline]
 

Return the pixel array size. Should be 0 for empty, 64 for a 128x128 tile and 256 for a 256x256 tile.

Definition at line 89 of file tile_far_bank.h.

bool NL3D::CTileFarBank::CTileFar::isFill ( TFarType type ) const [inline]
 

Return true if pixel value are presents, else return false.

Definition at line 83 of file tile_far_bank.h.

void NL3D::CTileFarBank::CTileFar::serial ( class NLMISC::IStream & f ) throw (NLMISC::EStream)
 

Serial this tile.

Definition at line 42 of file tile_far_bank.cpp.

void NL3D::CTileFarBank::CTileFar::setPixels ( TFarType type,
TFarOrder order,
NLMISC::CRGBA * pixels,
uint size )
 

Set the pixel array of a far Tile.

Definition at line 56 of file tile_far_bank.cpp.


Friends And Related Function Documentation

class CTileFarBank [friend]
 

Definition at line 69 of file tile_far_bank.h.


Member Data Documentation

std::vector< NLMISC::CRGBA > NL3D::CTileFarBank::CTileFar::_Pixels[typeCount][orderCount] [private]
 

RGBA Pixels vector.

Definition at line 110 of file tile_far_bank.h.

const sint NL3D::CTileFarBank::CTileFar::_Version = 0x0 [static, private]
 

The version of this class.

Definition at line 40 of file tile_far_bank.cpp.


The documentation for this class was generated from the following files: