Cogs.Core
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
Cogs::ClipmapUpdate Class Reference

Public Member Functions

 ClipmapUpdate (ClipmapLevel *level, int west, int south, int east, int north)
 
 ClipmapUpdate (ClipmapLevel *level, Extent extent)
 
ClipmapLevelgetLevel () const
 
int getWest () const
 
int getSouth () const
 
int getEast () const
 
int getNorth () const
 
int getWidth () const
 
int getHeight () const
 
ClipmapUpdate addBufferWithinLevelNextExtent () const
 
const ExtentgetExtent () const
 

Static Public Member Functions

static ClipmapUpdate intersectUpdates (const ClipmapUpdate &first, const ClipmapUpdate &second)
 
static void splitUpdateToAvoidWrapping (const ClipmapUpdate &update, std::vector< ClipmapUpdate > &results)
 

Private Attributes

ClipmapLevellevel
 
Extent extent
 

Detailed Description

Definition at line 7 of file ClipmapUpdate.h.

Constructor & Destructor Documentation

◆ ClipmapUpdate() [1/2]

Cogs::ClipmapUpdate::ClipmapUpdate ( ClipmapLevel level,
int  west,
int  south,
int  east,
int  north 
)

Definition at line 3 of file ClipmapUpdate.cpp.

◆ ClipmapUpdate() [2/2]

Cogs::ClipmapUpdate::ClipmapUpdate ( ClipmapLevel level,
Extent  extent 
)
inline

Definition at line 11 of file ClipmapUpdate.h.

Member Function Documentation

◆ addBufferWithinLevelNextExtent()

Cogs::ClipmapUpdate Cogs::ClipmapUpdate::addBufferWithinLevelNextExtent ( ) const

Definition at line 19 of file ClipmapUpdate.cpp.

◆ getEast()

int Cogs::ClipmapUpdate::getEast ( ) const
inline

Definition at line 17 of file ClipmapUpdate.h.

◆ getExtent()

const Extent & Cogs::ClipmapUpdate::getExtent ( ) const
inline

Definition at line 28 of file ClipmapUpdate.h.

◆ getHeight()

int Cogs::ClipmapUpdate::getHeight ( ) const

Definition at line 14 of file ClipmapUpdate.cpp.

◆ getLevel()

ClipmapLevel * Cogs::ClipmapUpdate::getLevel ( ) const
inline

Definition at line 13 of file ClipmapUpdate.h.

◆ getNorth()

int Cogs::ClipmapUpdate::getNorth ( ) const
inline

Definition at line 18 of file ClipmapUpdate.h.

◆ getSouth()

int Cogs::ClipmapUpdate::getSouth ( ) const
inline

Definition at line 16 of file ClipmapUpdate.h.

◆ getWest()

int Cogs::ClipmapUpdate::getWest ( ) const
inline

Definition at line 15 of file ClipmapUpdate.h.

◆ getWidth()

int Cogs::ClipmapUpdate::getWidth ( ) const

Definition at line 9 of file ClipmapUpdate.cpp.

◆ intersectUpdates()

Cogs::ClipmapUpdate Cogs::ClipmapUpdate::intersectUpdates ( const ClipmapUpdate first,
const ClipmapUpdate second 
)
static

Definition at line 122 of file ClipmapUpdate.cpp.

◆ splitUpdateToAvoidWrapping()

void Cogs::ClipmapUpdate::splitUpdateToAvoidWrapping ( const ClipmapUpdate update,
std::vector< ClipmapUpdate > &  results 
)
static

Definition at line 32 of file ClipmapUpdate.cpp.

Member Data Documentation

◆ extent

Extent Cogs::ClipmapUpdate::extent
private

Definition at line 32 of file ClipmapUpdate.h.

◆ level

ClipmapLevel* Cogs::ClipmapUpdate::level
private

Definition at line 31 of file ClipmapUpdate.h.


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