• Main Page
  • Classes
  • Files
  • File List

T:/Eigene Dateien/Visual Studio 2008/Projects/VisLuFramework/src/BasicObjects.h

00001 #ifndef BASIC_OBJECTS_H
00002 #define BASIC_OBJECTS_H
00003 
00004 #include "common.h"
00011 // Simple linear volume class which supports loading from DAT files
00012 class Position
00013 {
00014 public:
00015         Position::Position(float xPosition, float yPosition) : x(xPosition), y(yPosition)
00016         {}
00017 
00018         Position::Position()
00019         {}
00020 
00021         float x;
00022         float y;
00023 };
00024 
00030 struct RGB_Colour
00031 {
00032 public:
00033         RGB_Colour::RGB_Colour(GLubyte red, GLubyte green, GLubyte blue) : r(red), g(green), b(blue)
00034         {}
00035 
00036         RGB_Colour::RGB_Colour()
00037         {}
00038 
00039         GLubyte r;
00040         GLubyte g;
00041         GLubyte b;
00042 };
00048 class Lab_Colour
00049 {
00050 public:
00051         Lab_Colour(GLubyte R, GLubyte G, GLubyte B);
00052         Lab_Colour(float LValue, float aValue, float bValue) : L(LValue), a(aValue), b(bValue) {}
00053         Lab_Colour(){}
00054         float L;
00055         float a;
00056         float b;
00057 };
00063 struct RGBA_Colour
00064 {
00065 public:
00066         RGBA_Colour(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha) : r(red), g(green), b(blue), a(alpha)
00067         {}
00068         RGBA_Colour(RGB_Colour colourRGB, GLubyte alpha) : r(colourRGB.r), g(colourRGB.g), b(colourRGB.b), a(alpha)
00069         {}
00070         RGBA_Colour(){}
00071         void setColour(RGB_Colour col, GLubyte alpha);
00072         void setColour(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
00073         void setColour(int r, int g, int b, int alpha);
00074         GLubyte r;
00075         GLubyte g;
00076         GLubyte b;
00077         GLubyte a;
00078 };
00079 
00080 enum ColourPickerSliderMode
00081 {
00082         ColourPickerSliderMode_L,
00083         ColourPickerSliderMode_A,
00084         ColourPickerSliderMode_B
00085 };
00086 
00087 
00088 #endif

Generated on Tue Dec 14 2010 03:52:55 for VolVis by  doxygen 1.7.2