All Frameworks Class Hierarchy This Framework Previous Next Indexes
System.IUnknown | +---System.IDispatch | +---System.CATBaseUnknown | +---CATIMmiPartInfrastructureSettingAtt
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 HRESULT GetAlsoDeleteExclusiveParents( | CATBoolean& | oDeleted) = 0 |
public virtual HRESULT GetAlsoDeleteExclusiveParentsInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetAxisSystemSize( | unsigned int& | oSize) = 0 |
public virtual HRESULT GetAxisSystemSizeInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetBodiesUnderOperationsInTree( | CATBoolean& | oNodeDisplayed) = 0 |
public virtual HRESULT GetBodiesUnderOperationsInTreeInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetChangeInBufferizedParametersEvent( | CATCallbackEvent& | oEvent) = 0 |
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 HRESULT GetColorSynchronizationMode( | CATBoolean& | oColorSynchronizationMode) = 0 |
public virtual HRESULT GetColorSynchronizationModeInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetConstraintsInGeometry( | CATBoolean& | oDisplayed) = 0 |
public virtual HRESULT GetConstraintsInGeometryInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetConstraintsNodeInTree( | CATBoolean& | oNodeDisplayed) = 0 |
public virtual HRESULT GetConstraintsNodeInTreeInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetContextualFeaturesSelectableAtCreation( | CATBoolean& | oContextualFeaturesSelectable) = 0 |
public virtual HRESULT GetContextualFeaturesSelectableAtCreationInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetDeleteWarningBox( | CATBoolean& | oDisplayed) = 0 |
public virtual HRESULT GetDeleteWarningBoxInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetDisplayGeometryAfterCurrent( | CATBoolean& | oDisplayed) = 0 |
public virtual HRESULT GetDisplayGeometryAfterCurrentInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetExpandSketchBasedFeaturesNodeAtCreation( | CATBoolean& | oNodeExpanded) = 0 |
public virtual HRESULT GetExpandSketchBasedFeaturesNodeAtCreationInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetExternalReferencesAsVisible( | CATBoolean& | oVisible) = 0 |
public virtual HRESULT GetExternalReferencesAsVisibleInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetExternalReferencesAssemblyRootContext( | CATBoolean& | oRootContextUsed) = 0 |
public virtual HRESULT GetExternalReferencesAssemblyRootContextInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetExternalReferencesNodeInTree( | CATBoolean& | oNodeDisplayed) = 0 |
public virtual HRESULT GetExternalReferencesNodeInTreeInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetHybridDesignMode( | CATBoolean& | oHybridDesign) = 0 |
public virtual HRESULT GetHybridDesignModeInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetKnowledgeInHybridDesignMode( | CATBoolean& | oKnowledgeInHybridDesign) = 0 |
public virtual HRESULT GetKnowledgeInHybridDesignModeInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetLinkedExternalReferences( | CATBoolean& | oWithLink) = 0 |
public virtual HRESULT GetLinkedExternalReferencesInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetLinkedExternalReferencesOnlyOnPublication( | CATBoolean& | oOnlyForPublishedElements) = 0 |
public virtual HRESULT GetLinkedExternalReferencesOnlyOnPublicationInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetLinkedExternalReferencesWarningAtCreation( | CATBoolean& | oWarningAtCreation) = 0 |
public virtual HRESULT GetLinkedExternalReferencesWarningAtCreationInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetNamingMode( | CatPartElementsNamingMode& | oNamingMode) = 0 |
public virtual HRESULT GetNamingModeInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetNewWith3DSupport( | CATBoolean& | o3DSupportCreated) = 0 |
public virtual HRESULT GetNewWith3DSupportInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetNewWithAxisSystem( | CATBoolean& | oAxisSystemCreated) = 0 |
public virtual HRESULT GetNewWithAxisSystemInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetNewWithGS( | CATBoolean& | oGSCreated) = 0 |
public virtual HRESULT GetNewWithGSInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetNewWithOGS( | CATBoolean& | oOGSCreated) = 0 |
public virtual HRESULT GetNewWithOGSInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetNewWithPanel( | CATBoolean& | oNewPartPanelDisplayed) = 0 |
public virtual HRESULT GetNewWithPanelInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetOnlyCurrentOperatedSolidSetInGeometry( | CATBoolean& | oDisplayed) = 0 |
public virtual HRESULT GetOnlyCurrentOperatedSolidSetInGeometryInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetOnlyCurrentSolidSetInGeometry( | CATBoolean& | oDisplayed) = 0 |
public virtual HRESULT GetOnlyCurrentSolidSetInGeometryInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetParametersNodeInTree( | CATBoolean& | oNodeDisplayed) = 0 |
public virtual HRESULT GetParametersNodeInTreeInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetPublishTopologicalElements( | CATBoolean& | oTopologyAllowed) = 0 |
public virtual HRESULT GetPublishTopologicalElementsInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetRelationsNodeInTree( | CATBoolean& | oNodeDisplayed) = 0 |
public virtual HRESULT GetRelationsNodeInTreeInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetReplaceOnlyAfterCurrent( | CATBoolean& | oOnlyAfterCurrent) = 0 |
public virtual HRESULT GetReplaceOnlyAfterCurrentInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetSurfaceElementsLocation( | CatPartSurfaceElementsLocation& | oLocation) = 0 |
public virtual HRESULT GetSurfaceElementsLocationInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetTrueColorMode( | CATBoolean& | oColorInheritanceMode) = 0 |
public virtual HRESULT GetTrueColorModeInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetUpdateElementsRefreshed( | CATBoolean& | oElementsRefreshed) = 0 |
public virtual HRESULT GetUpdateElementsRefreshedInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetUpdateLinkedExternalReferences( | CATBoolean& | oExternalReferencesUpdated) = 0 |
public virtual HRESULT GetUpdateLinkedExternalReferencesInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetUpdateMode( | CatPartUpdateMode& | oUpdateMode) = 0 |
public virtual HRESULT GetUpdateModeInfo( | CATSettingInfo* | oInfo)= 0 |
public virtual HRESULT GetUpdateStoppedOnError( | CATBoolean& | oStoppedOnError) = 0 |
public virtual HRESULT GetUpdateStoppedOnErrorInfo( | CATSettingInfo* | oInfo)= 0 |
Copyright © 2003, Dassault Systèmes. All rights reserved.