VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | 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 ()
 Initializes the pixmap generator.
virtual QImage effectivenessPixmap (const QString &effectivenessStatus)
 Returns a pixmap to display the given combat effectiveness.
virtual QImage selectedStatusPixmap (const QString &personnelStatus, const QString &polStatus, const QString &weaponsStatus, const QString &ammoStatus)
 Returns a pixmap to display the selected status.
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor.
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor.

Static Public Member Functions

static
DtGumballStatusPixmapGenerator
instance (makVrv::DtDe &)
 Instance of this class if not registered.
static void registerInstance (makVrv::DtDe &, DtGumballStatusPixmapGenerator *)
 Registers a new instance.

Protected Member Functions

virtual StatusColor getPieSectionColor (const QString &pieSectionState)
 Returns the StatusColor for the given status.
virtual int getEffectivenessLevel (const QString &effectivenessState)
 Returns an effectiveness level based on the current status.

Protected Attributes

std::string myIconsPath
QByteArray my3SliceSvgData
QByteArray my4SliceSvgData
std::map< StatusColor, QByteArray > myLightColors
std::map< StatusColor, QByteArray > myDarkColors
std::map< StatusColor, QByteArray > myHighlightColors

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)
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 
)
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

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
std::map<StatusColor, QByteArray> makVrf::DtGumballStatusPixmapGenerator::myLightColors
protected
std::map<StatusColor, QByteArray> makVrf::DtGumballStatusPixmapGenerator::myDarkColors
protected
std::map<StatusColor, QByteArray> makVrf::DtGumballStatusPixmapGenerator::myHighlightColors
protected

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

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)