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; }
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; }
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); }
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; }
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; }
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; }
RefResult NormalMod::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; } return REF_SUCCEED; }
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); }
void TriPatchObject::InvalidateUI() { if (pmapParam) pmapParam->Invalidate(); }
void TorusObject::InvalidateUI() { if (pmapParam) pmapParam->Invalidate(); }
void CExtObject::InvalidateUI() { if (pmapParam) pmapParam->Invalidate(); }
void SWrapObject::InvalidateUI() { if (pmapParam) pmapParam->Invalidate(); }
void PyramidObject::InvalidateUI() { if (pmapParam) pmapParam->Invalidate(); }
void ChCylinderObject::InvalidateUI() { if (pmapParam) pmapParam->Invalidate(); }
void ForceObject::InvalidateUI() { if (pmapParam) pmapParam->Invalidate(); }
void ScubaObject::InvalidateUI() { if (pmapParam) pmapParam->Invalidate(); }
void InvalidateUI() { if (pmapParam) pmapParam->Invalidate(); }
void PrismObject::InvalidateUI() { if (pmapParam) pmapParam->Invalidate(); }
void PBombObject::InvalidateUI() { if (pmapParam) pmapParam->Invalidate(); }