当前位置: 首页>>代码示例>>C++>>正文


C++ IParamMap2::Invalidate方法代码示例

本文整理汇总了C++中IParamMap2::Invalidate方法的典型用法代码示例。如果您正苦于以下问题:C++ IParamMap2::Invalidate方法的具体用法?C++ IParamMap2::Invalidate怎么用?C++ IParamMap2::Invalidate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IParamMap2的用法示例。


在下文中一共展示了IParamMap2::Invalidate方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: UpdatePViewUI

void PFTestGoToRotation::UpdatePViewUI(ParamID updateID) const
{
	for(int i=0; i<NumPViewParamMaps(); i++) {
		IParamMap2* map = GetPViewParamMap(i);
		map->Invalidate(updateID);
		Interval currentTimeInterval;
		currentTimeInterval.SetInstant(GetCOREInterface()->GetTime());
		map->Validity() = currentTimeInterval;
	}
}
开发者ID:artemeliy,项目名称:inf4715,代码行数:10,代码来源:PFTestGoToRotation.cpp

示例2: UpdatePViewUI

//+--------------------------------------------------------------------------+
//|							From ReferenceMaker								 |
//+--------------------------------------------------------------------------+
void PFOperatorForceSpaceWarp::UpdatePViewUI(IParamBlock2* pblock, ParamID updateID)
{
	for(int i=0; i<NumPViewParamMaps(); i++) {
		IParamMap2* map = GetPViewParamMap(i);
		if (pblock != map->GetParamBlock()) continue;
		map->Invalidate(updateID);
		Interval currentTimeInterval;
		currentTimeInterval.SetInstant(GetCOREInterface()->GetTime());
		map->Validity() = currentTimeInterval;
	}
}
开发者ID:artemeliy,项目名称:inf4715,代码行数:14,代码来源:PFOperatorForceSpaceWarp.cpp

示例3:

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 );
}
开发者ID:,项目名称:,代码行数:12,代码来源:

示例4: NotifyRefChanged

RefResult HLSLShaderMaterial::NotifyRefChanged(const Interval& changeInt, RefTargetHandle hTarget, 
   PartID& partID, RefMessage message, BOOL propagate ) 
{
	switch (message) {
		case REFMSG_CHANGE:
			m_iValid.SetEmpty();
			if (hTarget == m_pblock)
			{
				ParamID changing_param = m_pblock->LastNotifyParamID();
				hlslshadermaterial_param_blk.InvalidateUI(changing_param);
				IParamMap2* pMap = m_pblock->GetMap();
				if(pMap != NULL)
					pMap->Invalidate();
			}
			break;

		}
	return REF_SUCCEED;
}
开发者ID:ZuqiuMao,项目名称:HLSLMaterial,代码行数:19,代码来源:HLSLShaderMaterial.cpp

示例5: Pick

BOOL PickForceMode::Pick(IObjParam* /*ip*/,ViewExp* vpt)
{
	if ( ! vpt || ! vpt->IsAlive())
	{	
		// why are we here?
		DbgAssert(!_T("Doing Pick() on invalid viewport!"));
		return FALSE;
	}

	INode* node = vpt->GetClosestHit();
	if (node)
	{
		dlg->cont->force_pb->Append(jig_force_node, 1, &node);		
		dlg->UpdateForceList();

		IParamMap2* pmap;
		pmap = dlg->cont->force_pb->GetMap();
		if (pmap) pmap->Invalidate(jig_force_node);

		dlg->ip->RedrawViews(dlg->ip->GetTime());
	}
	return FALSE;
}
开发者ID:artemeliy,项目名称:inf4715,代码行数:23,代码来源:pickmodes.cpp

示例6: InvalidateUI

void bhkListObject::InvalidateUI() 
{
   param_blk.InvalidateUI(pblock2->LastNotifyParamID());
   if (pmapParam) pmapParam->Invalidate();
}
开发者ID:Doommarine23,项目名称:max_nif_plugin,代码行数:5,代码来源:bhkListObj.cpp

示例7: InvalidateUI

void bhkCapsuleObject::InvalidateUI() 
{
   if (pmapParam) pmapParam->Invalidate();
}
开发者ID:Anchoys1,项目名称:max_nif_plugin,代码行数:4,代码来源:bhkCapsuleObj.cpp

示例8: InvalidateUI

void bhkSphereObject::InvalidateUI() 
{
   if (pmapParam) pmapParam->Invalidate();
}
开发者ID:blabbatheorange,项目名称:Nif-Plugin,代码行数:4,代码来源:bhkSphereObj.cpp

示例9: NotifyRefChanged

RefResult BlurMgr::NotifyRefChanged(Interval changeInt, RefTargetHandle hTarget, PartID& partID, RefMessage message)
{
	ParamID prmID = -1;

	switch (message) {
		case REFMSG_CHANGE:
			if (hTarget == pbMaster)
			{
				pbdMaster.InvalidateUI(pbMaster->LastNotifyParamID());
				return REF_SUCCEED;
			}

			// blur types
			if (hTarget == pbBlurData)
			{
				prmID = pbBlurData->LastNotifyParamID();
				switch (prmID)
				{
					case prmUnifPixRad:
					case prmUnifAlpha:
						m_blurs[idBlurUnif]->notifyPrmChanged(prmID);
						break;
					case prmDirUPixRad:
					case prmDirVPixRad:
					case prmDirUTrail:
					case prmDirVTrail:
					case prmDirRot:
					case prmDirAlpha:
						m_blurs[idBlurDir]->notifyPrmChanged(prmID);
						break;
					case prmRadialPixRad:
					case prmRadialTrail:
					case prmRadialAlpha:
					case prmRadialXOrig:
					case prmRadialYOrig:
					case prmRadialUseNode:
					case prmRadialNode:
						m_blurs[idBlurRadial]->notifyPrmChanged(prmID);
						break;
				}
				IParamMap2 *map = pbBlurData->GetMap();
				if (map)
					map->Invalidate(prmID);
				return REF_SUCCEED;
			}

			// selection types
			if (hTarget == pbSelData)
			{
				prmID = pbSelData->LastNotifyParamID();
				switch (prmID)
				{
					case prmImageActive:
					case prmImageBrighten:
					case prmImageBlend:
						m_sels[idSelImage]->notifyPrmChanged(prmID);
						break;
					case prmIBackActive:
					case prmIBackBrighten:
					case prmIBackBlend:
					case prmIBackFeathRad:
						m_sels[idSelIBack]->notifyPrmChanged(prmID);
						break;
					case prmLumActive:
					case prmLumBrighten:
					case prmLumBlend:
					case prmLumMin:
					case prmLumMax:
					case prmLumFeathRad:
						m_sels[idSelLum]->notifyPrmChanged(prmID);
						break;
					case prmMaskActive:
					case prmMaskMap:
					case prmMaskChannel:
					case prmMaskBrighten:
					case prmMaskBlend:
					case prmMaskMin:
					case prmMaskMax:
					case prmMaskFeathRad:
						m_sels[idSelMask]->notifyPrmChanged(prmID);
						break;
					case prmObjIdsActive:
					case prmObjIdsIds:
					case prmObjIdsBrighten:
					case prmObjIdsBlend:
					case prmObjIdsFeathRad:
					case prmObjIdsLumMin:
					case prmObjIdsLumMax:
						m_sels[idSelObjIds]->notifyPrmChanged(prmID);
						break;
					case prmMatIdsActive:
					case prmMatIdsIds:
					case prmMatIdsBrighten:
					case prmMatIdsBlend:
					case prmMatIdsFeathRad:
					case prmMatIdsLumMin:
					case prmMatIdsLumMax:
						m_sels[idSelMatIds]->notifyPrmChanged(prmID);
						break;
				}
//.........这里部分代码省略.........
开发者ID:artemeliy,项目名称:inf4715,代码行数:101,代码来源:blurmgr.cpp


注:本文中的IParamMap2::Invalidate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。