线性坐标轴 +-----------—+=================+------------—+ m_data_min m_selMin m_selMax m_data_max
更多...
|
| | LinearAxis () |
| |
| | ~LinearAxis () |
| |
| void | SetDataRange (double start, double end, BOOL keep_same_show=FALSE) |
| | 设置轴起点和终点对应的刻度
|
| |
| void | SetSelectRange (double fmin, double fmax) |
| | 设置轴显示范围。范围由百分比显示
|
| |
| VecFloat2 | ViewPoint (double v) const |
| | 获得刻度v,所在的像素坐标
|
| |
| POINT | ViewPointRound (double v) const |
| | 获得刻度v,所在的像素坐标。并对坐标进行取整
|
| |
| double | GetValueInPercent (double v) const |
| | 获得轴上对应值的百分比
|
| |
| double | ScreenPointToValue (double x, double y) const |
| | 根据屏幕像素点,求出轴刻度值。使用向量投影方法
|
| |
| VecFloat2 | DirectionVector (BOOL bUnitization=TRUE, BOOL remove_head=FALSE) const |
| | 轴方向的实际距离向量
|
| |
| VecFloat2 | ValueVector (double v) const |
| | 获得刻度值v,对应的像素向量
|
| |
| VecFloat2 | WeightVector (double w) const |
| | 获得权重w,对应的像素尺寸
|
| |
| VecFloat2 | ViewSketchPoint (double v, double t3v) const |
| | 轴上缩略图,坐标点获取算法。t3v代表法向量方向的百分比。值域=[0,1]
|
| |
| VecFloat2 | ViewSketchSize (double v, double t3v) const |
| | 轴上缩略图,坐标尺寸获取算法。t3v代表法向量方向的百分比。值域=[0,1]
|
| |
| BOOL | IsViewportArea (double v) const |
| | 是否在视窗可见范围内,TRUE表示可见
|
| |
| double | GetCurHitPos () const |
| | 返回当前鼠标对应的轴位置
|
| |
| void | SetLabelVector (const VecFloat2 &vt) |
| | 设置刻度线方向向量,该向量基于控件坐标系
|
| |
| double | GetPrecisionUnit (BOOL sign=TRUE) const |
| | 获得轴刻度精度
|
| |
| void | SetPrecisionUnit (double steps) |
| | 设置轴最小精度
|
| |
| void | SetAxisText (const BeString &str) |
| | 设置轴显示文本
|
| |
| void | SetLabelAngle (double rad) |
| | 设置文本相对于法向量的偏移角度
|
| |
| void | SetTickLabelSpacing (int distance) |
| | 刻度线文本间隔
|
| |
| void | SetAxisPosition (POINT ptstart, POINT ptOffset) |
| | 设置轴起点和终点。基于控件坐标系
|
| |
| void | SetAxisPosition (int x1, int y1, int x2, int y2) |
| | 设置轴起点和终点。基于控件坐标系
|
| |
| void | SetLayoutType (AxisLayoutType type, double value) |
| | 设置坐标轴显示位置
|
| |
| void | SetVertical (BOOL bV) |
| | 标记是否为垂直坐标轴
|
| |
| void | SetPerpendecularAxis (LinearAxis *axis) |
| | 设置关联的坐标轴
|
| |
| void | GetAxisStartToEndPoint (POINT &ptStart, POINT &ptEnd, BOOL has_head=FALSE) const |
| | 获得坐标轴位置起点和终点。基于控件坐标系
|
| |
| void | SetAxisHeadOffset (int offset) |
| | 设置第一个刻度与边沿的距离
|
| |
| double | GetAxisHeadOffset () |
| | 获取第一个刻度与边沿的距离
|
| |
| void | SetAxisPosNorOffset (int offset) |
| |
| void | SetScrollSize (int size) |
| |
| BOOL | IsScrollVaild () const |
| | 滚动条是否有效
|
| |
| void | SetTickMarkCount (TickMarkID id, int c) |
| |
| void | SetTickMarkLineSize (TickMarkID id, int tickSize=4) |
| |
| void | SetTickMarkStyle (TickMarkID id, TickMarkPositon style=TickOnOutside) |
| |
| void | SetTickMarkInfo (TickMarkID id, int c, int tickSize, TickMarkPositon style=TickOnOutside) |
| |
| double | MinorStep () const |
| | 小刻度步长
|
| |
| double | MajorStep () const |
| | 大刻度步长
|
| |
| double | MinorUnit () |
| | 小刻度最小单位
|
| |
| double | MajorUnit () |
| | 大刻度最小单位
|
| |
| void | ShowGridLine (BOOL bVisable) |
| | 显示(或隐藏)网格线
|
| |
| void | ShowGridBk (BOOL bVisable) |
| | 显示(或隐藏)背景
|
| |
| BOOL | IsShowGridLine () const |
| | 判断网格线是否显示
|
| |
| BOOL | IsShowGridBk () const |
| | 判断间隔背景是否显示
|
| |
| double | GetProjectionOnTheNormalVector (LinearAxis *otherAxis, POINT pt) |
| | 获得任意点,在otherAxis法向量上的投影
|
| |
| BOOL | NotifyZoomRange (double v) |
| |
| void | EnableZoomd (BOOL enable) |
| | 开启(或禁用)视野缩放
|
| |
| UINT | HitScrollThumbStates (POINT pt, VecFloat2 vAxis) const |
| |
| BOOL | OnChangePageRange (double k, double kMin, UINT hit) |
| |
| void | MovePageToEnd () |
| |
| void | MovePageToStart () |
| |
| void | StorageTrackPage () |
| |
| BOOL | DoMoveViewByPoint (IEventHandler *callHandler, int cx, int cy, UINT hit) |
| |
| void | OnPaintUserLine (ISurface *pSurface, RECT *rcClip, POINT pt, LineStyle *style, const GColor &crosslinecolor, LinearAxis *otherAxis) |
| |
| void | OnPaintAxisGridLine (ISurface *pSurface, RECT *rcClip, LinearAxis *otherAxis, const VecFloat2 &dv=VecFloat2(0, 0)) |
| |
| void | OnPaintAxisGridFill (ISurface *pSurface, RECT *rcClip, LinearAxis *otherAxis) |
| |
| void | OnPaintAxisCustomFill (ISurface *pSurface, RECT *rcClip, double v1, double v2, GColor bruColor, LinearAxis *otherAxis) |
| |
| void | OnPaintAxisDataLabel (ISurface *pSurface, double v, LPCTSTR text, int len, const GColor &color, const GColor &color_text_bg) |
| |
| void | OnPaintUserMajorTickLine (ISurface *pSurface, RECT *rcClip, double v) |
| |
| void | OnPaintAxisLastBorderLine (ISurface *pSurface, RECT *rcClip, LinearAxis *otherAxis) |
| |
| void | DrawPaintGridLineByVector (ISurface *pSurface, RECT *rcClip, VecFloat2 vt1, VecFloat2 vt2) |
| | 根据指定向量绘制网格线
|
| |
| void | ShellCoordinateAttribute (const BeString &szName, const BeString &szText, ICoordList *crdlist) override |
| | 命令控制和属性设置接口
|
| |
| void | OnTranslateLanguage () override |
| | 翻译处理函数
|
| |
| void | DrawCursor (ISurface *pSurface, const VecFloat2 &pt1, const GColor &color, int size) |
| |
| BOOL | IsInViewport (double v) const |
| |
| RECT | GetLabelTextRect (ISurface *pSurface, const VecFloat2 &p0, const VecFloat2 &vi, const VecFloat2 &dn, SIZE szTxt) |
| |
| void | DrawNormalVectorTextAngle (ISurface *pSurface, const VecFloat2 &p0, const VecFloat2 &vi, const VecFloat2 &dn, LPCTSTR text, int len, double text_angle, const GColor &color, const GColor *bkcolor=NULL, const VecFloat2 &bkPadSize=VecFloat2(2, 2)) |
| |
| void | DrawNormalVectorLine (ISurface *pSurface, const VecFloat2 &p0, const VecFloat2 &vi, const VecFloat2 &dn1, const VecFloat2 &dn2, const GColor &color, int size=1, LineStyle *style=NULL) |
| |
| VecFloat2 | GetAxisVectorNormal () const |
| |
| void | Swap () override |
| | 若满足笛卡尔坐标系,可以将X和Y翻转
|
| |
| LPCTSTR | GetAxisClassName () override |
| | 获得坐标轴类名
|
| |
| double | GetCoordinateWeight (double d) override |
| | 获得权重
|
| |
| void | OnCalcAxisPosition (RECT rcDiagram) override |
| | 坐标轴位置时响应事件
|
| |
| void | OnPaintChart (ISurface *pSurface, RECT *rcClip) override |
| |
| BOOL | OnNotifyMessage (IEventHandler *notify, UINT message, WPARAM wp, LPARAM lp) override |
| | 消息处理函数
|
| |
| void | GetCoordinateValue (int mouse_x, int mouse_y, double *outValus, int out_len) override |
| | 获得鼠标处,表示的坐标值
|
| |
| double | GetAxisNewTimePos (int axis_index) override |
| | 获得当前最新时间的数据坐标轴位置
|
| |
| void | GetDataRange (int axis_index, double &fmin, double &fmax) override |
| | 获得坐标轴(axis_index)的数据范围
|
| |
| double | GetShowFactor (int axis_index) override |
| | 获得坐标轴(axis_index). 屏幕起点到终点的距离(D),和数值范围(V)的比值。即V/D。
|
| |
| void | Transform (double *x, double *y) override |
| | 得到(x,y)转换后的值。转换后依然存入x和y变量中。
|
| |
| void | Transform2x2 (double *x, double *y) override |
| | 得到(x,y)转换(忽略平移值)后的值。通常用于计算宽度和高度的变化。转换后依然存入x和y变量中。
|
| |
| BOOL | IsInPath (double x, double y) override |
| | 是否在坐标系内
|
| |
| void | OnSummitTarget (FourCode four_code, LPCTSTR data) override |
| | 对象之间传递数据的提交操作
|
| |
| | CChartAxis () |
| |
| virtual | ~CChartAxis () |
| |
| void | SetScientificLabel (BOOL is_scientific) |
| | 设置为科学计数法
|
| |
| void | SetEditUI (CEditTextUI *editui) |
| | 设置编辑UI
|
| |
| CEditTextUI * | GetEditUI () const |
| | 获得编辑UI
|
| |
| void | SetAxisColor (const GColor &c) |
| |
| void | SetGridStyle (BOOL bFill, BOOL bLine) |
| |
| BOOL | IsShowGridFill () const |
| | 是否填充背景
|
| |
| BOOL | IsShowGridLine () const |
| | 是否显示网格线
|
| |
| void | SetGridLineType (PenType type) |
| | 设置网格线风格
|
| |
| void | SetFont (GFont *font) |
| | 设置字体
|
| |
| void | SetLabelPrefix (BeString str) |
| | 设置前缀文本
|
| |
| void | SetLabelSuffix (BeString str) |
| | 设置后缀文本
|
| |
| void | SetDecimalPrecision (int preci) |
| | 设置小数点精度
|
| |
| void | SetLabelOffsetRelativeToMajortick (double weight) |
| | 设置文本标签与刻度线之间的距离
|
| |
| void | SetTranformAxisLabelFunc (LPTranformText fn) |
| | 在显示轴上的文本时,完全由回调函数显示。轴文本自定义转换函数
|
| |
| void | SetTranformAxisLabelValueFunc (LPTranformValue fn) |
| | 在显示轴上的文本时,仅对数值进行转换
|
| |
| void | GetAxisLabelTickText (BasicStringBuffer &buf, double va) const |
| | 获得va刻度,应该显示的文本
|
| |
| virtual LPCTSTR | GetAxisClassName () |
| | 获得坐标轴类名
|
| |
| virtual void | Swap () |
| | 若满足笛卡尔坐标系,可以将X和Y翻转
|
| |
| void | OnTranslateLanguage () override |
| | 翻译处理函数
|
| |
| void | ChangeThemeColors () override |
| | 主题改变时触发
|
| |
| BOOL | OnNotifyMessage (IEventHandler *notify, UINT message, WPARAM wp, LPARAM lp) override |
| | 消息处理函数
|
| |
| void | ShellCoordinateAttribute (const BeString &szName, const BeString &szText, ICoordList *crdlist) override |
| | 命令控制和属性设置接口
|
| |
| | CChartCoordinate () |
| |
| virtual | ~CChartCoordinate () |
| |
| void | SetAxisNameText (const BeString &str) |
| | 设置轴名称
|
| |
| const BeString & | GetAxisName () |
| | 获取轴名称
|
| |
| POINT | CoordinateCenterPoint () const |
| | 获取坐标系中的中心点
|
| |
| void | SetCoordinateCenterPoint (LONG x, LONG y) |
| | 设置坐标系中的中心点
|
| |
| VecFloat2 | GetPointFromPercent (double xp, double yp) const |
| | 返回百分比坐标
|
| |
| void | ModifyCoordinateFlags (UINT style, UINT op=ADD_FLAGS) |
| |
| UINT | IsHasCoordinateFlags (UINT flags) const |
| |
| void | SetAxisColorMapGradient (GBrushGradient *color_map) |
| | 设置渐变画刷
|
| |
| GBrushGradient * | GetAxisColorMapGradient () const |
| | 获取渐变画刷
|
| |
| void | SetCoordHitState (BOOL hit) |
| | 设置坐标系下,是否存在命中的元素
|
| |
| BOOL | GetCoordHitState () const |
| | 返回在坐标系下,是否存在命中的元素
|
| |
| BOOL | IsEnable () const |
| | 获取可用性
|
| |
| void | SetEnable (BOOL enable) |
| | 设置可用性
|
| |
| virtual BOOL | IsVaild () |
| | 坐标系统是否是有效的
|
| |
| virtual VecFloat2 | GetCurHitPos () |
| | 获得当前鼠标位置,转换为图标坐标系后的点
|
| |
| virtual RECT | RectDiagram () |
| | 坐标系矩形区域
|
| |
| virtual void | ChangeThemeColors () |
| | 主题改变时触发
|
| |
| virtual void | GetCoordinateValue (int mouse_x, int mouse_y, double *outValus, int out_len) |
| | 获得鼠标处,表示的坐标值
|
| |
| virtual void | OnCalcAxisPosition (RECT rcDiagram) |
| | 坐标轴位置时响应事件
|
| |
| virtual void | OnSetWindowRect (RECT rcWindow) |
| | window窗口位置更新
|
| |
| virtual void | OnTranslateLanguage () |
| | 翻译处理函数
|
| |
| virtual void | OnPaintChartBackground (ISurface *pSurface, RECT *rcClip) |
| |
| virtual void | OnPaintChart (ISurface *pSurface, RECT *rcClip) |
| |
| virtual void | OnPaintChartCrossLine (ISurface *pSurface, RECT *rcClip, double v1, double v2, LineStyle *style, const GColor &crosslinecolor) |
| |
| virtual BOOL | OnNotifyMessage (IEventHandler *notify, UINT message, WPARAM wp, LPARAM lp) |
| | 消息处理函数
|
| |
| virtual VecFloat2 | ViewIntSizeByValueTrans (double cx, double cy, AxisValueTransModel mx, AxisValueTransModel my) |
| |
| virtual VecFloat2 | ViewIntPointByValueTrans (double x, double y, AxisValueTransModel mx, AxisValueTransModel my) |
| |
| virtual BOOL | IsViewportAreaByValueTrans (double x, double y, AxisValueTransModel mx, AxisValueTransModel my) |
| |
| virtual double | GetAxisNewTimePos (int axis_index) |
| | 获得当前最新时间的数据坐标轴位置
|
| |
| virtual void | GetDataRange (int axis_index, double &fmin, double &fmax) |
| | 获得坐标轴(axis_index)的数据范围
|
| |
| virtual double | GetShowFactor (int axis_index) |
| | 获得坐标轴(axis_index). 屏幕起点到终点的距离(D),和数值范围(V)的比值。即V/D。
|
| |
| virtual void | ShellCoordinateAttribute (const BeString &szName, const BeString &szText, ICoordList *crdlist) |
| | 命令控制和属性设置接口
|
| |
| double | GetCoordinateWeight (double value) override |
| | 获得权重
|
| |
| | PathTransform () |
| |
| virtual | ~PathTransform () |
| |
| virtual void | Transform (double *x, double *y) |
| | 得到(x,y)转换后的值。转换后依然存入x和y变量中。
|
| |
| virtual void | TransformFloat (float *x, float *y) |
| |
| virtual void | TransformLong (LONG *x, LONG *y) |
| |
| virtual void | Transform2x2 (double *x, double *y) |
| | 得到(x,y)转换(忽略平移值)后的值。通常用于计算宽度和高度的变化。转换后依然存入x和y变量中。
|
| |
| virtual BOOL | IsInPath (double x, double y) |
| | 是否在坐标系内
|
| |
| virtual double | GetCoordinateWeight (double value) |
| | 获得权重
|
| |
| virtual BOOL | IsCartesianSystem () |
| | 是否是笛卡尔坐标系
|
| |
| | VisibleProperty () |
| |
| | ~VisibleProperty () |
| |
| BOOL | IsVisable () const |
| |
| void | SetVisable (BOOL bShow) |
| |
| | ICommitTarget () |
| |
| virtual | ~ICommitTarget () |
| |
| virtual void | OnSummitTarget (FourCode four_code, LPCTSTR data) |
| | 对象之间传递数据的提交操作
|
| |
线性坐标轴 +-----------—+=================+------------—+ m_data_min m_selMin m_selMax m_data_max