ImageCtrl结构体类。用于在图像上绘制各种元素 更多...
Public 成员函数 | |
| None | __init__ (self, screenWidth=640, screenHeight=480) |
| ImageCtrl的构造函数 | |
| setRect (self, window_w, window_h) | |
| 设置图像的中心点 | |
| DisplayImg (self, img) | |
| 展示图像,将图像赋值给 self.image | |
| drawCross (self) | |
| 绘制十字星的中心点 | |
| drawCrossRect (self) | |
| 绘制十字星外围的矩形框 | |
| drawPosture (self, roll, pitch, yaw) | |
| 绘制姿态信息,包括滚转角、俯仰角和偏航角 | |
| drawCoordinate (self, CoordName, orientation, value, step=1, largeStep=4, minNum=0, maxNum=100, stepLength=2) | |
| 绘制指定方向的坐标轴 | |
ImageCtrl结构体类。用于在图像上绘制各种元素
| None __init__ | ( | self, | |
| screenWidth = 640, | |||
| screenHeight = 480 ) |
ImageCtrl的构造函数
| 初始化十字星、矩形框、坐标轴的信息 |
| drawCoordinate | ( | self, | |
| CoordName, | |||
| orientation, | |||
| value, | |||
| step = 1, | |||
| largeStep = 4, | |||
| minNum = 0, | |||
| maxNum = 100, | |||
| stepLength = 2 ) |
绘制指定方向的坐标轴
| CoordName | 坐标轴名称 |
| orientation | 方位 |
| value | 坐标轴上的值 |
| step(默认值为1) | 最小刻度 |
| largeStep(默认值为4) | 大刻度 |
| minNum(默认值为0) | 最小值 |
| maxNum(默认值为100) | 最大值 |
| stepLength(默认值为2) | 最小刻度长度 |
@description :
@param :
CoordName: 坐标轴名称
screenWidth: 窗口宽度
screenHeight: 窗口高度
orientation: 方位
value:值
step:最小刻度
largeStep:大刻度
minNum:最小值
maxNum:最大值
stepLength:最小刻度长度
@Returns :