All Frameworks Class Hierarchy This Framework Indexes
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATIMmiPartInfrastructureSettingAtt
Interface to retrieve application parameters related to Part Infrastructure.
Role:This interface describes all the application parameters related
to Part infrastructure, as displayed in Tools/Options.
Here under is an example on how to retrieve a pointer to this interface:
#include "CATInstantiateComponent.h" //System
#include "CATIMmiPartInfrastructureSettingAtt.h" //MecModInterfaces
{
...
CATIMmiPartInfrastructureSettingAtt *pIGetController=NULL;
if(SUCCEEDED(::CATInstantiateComponent("CATMmuPartInfrastructureSettingCtrl", IID_CATIMmiPartInfrastructureSettingAtt,(void**)&pIGetController)))
{
//insert your code here
pIGetController->Release(); pIGetController=NULL;
}
...
}
| public virtual GetAlsoDeleteExclusiveParentsInfo( | oInfo) |
| public virtual GetAlsoDeleteExclusiveParents( | oDeleted) |
| public virtual GetAxisSystemSizeInfo( | oInfo) |
| public virtual GetAxisSystemSize( | oSize) |
| public virtual GetBodiesUnderOperationsInTreeInfo( | oInfo) |
| public virtual GetBodiesUnderOperationsInTree( | oNodeDisplayed) |
| public virtual GetChangeInBufferizedParametersEvent( | oEvent) |
Param_Updated warns when a Setxyz method is called,SettingCtrl_Updated warns whenever one of the
CATSysSettingController.Commit,
CATSysSettingController.Rollback ,
CATSysSettingController.SaveRepository or
CATSysSettingController.ResetToAdminValues methods is called.
#include "CATSysMacros.h" //System
#include "CATInstantiateComponent.h" //System
#include "CATMmiPartInfrastructureNotification.h" //MecModInterfaces
#include "CATIMmiPartInfrastructureSettingAtt.h" //MecModInterfaces
{ //Subscription
CATIMmiPartInfrastructureSettingAtt *pIGetController=NULL;
CATCallbackEvent event;
if(SUCCEEDED(::CATInstantiateComponent("CATMmuPartInfrastructureSettingCtrl", IID_CATIMmiPartInfrastructureSettingAtt,(void**)&pIGetController)) &&
SUCCEEDED(pIGetController->GetChangeInBufferizedParametersEvent(event)))
_callbackId=AddCallback(this, pIGetController, event, CATSubscriberMethod)&MyClass::ValuesChangedCB, NULL);
CATSysReleasePtr(pIGetController);
}
{ //Unsubscription
CATIMmiPartInfrastructureSettingAtt *pISettingCtrl=NULL;
if(_callbackId &&
SUCCEEDED(::CATInstantiateComponent("CATMmuPartInfrastructureSettingCtrl", IID_CATIMmiPartInfrastructureSettingAtt,(void**)&pISettingCtrl)))
{
RemoveCallback(this, pISettingCtrl, _callbackId);
pISettingCtrl->Release(); pISettingCtrl=NULL;
}
}
void MyClass::ValuesChangedCB(CATCallbackEvent iEvt,void * iSrv,
CATNotification * iNotif,
CATSubscriberData iData,CATCallback iCB)
{
if(!iNotif || !iNotif->IsAKindOf(CATMmiPartInfrastructureNotification::ClassName()))
return;
//Let us find out which is the impacted parameter.
CATListOfCATString parametersList=((CATMmiPartInfrastructureNotification*)iNotif)->_parametersList;
if(parametersList.Locate("Parameter_Name_1") ||
parametersList.Locate("Parameter_Name_2") ||
... ||
parametersList.Locate("Parameter_Name_N") )
{
//Insert the dedicated code here.
}
}
Now here is a coding sample concerning synchroneous event sent whenever a parameter's value
is changed.
#include "CATInstantiateComponent.h" //System
#include "CATSettingInfo.h" //System
#include "CATSysSettingController.h" //System
#include "CATSysSettingCtrlNotif.h" //System
#include "CATIMmiPartInfrastructureSettingAtt.h" //MecModInterfaces
{ //Subscription
CATIMmiPartInfrastructureSettingAtt *pISettingCtrl=NULL;
if(SUCCEEDED(::CATInstantiateComponent("CATMmuPartInfrastructureSettingCtrl",
IID_CATIMmiPartInfrastructureSettingAtt,
(void**)&pISettingCtrl)))
{
_callbackId= AddCallback(this, pISettingCtrl, CATSysSettingController::Param_Updated(),
(CATSubscriberMethod)&MyClass::OnSettingsChange, NULL);
pISettingCtrl->Release(); pISettingCtrl=NULL;
}
}
{ //Unsubscription
CATIMmiPartInfrastructureSettingAtt *pISettingCtrl=NULL;
if(_callbackId &&
SUCCEEDED(::CATInstantiateComponent("CATMmuPartInfrastructureSettingCtrl", IID_CATIMmiPartInfrastructureSettingAtt, (void**)&pISettingCtrl)))
{
RemoveCallback(this, pISettingCtrl, _callbackId);
pISettingCtrl->Release(); pISettingCtrl=NULL;
}
}
void MyClass::OnSettingsChange(CATCallbackEvent iEvt,void * iSrv,
CATNotification * iNotif,
CATSubscriberData iData,CATCallback iCB)
{
if(!iNotif || !iNotif->IsAKindOf(CATSysSettingCtrlNotif::ClassName()))
return;
CATIMmiPartInfrastructureSettingAtt* pISettingCtrl=NULL;
if(SUCCEEDED(::CATInstantiateComponent("CATMmuPartInfrastructureSettingCtrl", IID_CATIMmiPartInfrastructureSettingAtt, (void**)&pISettingCtrl)))
{
CATSettingInfo settingInfo, *notifSettingInfo=NULL;
//Let us find out for which parameter the notification is sent.
HRESULT rc=pISettingCtrl->GetParameterNameInfo(&settingInfo);
pISettingCtrl->Release(); pISettingCtrl=NULL;
if(FAILED(rc) ||
((notifSettingInfo=((CATSysSettingCtrlNotif*)iNotif)->_Info) &&
!(settingInfo==*notifSettingInfo)))
return;
//Insert the dedicated code here.
}
}
| public virtual GetColorSynchronizationModeInfo( | oInfo) |
| public virtual GetColorSynchronizationMode( | oColorSynchronizationMode) |
| public virtual GetConstraintsInGeometryInfo( | oInfo) |
| public virtual GetConstraintsInGeometry( | oDisplayed) |
| public virtual GetConstraintsNodeInTreeInfo( | oInfo) |
| public virtual GetConstraintsNodeInTree( | oNodeDisplayed) |
| public virtual GetContextualFeaturesSelectableAtCreationInfo( | oInfo) |
| public virtual GetContextualFeaturesSelectableAtCreation( | oContextualFeaturesSelectable) |
| public virtual GetDeleteWarningBoxInfo( | oInfo) |
| public virtual GetDeleteWarningBox( | oDisplayed) |
| public virtual GetDisplayGeometryAfterCurrentInfo( | oInfo) |
| public virtual GetDisplayGeometryAfterCurrent( | oDisplayed) |
| public virtual GetExpandSketchBasedFeaturesNodeAtCreationInfo( | oInfo) |
| public virtual GetExpandSketchBasedFeaturesNodeAtCreation( | oNodeExpanded) |
| public virtual GetExternalReferencesAsVisibleInfo( | oInfo) |
| public virtual GetExternalReferencesAsVisible( | oVisible) |
| public virtual GetExternalReferencesAssemblyRootContextInfo( | oInfo) |
| public virtual GetExternalReferencesAssemblyRootContext( | oRootContextUsed) |
| public virtual GetExternalReferencesNodeInTreeInfo( | oInfo) |
| public virtual GetExternalReferencesNodeInTree( | oNodeDisplayed) |
| public virtual GetHybridDesignModeInfo( | oInfo) |
| public virtual GetHybridDesignMode( | oHybridDesign) |
| public virtual GetKnowledgeInHybridDesignModeInfo( | oInfo) |
| public virtual GetKnowledgeInHybridDesignMode( | oKnowledgeInHybridDesign) |
| public virtual GetLinkedExternalReferencesInfo( | oInfo) |
| public virtual GetLinkedExternalReferencesOnlyOnPublicationInfo( | oInfo) |
| public virtual GetLinkedExternalReferencesOnlyOnPublication( | oOnlyForPublishedElements) |
| public virtual GetLinkedExternalReferencesWarningAtCreationInfo( | oInfo) |
| public virtual GetLinkedExternalReferencesWarningAtCreation( | oWarningAtCreation) |
| public virtual GetLinkedExternalReferences( | oWithLink) |
| public virtual GetNamingModeInfo( | oInfo) |
| public virtual GetNamingMode( | oNamingMode) |
| public virtual GetNewWith3DSupportInfo( | oInfo) |
| public virtual GetNewWith3DSupport( | o3DSupportCreated) |
| public virtual GetNewWithAxisSystemInfo( | oInfo) |
| public virtual GetNewWithAxisSystem( | oAxisSystemCreated) |
| public virtual GetNewWithGSInfo( | oInfo) |
| public virtual GetNewWithGS( | oGSCreated) |
| public virtual GetNewWithOGSInfo( | oInfo) |
| public virtual GetNewWithOGS( | oOGSCreated) |
| public virtual GetNewWithPanelInfo( | oInfo) |
| public virtual GetNewWithPanel( | oNewPartPanelDisplayed) |
| public virtual GetOnlyCurrentOperatedSolidSetInGeometryInfo( | oInfo) |
| public virtual GetOnlyCurrentOperatedSolidSetInGeometry( | oDisplayed) |
| public virtual GetOnlyCurrentSolidSetInGeometryInfo( | oInfo) |
| public virtual GetOnlyCurrentSolidSetInGeometry( | oDisplayed) |
| public virtual GetParametersNodeInTreeInfo( | oInfo) |
| public virtual GetParametersNodeInTree( | oNodeDisplayed) |
| public virtual GetPublishTopologicalElementsInfo( | oInfo) |
| public virtual GetPublishTopologicalElements( | oTopologyAllowed) |
| public virtual GetRelationsNodeInTreeInfo( | oInfo) |
| public virtual GetRelationsNodeInTree( | oNodeDisplayed) |
| public virtual GetReplaceOnlyAfterCurrentInfo( | oInfo) |
| public virtual GetReplaceOnlyAfterCurrent( | oOnlyAfterCurrent) |
| public virtual GetSurfaceElementsLocationInfo( | oInfo) |
| public virtual GetSurfaceElementsLocation( | oLocation) |
| public virtual GetTrueColorModeInfo( | oInfo) |
| public virtual GetTrueColorMode( | oColorInheritanceMode) |
| public virtual GetUpdateElementsRefreshedInfo( | oInfo) |
| public virtual GetUpdateElementsRefreshed( | oElementsRefreshed) |
| public virtual GetUpdateLinkedExternalReferencesInfo( | oInfo) |
| public virtual GetUpdateLinkedExternalReferences( | oExternalReferencesUpdated) |
| public virtual GetUpdateModeInfo( | oInfo) |
| public virtual GetUpdateMode( | oUpdateMode) |
| public virtual GetUpdateStoppedOnErrorInfo( | oInfo) |
| public virtual GetUpdateStoppedOnError( | oStoppedOnError) |
Copyright © 2003, Dassault Systèmes. All rights reserved.