本文整理汇总了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;
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例8: InvalidateUI
void TriPatchObject::InvalidateUI()
{
if (pmapParam) pmapParam->Invalidate();
}
示例9: InvalidateUI
void TorusObject::InvalidateUI()
{
if (pmapParam) pmapParam->Invalidate();
}
示例10: InvalidateUI
void CExtObject::InvalidateUI()
{
if (pmapParam) pmapParam->Invalidate();
}
示例11: InvalidateUI
void SWrapObject::InvalidateUI()
{
if (pmapParam) pmapParam->Invalidate();
}
示例12: InvalidateUI
void PyramidObject::InvalidateUI()
{
if (pmapParam) pmapParam->Invalidate();
}
示例13: InvalidateUI
void ChCylinderObject::InvalidateUI()
{
if (pmapParam) pmapParam->Invalidate();
}
示例14: InvalidateUI
void ForceObject::InvalidateUI()
{
if (pmapParam) pmapParam->Invalidate();
}
示例15: InvalidateUI
void ScubaObject::InvalidateUI()
{
if (pmapParam) pmapParam->Invalidate();
}