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


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

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


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

示例1: NotifyRefChanged

RefResult AFRMod::NotifyRefChanged(
		Interval changeInt,RefTargetHandle hTarget, 
		PartID& partID, RefMessage message)
	{
	switch (message) {
		case REFMSG_CHANGE:
			if (editMod==this && pmapParam) pmapParam->Invalidate();
			break;

		case REFMSG_GET_PARAM_DIM: {
			GetParamDim *gpd = (GetParamDim*)partID;
			switch (gpd->index) {
				case PB_FALLOFF: gpd->dim = stdWorldDim; break;
				case PB_PINCH:   
				case PB_BUBBLE:	 gpd->dim = stdNormalizedDim; break;
				}
			return REF_STOP; 
			}

		case REFMSG_GET_PARAM_NAME: {
			GetParamName *gpn = (GetParamName*)partID;			
			switch (gpn->index) {
				case PB_FALLOFF: gpn->name = GetString(IDS_AFR_FALLOFF); break;
				case PB_PINCH:   gpn->name = GetString(IDS_AFR_PINCH); break;
				case PB_BUBBLE:	 gpn->name = GetString(IDS_AFR_BUBBLE); break;
				}
			return REF_STOP; 
			}
		}
	return REF_SUCCEED;
	}
开发者ID:2asoft,项目名称:xray,代码行数:31,代码来源:afregion.cpp

示例2: NotifyRefChanged

RefResult SpherifyMod::NotifyRefChanged(Interval changeInt,
	RefTargetHandle hTarget, PartID& partID, RefMessage message) {

	switch (message) {
		case REFMSG_CHANGE:
			if (pmap && pmap->GetParamBlock()==pblock) {
				pmap->Invalidate();
				}
			break;

		case REFMSG_GET_PARAM_DIM: { 
			GetParamDim *gpd = (GetParamDim*)partID;
			switch (gpd->index) {
				case PB_PERCENT:
					gpd->dim = defaultDim;
					break;
			};
			return REF_STOP; 
		}

		case REFMSG_GET_PARAM_NAME: {
			GetParamName *gpn = (GetParamName*)partID;
			switch (gpn->index) {
				case PB_PERCENT:
					gpn->name = PERCENT_PARAM_NAME;
					break;
			};
			return REF_STOP; 
		}
	}
	return REF_SUCCEED;
}
开发者ID:2asoft,项目名称:xray,代码行数:32,代码来源:spherify.cpp

示例3: NotifyRefChanged

RefResult ExtrudeMod::NotifyRefChanged(
		Interval changeInt, 
		RefTargetHandle hTarget, 
   		PartID& partID, 
   		RefMessage message ) 
   	{
	switch (message) {
		case REFMSG_CHANGE:
			if ((editMod==this) && pmapParam) pmapParam->Invalidate();
			break;

		case REFMSG_GET_PARAM_DIM: {
			GetParamDim *gpd = (GetParamDim*)partID;
			gpd->dim = GetParameterDim(gpd->index);			
			return REF_HALT; 
			}

		case REFMSG_GET_PARAM_NAME: {
			GetParamName *gpn = (GetParamName*)partID;
			gpn->name = GetParameterName(gpn->index);			
			return REF_HALT; 
			}
		}
	return(REF_SUCCEED);
	}
开发者ID:artemeliy,项目名称:inf4715,代码行数:25,代码来源:extrude.cpp

示例4: NotifyRefChanged

RefResult MatMod::NotifyRefChanged(
      const Interval& changeInt, 
      RefTargetHandle hTarget, 
         PartID& partID, 
		 RefMessage message, 
		 BOOL propagate) 
      {
   switch (message) {
      case REFMSG_CHANGE:
         if (pmapParam && pmapParam->GetParamBlock()==pblock) {
            pmapParam->Invalidate();
            }
         break;

      case REFMSG_GET_PARAM_DIM: {
         GetParamDim *gpd = (GetParamDim*)partID;
         switch (gpd->index) {            
            case 0:
            default: gpd->dim = defaultDim; break;
            }        
         return REF_HALT; 
         }

      case REFMSG_GET_PARAM_NAME: {
         GetParamName *gpn = (GetParamName*)partID;
         switch (gpn->index) {            
            case PB_MATID: gpn->name = GetString(IDS_RB_MATERIALID); break;
            default:    gpn->name = TSTR(_T("")); break;
            }
         return REF_HALT; 
         }
      }
   return REF_SUCCEED;
   }
开发者ID:innovatelogic,项目名称:ilogic-vm,代码行数:34,代码来源:surfmod.cpp

示例5: NotifyRefChanged

RefResult FExtrudeMod::NotifyRefChanged( 
		Interval changeInt,RefTargetHandle hTarget, 
		PartID& partID, RefMessage message)
	{
	switch (message) {
		case REFMSG_CHANGE:
			if (editMod==this && pmapParam) pmapParam->Invalidate();
			break;

		case REFMSG_GET_PARAM_DIM: {
			GetParamDim *gpd = (GetParamDim*)partID;
			switch (gpd->index) {
				case PB_AMOUNT:  gpd->dim = stdWorldDim;   break;
				case PB_SCALE:   gpd->dim = defaultDim; break;				
				}
			return REF_HALT; 
			}

		case REFMSG_GET_PARAM_NAME: {
			GetParamName *gpn = (GetParamName*)partID;			
			switch (gpn->index) {
				case PB_AMOUNT:  gpn->name = GetString(IDS_EXT_AMOUNT); break;
				case PB_SCALE:   gpn->name = GetString(IDS_EXT_SCALE);  break;
				}
			return REF_HALT; 
			}
		}
	return REF_SUCCEED;
	}
开发者ID:artemeliy,项目名称:inf4715,代码行数:29,代码来源:fextrude.cpp

示例6: NotifyRefChanged

RefResult OptMod::NotifyRefChanged(
		Interval changeInt, 
		RefTargetHandle hTarget, 
   		PartID& partID, 
   		RefMessage message) 
   	{
	switch (message) {
		case REFMSG_CHANGE: {			
			if (pmapParam && pmapParam->GetParamBlock()==pblock) {
				pmapParam->Invalidate();
				}			
			int man = FALSE;
			if (pblock) pblock->GetValue(PB_MANUPDATE,0,man,FOREVER);
			if (man) return REF_STOP;
			break;
			}

		case REFMSG_GET_PARAM_DIM: {
			GetParamDim *gpd = (GetParamDim*)partID;
			switch (gpd->index) {
				case PB_FACETHRESH1:
				case PB_FACETHRESH2:
				case PB_EDGETHRESH1:
				case PB_EDGETHRESH2:	gpd->dim = stdAngleDim; break;				
				case PB_MAXEDGE1:
				case PB_MAXEDGE2:		gpd->dim = stdWorldDim; break;
				default:				gpd->dim = defaultDim; break;
				}			
			return REF_STOP; 
			}

		case REFMSG_GET_PARAM_NAME: {
			GetParamName *gpn = (GetParamName*)partID;
			switch (gpn->index) {
				case PB_FACETHRESH1:	gpn->name = GetString(IDS_RB_FACETHRESHL1); break;
				case PB_FACETHRESH2:	gpn->name = GetString(IDS_RB_FACETHRESHL2); break;
				case PB_EDGETHRESH1:	gpn->name = GetString(IDS_RB_EDGETHRESHL1); break;
				case PB_EDGETHRESH2:	gpn->name = GetString(IDS_RB_EDGETHRESHL2); break;
				case PB_BIAS1:			gpn->name = GetString(IDS_RB_BIASL1); break;
				case PB_BIAS2:			gpn->name = GetString(IDS_RB_BIASL2); break;
				case PB_MAXEDGE1:		gpn->name = GetString(IDS_RB_MAXEDGE1); break;
				case PB_MAXEDGE2:		gpn->name = GetString(IDS_RB_MAXEDGE2); break;
				default:				gpn->name = TSTR(_T("")); break;
				}
			return REF_STOP; 
			}
		}
	return REF_SUCCEED;
	}
开发者ID:2asoft,项目名称:xray,代码行数:49,代码来源:optmod.cpp

示例7: NotifyRefChanged

RefResult RelaxMod::NotifyRefChanged(const Interval& changeInt, 
		RefTargetHandle hTarget, PartID& partID, 
		RefMessage message, 
		BOOL propagate ) 
   	{
	GetParamDim *gpd;
	GetParamName *gpn;
	switch (message) {
		case REFMSG_CHANGE:
			if (editMod==this && pmapParam) pmapParam->Invalidate();
			break;

		case REFMSG_GET_PARAM_DIM:
			gpd = (GetParamDim*)partID;			
			gpd->dim = defaultDim;
			return REF_HALT; 

		case REFMSG_GET_PARAM_NAME:
			gpn = (GetParamName*)partID;
			gpn->name = GetParameterName(gpn->index);			
			return REF_HALT; 
	}
	return(REF_SUCCEED);
}
开发者ID:innovatelogic,项目名称:ilogic-vm,代码行数:24,代码来源:relax.cpp

示例8: InvalidateUI

void TriPatchObject::InvalidateUI() 
	{
	if (pmapParam) pmapParam->Invalidate();
	}
开发者ID:DimondTheCat,项目名称:xray,代码行数:4,代码来源:tripatch.cpp

示例9: InvalidateUI

void TorusObject::InvalidateUI() 
	{
	if (pmapParam) pmapParam->Invalidate();
	}
开发者ID:innovatelogic,项目名称:ilogic-vm,代码行数:4,代码来源:torus.cpp

示例10: InvalidateUI

void CExtObject::InvalidateUI() 
	{
	if (pmapParam) pmapParam->Invalidate();
	}
开发者ID:innovatelogic,项目名称:ilogic-vm,代码行数:4,代码来源:cext.cpp

示例11: InvalidateUI

void SWrapObject::InvalidateUI() 
	{
	if (pmapParam) pmapParam->Invalidate();
	}
开发者ID:2asoft,项目名称:xray,代码行数:4,代码来源:surfwrap.cpp

示例12: InvalidateUI

void PyramidObject::InvalidateUI() 
	{
	if (pmapParam) pmapParam->Invalidate();
	}
开发者ID:innovatelogic,项目名称:ilogic-vm,代码行数:4,代码来源:pyramid.cpp

示例13: InvalidateUI

void ChCylinderObject::InvalidateUI() 
	{
	if (pmapParam) pmapParam->Invalidate();
	}
开发者ID:DimondTheCat,项目名称:xray,代码行数:4,代码来源:chcyl.cpp

示例14: InvalidateUI

void ForceObject::InvalidateUI()
{
    if (pmapParam) pmapParam->Invalidate();
}
开发者ID:innovatelogic,项目名称:ilogic-vm,代码行数:4,代码来源:force.cpp

示例15: InvalidateUI

void ScubaObject::InvalidateUI() 
	{
	if (pmapParam) pmapParam->Invalidate();
	}
开发者ID:artemeliy,项目名称:inf4715,代码行数:4,代码来源:scuba.cpp


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