Exemplo n.º 1
0
void ProfilePlotView::setupDepthAxis()
{
	double step = tickStep(m_pltDepth->yAxis->range(), 4);

	static int extTicks = 1;
	QVector<double> ticks;
	int nTicks = (int)qCeil(m_pltDepth->yAxis->range().upper / step) + 1 + extTicks;
	for (int i = 0; i < nTicks; ++i)
		ticks << i * step;

	m_pltDepth->yAxis->setRange(0, (nTicks - 1) * step);
	m_pltDepth->yAxis->setTickVector(ticks);
}
Exemplo n.º 2
0
void ProfilePlotView::setupTimeAxis()
{
	double step = tickStep(m_pltDepth->xAxis->range());

	QVector<double> ticks;
	double curTick = 0;
	while (curTick <= m_pltDepth->xAxis->range().upper)
	{
		ticks << curTick;
		curTick += step;
	}

	m_pltDepth->xAxis->setTickVector(ticks);
}
Exemplo n.º 3
0
void ProfilePlotView::setupAuxAxis()
{
	QCPRange range = m_pltAux->yAxis->range();
	double step = tickStep(range, 2);
	double min = qFloor(range.lower / step) * step;
	double max = qCeil(range.upper / step) * step;

	QVector<double> ticks;
	ticks << min;
	ticks << (min + max) / 2;
	ticks << max;

	m_pltAux->yAxis->setRange(min, max);
	m_pltAux->yAxis->setTickVector(ticks);

	m_pltAux->xAxis->setRange(m_pltDepth->xAxis->range());
	m_pltAux->xAxis->setTickVector(m_pltDepth->xAxis->tickVector());
}
Exemplo n.º 4
0
void
CQSVG::
tickSlot()
{
  tickStep(1);
}
Exemplo n.º 5
0
void
CQSVG::
bstepTimer()
{
  tickStep(-1);
}
Exemplo n.º 6
0
void
CQSVG::
stepTimer()
{
  tickStep(1);
}