!
a148e300-5740-11d1-a904-080036aaa103.Location: FWOSPlugin
!
-! standard attribute drivers plugin
-!
-ad696000-5b34-11d1-b5ba-00a0c9064368.Location: TKStdSchema
-ad696001-5b34-11d1-b5ba-00a0c9064368.Location: TKStdSchema
-ad696002-5b34-11d1-b5ba-00a0c9064368.Location: TKStdSchema
-!
-! standard attribute drivers plugin
-!
-bd696000-5b34-11d1-b5ba-00a0c9064368.Location: TKStdLSchema
-bd696001-5b34-11d1-b5ba-00a0c9064368.Location: TKStdLSchema
-bd696002-5b34-11d1-b5ba-00a0c9064368.Location: TKStdLSchema
-!
! XmlOcaf Document Plugin
!
03a56820-8269-11d5-aab2-0050044b1af1.Location: TKXml
13a56835-8269-11d5-aab2-0050044b1af1.Location: TKBinL
13a56836-8269-11d5-aab2-0050044b1af1.Location: TKBinL
!
-! XCAF Document Plugin
-!
-ed8793f8-3142-11d4-b9b5-0060b0ee281b.Location: TKXCAFSchema
-ed8793f9-3142-11d4-b9b5-0060b0ee281b.Location: TKXCAFSchema
-ed8793fa-3142-11d4-b9b5-0060b0ee281b.Location: TKXCAFSchema
-!
! XmlXCAF Document Plugin
!
f78ff496-a779-11d5-aab4-0050044b1af1.Location: TKXmlXCAF
-formatlist:Ocaf-Sample|XmlOcaf|BinOcaf
-!
-! standard attributes
-!
-Ocaf-Sample.Description: OCAF sample Document Version 1.0
-Ocaf-Sample.FileExtension: sta
-Ocaf-Sample.StoragePlugin: ad696000-5b34-11d1-b5ba-00a0c9064368
-Ocaf-Sample.RetrievalPlugin: ad696001-5b34-11d1-b5ba-00a0c9064368
-Ocaf-SampleSchema: ad696002-5b34-11d1-b5ba-00a0c9064368
-!
-! standard attributes
-!
-MDTV-Standard.Description: Standard Document Version 1.0
-MDTV-Standard.FileExtension: std
-MDTV-Standard.StoragePlugin: ad696000-5b34-11d1-b5ba-00a0c9064368
-MDTV-Standard.RetrievalPlugin: ad696001-5b34-11d1-b5ba-00a0c9064368
-MDTV-StandardSchema: ad696002-5b34-11d1-b5ba-00a0c9064368
+formatlist:XmlOcaf|BinOcaf
!
! XmlOcaf format
!
Handle(TOcaf_Application) OcafApp = ((COcafApp*)AfxGetApp())->GetApp();
// Create a new Ocaf document
- OcafApp->NewDocument("MDTV-Standard",myOcafDoc);
+ OcafApp->NewDocument("BinOcaf",myOcafDoc);
TPrsStd_AISViewer::New(myOcafDoc->Main(),myViewer);
Handle(AIS_InteractiveContext) CTX;
Handle(TOcaf_Application) OcafApp= ((COcafApp*)AfxGetApp())->GetApp(); \n\
\n\
// Creating the new document \n\
- OcafApp->NewDocument(\"Ocaf-Sample\", myOcafDoc); \n\
+ OcafApp->NewDocument(\"BinOcaf\", myOcafDoc); \n\
\n\
// Creation of a new TPrsStd_AISViewer connected to the current V3d_Viewer\n\
TPrsStd_AISViewer::New(myOcafDoc->Main(),myViewer); \n\
CString Filter;
if (TPathName.SearchFromEnd(".xml") > 0){
- Filter = "OCAFSample(XML) (*.xml)|*.xml|OCAFSample(STD) (*.std)|*.std|OCAFSample(Binary) (*.cbf)|*.cbf||";
- }
- else if (TPathName.SearchFromEnd(".cbf") > 0){
- Filter = "OCAFSample(Binary) (*.cbf)|*.cbf|OCAFSample(STD) (*.std)|*.std|OCAFSample(XML) (*.xml)|*.xml||";
- }
- else{
- Filter = "OCAFSample(STD) (*.std)|*.std|OCAFSample(XML) (*.xml)|*.xml|OCAFSample(Binary) (*.cbf)|*.cbf||";
+ Filter = "OCAFSample(XML) (*.xml)|*.xml|OCAFSample(Binary) (*.cbf)|*.cbf||";
+ } else {
+ Filter = "OCAFSample(Binary) (*.cbf)|*.cbf|OCAFSample(XML) (*.xml)|*.xml||";
}
CFileDialog dlg(FALSE,
- L"std",
+ L"cbf",
GetTitle(),
OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
Filter,
// The document must be saved in binary format
myOcafDoc->ChangeStorageFormat("BinOcaf");
}
- else
- {
- // The document must be saved in standard format
- myOcafDoc->ChangeStorageFormat("MDTV-Standard");
- }
try
{
// The document must be saved in binary format
myOcafDoc->ChangeStorageFormat("BinOcaf");
}
- else
- {
- // The document must be saved in standard format
- myOcafDoc->ChangeStorageFormat("MDTV-Standard");
- }
try
{
}
CFileDialog dlg(FALSE,
- L"std",
+ L"cbf",
GetTitle(),
OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
- L"OCAFSample(STD) (*.std)|*.std|OCAFSample(XML) (*.xml)|*.xml|OCAFSample(Binary) (*.cbf)|*.cbf||",
+ L"OCAFSample(Binary) (*.cbf)|*.cbf|OCAFSample(XML) (*.xml)|*.xml||",
NULL );
if (dlg.DoModal() != IDOK) return;
// The document must be saved in binary format
myOcafDoc->ChangeStorageFormat("BinOcaf");
}
- else
- {
- // The document must be saved in standard format
- myOcafDoc->ChangeStorageFormat("Ocaf-Sample");
- }
try
{