SUITransformationPtr SUITransformationManager::CreateTransformation( SPString path )
{
	SUITransformationPtr transformation = new SUITransformation();

	if (transformation->Load(path))
	{
		return transformation;
	}

	return NULL;
}
SUITransformationPtr SUITransformationManager::GetTransformation( SPString name )
{
	if (transformationFileNames.IsSet(name))
	{
		return new SUITransformation(transformationFileNames[name]);
	}
	else
	{
		SUITransformationPtr transformation = new SUITransformation();

		transformation->Load(name);
		return transformation;
	}

	return NULL;
}
Beispiel #3
0
bool SUIManager::SwitchToScreen( SPString name , SUITransformationPtr trans)
{	
	if (dispalyStack.size() == 0 || !screenMap.IsSet(name))
	{
		return false;
	}

	if (dispalyStack.back() == screenMap[name])
	{
		return true;
	}

	SUIScreenPtr top = dispalyStack.back();
	dispalyStack.pop_back();

	FocusScreen(name);

	dispalyStack.push_back(top);

	top->SetTargetScreen(screenMap[name]);
	top->SetTransformation(trans);
	trans->Play();

	return true;
}
SUITransformationPtr SUITransformationManager::CreateTransformation( SPString path )
{
	SUITransformationPtr transformation = new SUITransformation();
	transformation->Load(path);
	return transformation;
}