#include <opencluster.h>
Inheritance diagram for OpenCluster:


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 &) |
|
|
Definition at line 42 of file opencluster.h. 00042 {
00043 Open = 0,
00044 Globular = 1,
00045 NotDefined = 2
00046 };
|
|
|
Definition at line 26 of file opencluster.cpp. 00027 {
00028 }
|
|
||||||||||||
|
Reimplemented from DeepSkyObject. Definition at line 42 of file opencluster.cpp. 00043 {
00044 // Should use snprintf, but it's not available on Windows
00045 return sprintf(buf, _("%s"), getType());
00046 }
|
|
|
Reimplemented from DeepSkyObject. Definition at line 76 of file opencluster.cpp. 00077 {
00078 return Renderer::OpenClusterLabels;
00079 }
|
|
|
Reimplemented from DeepSkyObject. Definition at line 70 of file opencluster.cpp. 00071 {
00072 return Renderer::ShowOpenClusters;
00073 }
|
|
|
Implements DeepSkyObject. Definition at line 31 of file opencluster.cpp. Referenced by getDescription(). 00032 {
00033 return "Cluster";
00034 }
|
|
||||||||||||
|
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 }
|
|
||||||||||||||||||||||||
|
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 }
|
|
|
Implements DeepSkyObject. Definition at line 37 of file opencluster.cpp. 00038 {
00039 }
|
1.4.1