本文整理汇总了C++中WaveChart类的典型用法代码示例。如果您正苦于以下问题:C++ WaveChart类的具体用法?C++ WaveChart怎么用?C++ WaveChart使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了WaveChart类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: main
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QMainWindow window;
QChart *chart = new QChart();
WaveChart *waveChart = new WaveChart(chart,&window);
waveChart->setViewport( new QOpenGLWidget() );
waveChart->setRenderHint(QPainter::Antialiasing);
chart->setAnimationOptions(QChart::AllAnimations);
chart->setTitle("This is wave generator.");
window.setCentralWidget(waveChart);
window.resize(400, 300);
window.show();
return a.exec();
}
开发者ID:,项目名称:,代码行数:19,代码来源:
示例2: setEngineType
void setEngineType(int value) {
engineConfiguration->engineType = (engine_type_e) value;
resetConfigurationExt(&logger, (engine_type_e) value PASS_ENGINE_PARAMETER);
#if EFI_WAVE_CHART || defined(__DOXYGEN__)
if (engine->isTestMode)
waveChart.resetWaveChart();
#endif
#if EFI_INTERNAL_FLASH
writeToFlashNow();
// scheduleReset();
#endif /* EFI_PROD_CODE */
incrementGlobalConfigurationVersion();
doPrintConfiguration(engine);
}
开发者ID:jon-weisz,项目名称:rusefi,代码行数:15,代码来源:settings.cpp
示例3: THD_FUNCTION
static THD_FUNCTION(waThread, arg) {
(void)arg;
chRegSetThreadName("Wave Analyzer");
#if EFI_ENGINE_SNIFFER
while (true) {
chThdSleepSeconds(CHART_RESET_DELAY);
waveChart.publishIfFull();
}
#endif /* EFI_ENGINE_SNIFFER */
}
开发者ID:rusefi,项目名称:rusefi,代码行数:11,代码来源:wave_analyzer.cpp
示例4: waThread
static msg_t waThread(void *arg) {
(void)arg;
chRegSetThreadName("Wave Analyzer");
#if EFI_WAVE_CHART
while (TRUE) {
chThdSleepSeconds(CHART_RESET_DELAY);
waveChart.publishChartIfFull();
}
#endif /* EFI_WAVE_CHART */
#if defined __GNUC__
return -1;
#endif
}
开发者ID:ngocphu811,项目名称:rusefi,代码行数:14,代码来源:wave_analyzer.cpp
示例5: setTriggerEmulatorRPM
void setTriggerEmulatorRPM(int rpm DECLARE_ENGINE_PARAMETER_SUFFIX) {
engineConfiguration->bc.triggerSimulatorFrequency = rpm;
/**
* All we need to do here is to change the periodMs
* togglePwmState() would see that the periodMs has changed and act accordingly
*/
if (rpm == 0) {
triggerSignal.setFrequency(NAN);
} else {
float rpmM = getRpmMultiplier(engineConfiguration->operationMode);
float rPerSecond = rpm * rpmM / 60.0; // per minute converted to per second
triggerSignal.setFrequency(rPerSecond);
}
#if EFI_ENGINE_SNIFFER
if (engine->isTestMode)
waveChart.reset();
#endif /* EFI_ENGINE_SNIFFER */
scheduleMsg(logger, "Emulating position sensor(s). RPM=%d", rpm);
}
开发者ID:jharvey,项目名称:rusefi,代码行数:20,代码来源:trigger_emulator_algo.cpp
示例6: resetNow
static void resetNow(void) {
skipUntilEngineCycle = engine->rpmCalculator.getRevolutionCounter() + 3;
waveChart.reset();
}
开发者ID:rusefi,项目名称:rusefi,代码行数:4,代码来源:engine_sniffer.cpp
示例7: printPendingMessages
void printPendingMessages(void) {
updateDevConsoleState(engine);
waveChart.publishIfFull();
}
开发者ID:glocklueng,项目名称:rusefi,代码行数:4,代码来源:rusEfiFunctionalTest.cpp
注:本文中的WaveChart类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论