Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

TxqColorMap Class Reference

The TxqColorMap creates a vector of QColors for various color pixmaps. More...

#include <TxqColorMap.h>

Inheritance diagram for TxqColorMap::

QColor List of all members.

Public Methods

 TxqColorMap ()
 The constructor is a default constructor. More...

void setDefaultColorMap ()
 Create and set a default color map. More...

void setRandomColorMap ()
 Create and set a random color map. More...

void setRainbowColorMap ()
 Create and set a rainbow color map. More...

void setPhysicsColorMap ()
 Create and set a physics color map. More...

void setNameColorMap ()
 Create and set the Qt named color table. More...

std::vector<QColorgetColorMap ()
 Get the color map. More...

int getNumColors ()
 Get the number of colors. More...

int getCurrentColor ()
 Get the current color. More...

void bumpPenColor ()
 Switches pen to the next color in the color map. More...

void setPenColor (int i)
 Switches pen to a new color based on the index. More...

virtual ~TxqColorMap ()
 The TxqColorMap destructor. More...


Private Attributes

int numColors
 The number of colors. More...

std::vector<QColorcolors
 The color list. More...

int currentColor
 The index to the current color. More...


Detailed Description

The TxqColorMap creates a vector of QColors for various color pixmaps.

Copyright 2000 by Tech-X Corporation

Author:
Kelly G. Luetkemeyer

Version:
Id:
TxqColorMap.h,v 1.8 2001/10/09 19:15:48 kgl Exp

Definition at line 36 of file TxqColorMap.h.


Constructor & Destructor Documentation

TxqColorMap::TxqColorMap ( )
 

The constructor is a default constructor.

TxqColorMap::~TxqColorMap ( ) [virtual]
 

The TxqColorMap destructor.


Member Function Documentation

void TxqColorMap::bumpPenColor ( )
 

Switches pen to the next color in the color map.

std::vector< QColor > TxqColorMap::getColorMap ( ) [inline]
 

Get the color map.

Returns:
the current color map in a vector of QColor.

Definition at line 75 of file TxqColorMap.h.

int TxqColorMap::getCurrentColor ( ) [inline]
 

Get the current color.

Returns:
the current color index

Definition at line 87 of file TxqColorMap.h.

int TxqColorMap::getNumColors ( ) [inline]
 

Get the number of colors.

Returns:
the number of colors in the colormap

Definition at line 81 of file TxqColorMap.h.

void TxqColorMap::setDefaultColorMap ( )
 

Create and set a default color map.

void TxqColorMap::setNameColorMap ( )
 

Create and set the Qt named color table.

void TxqColorMap::setPenColor ( int i )
 

Switches pen to a new color based on the index.

Parameters:
i   the new color index

void TxqColorMap::setPhysicsColorMap ( )
 

Create and set a physics color map.

void TxqColorMap::setRainbowColorMap ( )
 

Create and set a rainbow color map.

void TxqColorMap::setRandomColorMap ( )
 

Create and set a random color map.


Member Data Documentation

std::vector< QColor > TxqColorMap::colors [private]
 

The color list.

Definition at line 118 of file TxqColorMap.h.

int TxqColorMap::currentColor [private]
 

The index to the current color.

Definition at line 123 of file TxqColorMap.h.

int TxqColorMap::numColors [private]
 

The number of colors.

Definition at line 113 of file TxqColorMap.h.


The documentation for this class was generated from the following file: Copyright Tech-X Corporation, all rights reserved.