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 CATIMmiPartInfrastructurePreferencesAtt
Interface to retrieve application preferences related to Part Infrastructure.
Role: This interface describes all the application preferences related
to Part infrastructure.
Preferences are not displayed in Tools/Options and are not administered. They
are stored in .CATPreferences files.
Here under is an example on how to retrieve a pointer to this interface:
#include "CATInstantiateComponent.h" //System
#include "CATIMmiPartInfrastructurePreferencesAtt.h" //MecModInterfaces
{
...
CATIMmiPartInfrastructurePreferencesAtt *pIPreferencesController=NULL;
CATCallbackEvent event;
if(SUCCEEDED(::CATInstantiateComponent("CATMmuPartInfrastructurePreferencesCtrl",
IID_CATIMmiPartInfrastructurePreferencesAtt,(void**)&pIPreferencesController)))
{
//insert your code here
pIPreferencesController->Release(); pIPreferencesController=NULL;
}
...
}
Values are saved into the PartInfrastructure.CATPreferences file at the end of
the application session.
NoMode if it is set to TemporaryMode.
NoMode if it is set to TemporaryMode.
NoMode if it is set to TemporaryMode.
NoMode if it is set to TemporaryMode.
NoMode if it is set to TemporaryMode.
| public virtual GetDatumModeEvent( | oEvent) |
| public virtual GetDatumMode( | oMode) |
NoMode, when created components are procedural (or associative). This is the classic instantiation mode.PermanentMode, for components to keep being created in a datum mode (i.e. non associative),TemporaryMode, for a component to be created in a datum mode. A call to | public virtual GetGridFilterModeEvent( | oEvent) |
| public virtual GetGridFilterMode( | oMode) |
NoMode, when the mode is not active,PermanentMode, when the mode is permanently active,TemporaryMode, when the mode is temporarily active.
A call to | public virtual GetHistoricalGraphDisplayStateEvent( | oEvent) |
| public virtual GetHistoricalGraphDisplayState( | oOffOrOn) |
TRUEif the viewer is visible,FALSE if the viewer is invisible.| public virtual GetImportRepRepModeEvent( | oEvent) |
#include "CATInstantiateComponent.h" //System
#include "CATIMmiPartInfrastructurePreferencesAtt.h" //MecModInterfaces
{ //Subscription
CATIMmiPartInfrastructurePreferencesAtt *pIPreferencesCtrl=NULL;
CATCallbackEvent eventName=""; //CATCallbackEvent = const char*
if(SUCCEEDED(::CATInstantiateComponent("CATMmuPartInfrastructurePreferencesCtrl",
IID_CATIMmiPartInfrastructurePreferencesAtt,(void**)&pIPreferencesCtrl)))
{
if(SUCCEEDED(pIPreferencesCtrl->GetPreferenceNameEvent(eventName)))
_callbackId=AddCallback(this, pIPreferencesCtrl, eventName,
(CATSubscriberMethod)&MyClass::OnPreferenceChange,NULL);
pIPreferencesCtrl->Release(); pIPreferencesCtrl=NULL;
}
}
{ //Unsubscription
CATIMmiPartInfrastructurePreferencesAtt *pIPreferencesCtrl=NULL;
if(_callbackId &&
SUCCEEDED(::CATInstantiateComponent("CATMmuPartInfrastructurePreferencesCtrl", IID_CATIMmiPartInfrastructurePreferencesAtt, (void**)&pIPreferencesCtrl)))
{
RemoveCallback(this, pIPreferencesCtrl, _callback);
pIPreferencesCtrl->Release(); pIPreferencesCtrl=NULL;
}
}
| public virtual GetImportRepRepMode( | oMode) |
| public virtual GetInsertModeEvent( | oEvent) |
| public virtual GetInsertMode( | oMode) |
NoMode, when created components are inserted chronologically,PermanentMode, when created components are inserted logically,TemporaryMode, when created components are inserted logically.
A call to | public virtual GetIntersectionC1EdgeModeEvent( | oEvent) |
| public virtual GetIntersectionC1EdgeMode( | oMode) |
NoMode, when the mode is not active,PermanentMode, when the mode is permanently active,TemporaryMode, when the mode is temporarily active.
A call to | public virtual GetIntersectionEdgeModeEvent( | oEvent) |
| public virtual GetIntersectionEdgeMode( | oMode) |
NoMode, when the mode is not active,PermanentMode, when the mode is permanently active,TemporaryMode, when the mode is temporarily active.
A call to | public virtual GetScanGraphPanelModeEvent( | oEvent) |
| public virtual GetScanGraphPanelMode( | oVisible) |
TRUEif the viewer is visible when launching the Scan command,FALSE if the viewer is not visible.| public virtual GetSketchAnalysisDisplayStateEvent( | oEvent) |
| public virtual GetSketchAnalysisDisplayState( | oOffOrOn) |
TRUEif the viewer is visible,FALSE if the viewer is invisible.| public virtual GetSocietyIdentifierEvent( | oEvent) |
| public virtual GetSocietyIdentifier( | oSocietyId) |
| public virtual GetUnderAxisSystemsNodeModeEvent( | oEvent) |
| public virtual GetUnderAxisSystemsNodeMode( | oMode) |
TRUE if axis systems are created under the "Axis System" tree node.
FALSE if axis systems are created under the node of the current CATIGSMTool.
| public virtual SendHistoricalGraphDisplayStateEvent( | ) |
| public virtual SendSketchAnalysisDisplayStateEvent( | ) |
| public virtual SetDatumMode( | iMode, | ||
| iSendEvent | =TRUE) |
NoMode, PermanentMode, and
TemporaryMode.
TemporaryMode mode is set, a call to TRUE so that the event defined in FALSE for no event to be sent.| public virtual SetGridFilterMode( | iMode, | ||
| iSendEvent | =TRUE) |
NoMode, PermanentMode, and
TemporaryMode.
TemporaryMode mode is set, a call to TRUE so that the event defined in FALSE for no event to be sent.| public virtual SetHistoricalGraphDisplayState( | iOffOrOn, | ||
| iSendEvent | =TRUE) |
FALSE to hide it,TRUE to display it.TRUE so that the event defined in FALSE for no event to be sent.| public virtual SetImportRepRepMode( | iMode, | ||
| iSendEvent | =TRUE) |
| public virtual SetInsertMode( | iMode, | ||
| iSendEvent | =TRUE) |
NoMode, PermanentMode, and
TemporaryMode.
TemporaryMode mode is set, a call to TRUE so that the event defined in FALSE for no event to be sent.| public virtual SetIntersectionC1EdgeMode( | iMode, | ||
| iSendEvent | =TRUE) |
NoMode, PermanentMode, and
TemporaryMode.
TemporaryMode mode is set, a call to TRUE so that the event defined in FALSE for no event to be sent.| public virtual SetIntersectionEdgeMode( | iMode, | ||
| iSendEvent | =TRUE) |
NoMode, PermanentMode, and
TemporaryMode.
TemporaryMode mode is set, a call to TRUE so that the event defined in FALSE for no event to be sent.| public virtual SetScanGraphPanelMode( | iVisible, | ||
| iSendEvent | =TRUE) |
TRUEif the viewer is to be visible when launching the Scan command,FALSE if the viewer is to not be displayed.TRUE so that the event defined in FALSE for no event to be sent.| public virtual SetSketchAnalysisDisplayState( | iOffOrOn, | ||
| iSendEvent | =TRUE) |
FALSE to hide it,TRUE to display it.TRUE so that the event defined in FALSE for no event to be sent.| public virtual SetSocietyIdentifier( | const | iSocietyId, | |
| iSendEvent | =TRUE) |
| public virtual SetUnderAxisSystemsNodeMode( | iMode, | ||
| iSendEvent | =TRUE) |
TRUE if axis systems are created under the "Axis System" tree node.FALSE if axis systems are created under the node of the current CATIGSMTool.TRUE so that the event defined in FALSE for no event to be sent.| public virtual ValidateDatumMode( | iSendEvent | =TRUE) |
NoMode if it is set to TemporaryMode.
TemporaryMode, a call to this function
will set it to NoMode, and send the event if asked to.
NoMode.
| public virtual ValidateGridFilterMode( | iSendEvent | =TRUE) |
NoMode if it is set to TemporaryMode.
TemporaryMode, a call to this function
will set it to NoMode, and send the event if asked to.
NoMode.
| public virtual ValidateInsertMode( | iSendEvent | =TRUE) |
NoMode if it is set to TemporaryMode.
TemporaryMode, a call to this function
will set it to NoMode, and send the event if asked to.
NoMode.
| public virtual ValidateIntersectionC1EdgeMode( | iSendEvent | =TRUE) |
NoMode if it is set to TemporaryMode.
TemporaryMode, a call to this function
will set it to NoMode, and send the event if asked to.
NoMode.
| public virtual ValidateIntersectionEdgeMode( | iSendEvent | =TRUE) |
NoMode if it is set to TemporaryMode.
TemporaryMode, a call to this function
will set it to NoMode, and send the event if asked to.
NoMode.
enum PreferenceMode {
NoMode,
PermanentMode,
TemporaryMode
}
List of types for modes.
Copyright © 2003, Dassault Systèmes. All rights reserved.