コード例 #1
0
int32 UInterpTrackMoveAxis::CreateNewKey(float KeyIn)
{
	check( FloatTrack.Points.Num() == LookupTrack.Points.Num() );
	
	int32 NewKeyIndex = Super::CreateNewKey( KeyIn );

	FName DefaultName(NAME_None);
	int32 NewLookupKeyIndex = LookupTrack.AddPoint( KeyIn, DefaultName );
	check( NewKeyIndex == NewLookupKeyIndex );

	return NewKeyIndex;
}
コード例 #2
0
void DlgCScenarioManager::OnCloneWithOutChild() 
{
	// TODO: Add your command handler code here
	HTREEITEM hItem = m_tree.GetSelectedItem();
	if(hItem == NULL)
		return;
	DWORD key = m_tree.GetItemData(hItem);
	Scenario *pScenario = m_manager.LookUp(key);
	Scenario *pClone = m_manager.CloneWithOutChild(pScenario,DefaultName(pScenario));
	if(pClone != NULL)
	{
		InitTree(pClone,m_tree.GetParentItem(hItem));
		InitPage();
		UpdateData(FALSE);
	}
}
コード例 #3
0
int32 UInterpTrackMove::CreateNewKey(float KeyIn)
{	
	check( PosTrack.Points.Num() == EulerTrack.Points.Num() );

	FVector NewKeyPos = PosTrack.Eval(KeyIn, FVector::ZeroVector);
	int32 NewPosIndex = PosTrack.AddPoint(KeyIn, NewKeyPos);
	PosTrack.AutoSetTangents(LinCurveTension);

	FVector NewKeyEuler = EulerTrack.Eval(KeyIn, FVector::ZeroVector);
	int32 NewEulerIndex = EulerTrack.AddPoint(KeyIn, NewKeyEuler);
	EulerTrack.AutoSetTangents(AngCurveTension);

	FName DefaultName(NAME_None);
	int32 NewLookupKeyIndex = LookupTrack.AddPoint(KeyIn, DefaultName);

	check((NewPosIndex == NewEulerIndex) && (NewEulerIndex == NewLookupKeyIndex));

	return NewPosIndex;
}
コード例 #4
0
Attributes::Attributes() : Name(DefaultName()), StackSize(DefaultStackSize()), Priority(DEFAULT_PRIORITY)
{
}
コード例 #5
0
ファイル: CDoc.cpp プロジェクト: diversys/pe
const char* CDoc::Name() const
{
	if (fDocIO)
		return fDocIO->Name();
	return DefaultName();
}