Plot2d.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. //
  2. // This file is auto-generated. Please don't modify it!
  3. //
  4. #pragma once
  5. #ifdef __cplusplus
  6. //#import "opencv.hpp"
  7. #import "opencv2/plot.hpp"
  8. #else
  9. #define CV_EXPORTS
  10. #endif
  11. #import <Foundation/Foundation.h>
  12. #import "Algorithm.h"
  13. @class Mat;
  14. @class Scalar;
  15. NS_ASSUME_NONNULL_BEGIN
  16. // C++: class Plot2d
  17. /**
  18. * plot Plot function for Mat data
  19. *
  20. * Member of `Plot`
  21. */
  22. CV_EXPORTS @interface Plot2d : Algorithm
  23. #ifdef __cplusplus
  24. @property(readonly)cv::Ptr<cv::plot::Plot2d> nativePtrPlot2d;
  25. #endif
  26. #ifdef __cplusplus
  27. - (instancetype)initWithNativePtr:(cv::Ptr<cv::plot::Plot2d>)nativePtr;
  28. + (instancetype)fromNative:(cv::Ptr<cv::plot::Plot2d>)nativePtr;
  29. #endif
  30. #pragma mark - Methods
  31. //
  32. // void cv::plot::Plot2d::setMinX(double _plotMinX)
  33. //
  34. - (void)setMinX:(double)_plotMinX NS_SWIFT_NAME(setMinX(_plotMinX:));
  35. //
  36. // void cv::plot::Plot2d::setMinY(double _plotMinY)
  37. //
  38. - (void)setMinY:(double)_plotMinY NS_SWIFT_NAME(setMinY(_plotMinY:));
  39. //
  40. // void cv::plot::Plot2d::setMaxX(double _plotMaxX)
  41. //
  42. - (void)setMaxX:(double)_plotMaxX NS_SWIFT_NAME(setMaxX(_plotMaxX:));
  43. //
  44. // void cv::plot::Plot2d::setMaxY(double _plotMaxY)
  45. //
  46. - (void)setMaxY:(double)_plotMaxY NS_SWIFT_NAME(setMaxY(_plotMaxY:));
  47. //
  48. // void cv::plot::Plot2d::setPlotLineWidth(int _plotLineWidth)
  49. //
  50. - (void)setPlotLineWidth:(int)_plotLineWidth NS_SWIFT_NAME(setPlotLineWidth(_plotLineWidth:));
  51. //
  52. // void cv::plot::Plot2d::setNeedPlotLine(bool _needPlotLine)
  53. //
  54. /**
  55. * Switches data visualization mode
  56. *
  57. * @param _needPlotLine if true then neighbour plot points will be connected by lines.
  58. * In other case data will be plotted as a set of standalone points.
  59. */
  60. - (void)setNeedPlotLine:(BOOL)_needPlotLine NS_SWIFT_NAME(setNeedPlotLine(_needPlotLine:));
  61. //
  62. // void cv::plot::Plot2d::setPlotLineColor(Scalar _plotLineColor)
  63. //
  64. - (void)setPlotLineColor:(Scalar*)_plotLineColor NS_SWIFT_NAME(setPlotLineColor(_plotLineColor:));
  65. //
  66. // void cv::plot::Plot2d::setPlotBackgroundColor(Scalar _plotBackgroundColor)
  67. //
  68. - (void)setPlotBackgroundColor:(Scalar*)_plotBackgroundColor NS_SWIFT_NAME(setPlotBackgroundColor(_plotBackgroundColor:));
  69. //
  70. // void cv::plot::Plot2d::setPlotAxisColor(Scalar _plotAxisColor)
  71. //
  72. - (void)setPlotAxisColor:(Scalar*)_plotAxisColor NS_SWIFT_NAME(setPlotAxisColor(_plotAxisColor:));
  73. //
  74. // void cv::plot::Plot2d::setPlotGridColor(Scalar _plotGridColor)
  75. //
  76. - (void)setPlotGridColor:(Scalar*)_plotGridColor NS_SWIFT_NAME(setPlotGridColor(_plotGridColor:));
  77. //
  78. // void cv::plot::Plot2d::setPlotTextColor(Scalar _plotTextColor)
  79. //
  80. - (void)setPlotTextColor:(Scalar*)_plotTextColor NS_SWIFT_NAME(setPlotTextColor(_plotTextColor:));
  81. //
  82. // void cv::plot::Plot2d::setPlotSize(int _plotSizeWidth, int _plotSizeHeight)
  83. //
  84. - (void)setPlotSize:(int)_plotSizeWidth _plotSizeHeight:(int)_plotSizeHeight NS_SWIFT_NAME(setPlotSize(_plotSizeWidth:_plotSizeHeight:));
  85. //
  86. // void cv::plot::Plot2d::setShowGrid(bool needShowGrid)
  87. //
  88. - (void)setShowGrid:(BOOL)needShowGrid NS_SWIFT_NAME(setShowGrid(needShowGrid:));
  89. //
  90. // void cv::plot::Plot2d::setShowText(bool needShowText)
  91. //
  92. - (void)setShowText:(BOOL)needShowText NS_SWIFT_NAME(setShowText(needShowText:));
  93. //
  94. // void cv::plot::Plot2d::setGridLinesNumber(int gridLinesNumber)
  95. //
  96. - (void)setGridLinesNumber:(int)gridLinesNumber NS_SWIFT_NAME(setGridLinesNumber(gridLinesNumber:));
  97. //
  98. // void cv::plot::Plot2d::setInvertOrientation(bool _invertOrientation)
  99. //
  100. - (void)setInvertOrientation:(BOOL)_invertOrientation NS_SWIFT_NAME(setInvertOrientation(_invertOrientation:));
  101. //
  102. // void cv::plot::Plot2d::setPointIdxToPrint(int pointIdx)
  103. //
  104. /**
  105. * Sets the index of a point which coordinates will be printed on the top left corner of the plot (if ShowText flag is true).
  106. *
  107. * @param pointIdx index of the required point in data array.
  108. */
  109. - (void)setPointIdxToPrint:(int)pointIdx NS_SWIFT_NAME(setPointIdxToPrint(pointIdx:));
  110. //
  111. // void cv::plot::Plot2d::render(Mat& _plotResult)
  112. //
  113. - (void)render:(Mat*)_plotResult NS_SWIFT_NAME(render(_plotResult:));
  114. //
  115. // static Ptr_Plot2d cv::plot::Plot2d::create(Mat data)
  116. //
  117. /**
  118. * Creates Plot2d object
  119. *
  120. * @param data `$$1xN$$` or `$$Nx1$$` matrix containing `$$Y$$` values of points to plot. `$$X$$` values
  121. * will be equal to indexes of correspondind elements in data matrix.
  122. */
  123. + (Plot2d*)create:(Mat*)data NS_SWIFT_NAME(create(data:));
  124. //
  125. // static Ptr_Plot2d cv::plot::Plot2d::create(Mat dataX, Mat dataY)
  126. //
  127. /**
  128. * Creates Plot2d object
  129. *
  130. * @param dataX `$$1xN$$` or `$$Nx1$$` matrix `$$X$$` values of points to plot.
  131. * @param dataY `$$1xN$$` or `$$Nx1$$` matrix containing `$$Y$$` values of points to plot.
  132. */
  133. + (Plot2d*)create:(Mat*)dataX dataY:(Mat*)dataY NS_SWIFT_NAME(create(dataX:dataY:));
  134. @end
  135. NS_ASSUME_NONNULL_END