Beispiel #1
0
/**********************
 * CLASS: SpatialType *
 **********************/
SpatialType::SpatialType(const QString &type_name, int srid, unsigned variation_id)
{
	QString name=type_name;

	if(name.endsWith(QString("ZM")))
	{
		variation_id=var_zm;
		name.remove(QString("ZM"));
	}
	else if(name.endsWith(QString("M")))
	{
		variation_id=var_m;
		name.remove(QString("M"));
	}
	else if(name.endsWith(QString("Z")))
	{
		variation_id=var_z;
		name.remove(QString("Z"));
	}

	BaseType::setType(BaseType::getType(name, offset, types_count),
					  offset, types_count);
	setVariation(variation_id);
	setSRID(srid);
}
Beispiel #2
0
/**********************
 * CLASS: SpatialType *
 **********************/
SpatialType::SpatialType(const QString &type_name, int srid, unsigned variation_id)
{
	BaseType::setType(BaseType::getType(type_name, offset, types_count),
										offset, types_count);
	setVariation(variation_id);
	setSRID(srid);
}
void PauseRecordingState::keypressed(int key){
    if(key >= '1' && key <= '9'){
        setVariation(key - '0');
    }
    switch (key) {
        case 's':
            app->dumpHeatmap();
            app->save();
            osc->sendAction("/end", 0);
        case 'c':
            app->setRotationRef();


            break;
        default:
            break;
    }
}
Beispiel #4
0
SpatialType::SpatialType(unsigned type_id, int srid, unsigned var_id)
{
	BaseType::setType(type_id,offset,types_count);
	setVariation(var_id);
	setSRID(srid);
}