VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Properties | Private Member Functions
makVrf::DtGumballStatusPixmapGenerator Class Reference
Inheritance diagram for makVrf::DtGumballStatusPixmapGenerator:
Inheritance graph
[legend]

Public Types

enum  StatusColor {
  GREEN_STATUS, YELLOW_STATUS, RED_STATUS, BLACK_STATUS,
  WHITE_STATUS, SELECTED_STATUS
}
 

Public Member Functions

 DtGumballStatusPixmapGenerator (const std::string &iconsPath)
 
virtual ~DtGumballStatusPixmapGenerator ()
 
void init ()
 
virtual QImage effectivenessPixmap (const QString &effectivenessStatus, const QSize &size)
 
virtual QImage selectedStatusPixmap (const QString &personnelStatus, const QString &polStatus, const QString &weaponsStatus, const QString &ammoStatus, const QSize &size)
 
void setLightColorGreen (const QColor &c)
 
const QColor & getLightColorGreen () const
 
void setDarkColorGreen (const QColor &c)
 
const QColor & getDarkColorGreen () const
 
void setHighlightColorGreen (const QColor &c)
 
const QColor & getHighlightColorGreen () const
 
void setLightColorYellow (const QColor &c)
 
const QColor & getLightColorYellow () const
 
void setDarkColorYellow (const QColor &c)
 
const QColor & getDarkColorYellow () const
 
void setHighlightColorYellow (const QColor &c)
 
const QColor & getHighlightColorYellow () const
 
void setLightColorRed (const QColor &c)
 
const QColor & getLightColorRed () const
 
void setDarkColorRed (const QColor &c)
 
const QColor & getDarkColorRed () const
 
void setHighlightColorRed (const QColor &c)
 
const QColor & getHighlightColorRed () const
 
void setLightColorBlack (const QColor &c)
 
const QColor & getLightColorBlack () const
 
void setDarkColorBlack (const QColor &c)
 
const QColor & getDarkColorBlack () const
 
void setHighlightColorBlack (const QColor &c)
 
const QColor & getHighlightColorBlack () const
 
void setLightColorWhite (const QColor &c)
 
const QColor & getLightColorWhite () const
 
void setDarkColorWhite (const QColor &c)
 
const QColor & getDarkColorWhite () const
 
void setHighlightColorWhite (const QColor &c)
 
const QColor & getHighlightColorWhite () const
 
void setLightColorSelected (const QColor &c)
 
const QColor & getLightColorSelected () const
 
void setDarkColorSelected (const QColor &c)
 
const QColor & getDarkColorSelected () const
 
void setHighlightColorSelected (const QColor &c)
 
const QColor & getHighlightColorSelected () const
 
QByteArray lightColor (StatusColor c) const
 
QByteArray darkColor (StatusColor c) const
 
QByteArray highlightColor (StatusColor c) const
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 
virtual ~DtVirtualBaseClass ()
 

Static Public Member Functions

static
DtGumballStatusPixmapGenerator
instance (makVrv::DtDe &)
 
static void registerInstance (makVrv::DtDe &, DtGumballStatusPixmapGenerator *)
 

Protected Member Functions

virtual StatusColor getPieSectionColor (const QString &pieSectionState)
 
virtual int getEffectivenessLevel (const QString &effectivenessState)
 

Protected Attributes

std::string myIconsPath
 
QByteArray my3SliceSvgData
 
QByteArray my4SliceSvgData
 
QColor myLightColors [6]
 
QColor myDarkColors [6]
 
QColor myHighlightColors [6]
 

Properties

QColor GreenColorLight
 
QColor GreenColorDark
 
QColor GreenColorHighlight
 
QColor YellowColorLight
 
QColor YellowColorDark
 
QColor YellowColorHighlight
 
QColor RedColorLight
 
QColor RedColorDark
 
QColor RedColorHighlight
 
QColor BlackColorLight
 
QColor BlackColorDark
 
QColor BlackColorHighlight
 
QColor WhiteColorLight
 
QColor WhiteColorDark
 
QColor WhiteColorHighlight
 
QColor SelectedColorLight
 
QColor SelectedColorDark
 
QColor SelectedColorHighlight
 

Private Member Functions

 DtGumballStatusPixmapGenerator (const DtGumballStatusPixmapGenerator &)
 
DtGumballStatusPixmapGeneratoroperator= (const DtGumballStatusPixmapGenerator &)
 

Member Enumeration Documentation

Enumerator
GREEN_STATUS 
YELLOW_STATUS 
RED_STATUS 
BLACK_STATUS 
WHITE_STATUS 
SELECTED_STATUS 

Constructor & Destructor Documentation

makVrf::DtGumballStatusPixmapGenerator::DtGumballStatusPixmapGenerator ( const std::string &  iconsPath)
virtual makVrf::DtGumballStatusPixmapGenerator::~DtGumballStatusPixmapGenerator ( )
virtual
makVrf::DtGumballStatusPixmapGenerator::DtGumballStatusPixmapGenerator ( const DtGumballStatusPixmapGenerator )
private

Member Function Documentation

void makVrf::DtGumballStatusPixmapGenerator::init ( )

Initializes the pixmap generator.

static DtGumballStatusPixmapGenerator& makVrf::DtGumballStatusPixmapGenerator::instance ( makVrv::DtDe )
static

Instance of this class if not registered.

static void makVrf::DtGumballStatusPixmapGenerator::registerInstance ( makVrv::DtDe ,
DtGumballStatusPixmapGenerator  
)
static

Registers a new instance.

virtual QImage makVrf::DtGumballStatusPixmapGenerator::effectivenessPixmap ( const QString &  effectivenessStatus,
const QSize &  size 
)
virtual

Returns a pixmap to display the given combat effectiveness.

virtual QImage makVrf::DtGumballStatusPixmapGenerator::selectedStatusPixmap ( const QString &  personnelStatus,
const QString &  polStatus,
const QString &  weaponsStatus,
const QString &  ammoStatus,
const QSize &  size 
)
virtual

Returns a pixmap to display the selected status. If you wish a pie edge to look "selected", submit an empty string tor the status entry.

void makVrf::DtGumballStatusPixmapGenerator::setLightColorGreen ( const QColor &  c)
inline
const QColor& makVrf::DtGumballStatusPixmapGenerator::getLightColorGreen ( ) const
inline
void makVrf::DtGumballStatusPixmapGenerator::setDarkColorGreen ( const QColor &  c)
inline
const QColor& makVrf::DtGumballStatusPixmapGenerator::getDarkColorGreen ( ) const
inline
void makVrf::DtGumballStatusPixmapGenerator::setHighlightColorGreen ( const QColor &  c)
inline
const QColor& makVrf::DtGumballStatusPixmapGenerator::getHighlightColorGreen ( ) const
inline
void makVrf::DtGumballStatusPixmapGenerator::setLightColorYellow ( const QColor &  c)
inline
const QColor& makVrf::DtGumballStatusPixmapGenerator::getLightColorYellow ( ) const
inline
void makVrf::DtGumballStatusPixmapGenerator::setDarkColorYellow ( const QColor &  c)
inline
const QColor& makVrf::DtGumballStatusPixmapGenerator::getDarkColorYellow ( ) const
inline
void makVrf::DtGumballStatusPixmapGenerator::setHighlightColorYellow ( const QColor &  c)
inline
const QColor& makVrf::DtGumballStatusPixmapGenerator::getHighlightColorYellow ( ) const
inline
void makVrf::DtGumballStatusPixmapGenerator::setLightColorRed ( const QColor &  c)
inline
const QColor& makVrf::DtGumballStatusPixmapGenerator::getLightColorRed ( ) const
inline
void makVrf::DtGumballStatusPixmapGenerator::setDarkColorRed ( const QColor &  c)
inline
const QColor& makVrf::DtGumballStatusPixmapGenerator::getDarkColorRed ( ) const
inline
void makVrf::DtGumballStatusPixmapGenerator::setHighlightColorRed ( const QColor &  c)
inline
const QColor& makVrf::DtGumballStatusPixmapGenerator::getHighlightColorRed ( ) const
inline
void makVrf::DtGumballStatusPixmapGenerator::setLightColorBlack ( const QColor &  c)
inline
const QColor& makVrf::DtGumballStatusPixmapGenerator::getLightColorBlack ( ) const
inline
void makVrf::DtGumballStatusPixmapGenerator::setDarkColorBlack ( const QColor &  c)
inline
const QColor& makVrf::DtGumballStatusPixmapGenerator::getDarkColorBlack ( ) const
inline
void makVrf::DtGumballStatusPixmapGenerator::setHighlightColorBlack ( const QColor &  c)
inline
const QColor& makVrf::DtGumballStatusPixmapGenerator::getHighlightColorBlack ( ) const
inline
void makVrf::DtGumballStatusPixmapGenerator::setLightColorWhite ( const QColor &  c)
inline
const QColor& makVrf::DtGumballStatusPixmapGenerator::getLightColorWhite ( ) const
inline
void makVrf::DtGumballStatusPixmapGenerator::setDarkColorWhite ( const QColor &  c)
inline
const QColor& makVrf::DtGumballStatusPixmapGenerator::getDarkColorWhite ( ) const
inline
void makVrf::DtGumballStatusPixmapGenerator::setHighlightColorWhite ( const QColor &  c)
inline
const QColor& makVrf::DtGumballStatusPixmapGenerator::getHighlightColorWhite ( ) const
inline
void makVrf::DtGumballStatusPixmapGenerator::setLightColorSelected ( const QColor &  c)
inline
const QColor& makVrf::DtGumballStatusPixmapGenerator::getLightColorSelected ( ) const
inline
void makVrf::DtGumballStatusPixmapGenerator::setDarkColorSelected ( const QColor &  c)
inline
const QColor& makVrf::DtGumballStatusPixmapGenerator::getDarkColorSelected ( ) const
inline
void makVrf::DtGumballStatusPixmapGenerator::setHighlightColorSelected ( const QColor &  c)
inline
const QColor& makVrf::DtGumballStatusPixmapGenerator::getHighlightColorSelected ( ) const
inline
QByteArray makVrf::DtGumballStatusPixmapGenerator::lightColor ( StatusColor  c) const
inline
QByteArray makVrf::DtGumballStatusPixmapGenerator::darkColor ( StatusColor  c) const
inline
QByteArray makVrf::DtGumballStatusPixmapGenerator::highlightColor ( StatusColor  c) const
inline
virtual StatusColor makVrf::DtGumballStatusPixmapGenerator::getPieSectionColor ( const QString &  pieSectionState)
protectedvirtual

Returns the StatusColor for the given status.

virtual int makVrf::DtGumballStatusPixmapGenerator::getEffectivenessLevel ( const QString &  effectivenessState)
protectedvirtual

Returns an effectiveness level based on the current status.

DtGumballStatusPixmapGenerator& makVrf::DtGumballStatusPixmapGenerator::operator= ( const DtGumballStatusPixmapGenerator )
private

Member Data Documentation

std::string makVrf::DtGumballStatusPixmapGenerator::myIconsPath
protected
QByteArray makVrf::DtGumballStatusPixmapGenerator::my3SliceSvgData
protected
QByteArray makVrf::DtGumballStatusPixmapGenerator::my4SliceSvgData
protected
QColor makVrf::DtGumballStatusPixmapGenerator::myLightColors[6]
protected
QColor makVrf::DtGumballStatusPixmapGenerator::myDarkColors[6]
protected
QColor makVrf::DtGumballStatusPixmapGenerator::myHighlightColors[6]
protected

Property Documentation

QColor makVrf::DtGumballStatusPixmapGenerator::GreenColorLight
readwrite
QColor makVrf::DtGumballStatusPixmapGenerator::GreenColorDark
readwrite
QColor makVrf::DtGumballStatusPixmapGenerator::GreenColorHighlight
readwrite
QColor makVrf::DtGumballStatusPixmapGenerator::YellowColorLight
readwrite
QColor makVrf::DtGumballStatusPixmapGenerator::YellowColorDark
readwrite
QColor makVrf::DtGumballStatusPixmapGenerator::YellowColorHighlight
readwrite
QColor makVrf::DtGumballStatusPixmapGenerator::RedColorLight
readwrite
QColor makVrf::DtGumballStatusPixmapGenerator::RedColorDark
readwrite
QColor makVrf::DtGumballStatusPixmapGenerator::RedColorHighlight
readwrite
QColor makVrf::DtGumballStatusPixmapGenerator::BlackColorLight
readwrite
QColor makVrf::DtGumballStatusPixmapGenerator::BlackColorDark
readwrite
QColor makVrf::DtGumballStatusPixmapGenerator::BlackColorHighlight
readwrite
QColor makVrf::DtGumballStatusPixmapGenerator::WhiteColorLight
readwrite
QColor makVrf::DtGumballStatusPixmapGenerator::WhiteColorDark
readwrite
QColor makVrf::DtGumballStatusPixmapGenerator::WhiteColorHighlight
readwrite
QColor makVrf::DtGumballStatusPixmapGenerator::SelectedColorLight
readwrite
QColor makVrf::DtGumballStatusPixmapGenerator::SelectedColorDark
readwrite
QColor makVrf::DtGumballStatusPixmapGenerator::SelectedColorHighlight
readwrite

The documentation for this class was generated from the following file:

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)