TuttleOFX  1
ColorCubeViewerDefinitions.hpp
Go to the documentation of this file.
00001 #ifndef _TUTTLE_PLUGIN_COLOR_CUBE_VIEWER_DEFINITIONS_HPP_
00002 #define _TUTTLE_PLUGIN_COLOR_CUBE_VIEWER_DEFINITIONS_HPP_
00003 
00004 #include <tuttle/plugin/global.hpp>
00005 
00006 #include <GL/glew.h>
00007 #include <tuttle/plugin/opengl/gl.h>
00008 #include <tuttle/plugin/interact/interact.hpp>
00009 #include <tuttle/plugin/interact/overlay.hpp>
00010 #include <tuttle/plugin/ofxToGil/point.hpp>
00011 #include <tuttle/plugin/ImageEffectGilPlugin.hpp>
00012 
00013 #include <ofxsImageEffect.h>
00014 #include <ofxsInteract.h>
00015 
00016 #include <boost/gil/gil_all.hpp>
00017 #include <boost/gil/extension/color/hsl.hpp>
00018 
00019 #include <boost/scoped_ptr.hpp>
00020 
00021 #include <vector>
00022 
00023 
00024 namespace tuttle {
00025 namespace plugin {
00026 namespace colorCubeViewer {
00027 
00028 
00029 const static std::string kClipColorSelection = "color";
00030 const static std::string kClipSpillSelection = "spill";
00031 
00032 //Drawing constant
00033 const static float kOpenGLSceneMaxSize = 200.0;
00034 
00035 //Global display (check box)
00036 const static std::string kPointCloudDisplay = "pointCloudDisplay";
00037 const static std::string kPointCloudDisplayLabel = "Display data";
00038 
00039 //Discretization display (check box)
00040 const static std::string kBoolDiscretizationDisplay = "discretizationDisplayBool";
00041 const static std::string kBoolDiscretizationDisplayLabel = "Discretize point cloud";
00042 
00043 //Discretization display
00044 const static std::string kIntDiscretizationDisplay = "discretizationDisplay";
00045 const static std::string kIntDiscretizationDisplayLabel = "Discretization step";
00046 //static std::size_t discretizationDisplayInt = 10;
00047 
00048 //Number of divison (geodesic form)
00049 const static std::string kIntNumberOfDivisonGeodesicForm = "numberOfDivisonGeodesicForm";
00050 const static std::string kIntNumberOfDivisonGeodesicFormLabel = "Precision";
00051 
00052 //Reset transformation button
00053 const static std::string kPushButtonResetTransformationParameters = "ResetTransformation";
00054 const static std::string kPushButtonResetTransformationParametersLabel = "Reset transformation";
00055 
00056 //Display geodesic form (color)
00057 const static std::string kBoolOnlySelection = "displayColorGeodesicForm";
00058 const static std::string kBoolOnlySelectionLabel = "Display color form";
00059 
00060 //Display geodesic form (spill)
00061 const static std::string kBoolDisplaySpillGF = "displaySpillGeodesicForm";
00062 const static std::string kBoolDisplaySpillGFLabel = "Display spill form";
00063 
00064 //Group names
00065 const static std::string kGroupDisplay = "groupDisplay";
00066 const static std::string kGroupDisplayLabel = "Display";
00067 const static std::string kGroupSettings = "groupSettings";
00068 const static std::string kGroupSettingsLabel = "Settings";
00069 const static std::string kGroupProcess = "groupProcess";
00070 const static std::string kGroupProcessLabel = "Process";
00071 
00072 //Color average selection
00073 const static std::string kColorAverageSelection = "colorAverageSelection";
00074 const static std::string kColorAverageSelectionLabel = "Average selection";
00075 
00076 //Color average mode
00077 const static std::string kColorAverageMode = "colorAverageMode";
00078 const static std::string kColorAverageModeLabel = "Average mode";
00079 const static std::string kColorAverageMode1 = "Automatic";
00080 const static std::string kColorAverageMode2 = "Manual";
00081 
00082 //Color average selection (computing)
00083 const static std::string kColorAverageComputing = "colorAverageComputing";
00084 const static std::string kColorAverageComputingLabel = "Compute";
00085 
00086 //Color selection display
00087 const static std::string kBoolColorSelectionDisplay = "displayColorSelectionDisplay";
00088 const static std::string kBoolColorSelectionDisplayLabel = "Display color selection";
00089 
00090 //Spill selection display
00091 const static std::string kBoolSpillSelectionDisplay = "displaySpillSelectionDisplay";
00092 const static std::string kBoolSpillSelectionDisplayLabel = "Display spill selection";
00093 
00094 //Scale geodesic form
00095 const static std::string kDoubleScaleGeodesicForm = "scaleGF";
00096 const static std::string kDoubleScaleGeodesicFormLabel = "Scale geodesic form";
00097 
00098 //Rotation constants
00099 const static int KMaxDegres = 360;              //360° max for a rotation
00100 const static int kRotationSpeed = 5;    //mouse rotation scale
00101 
00102 }
00103 }
00104 }
00105 
00106 #endif