Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

Asterism Class Reference

#include <asterism.h>

List of all members.

Public Types

typedef std::vector< Point3fChain

Public Member Functions

void addChain (Chain &)
 Asterism (std::string)
const ChaingetChain (int) const
int getChainCount () const
std::string getName (bool i18n=false) const
 ~Asterism ()

Private Attributes

std::vector< Chain * > chains
std::string i18nName
std::string name


Member Typedef Documentation

typedef std::vector<Point3f> Asterism::Chain
 

Definition at line 24 of file asterism.h.


Constructor & Destructor Documentation

Asterism::Asterism std::string   ) 
 

Definition at line 26 of file asterism.cpp.

References _, and i18nName.

00026                                : name(_name)
00027 {
00028     i18nName = _(_name.c_str());
00029 }

Asterism::~Asterism  ) 
 

Definition at line 31 of file asterism.cpp.

00032 {
00033 }


Member Function Documentation

void Asterism::addChain Chain  ) 
 

Definition at line 51 of file asterism.cpp.

References chains.

Referenced by ReadAsterismList().

00052 {
00053     chains.insert(chains.end(), &chain);
00054 }

const Asterism::Chain & Asterism::getChain int   )  const
 

Definition at line 46 of file asterism.cpp.

References chains.

Referenced by Renderer::labelConstellations(), and Renderer::render().

00047 {
00048     return *chains[index];
00049 }

int Asterism::getChainCount  )  const
 

Definition at line 41 of file asterism.cpp.

References chains.

Referenced by Renderer::labelConstellations().

00042 {
00043     return chains.size();
00044 }

string Asterism::getName bool  i18n = false  )  const
 

Definition at line 36 of file asterism.cpp.

References i18nName, and name.

Referenced by Renderer::labelConstellations().

00037 {
00038     return i18n?i18nName:name;
00039 }


Member Data Documentation

std::vector<Chain*> Asterism::chains [private]
 

Definition at line 34 of file asterism.h.

Referenced by addChain(), getChain(), and getChainCount().

std::string Asterism::i18nName [private]
 

Definition at line 33 of file asterism.h.

Referenced by Asterism(), and getName().

std::string Asterism::name [private]
 

Definition at line 32 of file asterism.h.

Referenced by getName().


The documentation for this class was generated from the following files:
Generated on Sat Jan 14 22:33:06 2006 for Celestia by  doxygen 1.4.1