Bruker.API.CommonStructures.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /*
  2. Bruker.API.Common-Structures.h
  3. Header File for common used structures (esprit and dataimport)
  4. Microsoft Visual Studio 2015
  5. */
  6. namespace BrukerDll
  7. {
  8. #ifndef BRUKERAPICOMMONSTRUCTURESH
  9. #define BRUKERAPICOMMONSTRUCTURESH
  10. #include <stdint.h>
  11. #pragma pack(push, 1)
  12. struct TMultiPoints {
  13. uint32_t X;
  14. uint32_t Y;
  15. };
  16. #pragma pack(pop)
  17. // typedef TSegment TSegmentList[8192/*# range 0..8191*/];
  18. typedef TMultiPoints TMultiPointList[65536];
  19. typedef TMultiPoints* PMultiPointList;
  20. #pragma pack(push, 1)
  21. struct TSegment {
  22. uint32_t Y;
  23. uint32_t XStart;
  24. int32_t XCount;
  25. };
  26. #pragma pack(pop)
  27. // typedef TSegment TSegmentList[8192/*# range 0..8191*/];
  28. typedef TSegment TSegmentList[65536];
  29. typedef TSegment* PSegmentList;
  30. #pragma pack(push, 1)
  31. struct TRTElementRegion {
  32. int32_t Element;
  33. unsigned __int8 IdentifierLength;
  34. char Line[10]; // can be ‘K? ‘KA? ‘LA??
  35. double Energy; // set element=0 if you want to use a specific energy, if you use element and line it can be ?? double Width; // this is factor to enlarge/shrink the region
  36. unsigned char R, G, B; //
  37. };
  38. #pragma pack(pop)
  39. #pragma pack(push, 1)
  40. struct TRTHyMapProfileSettings {
  41. int32_t Version; // Version of structure, useful for later extensions, =1 at the moment
  42. //Element settings
  43. int32_t ElementCount;
  44. TRTElementRegion ElementRegions[51/*# range 0..50*/];
  45. // Map-Options
  46. int32_t ImageFilter; // 0=none, 1=smooth, 2=sharpen
  47. int32_t MapFilter; // 0=none, 1=average, 2=smooth, 3=automatic
  48. int32_t MapFilterWidth; // filter with in pixel 3?9
  49. int32_t ColorMixMethod; // 0=standard, 1=enhanced
  50. double Brightness; // -1..1
  51. double Gamma; // 0..2
  52. double ColorSaturation; // 0..2, default should be ?? bool AbsoluteScaling;
  53. bool Normalization;
  54. bool Deconvolution;
  55. };
  56. #pragma pack(pop)
  57. //typedef TPoint * PPointArray;
  58. #pragma pack(push, 1)
  59. struct TEBSDIndexingResult {
  60. int32_t MapX, MapY;
  61. int32_t RadonBandCount;
  62. int32_t nIndexedBands;
  63. int32_t phase;
  64. double phi1;
  65. double phi;
  66. double phi2;
  67. double RadonQuality;
  68. double MAD;
  69. };
  70. #pragma pack(pop)
  71. typedef TEBSDIndexingResult* PEBSDIndexingResultArray;
  72. #endif // BRUKERAPICOMMONSTRUCTURESH
  73. }