资源简介
动态绘制曲线。
可以非常直观看出数据的走 向。
代码片段和文件信息
///////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright 2016 Advanced Software Engineering Limited
//
// You may use and modify the code in this file in your application provided the code and
// its modifications are used only in conjunction with ChartDirector. Usage of this software
// is subjected to the terms and condition of the ChartDirector license.
///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
// CChartViewer / CViewPortControl Implementation
//
// The CChartViewer is a subclass of CStatic for displaying chart images. It extends CStatic
// to support to support alpha transparency image maps clickable hot spots with tool tips
// zooming and scrolling and image update rate control. The CViewPortControl is a subclass of
// CStatic for visualizing and supporting interactive control of the CChartViewer viewport.
//
// To use these controls in a dialog in the Dialog Editor drag a Picture control (CStatic
// control) to the form configure its type as “Bitmap“ and give it a unique ID. Then right
// click on the control and add a variable to represent the control using CChartViewer or
// CViewPortControl as the variable type.
///////////////////////////////////////////////////////////////////////////////////////////////////
#include “stdafx.h“
#include “ChartViewer.h“
#include
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
/////////////////////////////////////////////////////////////////////////////
//
// CChartViewer
//
/////////////////////////////////////////////////////////////////////////////
//
// Build in mouse cursors for zooming and scrolling support
//
static HCURSOR getZoomInCursor();
static HCURSOR getZoomOutCursor();
static HCURSOR getNoZoomCursor();
static HCURSOR getNoMove2DCursor();
static HCURSOR getNoMoveHorizCursor();
static HCURSOR getNoMoveVertCursor();
//
// Constants used in m_delayChartUpdate
//
enum { NO_DELAY NEED_DELAY NEED_UPDATE };
enum { UPDATE_VIEW_PORT_TIMER = 1 DELAYED_MOUSE_MOVE_TIMER = 2 };
//
// Constructor
//
CChartViewer::CChartViewer()
{
// current chart and hot spot tester
m_currentChart = 0;
m_hotSpotTester = 0;
// create the tool tip control
m_ToolTip.Create(this);
m_ToolTip.Activate(TRUE);
m_ToolTip.Modifystyle(0 TTS_NOPREFIX);
m_toolTipHasAttached = false;
// initialize chart configuration
m_selectBoxLineColor = RGB(0 0 0);
m_selectBoxLineWidth = 2;
m_mouseUsage = Chart::MouseUsageDefault;
m_zoomDirection = Chart::DirectionHorizontal;
m_zoomInRatio = 2;
m_zoomOutRatio = 0.5;
m_mouseWheelZoomRatio = 1;
m_scrollDirection = Chart::DirectionHorizontal;
m_minDragAmount = 5;
m_updateInterval = 20;
// current state of the mouse
m_isOnPlotArea = false;
m_isPlotAreaMou
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-12-27 19:54 realtimecharts_cpp\
目录 0 2017-12-27 19:54 realtimecharts_cpp\include\
文件 113429 2016-05-20 03:09 realtimecharts_cpp\include\bchartdir.h
文件 166059 2016-05-20 03:08 realtimecharts_cpp\include\chartdir.h
文件 104070 2015-05-06 13:25 realtimecharts_cpp\include\FinanceChart.h
文件 1399 2013-03-07 04:23 realtimecharts_cpp\include\memblock.h
目录 0 2017-12-27 19:54 realtimecharts_cpp\lib32\
文件 2752512 2016-12-16 01:00 realtimecharts_cpp\lib32\chartdir60.dll
文件 220134 2016-12-16 01:00 realtimecharts_cpp\lib32\chartdir60.lib
目录 0 2017-12-27 19:54 realtimecharts_cpp\lib64\
文件 4120576 2016-12-16 01:58 realtimecharts_cpp\lib64\chartdir60.dll
文件 215614 2016-12-16 01:58 realtimecharts_cpp\lib64\chartdir60.lib
文件 3523 2016-12-02 17:08 realtimecharts_cpp\LICENSE.TXT
目录 0 2017-12-27 19:54 realtimecharts_cpp\mfcdemo\
文件 2922 2017-08-31 11:50 realtimecharts_cpp\mfcdemo\realtimechartcpp.sln
目录 0 2017-12-27 19:54 realtimecharts_cpp\mfcdemo\realtimemultithread\
文件 48389 2016-12-16 01:11 realtimecharts_cpp\mfcdemo\realtimemultithread\ChartViewer.cpp
文件 14587 2016-12-14 23:03 realtimecharts_cpp\mfcdemo\realtimemultithread\ChartViewer.h
文件 2127 2016-12-05 01:43 realtimecharts_cpp\mfcdemo\realtimemultithread\doublebufferedqueue.h
文件 3301 2016-12-02 23:36 realtimecharts_cpp\mfcdemo\realtimemultithread\randomwalk.cpp
文件 1279 2016-11-25 17:53 realtimecharts_cpp\mfcdemo\realtimemultithread\randomwalk.h
文件 1968 2016-12-01 02:02 realtimecharts_cpp\mfcdemo\realtimemultithread\realtimemultithread.cpp
文件 582 2016-12-01 01:58 realtimecharts_cpp\mfcdemo\realtimemultithread\realtimemultithread.h
文件 5110 2016-12-21 17:36 realtimecharts_cpp\mfcdemo\realtimemultithread\realtimemultithread.rc
文件 13490 2017-09-04 07:25 realtimecharts_cpp\mfcdemo\realtimemultithread\realtimemultithread.vcxproj
文件 828 2017-09-04 10:20 realtimecharts_cpp\mfcdemo\realtimemultithread\realtimemultithread.vcxproj.filters
文件 22222 2016-12-21 22:50 realtimecharts_cpp\mfcdemo\realtimemultithread\realtimemultithreadDlg.cpp
文件 2931 2016-12-01 02:02 realtimecharts_cpp\mfcdemo\realtimemultithread\realtimemultithreadDlg.h
目录 0 2017-12-27 19:54 realtimecharts_cpp\mfcdemo\realtimemultithread\res\
文件 963 2016-12-21 17:36 realtimecharts_cpp\mfcdemo\realtimemultithread\resource.h
文件 3406 2015-03-07 14:12 realtimecharts_cpp\mfcdemo\realtimemultithread\res\pointerPB.ico
............此处省略153个文件信息
- 上一篇:stm32 hid双向通信例程源码-包括上位机
- 下一篇:Qt360 界面
相关资源
- Qt360 界面
- QtitanRibbon3.zip
- VS+QT环境下读取excel文件到QT界面,并
- 基于嵌入式QT界面GPS定位系统
- [嵌入式Linux项目实战开发]基于QT4.7.
- 物联网 智能家居 Qt界面
- 将QT界面做成dll在qt其他程序中调用
-
将xm
l内容显示Qt界面 - DS18B20测温及QT界面实现
- qt界面跳转切换
- 基于v4l的视频采集显示程序。外加Q
- QT计算器界面和计算器功能实现
- qt界面连接wifi
- myseria串口
- 基于Qt界面显示的温湿度检测
- Qt界面多线程opencv调用摄像头
- 智慧大棚QT界面设计
- Qt高仿网易云音乐界面源码
- 绘制魔法鱼儿
- 网易云音乐界面
- 模拟电量进度条
- Qt2048游戏
- Qt图片预览(图形列表)
- 各种chart图表
- 滑动显示图片
- Qt动态数据模拟曲线
- 英语词典界面
- Qt个性按钮
- Ping界面实现
- List树形列表界面
评论
共有 条评论