Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATIParameterEditorFactory
Interface giving access to a factory for standard parameters editors.
Role: It is implemented as an extension of CATApplicationFrame and CATInteractiveApplication object (you can use either one of them depending on the context)
and is used to obtain a parameter editor.
It concerns only the following parameters: literal and volatile value.
| public virtual CreateParameterEditor( | const | iParent, |
| const | iName, | |
| iWithContextualMenu, | ||
| oParameterEditor) |
CATApplicationFrame *pApplicationFrame = CATApplicationFrame::GetFrame();
CATIParameterEditorFactory *poEditorFactory = NULL;
HRESULT hr = pApplicationFrame->QueryInterface(CATIParameterEditorFactory::ClassId(), (void**) &poEditorFactory);
if (SUCCEEDED(hr))
{
CATIParameterEditor *poParmEditor = NULL;
hr = poEditorFactory->CreateParameterEditor(iParent, iName, 1, poParmEditor);
if (SUCCEEDED(hr))
{
poParmEditor->SetParameter(iParameter);
CATDlgFrame *pFrame = poParmEditor->GetFrame();
pFrame->SetGridConstraints(...
...
poParmEditor->Release();
}
poEditorFactory->Release();
}
Copyright © 1999-2015, Dassault Systèmes. All rights reserved.