kstars
StarPixmap Class Reference
Stores a two-dimensional array of star images, indexed by both size and color. More...
#include <starpixmap.h>
Public Member Functions | |
QPixmap * | getPixmap (QChar *color, int s) |
int | intensity () const |
int | mode () const |
void | setColorMode (int newMode) |
void | setIntensity (int newIntensity) |
StarPixmap (int colorMode=0, int colorIntensity=4) | |
~StarPixmap () |
Detailed Description
Stores a two-dimensional array of star images, indexed by both size and color.Based on a star's spectral type, brightness, and the current zoom level, the appropriate image is selected from the array in the SkyMap::drawSymbol() function. A two-dimensional array of QPixmap star images
- Version:
- 1.0
Definition at line 32 of file starpixmap.h.
Constructor & Destructor Documentation
StarPixmap::StarPixmap | ( | int | colorMode = 0 , |
|
int | colorIntensity = 4 | |||
) |
Constructor.
Build the array of images, based on a color mode and a colorintensity value.
- Parameters:
-
colorMode the color mode: 0 (real colors), 1 (solid red), 2 (solid black), or 3 (solid white). colorIntensity The thickness of the real-color circle drawn in mode 0 (it does nothing in the other color modes).
Definition at line 28 of file starpixmap.cpp.
StarPixmap::~StarPixmap | ( | ) | [inline] |
Member Function Documentation
Retrieve the pixmap from the array indexed by color and size.
- Parameters:
-
color the spectral type (one of O,B,A,F,G,K,M,N,P) s the size index
Definition at line 34 of file starpixmap.cpp.
int StarPixmap::intensity | ( | ) | const [inline] |
int StarPixmap::mode | ( | ) | const [inline] |
void StarPixmap::setColorMode | ( | int | newMode | ) |
Change the Color mode.
Regenerate the star image array.
- Parameters:
-
newMode the new Color Mode to use.
Definition at line 55 of file starpixmap.cpp.
void StarPixmap::setIntensity | ( | int | newIntensity | ) |
Change the color Intensity.
Regenerate the star image array.
- Parameters:
-
newIntensity the new colorIntensity value.
Definition at line 60 of file starpixmap.cpp.
The documentation for this class was generated from the following files: