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

OpenCluster Class Reference

#include <opencluster.h>

Inheritance diagram for OpenCluster:

Inheritance graph
Collaboration diagram for OpenCluster:

Collaboration graph
List of all members.

Public Types

enum  ClusterType { Open = 0, Globular = 1, NotDefined = 2 }

Public Member Functions

virtual size_t getDescription (char *buf, size_t bufLength) const
virtual unsigned int getLabelMask () const
virtual unsigned int getRenderMask () const
virtual const char * getType () const
virtual bool load (AssociativeArray *, const std::string &)
 OpenCluster ()
virtual void render (const GLContext &context, const Vec3f &offset, const Quatf &viewerOrientation, float brightness, float pixelSize)
virtual void setType (const std::string &)

Member Enumeration Documentation

enum OpenCluster::ClusterType
 

Enumeration values:
Open 
Globular 
NotDefined 

Definition at line 42 of file opencluster.h.

00042                      {
00043         Open          = 0,
00044         Globular      = 1,
00045         NotDefined    = 2
00046     };


Constructor & Destructor Documentation

OpenCluster::OpenCluster  ) 
 

Definition at line 26 of file opencluster.cpp.

00027 {
00028 }


Member Function Documentation

size_t OpenCluster::getDescription char *  buf,
size_t  bufLength
const [virtual]
 

Reimplemented from DeepSkyObject.

Definition at line 42 of file opencluster.cpp.

References _, and getType().

00043 {
00044     // Should use snprintf, but it's not available on Windows
00045     return sprintf(buf, _("%s"), getType());
00046 }

unsigned int OpenCluster::getLabelMask  )  const [virtual]
 

Reimplemented from DeepSkyObject.

Definition at line 76 of file opencluster.cpp.

00077 {
00078     return Renderer::OpenClusterLabels;
00079 }

unsigned int OpenCluster::getRenderMask  )  const [virtual]
 

Reimplemented from DeepSkyObject.

Definition at line 70 of file opencluster.cpp.

00071 {
00072     return Renderer::ShowOpenClusters;
00073 }

const char * OpenCluster::getType  )  const [virtual]
 

Implements DeepSkyObject.

Definition at line 31 of file opencluster.cpp.

Referenced by getDescription().

00032 {
00033     return "Cluster";
00034 }

bool OpenCluster::load AssociativeArray ,
const std::string
[virtual]
 

Reimplemented from DeepSkyObject.

Definition at line 49 of file opencluster.cpp.

References DeepSkyObject::load().

00050 {
00051     // No parameters specific to open cluster, though a list of member stars
00052     // could be useful.
00053     return DeepSkyObject::load(params, resPath);
00054 }

void OpenCluster::render const GLContext context,
const Vec3f offset,
const Quatf viewerOrientation,
float  brightness,
float  pixelSize
[virtual]
 

Implements DeepSkyObject.

Definition at line 57 of file opencluster.cpp.

00062 {
00063     // Nothing to do right now; open clusters are only visible as their
00064     // constituent stars and a label when labels are turned on.  A good idea
00065     // would be to add an 'sky chart' mode, in which clusters are rendered as
00066     // circles.  
00067 }

void OpenCluster::setType const std::string  )  [virtual]
 

Implements DeepSkyObject.

Definition at line 37 of file opencluster.cpp.

00038 {
00039 }


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