- Timestamp:
- Aug 23, 2017, 3:01:06 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/prototype-v0/thirds/otb2zcfg/otb2zcfg.cxx
r839 r848 97 97 std::cout << " </Supported>" << std::endl; 98 98 std::cout << " <Supported>" << std::endl; 99 std::cout << " mimeType = application/json" << std::endl; 100 std::cout << " encoding = utf-8" << std::endl; 101 std::cout << " </Supported>" << std::endl; 102 std::cout << " <Supported>" << std::endl; 99 103 std::cout << " mimeType = application/zip" << std::endl; 100 104 std::cout << " </Supported>" << std::endl; 101 105 } 102 106 103 void printOutputImage( ){107 void printOutputImage(ImagePixelType pt){ 104 108 std::cout << " <LiteralData>" << std::endl; 105 109 std::cout << " dataType = string" << std::endl; 106 110 std::cout << " <Default>" << std::endl; 107 std::cout << " value = float" << std::endl; 108 std::cout << " AllowedValues = uint8,uint16,int16n,int32,int32,float,double" << std::endl; 111 // Check for the default pixel type 112 switch(pt){ 113 case ImagePixelType_uint8: 114 std::cout << " value = uint8" << std::endl; 115 break; 116 case ImagePixelType_int16: 117 std::cout << " value = int16" << std::endl; 118 break; 119 case ImagePixelType_uint16: 120 std::cout << " value = uint16" << std::endl; 121 break; 122 case ImagePixelType_int32: 123 std::cout << " value = int32" << std::endl; 124 break; 125 case ImagePixelType_uint32: 126 std::cout << " value = uint8" << std::endl; 127 break; 128 case ImagePixelType_double: 129 std::cout << " value = uint8" << std::endl; 130 break; 131 default: 132 std::cout << " value = float" << std::endl; 133 break; 134 } 135 std::cout << " AllowedValues = uint8,uint16,int16,int32,int32,float,double" << std::endl; 109 136 std::cout << " </Default>" << std::endl; 110 137 std::cout << " </LiteralData>" << std::endl; 111 138 } 112 139 113 void printOutputComplexImage( ){140 void printOutputComplexImage(ComplexImagePixelType pt){ 114 141 std::cout << " <LiteralData>" << std::endl; 115 142 std::cout << " dataType = string" << std::endl; 116 143 std::cout << " <Default>" << std::endl; 117 std::cout << " value = cfloat" << std::endl; 144 // Check for the default pixel type 145 switch(pt){ 146 case ComplexImagePixelType_double: 147 std::cout << " value = cdouble" << std::endl; 148 break; 149 default: 150 std::cout << " value = cfloat" << std::endl; 151 break; 152 } 118 153 std::cout << " AllowedValues = cfloat,cdouble" << std::endl; 119 154 std::cout << " </Default>" << std::endl; … … 242 277 } 243 278 else{ 244 if(type == ParameterType_OutputImage) 245 printOutputImage(); 279 if(type == ParameterType_OutputImage){ 280 printOutputImage(m_Application->GetParameterOutputImagePixelType(paramKey)); 281 } 246 282 else{ 247 283 if(type == ParameterType_ComplexOutputImage){ 248 printOutputComplexImage( );284 printOutputComplexImage(m_Application->GetParameterComplexOutputImagePixelType(paramKey)); 249 285 }else{ 250 286 std::cout << " <ComplexData>" << std::endl;
Note: See TracChangeset
for help on using the changeset viewer.