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; }
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); } }
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; }
Attributes::Attributes() : Name(DefaultName()), StackSize(DefaultStackSize()), Priority(DEFAULT_PRIORITY) { }
const char* CDoc::Name() const { if (fDocIO) return fDocIO->Name(); return DefaultName(); }