MeVisLabToolboxReference
MeVisLab/Standard/Sources/Inventor/SoView2D/View2DIcons.h
Go to the documentation of this file.
00001 #ifndef __View2DIcons_H
00002 #define __View2DIcons_H
00003 //----------------------------------------------------------------------------------
00004 // **InsertLicense** code
00005 //----------------------------------------------------------------------------------
00008 
00014 //----------------------------------------------------------------------------------
00015 
00016 #ifndef __View2DTexture_H
00017 #include "View2DTexture.h"
00018 #endif
00019 #include <vector>
00020 
00022 class SOVIEW2D_API View2DIcons {
00023 public:
00025   View2DIcons();
00026   ~View2DIcons();
00027 
00029   void drawIcon(int idx, float dx1,float dy1, float dx2, float dy2);
00030 
00032   bool addIcon(char* filename);
00034   bool addIcons(char* filename, int width, int height);
00035 
00037   View2DTexture* getIcon(int index);
00038 
00040   int  numIcons();
00041 
00043   void removeIcon(int index);
00044 
00046   void clearIcons();
00047 
00048 private:
00049   std::vector<View2DTexture*> _icons;
00050 };
00051 
00052 #endif