|
[NOHEADER] |
enum | { ImageOptionFlipVertical = 1
} |
void | SetImage (const unsigned char *data, int width, int height, int pixel_size, unsigned long buffer_length=0, int options=0) |
Public Types |
|
enum | {
IconNoIcon = 0,
IconBoundingBox = 13,
IconColorBarAnnotation = 12,
IconConnection = 1,
IconCornerAnnotation = 11,
IconDocument = 9,
IconEmpty16x16 = 6,
IconEmpty1x1 = 10,
IconError = 2,
IconErrorMini = 3,
IconErrorRedMini = 4,
IconExpand = 5,
IconFileOpen = 8,
IconFloppy = 7,
IconFolder = 20,
IconFolderOpen = 21,
IconGridLinear = 40,
IconGridLog = 41,
IconHeaderAnnotation = 50,
IconHelpBubble = 60,
IconInfoMini = 61,
IconLock = 62,
IconMagGlass = 63,
IconMinus = 64,
IconMove = 80,
IconMoveH = 81,
IconMoveV = 82,
IconOrientationCubeAnnotation = 83,
IconPanHand = 99,
IconPlus = 100,
IconPointFinger = 90,
IconPresetAdd = 94,
IconPresetApply = 95,
IconPresetDelete = 96,
IconPresetUpdate = 97,
IconQuestion = 101,
IconReload = 102,
IconRotate = 105,
IconScaleBarAnnotation = 106,
IconSideAnnotation = 110,
IconShrink = 103,
IconStopwatch = 104,
IconTransportBeginning = 120,
IconTransportEnd = 121,
IconTransportFastForward = 122,
IconTransportFastForwardToKey = 123,
IconTransportLoop = 124,
IconTransportPause = 125,
IconTransportPlay = 126,
IconTransportPlayToKey = 127,
IconTransportRewind = 128,
IconTransportRewindToKey = 129,
IconTransportStop = 130,
IconTrashcan = 131,
IconTreeClose = 150,
IconTreeOpen = 151,
IconWarning = 170,
IconWarningMini = 171,
IconWindowLevel = 172,
LastIcon
} |
Public Member Functions |
| vtkTypeRevisionMacro (vtkKWIcon, vtkObject) |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | SetImage (int image) |
void | SetImage (vtkKWIcon *) |
const unsigned char * | GetData () |
virtual void | Fade (double factor) |
virtual void | Flatten (double r, double g, double b) |
|
virtual int | GetWidth () |
|
virtual int | GetHeight () |
|
virtual int | GetPixelSize () |
Static Public Member Functions |
vtkKWIcon * | New () |
Protected Member Functions |
| vtkKWIcon () |
| ~vtkKWIcon () |
|
void | SetData (const unsigned char *data, int width, int height, int pixel_size, int options=0) |
Protected Attributes |
unsigned char * | Data |
int | Width |
int | Height |
int | PixelSize |
A simple icon wrapper. It can either be used with file KWIcons.h to provide a unified interface for internal icons or a wrapper for custom icons. The icons are defined with width, height, pixel_size, and array of unsigned char values.