• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kstars

StarPixmap Class Reference

Stores a two-dimensional array of star images, indexed by both size and color. More...

#include <starpixmap.h>

List of all members.


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

Author:
Thomas Kabelmann
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]

Destructor (empty).

Definition at line 42 of file starpixmap.h.


Member Function Documentation

QPixmap * StarPixmap::getPixmap ( QChar *  color,
int  s 
)

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]

Returns:
the current colorIntensity value

Definition at line 64 of file starpixmap.h.

int StarPixmap::mode (  )  const [inline]

Returns:
the current color mode

Definition at line 61 of file starpixmap.h.

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:
  • starpixmap.h
  • starpixmap.cpp

kstars

Skip menu "kstars"
  • Main Page
  • Modules
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • keduca
  • kstars
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal