61 using FloatType = float;
63 constexpr FloatType floatValue = 1.0;
64 bool usePointPixel =
true;
65 meshIO->SetPixelType(floatValue, usePointPixel);
68 meshIO->GetPointPixelComponentType());
71 usePointPixel =
false;
72 meshIO->SetPixelType(floatValue, usePointPixel);
75 meshIO->GetCellPixelComponentType());
81 const RGBPixelType rgbValue{ 1.0 };
83 meshIO->SetPixelType(rgbValue, usePointPixel);
86 meshIO->GetPointPixelComponentType());
89 usePointPixel =
false;
90 meshIO->SetPixelType(rgbValue, usePointPixel);
93 meshIO->GetCellPixelComponentType());
100 usePointPixel =
true;
101 meshIO->SetPixelType(rgbaValue, usePointPixel);
104 meshIO->GetPointPixelComponentType());
107 usePointPixel =
false;
108 meshIO->SetPixelType(rgbaValue, usePointPixel);
111 meshIO->GetCellPixelComponentType());
119 usePointPixel =
true;
120 meshIO->SetPixelType(vectorValue, usePointPixel);
123 meshIO->GetPointPixelComponentType());
126 usePointPixel =
false;
127 meshIO->SetPixelType(vectorValue, usePointPixel);
130 meshIO->GetCellPixelComponentType());
137 usePointPixel =
true;
138 meshIO->SetPixelType(covariantVectorValue, usePointPixel);
141 meshIO->GetPointPixelComponentType());
144 usePointPixel =
false;
145 meshIO->SetPixelType(covariantVectorValue, usePointPixel);
148 meshIO->GetCellPixelComponentType());
155 usePointPixel =
true;
156 meshIO->SetPixelType(fixedArrayValue, usePointPixel);
159 meshIO->GetPointPixelComponentType());
162 usePointPixel =
false;
163 meshIO->SetPixelType(fixedArrayValue, usePointPixel);
166 meshIO->GetCellPixelComponentType());
173 usePointPixel =
true;
174 meshIO->SetPixelType(symmetricSecondRankTensorValue, usePointPixel);
177 meshIO->GetPointPixelComponentType());
180 usePointPixel =
false;
181 meshIO->SetPixelType(symmetricSecondRankTensorValue, usePointPixel);
184 meshIO->GetCellPixelComponentType());
191 usePointPixel =
true;
192 meshIO->SetPixelType(diffusionTensor3DPixelValue, usePointPixel);
195 meshIO->GetPointPixelComponentType());
198 usePointPixel =
false;
199 meshIO->SetPixelType(diffusionTensor3DPixelValue, usePointPixel);
202 meshIO->GetCellPixelComponentType());
211 usePointPixel =
true;
212 meshIO->SetPixelType(matrixPixelValue, usePointPixel);
215 meshIO->GetPointPixelComponentType());
218 usePointPixel =
false;
219 meshIO->SetPixelType(matrixPixelValue, usePointPixel);
222 meshIO->GetCellPixelComponentType());
226 using ComplexPixelType = std::complex<FloatType>;
228 const ComplexPixelType complexPixelValue(1.0, 1.0);
229 usePointPixel =
true;
230 meshIO->SetPixelType(complexPixelValue, usePointPixel);
233 meshIO->GetPointPixelComponentType());
236 usePointPixel =
false;
237 meshIO->SetPixelType(complexPixelValue, usePointPixel);
240 meshIO->GetCellPixelComponentType());
246 const ArrayPixelType arrayPixelValue{};
247 usePointPixel =
true;
248 meshIO->SetPixelType(arrayPixelValue, usePointPixel);
251 meshIO->GetPointPixelComponentType());
254 usePointPixel =
false;
255 meshIO->SetPixelType(arrayPixelValue, usePointPixel);
258 meshIO->GetCellPixelComponentType());
264 const VariableLengthVectorPixelType variableLengthVectorValue{};
265 usePointPixel =
true;
266 meshIO->SetPixelType(variableLengthVectorValue, usePointPixel);
269 meshIO->GetPointPixelComponentType());
272 usePointPixel =
false;
273 meshIO->SetPixelType(variableLengthVectorValue, usePointPixel);
276 meshIO->GetCellPixelComponentType());
282 const VariableSizeMatrixType matrix{};
283 usePointPixel =
true;
284 meshIO->SetPixelType(matrix, usePointPixel);
287 meshIO->GetPointPixelComponentType());
290 usePointPixel =
false;
291 meshIO->SetPixelType(matrix, usePointPixel);
294 meshIO->GetCellPixelComponentType());
301 std::cout <<
"ComponentSize: " << meshIO->GetComponentSize(floatComponent) << std::endl;
303 std::cout <<
"ComponentTypeAsString: " << meshIO->GetComponentTypeAsString(floatComponent) << std::endl;
306 std::cout <<
"PixelTypeAsString: " << meshIO->GetPixelTypeAsString(pixelType) << std::endl;
309 meshIO->SetPointComponentType(pointComponentType);
313 meshIO->SetCellComponentType(cellComponentType);
316 constexpr unsigned int pointDimension = 2;
317 meshIO->SetPointDimension(pointDimension);
321 meshIO->SetNumberOfPoints(numberOfPoints);
325 meshIO->SetNumberOfCells(numberOfCells);
329 meshIO->SetNumberOfPointPixels(numberOfPointPixels);
333 meshIO->SetNumberOfCellPixels(numberOfCellPixels);
337 meshIO->SetCellBufferSize(cellBufferSize);
341 meshIO->SetFileType(fileType);
344 std::cout <<
"FileTypeAsString: " << meshIO->GetFileTypeAsString(fileType) << std::endl;
347 meshIO->SetByteOrder(ioByteOrder);
350 std::cout <<
"ByteOrderAsString: " << meshIO->GetByteOrderAsString(ioByteOrder) << std::endl;
353 std::cout <<
"SupportedReadExtensions: " << std::endl;
354 for (
const auto & ext : supportedReadExtensions)
356 std::cout << ext << std::endl;
360 std::cout <<
"SupportedWriteExtensions: " << std::endl;
361 for (
const auto & ext : supportedWriteExtensions)
363 std::cout << ext << std::endl;