Stellarium 0.15.2
List of all members | Classes | Public Member Functions | Protected Member Functions
ToastTile Class Reference

Represents a tile in a TOAST image. More...

#include <StelToast.hpp>

Classes

struct  Coord
 Triple struct for a coordinate of a ToastTile. More...
 

Public Member Functions

 ToastTile (ToastSurvey *survey, int level, int x, int y)
 
Coord getCoord () const
 
void draw (StelPainter *painter, const SphericalCap &viewportShape, int maxVisibleLevel)
 
bool isTransparent ()
 

Protected Member Functions

void drawTile (StelPainter *painter)
 
const ToastSurveygetSurvey () const
 Return the survey the tile belongs to. More...
 
const ToastGridgetGrid () const
 Return the toast grid used by the tile. More...
 
bool isVisible (const SphericalCap &viewportShape, int maxVisibleLevel) const
 Return whether the tile should be drawn. More...
 
bool isCovered (const SphericalCap &viewportShape) const
 return whether the tile is covered by its children tiles This is used to avoid drawing tiles that will be covered anyway More...
 
void prepareDraw ()
 

Detailed Description

Represents a tile in a TOAST image.

The tiles are stored in a tree structure

Definition at line 41 of file StelToast.hpp.

Member Function Documentation

const ToastGrid* ToastTile::getGrid ( ) const
protected

Return the toast grid used by the tile.

const ToastSurvey* ToastTile::getSurvey ( ) const
protected

Return the survey the tile belongs to.

bool ToastTile::isCovered ( const SphericalCap viewportShape) const
protected

return whether the tile is covered by its children tiles This is used to avoid drawing tiles that will be covered anyway

bool ToastTile::isVisible ( const SphericalCap viewportShape,
int  maxVisibleLevel 
) const
protected

Return whether the tile should be drawn.


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