![]() |
MAK RTIspy API Documentation for HLA 1.3
|
This singleton class manages the icons and textures. More...
Collaboration diagram for DtIconAndTextureManager:Public Member Functions | |
| void | initialize () |
| Initialize everything. More... | |
| GLuint | getNodeTexture (const MAKRti::DtString &processName, const MAKRti::DtString &federateType, const MAKRti::DtString &federateName) |
| Get texture based on process name / federate type. More... | |
| QPixmap | getNodePixmap (const MAKRti::DtString &processName, const MAKRti::DtString &federateType, const MAKRti::DtString &federateName) |
| Get the icon (as a QPixmap) based on process name / federate type. More... | |
| GLuint | getTexture (DtStandardTextureId id) |
| Get a standard texture. More... | |
| QPixmap | getPixmap (DtStandardIconId id) |
| Get a standard icon as a QPixmap. More... | |
| QPixmap | getPixmap (const MAKRti::DtFilename &filename) |
| Get an icon by filename as a QPixmap. More... | |
| QIcon | getIcon (DtStandardIconId id) |
| Get a standard icon as a QIcon. More... | |
| QIcon | getIcon (const MAKRti::DtFilename &filename) |
| Get an icon by filename as a QPixmap. More... | |
| void | setNodeImageFile (const MAKRti::DtString &id, DtFederateIdentifierType associationType, const MAKRti::DtFilename &imageFile) |
| Sets a new image file for the given node. More... | |
Static Public Member Functions | |
| static DtIconAndTextureManager * | getInstance () |
| Gets the instance. More... | |
Static Public Attributes | |
| static const MAKRti::DtFilename | theIconXmlFile |
| The name of the xml file listing user defined icons. More... | |
| static const MAKRti::DtFilename | theImagesDir |
| Default icon directories. More... | |
| static const MAKRti::DtFilename | theMakIconsDir |
| Default icon directories. More... | |
| static const MAKRti::DtFilename | theStdWarnFile |
| Standard image filenames. More... | |
| static const MAKRti::DtFilename | theStdErrorFile |
| Standard image filenames. More... | |
| static const MAKRti::DtFilename | theStdDisconnectedFile |
| Standard image filenames. More... | |
| static const MAKRti::DtFilename | theStdNotJoinedFile |
| Standard image filenames. More... | |
| static const MAKRti::DtFilename | theStdBloomFile |
| Standard image filenames. More... | |
| static const MAKRti::DtFilename | theStdDefaultFederateFile |
| Standard image filenames. More... | |
| static const MAKRti::DtFilename | theStdForwarderFile |
| Standard image filenames. More... | |
| static const MAKRti::DtFilename | theStdRtiexecFile |
| Standard image filenames. More... | |
| static const MAKRti::DtFilename | theStdLightweightFile |
| Standard image filenames. More... | |
Protected Types | |
| typedef std::map < MAKRti::DtString, GLuint * > | DtFilenameTextureMap |
| Our Map of textures ( filename to texture handle ) More... | |
| typedef std::map < MAKRti::DtString, QPixmap * > | DtFilenamePixmapMap |
| Our Map of pixmaps ( filename to QPixmap ) More... | |
| typedef std::map < MAKRti::DtString, QIcon * > | DtFilenameIconMap |
| Our Map of icons ( filename to QIcon ) More... | |
Protected Member Functions | |
| void | loadStandardIcons () |
| Loads all of the standard icons. More... | |
| void | loadNodeIcons () |
| Loads all of the federate node icons. More... | |
| void | loadStandardTextures () |
| Loads all of the standard textures. More... | |
| void | loadNodeTextures () |
| Loads all of the federate node textures. More... | |
| void | loadStandardIcon (const MAKRti::DtFilename &filename, DtStandardIconId id) |
| Loads a standard icon. More... | |
| void | loadStandardTexture (const MAKRti::DtFilename &filename, DtStandardTextureId id) |
| Loads a standard texture. More... | |
| void | loadIcon (const MAKRti::DtFilename &filename, QPixmap **pm, QIcon **icon) |
| Load an icon. More... | |
| GLuint * | loadTexture (const MAKRti::DtFilename &filename) |
| Load a texture. More... | |
| const MAKRti::DtString & | getNodeFilename (const MAKRti::DtString &processName, const MAKRti::DtString &federateType, const MAKRti::DtString &federateName) const |
| Returns the image file name for the given node. More... | |
| void | saveToFile () |
| Saves the icon associations out to the configuration file. More... | |
Protected Attributes | |
| bool | myTexturesInitialized |
| Whether the textures have yet been initialized. More... | |
| std::vector< GLuint * > | myStandardTextures |
| Standard textures. More... | |
| std::vector< QPixmap * > | myStandardPixmaps |
| Standard pixmaps. More... | |
| std::vector< QIcon * > | myStandardIcons |
| Standard icons. More... | |
| std::vector< DtNodeIconFile > | myUserIconFiles |
| Icon files specified by the user's xml file. More... | |
| DtFilenameTextureMap | myMappedTextures |
| DtFilenamePixmapMap | myMappedPixmaps |
| DtFilenameIconMap | myMappedIcons |
| std::list< MAKRti::DtFilename > | myImageDirs |
| Directories in which to look for image files. More... | |
Static Protected Attributes | |
| static DtIconAndTextureManager * | theInstance |
| Instance of ourselves. More... | |
Private Member Functions | |
| DtIconAndTextureManager () | |
| Constructor. More... | |
| DtIconAndTextureManager (const DtIconAndTextureManager ©) | |
| Copy Constructor. More... | |
| DtIconAndTextureManager & | operator= (const DtIconAndTextureManager &rhs) |
| operator= More... | |
| virtual | ~DtIconAndTextureManager () |
| Destructor. More... | |
| typedef std::map < MAKRti::DtString, MAKRti::DtString > | DtNodeIdFilenameMap |
| Our maps of identifiers to icon/texture filename. More... | |
| DtNodeIdFilenameMap | myFederateNamesToIcons |
| Our maps of identifiers to icon/texture filename. More... | |
| DtNodeIdFilenameMap | myFederateTypesToIcons |
| Our maps of identifiers to icon/texture filename. More... | |
| DtNodeIdFilenameMap | myProcessNamesToIcons |
| Our maps of identifiers to icon/texture filename. More... | |
This singleton class manages the icons and textures.
|
protected |
Our Map of icons ( filename to QIcon )
|
protected |
Our Map of pixmaps ( filename to QPixmap )
|
protected |
Our Map of textures ( filename to texture handle )
|
protected |
Our maps of identifiers to icon/texture filename.
|
private |
Constructor.
|
private |
Copy Constructor.
|
privatevirtual |
Destructor.
| QIcon DtIconAndTextureManager::getIcon | ( | DtStandardIconId | id | ) |
Get a standard icon as a QIcon.
| QIcon DtIconAndTextureManager::getIcon | ( | const MAKRti::DtFilename & | filename | ) |
Get an icon by filename as a QPixmap.
|
static |
Gets the instance.
|
protected |
Returns the image file name for the given node.
| QPixmap DtIconAndTextureManager::getNodePixmap | ( | const MAKRti::DtString & | processName, |
| const MAKRti::DtString & | federateType, | ||
| const MAKRti::DtString & | federateName | ||
| ) |
Get the icon (as a QPixmap) based on process name / federate type.
| GLuint DtIconAndTextureManager::getNodeTexture | ( | const MAKRti::DtString & | processName, |
| const MAKRti::DtString & | federateType, | ||
| const MAKRti::DtString & | federateName | ||
| ) |
Get texture based on process name / federate type.
| QPixmap DtIconAndTextureManager::getPixmap | ( | DtStandardIconId | id | ) |
Get a standard icon as a QPixmap.
| QPixmap DtIconAndTextureManager::getPixmap | ( | const MAKRti::DtFilename & | filename | ) |
Get an icon by filename as a QPixmap.
| GLuint DtIconAndTextureManager::getTexture | ( | DtStandardTextureId | id | ) |
Get a standard texture.
| void DtIconAndTextureManager::initialize | ( | ) |
Initialize everything.
|
protected |
Load an icon.
|
protected |
Loads all of the federate node icons.
|
protected |
Loads all of the federate node textures.
|
protected |
Loads a standard icon.
|
protected |
Loads all of the standard icons.
|
protected |
Loads a standard texture.
|
protected |
Loads all of the standard textures.
|
protected |
Load a texture.
|
private |
operator=
|
protected |
Saves the icon associations out to the configuration file.
| void DtIconAndTextureManager::setNodeImageFile | ( | const MAKRti::DtString & | id, |
| DtFederateIdentifierType | associationType, | ||
| const MAKRti::DtFilename & | imageFile | ||
| ) |
Sets a new image file for the given node.
|
protected |
Our maps of identifiers to icon/texture filename.
|
protected |
Our maps of identifiers to icon/texture filename.
|
protected |
Directories in which to look for image files.
|
protected |
|
protected |
|
protected |
|
protected |
Our maps of identifiers to icon/texture filename.
|
protected |
Standard icons.
|
protected |
Standard pixmaps.
|
protected |
Standard textures.
|
protected |
Whether the textures have yet been initialized.
|
protected |
Icon files specified by the user's xml file.
|
static |
The name of the xml file listing user defined icons.
|
static |
Default icon directories.
|
staticprotected |
Instance of ourselves.
|
static |
Default icon directories.
|
static |
Standard image filenames.
|
static |
Standard image filenames.
|
static |
Standard image filenames.
|
static |
Standard image filenames.
|
static |
Standard image filenames.
|
static |
Standard image filenames.
|
static |
Standard image filenames.
|
static |
Standard image filenames.
|
static |
Standard image filenames.