ALBA
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
albaPictureFactory Class Reference

#include <albaPics.h>

Public Member Functions

 albaPictureFactory ()
 
 ~albaPictureFactory ()
 
void Initialize ()
 
void Add (wxString id, char **xpm)
 
wxBitmap GetBmp (wxString id)
 
wxImage GetImg (wxString id)
 
wxIcon GetIcon (wxString id)
 
void GetPicIds (std::vector< wxString > &v)
 
void AddVmePic (wxString id, char **xpm)
 
wxBitmap GetVmePic (wxString id)
 
void GetVmeNames (std::vector< wxString > &v)
 

Static Public Member Functions

static albaPictureFactoryGetPictureFactory ()
 
static bool GetPicsInitialized ()
 

Protected Attributes

albaPictureFactory_Pimpl * m_PictureMaps
 

Detailed Description

This class is normally instantiated as the "albaPics" singleton.

icons available by default:

-FILE_NEW,FILE_OPEN,FILE_SAVE : standard file operation -OP_COPY,OP_CUT,OP_PASTE,OP_REDO,OP_UNDO : standard edit operation -TIME_END,TIME_NEXT,TIME_PLAY,TIME_PREV,TIME_STOP : time navigation -FLYTO,ZOOM,ZOOM_ALL,-ZOOM_SEL : standard camera movement

all of the above are normally used in the program toolbar

-PIC_BACK,PIC_BOTTOM,PIC_FRONT,PIC_LEFT,PIC_RIGHT,PIC_TOP,TIME_BEGIN : set of camera orientations

-APP_ICON16x16,APP_ICON32x32 : these two picture are combined in one wxIconBundle and assigned to the MDIFrameWindow (the small is visible in the frame and in the taskbar, the big is visible when pressing CTRL-TAB to switch among applications). Note: it is not possible to set in this way the Application Icon. The application icon must be inserted in the resource file - see app.rc and app.ico

-MDICHILD_ICON : icon assigned to all MDIChild Windows

-CLOSE_SASH : used by albaNamedPanel

-NODE_YELLOW,NODE_GRAY,NODE_RED,NODE_BLUE : used by ListCtrl

NOTE:

Definition at line 66 of file albaPics.h.

Constructor & Destructor Documentation

◆ albaPictureFactory()

albaPictureFactory::albaPictureFactory ( )

initialize the factory with the standard icons

◆ ~albaPictureFactory()

albaPictureFactory::~albaPictureFactory ( )

Member Function Documentation

◆ Initialize()

void albaPictureFactory::Initialize ( )

◆ Add()

void albaPictureFactory::Add ( wxString  id,
char **  xpm 
)

add a picture to the factory – if id already exist it is overwritten

◆ GetBmp()

wxBitmap albaPictureFactory::GetBmp ( wxString  id)

retrieve a picture from the Factory as a wxBitmap

◆ GetImg()

wxImage albaPictureFactory::GetImg ( wxString  id)

retrieve a picture from the Factory as a wxImage

◆ GetIcon()

wxIcon albaPictureFactory::GetIcon ( wxString  id)

retrieve a picture from the Factory as a wxIcon

◆ GetPicIds()

void albaPictureFactory::GetPicIds ( std::vector< wxString > &  v)

Fills the given vectors with the available Pic Id's.

◆ AddVmePic()

void albaPictureFactory::AddVmePic ( wxString  id,
char **  xpm 
)

add a vme-picture to the factory.

id should be the ClassName. if id already exist it is overwritten.

◆ GetVmePic()

wxBitmap albaPictureFactory::GetVmePic ( wxString  id)

retrieve a vme-picture from the Factory as a wxBitmap.

◆ GetVmeNames()

void albaPictureFactory::GetVmeNames ( std::vector< wxString > &  v)

retrieve the names of the registered vme-pics

◆ GetPictureFactory()

static albaPictureFactory * albaPictureFactory::GetPictureFactory ( )
static

◆ GetPicsInitialized()

static bool albaPictureFactory::GetPicsInitialized ( )
static

Member Data Documentation

◆ m_PictureMaps

albaPictureFactory_Pimpl* albaPictureFactory::m_PictureMaps
protected

Definition at line 112 of file albaPics.h.


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