コード例 #1
0
bool CHorseRaceMainDlg::RefreshAllData()
{
	RefreshQData();

	RefreshTime();
	return true;
}
コード例 #2
0
// -----------------------------------------------------------------------------
// CIAUpdateBGControllerFile::ExternalizeL
//
// -----------------------------------------------------------------------------
//
void CIAUpdateBGControllerFile::ExternalizeL( RWriteStream& aStream )
    {
    // If you make changes here, 
    // remember to update InternalizeL accordingly!!!

    aStream.WriteInt32L( KVersion );
	
    TInt64 refreshTime( RefreshTime().Int64() );
    aStream << refreshTime;

    TInt language( Language() );
    aStream.WriteInt32L( language );
    }
コード例 #3
0
ThreeDWidget::ThreeDWidget(QWidget *parent, int frameRate, int frameWidth, int frameHeight, int numCamras)
	: QGLWidget(QGLFormat(QGL::DoubleBuffer|QGL::DepthBuffer), parent), _floorRows(20), _floorColumns(20), _squareSize(1.0),
	_rotationX(0.0), _rotationY(0.0)
{
	ui.setupUi(this);

	_frameHeight = frameHeight;
	_frameWidth = frameWidth;
	_frameRate = frameRate;
	_numCameras = numCamras;
	_eye.x = 0.0;
	_eye.y = 5.0;
	_eye.z = -5.0;

	_center.x = 0.0;
	_center.y = 0.0;
	_center.z = 0.0;

	_up.x = 0.0;
	_up.y = 1.0;
	_up.z = 0.0;
	//_cameraCenters = new Vector3f[_numCameras];

	QString windowTitle(tr("3D重建窗口"));
	setWindowTitle(windowTitle);

	_calibrated = false;

	//--- When clicked, get focus to receive keyboard events
	setFocusPolicy(Qt::ClickFocus);

	//Initialize mouse flag
	this->_firstPosition = true;

	_captureThread = new CaptureController(this, _frameRate, _frameWidth, _frameHeight, _numCameras);
	connect(_captureThread, SIGNAL(finished()), _captureThread, SLOT(deleteLater()));
	connect(_captureThread, SIGNAL(signalRefreshTime(QTime)), this, SLOT(RefreshTime(QTime)));
	connect(_captureThread, SIGNAL(signalPointCloud(vector<POI>)), this, SLOT(SetPointCloud(vector<POI>)));
	connect(_captureThread, SIGNAL(signalStaticCalibrationReady()), this, SLOT(slotStaticCalibrationSuccess()));
	connect(_captureThread, SIGNAL(signalFloorCalibrationReady()), this, SLOT(slotFloorCalibrationSuccess()));
	connect(_captureThread, SIGNAL(signalMarkerLoss()), this, SLOT(slotMarkerLoss()));

	connect(_captureThread, SIGNAL(signalCameraCenters(Vector3f*)), this, SLOT(slotCameraCenters(Vector3f*)));
	_captureThread->start();

}
コード例 #4
0
void XMsgClient::OnTick()
{
    //LOG(INFO) << __FUNCTION__ << " was called";
    RefreshTime();
}