MeVisLabToolboxReference
MeVisLab/Standard/Sources/ML/MLCSO/CSOBase/CSODefines.h
Go to the documentation of this file.
00001 // **InsertLicense** code
00002 //----------------------------------------------------------------------------------
00004 
00009 //----------------------------------------------------------------------------------
00010 
00011 #ifndef __CSODefines_H
00012 #define __CSODefines_H
00013 
00014 ML_START_NAMESPACE
00015 
00017 
00019 enum CSOVoxelValueModes {
00020   VOXEL_VALUE_ID            = 0, 
00021   VOXEL_VALUE_CONST         = 1, 
00022   VOXEL_VALUE_CONST_PLUS_ID = 2, 
00023   VOXEL_VALUE_MODULE        = 3  
00024 };
00025 
00027 
00029 enum CSOLineStyle {
00030   LINE_STYLE_NONE   = 0,      
00031   LINE_STYLE_SOLID  = 1,      
00032   LINE_STYLE_DASHED = 2,      
00033   LINE_STYLE_DOTTED = 3,      
00034   LINE_STYLE_SHORT_DASHED = 4 
00035 };
00036 
00038 
00040 enum CSOSelectionColoring {
00041   SELECTION_COLORING_BRIGHTEN = 0, 
00042   SELECTION_COLORING_FIXED    = 1  
00043 };
00044 
00046 
00048 enum CSOSelectionLineWidth {
00049   SELECTION_LINE_WIDTH_WIDEN = 0, 
00050   SELECTION_LINE_WIDTH_FIXED = 1  
00051 };
00052 
00054 
00056 enum CSOSelectedSeedPointColoring {
00057   SELECTED_SEED_POINT_COLORING_BRIGHTEN = 0, 
00058   SELECTED_SEED_POINT_COLORING_FIXED    = 1  
00059 };
00060 
00062 
00064 enum CSOSelectedSeedPointSize {
00065   SELECTED_SEED_POINT_SIZE_ENLARGE = 0, 
00066   SELECTED_SEED_POINT_SIZE_FIXED   = 1  
00067 };
00068 
00070 
00072 enum CSOMarkerDisplayMode {
00073   MARKER_DISPLAY_MODE_NONE   = 0, 
00074   MARKER_DISPLAY_MODE_RECT   = 1, 
00075   MARKER_DISPLAY_MODE_CIRCLE = 2  
00076 };
00077 
00079 
00081 enum CSOErrorCode {
00082   CSO_RESULT_OK           = 0, 
00083   CSO_NO_INPUT_IMAGE      = 1, 
00084   CSO_INVALID_INPUT_IMAGE = 2, 
00085   CSO_NO_MEMORY           = 3  
00086 };
00087 
00089 
00091 enum CSOUpdateModes {
00092   MODE_OFF          = 0, 
00093   MODE_AUTO_UPDATE  = 1, 
00094   MODE_AUTO_CLEAR   = 2  
00095 };
00096 
00098 
00100 enum CSOProcessorMode {
00101   PROCESSOR_MODE_MODIFICATOR           = 0, 
00102   PROCESSOR_MODE_GENERATOR             = 1, 
00103   PROCESSOR_MODE_GENERATOR_MODIFICATOR = 2  
00104 };
00105 
00107 
00109 enum CSOProcessorPickingMode {
00110   PROCESSOR_PICKING_MODE_SEED_POINTS = 0, 
00111   PROCESSOR_PICKING_MODE_PATH_POINTS = 1  
00112 };
00113 
00115 
00117 enum CSOSmoothingModes {
00118   SMOOTHING_MODE_NONE                 = 0, 
00119   SMOOTHING_MODE_SPLINE_APPROXIMATION = 1, 
00120   SMOOTHING_MODE_SPLINE_INTERPOLATION = 2  
00121 };
00122 
00124 
00126 enum Corner {
00127   TLR = 0, 
00128   TRR = 1, 
00129   TRF = 2, 
00130   TLF = 3, 
00131   BLR = 4, 
00132   BRR = 5, 
00133   BRF = 6, 
00134   BLF = 7  
00135 };
00136 
00138 
00140 enum Direction {
00141   DIRECTION_TOP    = 0,
00142   DIRECTION_BOTTOM = 1,
00143   DIRECTION_RIGHT  = 2,
00144   DIRECTION_LEFT   = 3,
00145   DIRECTION_FRONT  = 4,
00146   DIRECTION_REAR   = 5,
00147   DIRECTION_NUM_DIRECTIONS = 6
00148 };
00149 
00151 
00155 enum CrossingSide {
00156 
00157   CrossingTop    = 0, 
00158   CrossingBottom = 1, 
00159   CrossingRight  = 2, 
00160   CrossingLeft   = 3, 
00161   CrossingFront  = 4, 
00162   CrossingRear   = 5, 
00163   CrossingNone   = 6  
00164 };
00165 
00167 
00168 // Common
00169 const std::string nameCommonNumCSOs   = "NumCSOs";                    
00170 const std::string nameCommonNumGroups = "NumGroups";                  
00171 
00172 const std::string nameCommonNumSelectedCSOs   = "NumSelectedCSOs";    
00173 const std::string nameCommonNumSelectedGroups = "NumSelectedGroups";  
00174 
00175 // Attributes
00176 const std::string nameAttribId             = "Id";                    
00177 const std::string nameAttribLabel          = "Label";                 
00178 const std::string nameAttribDescription    = "Description";           
00179 
00180 const std::string nameAttribTimePointIndex = "TimePointIndex";        
00181 const std::string nameAttribShowState      = "ShowState";             
00182 const std::string nameAttribVoxelizeState  = "VoxelizeState";         
00183 const std::string nameAttribEditableState  = "EditableState";         
00184 
00185 const std::string nameAttribPathPointStyle = "PathPointStyle";        
00186 const std::string nameAttribPathPointWidth = "PathPointWidth";        
00187 const std::string nameAttribPathPointColor = "PathPointColor";        
00188 const std::string nameAttribPathPointAlpha = "PathPointAlpha";        
00189 
00190 const std::string nameAttribSeedPointStyle = "SeedPointStyle";        
00191 const std::string nameAttribSeedPointSize  = "SeedPointSize";         
00192 const std::string nameAttribSeedPointColor = "SeedPointColor";        
00193 const std::string nameAttribSeedPointAlpha = "SeedPointAlpha";        
00194 
00195 const std::string nameAttribVoxelWriteMode = "VoxelWriteMode";        
00196 const std::string nameAttribVoxelWriteValue= "VoxelWriteValue";       
00197 
00198 const std::string nameAttribNumUserData    = "NumUserData";           //<! String name for the number of user data.
00199 const std::string nameAttribUserDataName   = "UserDataName";          //<! String name for the name of a user data entry.
00200 const std::string nameAttribUserDataType   = "UserDataType";          //<! String name for the type of a user data entry.
00201 const std::string nameAttribUserDataValue  = "UserDataValue";         //<! String name for the value of a user data entry.
00202 
00204 const std::string nameAttribLineStyle      = "LineStyle";             
00205 const std::string nameAttribColor          = "Color";                 
00206 const std::string nameAttribAlpha          = "Alpha";                 
00207 const std::string nameAttribLineWidth      = "LineWidth";             
00208 
00209 const std::string nameAttribMarkerMode     = "MarkerMode";            
00210 const std::string nameAttribMarkerColor    = "MarkerColor";           
00211 const std::string nameAttribMarkerAlpha    = "MarkerAlpha";           
00212 const std::string nameAttribMarkerSize     = "MarkerSize";            
00213 
00214 const std::string nameAttribVoxelValue     = "VoxelValue";            
00215 
00216 
00217 
00218 // CSO
00219 const std::string nameCSONumSeedPoints     = "NumSeedPoints";         
00220 const std::string nameCSONumPathPointLists = "NumPathPointLists";     
00221 const std::string namePathNumPoints        = "PathNumPoints";         
00222 const std::string nameCSOFinished          = "IsFinished";            
00223 const std::string nameCSOClosed            = "IsClosed";              
00224 const std::string nameCSOInPlane           = "IsInPlane";             
00225 const std::string nameCSOPlaneNormal       = "PlaneNormal";           
00226 const std::string nameCSOBoundingBox       = "BoundingBox";           
00227 const std::string nameCSOType              = "Type";                  
00228 const std::string nameCSOSubType           = "SubType";               
00229 const std::string nameCSOCreatorId         = "CreatorId";             
00230 
00231 // CSOGroup
00232 const std::string nameGroupUseTimePointIndex = "UseTimePointIndex";   
00233 const std::string nameGroupUseShowState      = "UseShowState";        
00234 const std::string nameGroupUseVoxelizeState  = "UseVoxelizeState";    
00235 const std::string nameGroupUseEditableState  = "UseEditableState";    
00236 
00237 const std::string nameGroupUsePathPointStyle = "UsePathPointStyle";   
00238 const std::string nameGroupUsePathPointWidth = "UsePathPointWidth";   
00239 const std::string nameGroupUsePathPointColor = "UsePathPointColor";   
00240 const std::string nameGroupUsePathPointAlpha = "UsePathPointAlpha";   
00241 
00242 const std::string nameGroupUseSeedPointStyle = "UseSeedPointStyle";   
00243 const std::string nameGroupUseSeedPointSize  = "UseSeedPointSize";    
00244 const std::string nameGroupUseSeedPointColor = "UseSeedPointColor";   
00245 const std::string nameGroupUseSeedPointAlpha = "UseSeedPointAlpha";   
00246 
00247 const std::string nameGroupUseVoxelWriteMode  = "UseVoxelWriteMode";  
00248 const std::string nameGroupUseVoxelWriteValue = "UseVoxelWriteValue"; 
00249 
00251 const std::string nameGroupUseVisuals        = "UseVisuals";          
00252 const std::string nameGroupUseMarkerSettings = "UseMarkerSettings";   
00253 
00254 
00256 
00257 ML_END_NAMESPACE
00258 
00259 #endif //__CSODefines_H