本文整理汇总了C++中IParamMap2::SetParamBlock方法的典型用法代码示例。如果您正苦于以下问题:C++ IParamMap2::SetParamBlock方法的具体用法?C++ IParamMap2::SetParamBlock怎么用?C++ IParamMap2::SetParamBlock使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IParamMap2
的用法示例。
在下文中一共展示了IParamMap2::SetParamBlock方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
void plAnimStealthNode::SwitchDlg( plAnimStealthNode *toSwitchTo )
{
IParamMap2 *map = fParamBlock->GetMap();
fParamBlock->SetMap( nil );
toSwitchTo->fParamBlock->SetMap( map );
map->SetParamBlock( toSwitchTo->fParamBlock );
map->SetThing( (ReferenceTarget *)toSwitchTo );
map->Invalidate();
map->UpdateUI( 0 );
}
示例2: EndEditParams
void OrientConstRotation::EndEditParams( IObjParam *ip, ULONG flags,Animatable *next )
{
if(editCont!=NULL)
{
editCont = NULL;
IParamMap2* pmap = pblock->GetMap();
if (pmap != NULL)
{
if (next && next->ClassID() == ClassID() && ((OrientConstRotation*)next)->pblock&&((OrientConstRotation*)next)->GetLocked()==false)
{
pmap->SetParamBlock(((OrientConstRotation*)next)->pblock);
ip->ClearPickMode();
}
else
orientCD.EndEditParams(ip, this, flags | END_EDIT_REMOVEUI, next);
}
else
{
int index = aprops.FindProperty(PROPID_INTERPUI);
if (index>=0) {
InterpCtrlUI *ui = (InterpCtrlUI*)aprops[index];
if (ui->hParams) {
ip->UnRegisterDlgWnd(ui->hParams);
ip->DeleteRollupPage(ui->hParams);
}
index = aprops.FindProperty(PROPID_INTERPUI);
if (index>=0) {
delete aprops[index];
aprops.Delete(index,1);
}
}
}
ip->UnRegisterTimeChangeCallback(&orientConstTimeChangeCallback);
ip->ClearPickMode(); // need this, otherwise will crash on undo, while pickmode is active.
this->ip = NULL;
hWnd = NULL;
}
}