mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-03 14:10:33 +03:00
Integration of OCCT 6.5.0 from SVN
This commit is contained in:
65
src/MXCAFDoc/MXCAFDoc.cdl
Executable file
65
src/MXCAFDoc/MXCAFDoc.cdl
Executable file
@@ -0,0 +1,65 @@
|
||||
-- File: MXCAFDoc.cdl
|
||||
-- Created: Tue Aug 15 15:33:38 2000
|
||||
-- Author: data exchange team
|
||||
-- <det@strelox.nnov.matra-dtv.fr>
|
||||
---Copyright: Matra Datavision 2000
|
||||
|
||||
|
||||
package MXCAFDoc
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses
|
||||
TopLoc,
|
||||
PTopLoc,
|
||||
TDF,
|
||||
PDF,
|
||||
MDF,
|
||||
MDataStd,
|
||||
CDM
|
||||
|
||||
is
|
||||
class DocumentToolRetrievalDriver;
|
||||
class DocumentToolStorageDriver;
|
||||
class ColorToolRetrievalDriver;
|
||||
class ColorToolStorageDriver;
|
||||
class ShapeToolRetrievalDriver;
|
||||
class ShapeToolStorageDriver;
|
||||
|
||||
class LayerToolRetrievalDriver;
|
||||
class LayerToolStorageDriver;
|
||||
|
||||
class LocationStorageDriver;
|
||||
class LocationRetrievalDriver;
|
||||
class ColorStorageDriver;
|
||||
class ColorRetrievalDriver;
|
||||
class VolumeStorageDriver;
|
||||
class VolumeRetrievalDriver;
|
||||
class AreaStorageDriver;
|
||||
class AreaRetrievalDriver;
|
||||
class CentroidStorageDriver;
|
||||
class CentroidRetrievalDriver;
|
||||
|
||||
class GraphNodeStorageDriver;
|
||||
class GraphNodeRetrievalDriver;
|
||||
|
||||
class DatumStorageDriver;
|
||||
class DatumRetrievalDriver;
|
||||
class DimTolStorageDriver;
|
||||
class DimTolRetrievalDriver;
|
||||
class DimTolToolRetrievalDriver;
|
||||
class DimTolToolStorageDriver;
|
||||
class MaterialStorageDriver;
|
||||
class MaterialRetrievalDriver;
|
||||
class MaterialToolRetrievalDriver;
|
||||
class MaterialToolStorageDriver;
|
||||
|
||||
AddStorageDrivers(aDriverSeq : ASDriverHSequence from MDF; theMsgDriver : MessageDriver from CDM);
|
||||
---Purpose: Adds the attribute storage drivers to <aDriverSeq>.
|
||||
|
||||
|
||||
AddRetrievalDrivers(aDriverSeq : ARDriverHSequence from MDF; theMsgDriver : MessageDriver from CDM);
|
||||
---Purpose: Adds the attribute retrieval drivers to <aDriverSeq>.
|
||||
|
||||
|
||||
end MXCAFDoc;
|
92
src/MXCAFDoc/MXCAFDoc.cxx
Executable file
92
src/MXCAFDoc/MXCAFDoc.cxx
Executable file
@@ -0,0 +1,92 @@
|
||||
// File: MXCAFDoc.cxx
|
||||
// Created: Wed Aug 16 10:03:44 2000
|
||||
// Author: data exchange team
|
||||
// <det@strelox.nnov.matra-dtv.fr>
|
||||
|
||||
|
||||
#include <MXCAFDoc.ixx>
|
||||
#include <MXCAFDoc_ColorToolRetrievalDriver.hxx>
|
||||
#include <MXCAFDoc_ColorToolStorageDriver.hxx>
|
||||
#include <MXCAFDoc_DocumentToolRetrievalDriver.hxx>
|
||||
#include <MXCAFDoc_DocumentToolStorageDriver.hxx>
|
||||
#include <MXCAFDoc_LocationRetrievalDriver.hxx>
|
||||
#include <MXCAFDoc_LocationStorageDriver.hxx>
|
||||
#include <MXCAFDoc_ColorRetrievalDriver.hxx>
|
||||
#include <MXCAFDoc_ColorStorageDriver.hxx>
|
||||
#include <MXCAFDoc_ShapeToolRetrievalDriver.hxx>
|
||||
#include <MXCAFDoc_ShapeToolStorageDriver.hxx>
|
||||
#include <MXCAFDoc_VolumeStorageDriver.hxx>
|
||||
#include <MXCAFDoc_AreaStorageDriver.hxx>
|
||||
#include <MXCAFDoc_CentroidStorageDriver.hxx>
|
||||
#include <MXCAFDoc_VolumeRetrievalDriver.hxx>
|
||||
#include <MXCAFDoc_AreaRetrievalDriver.hxx>
|
||||
#include <MXCAFDoc_CentroidRetrievalDriver.hxx>
|
||||
#include <MXCAFDoc_GraphNodeStorageDriver.hxx>
|
||||
#include <MXCAFDoc_GraphNodeRetrievalDriver.hxx>
|
||||
#include <MXCAFDoc_LayerToolRetrievalDriver.hxx>
|
||||
#include <MXCAFDoc_LayerToolStorageDriver.hxx>
|
||||
#include <MXCAFDoc_DatumRetrievalDriver.hxx>
|
||||
#include <MXCAFDoc_DatumStorageDriver.hxx>
|
||||
#include <MXCAFDoc_DimTolRetrievalDriver.hxx>
|
||||
#include <MXCAFDoc_DimTolStorageDriver.hxx>
|
||||
#include <MXCAFDoc_DimTolToolRetrievalDriver.hxx>
|
||||
#include <MXCAFDoc_DimTolToolStorageDriver.hxx>
|
||||
#include <MXCAFDoc_MaterialRetrievalDriver.hxx>
|
||||
#include <MXCAFDoc_MaterialStorageDriver.hxx>
|
||||
#include <MXCAFDoc_MaterialToolRetrievalDriver.hxx>
|
||||
#include <MXCAFDoc_MaterialToolStorageDriver.hxx>
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : AddStorageDriver
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc::AddStorageDrivers
|
||||
(const Handle(MDF_ASDriverHSequence)& aDriverSeq,
|
||||
const Handle(CDM_MessageDriver)& theMsgDriver)
|
||||
{
|
||||
aDriverSeq->Append(new MXCAFDoc_LocationStorageDriver (theMsgDriver));
|
||||
aDriverSeq->Append(new MXCAFDoc_ColorStorageDriver (theMsgDriver));
|
||||
aDriverSeq->Append(new MXCAFDoc_VolumeStorageDriver (theMsgDriver));
|
||||
aDriverSeq->Append(new MXCAFDoc_AreaStorageDriver (theMsgDriver));
|
||||
aDriverSeq->Append(new MXCAFDoc_CentroidStorageDriver (theMsgDriver));
|
||||
aDriverSeq->Append(new MXCAFDoc_ColorToolStorageDriver (theMsgDriver));
|
||||
aDriverSeq->Append(new MXCAFDoc_DocumentToolStorageDriver(theMsgDriver));
|
||||
aDriverSeq->Append(new MXCAFDoc_ShapeToolStorageDriver (theMsgDriver));
|
||||
|
||||
aDriverSeq->Append(new MXCAFDoc_LayerToolStorageDriver (theMsgDriver));
|
||||
aDriverSeq->Append(new MXCAFDoc_GraphNodeStorageDriver (theMsgDriver));
|
||||
aDriverSeq->Append(new MXCAFDoc_DatumStorageDriver (theMsgDriver));
|
||||
aDriverSeq->Append(new MXCAFDoc_DimTolStorageDriver (theMsgDriver));
|
||||
aDriverSeq->Append(new MXCAFDoc_DimTolToolStorageDriver (theMsgDriver));
|
||||
aDriverSeq->Append(new MXCAFDoc_MaterialStorageDriver (theMsgDriver));
|
||||
aDriverSeq->Append(new MXCAFDoc_MaterialToolStorageDriver(theMsgDriver));
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : AddRetrievalDriver
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc::AddRetrievalDrivers
|
||||
(const Handle(MDF_ARDriverHSequence)& aDriverSeq,
|
||||
const Handle(CDM_MessageDriver)& theMsgDriver)
|
||||
{
|
||||
aDriverSeq->Append(new MXCAFDoc_LocationRetrievalDriver (theMsgDriver));
|
||||
aDriverSeq->Append(new MXCAFDoc_ColorRetrievalDriver (theMsgDriver));
|
||||
aDriverSeq->Append(new MXCAFDoc_VolumeRetrievalDriver (theMsgDriver));
|
||||
aDriverSeq->Append(new MXCAFDoc_AreaRetrievalDriver (theMsgDriver));
|
||||
aDriverSeq->Append(new MXCAFDoc_CentroidRetrievalDriver (theMsgDriver));
|
||||
aDriverSeq->Append(new MXCAFDoc_ColorToolRetrievalDriver (theMsgDriver));
|
||||
aDriverSeq->Append(new MXCAFDoc_DocumentToolRetrievalDriver(theMsgDriver));
|
||||
aDriverSeq->Append(new MXCAFDoc_ShapeToolRetrievalDriver (theMsgDriver));
|
||||
|
||||
aDriverSeq->Append(new MXCAFDoc_LayerToolRetrievalDriver (theMsgDriver));
|
||||
aDriverSeq->Append(new MXCAFDoc_GraphNodeRetrievalDriver (theMsgDriver));
|
||||
aDriverSeq->Append(new MXCAFDoc_DatumRetrievalDriver (theMsgDriver));
|
||||
aDriverSeq->Append(new MXCAFDoc_DimTolRetrievalDriver (theMsgDriver));
|
||||
aDriverSeq->Append(new MXCAFDoc_DimTolToolRetrievalDriver (theMsgDriver));
|
||||
aDriverSeq->Append(new MXCAFDoc_MaterialRetrievalDriver (theMsgDriver));
|
||||
aDriverSeq->Append(new MXCAFDoc_MaterialToolRetrievalDriver(theMsgDriver));
|
||||
}
|
37
src/MXCAFDoc/MXCAFDoc_AreaRetrievalDriver.cdl
Executable file
37
src/MXCAFDoc/MXCAFDoc_AreaRetrievalDriver.cdl
Executable file
@@ -0,0 +1,37 @@
|
||||
-- File: MXCAFDoc_AreaRetrievalDriver.cdl
|
||||
-- Created: Fri Sep 8 18:26:44 2000
|
||||
-- Author: data exchange team
|
||||
-- <det@nordox.nnov.matra-dtv.fr>
|
||||
---Copyright: Matra Datavision 2000
|
||||
|
||||
|
||||
class AreaRetrievalDriver from MXCAFDoc inherits ARDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
uses
|
||||
RRelocationTable from MDF,
|
||||
Attribute from PDF,
|
||||
Attribute from TDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
-- Create
|
||||
-- returns mutable AreaRetrievalDriver from MXCAFDoc;
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable AreaRetrievalDriver from MXCAFDoc;
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
---Purpose: Returns the type: XCAFDoc_Area
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from TDF;
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from PDF;
|
||||
Target : mutable Attribute from TDF;
|
||||
RelocTable : RRelocationTable from MDF);
|
||||
|
||||
end AreaRetrievalDriver from MXCAFDoc;
|
65
src/MXCAFDoc/MXCAFDoc_AreaRetrievalDriver.cxx
Executable file
65
src/MXCAFDoc/MXCAFDoc_AreaRetrievalDriver.cxx
Executable file
@@ -0,0 +1,65 @@
|
||||
// File: MXCAFDoc_AreaRetrievalDriver.cxx
|
||||
// Created: Fri Sep 8 18:31:04 2000
|
||||
// Author: data exchange team
|
||||
// <det@nordox.nnov.matra-dtv.fr>
|
||||
|
||||
|
||||
#include <MXCAFDoc_AreaRetrievalDriver.ixx>
|
||||
#include <PXCAFDoc_Area.hxx>
|
||||
#include <XCAFDoc_Area.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : MCAFDoc_AreaRetrievalDriver
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_AreaRetrievalDriver::MXCAFDoc_AreaRetrievalDriver(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ARDriver (theMsgDriver)
|
||||
{}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_AreaRetrievalDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_AreaRetrievalDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(PXCAFDoc_Area);
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TDF_Attribute) MXCAFDoc_AreaRetrievalDriver::NewEmpty() const
|
||||
{
|
||||
return new XCAFDoc_Area();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_AreaRetrievalDriver::Paste(const Handle(PDF_Attribute)& Source,
|
||||
const Handle(TDF_Attribute)& Target,
|
||||
const Handle(MDF_RRelocationTable)& RelocTable) const
|
||||
{
|
||||
Handle(PXCAFDoc_Area) S = Handle(PXCAFDoc_Area)::DownCast (Source);
|
||||
Handle(XCAFDoc_Area) T = Handle(XCAFDoc_Area)::DownCast (Target);
|
||||
|
||||
#ifdef DEB
|
||||
PTColStd_PersistentTransientMap& PTMap =
|
||||
#endif
|
||||
RelocTable->OtherTable();
|
||||
T->Set(S->Get());
|
||||
}
|
38
src/MXCAFDoc/MXCAFDoc_AreaStorageDriver.cdl
Executable file
38
src/MXCAFDoc/MXCAFDoc_AreaStorageDriver.cdl
Executable file
@@ -0,0 +1,38 @@
|
||||
-- File: MXCAFDoc_AreaStorageDriver.cdl
|
||||
-- Created: Fri Sep 8 18:36:59 2000
|
||||
-- Author: data exchange team
|
||||
-- <det@nordox.nnov.matra-dtv.fr>
|
||||
---Copyright: Matra Datavision 2000
|
||||
|
||||
|
||||
class AreaStorageDriver from MXCAFDoc inherits ASDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
uses
|
||||
SRelocationTable from MDF,
|
||||
Attribute from TDF,
|
||||
Attribute from PDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
|
||||
-- Create
|
||||
-- returns mutable AreaStorageDriver from MXCAFDoc;
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable AreaStorageDriver from MXCAFDoc;
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
---Purpose: Returns the type: XCAFDoc_Area.
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from PDF;
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from TDF;
|
||||
Target : mutable Attribute from PDF;
|
||||
RelocTable : SRelocationTable from MDF);
|
||||
|
||||
end AreaStorageDriver;
|
65
src/MXCAFDoc/MXCAFDoc_AreaStorageDriver.cxx
Executable file
65
src/MXCAFDoc/MXCAFDoc_AreaStorageDriver.cxx
Executable file
@@ -0,0 +1,65 @@
|
||||
// File: MXCAFDoc_AreaStorageDriver.cxx
|
||||
// Created: Fri Sep 8 18:37:02 2000
|
||||
// Author: data exchange team
|
||||
// <det@nordox.nnov.matra-dtv.fr>
|
||||
|
||||
|
||||
#include <MXCAFDoc_AreaStorageDriver.ixx>
|
||||
#include <XCAFDoc_Area.hxx>
|
||||
#include <PXCAFDoc_Area.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : MXCAFDoc_AreaStorageDriver
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_AreaStorageDriver::MXCAFDoc_AreaStorageDriver(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ASDriver (theMsgDriver)
|
||||
{}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_AreaStorageDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_AreaStorageDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(XCAFDoc_Area);
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(PDF_Attribute) MXCAFDoc_AreaStorageDriver::NewEmpty() const
|
||||
{
|
||||
return new PXCAFDoc_Area();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_AreaStorageDriver::Paste(const Handle(TDF_Attribute)& Source,
|
||||
const Handle(PDF_Attribute)& Target,
|
||||
const Handle(MDF_SRelocationTable)& RelocTable) const
|
||||
{
|
||||
Handle(XCAFDoc_Area) S = Handle(XCAFDoc_Area)::DownCast (Source);
|
||||
Handle(PXCAFDoc_Area) T = Handle(PXCAFDoc_Area)::DownCast (Target);
|
||||
|
||||
#ifdef DEB
|
||||
PTColStd_TransientPersistentMap& TPMap =
|
||||
#endif
|
||||
RelocTable->OtherTable();
|
||||
T->Set(S->Get());
|
||||
}
|
38
src/MXCAFDoc/MXCAFDoc_CentroidRetrievalDriver.cdl
Executable file
38
src/MXCAFDoc/MXCAFDoc_CentroidRetrievalDriver.cdl
Executable file
@@ -0,0 +1,38 @@
|
||||
-- File: MXCAFDoc_CentroidRetrievalDriver.cdl
|
||||
-- Created: Mon Sep 11 15:14:09 2000
|
||||
-- Author: data exchange team
|
||||
-- <det@doomox>
|
||||
---Copyright: Matra Datavision 2000
|
||||
|
||||
|
||||
class CentroidRetrievalDriver from MXCAFDoc inherits ARDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses
|
||||
RRelocationTable from MDF,
|
||||
Attribute from PDF,
|
||||
Attribute from TDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
-- Create -- Version 0
|
||||
-- returns mutable CentroidRetrievalDriver from MXCAFDoc;
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable CentroidRetrievalDriver from MXCAFDoc;
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
---Purpose: Returns the type: XCAFDoc_Centroid
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from TDF;
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from PDF;
|
||||
Target : mutable Attribute from TDF;
|
||||
RelocTable : RRelocationTable from MDF);
|
||||
|
||||
end CentroidRetrievalDriver;
|
70
src/MXCAFDoc/MXCAFDoc_CentroidRetrievalDriver.cxx
Executable file
70
src/MXCAFDoc/MXCAFDoc_CentroidRetrievalDriver.cxx
Executable file
@@ -0,0 +1,70 @@
|
||||
// File: MXCAFDoc_CentroidRetrievalDriver.cxx
|
||||
// Created: Mon Sep 11 15:20:10 2000
|
||||
// Author: data exchange team
|
||||
// <det@doomox>
|
||||
|
||||
|
||||
#include <MXCAFDoc_CentroidRetrievalDriver.ixx>
|
||||
#include <MDF_RRelocationTable.hxx>
|
||||
#include <PTColStd_PersistentTransientMap.hxx>
|
||||
#include <PXCAFDoc_Centroid.hxx>
|
||||
#include <XCAFDoc_Centroid.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : Constructor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_CentroidRetrievalDriver::MXCAFDoc_CentroidRetrievalDriver(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ARDriver (theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_CentroidRetrievalDriver::VersionNumber() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_CentroidRetrievalDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(PXCAFDoc_Centroid);
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TDF_Attribute) MXCAFDoc_CentroidRetrievalDriver::NewEmpty() const
|
||||
{
|
||||
return new XCAFDoc_Centroid();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_CentroidRetrievalDriver::Paste(const Handle(PDF_Attribute)& Source,
|
||||
const Handle(TDF_Attribute)& Target,
|
||||
const Handle(MDF_RRelocationTable)& RelocTable) const
|
||||
{
|
||||
Handle(PXCAFDoc_Centroid) S = Handle(PXCAFDoc_Centroid)::DownCast (Source);
|
||||
Handle(XCAFDoc_Centroid) T = Handle(XCAFDoc_Centroid)::DownCast (Target);
|
||||
|
||||
#ifdef DEB
|
||||
PTColStd_PersistentTransientMap& PTMap =
|
||||
#endif
|
||||
RelocTable->OtherTable();
|
||||
T->Set(S->Get());
|
||||
}
|
39
src/MXCAFDoc/MXCAFDoc_CentroidStorageDriver.cdl
Executable file
39
src/MXCAFDoc/MXCAFDoc_CentroidStorageDriver.cdl
Executable file
@@ -0,0 +1,39 @@
|
||||
-- File: MXCAFDoc_CentroidStorageDriver.cdl
|
||||
-- Created: Mon Sep 11 15:18:37 2000
|
||||
-- Author: data exchange team
|
||||
-- <det@doomox>
|
||||
---Copyright: Matra Datavision 2000
|
||||
|
||||
class CentroidStorageDriver from MXCAFDoc inherits ASDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses
|
||||
SRelocationTable from MDF,
|
||||
Attribute from TDF,
|
||||
Attribute from PDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
|
||||
-- Create -- Version 0
|
||||
-- returns mutable CentroidStorageDriver from MXCAFDoc;
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable CentroidStorageDriver from MXCAFDoc;
|
||||
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
---Purpose: Returns the type: XCAFDoc_Centroid.
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from PDF;
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from TDF;
|
||||
Target : mutable Attribute from PDF;
|
||||
RelocTable : SRelocationTable from MDF);
|
||||
|
||||
end CentroidStorageDriver;
|
68
src/MXCAFDoc/MXCAFDoc_CentroidStorageDriver.cxx
Executable file
68
src/MXCAFDoc/MXCAFDoc_CentroidStorageDriver.cxx
Executable file
@@ -0,0 +1,68 @@
|
||||
// File: MXCAFDoc_CentroidStorageDriver.cxx
|
||||
// Created: Mon Sep 11 15:23:00 2000
|
||||
// Author: data exchange team
|
||||
// <det@doomox>
|
||||
|
||||
|
||||
#include <MXCAFDoc_CentroidStorageDriver.ixx>
|
||||
#include <MDF_SRelocationTable.hxx>
|
||||
#include <PTColStd_TransientPersistentMap.hxx>
|
||||
#include <PXCAFDoc_Centroid.hxx>
|
||||
#include <XCAFDoc_Centroid.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : Constructor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_CentroidStorageDriver::MXCAFDoc_CentroidStorageDriver(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ASDriver (theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_CentroidStorageDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_CentroidStorageDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(XCAFDoc_Centroid);
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(PDF_Attribute) MXCAFDoc_CentroidStorageDriver::NewEmpty() const
|
||||
{
|
||||
return new PXCAFDoc_Centroid();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_CentroidStorageDriver::Paste(const Handle(TDF_Attribute)& Source,
|
||||
const Handle(PDF_Attribute)& Target,
|
||||
const Handle(MDF_SRelocationTable)& RelocTable) const
|
||||
{
|
||||
Handle(XCAFDoc_Centroid) S = Handle(XCAFDoc_Centroid)::DownCast (Source);
|
||||
Handle(PXCAFDoc_Centroid) T = Handle(PXCAFDoc_Centroid)::DownCast (Target);
|
||||
|
||||
#ifdef DEB
|
||||
PTColStd_TransientPersistentMap& TPMap =
|
||||
#endif
|
||||
RelocTable->OtherTable();
|
||||
T->Set(S->Get());
|
||||
}
|
38
src/MXCAFDoc/MXCAFDoc_ColorRetrievalDriver.cdl
Executable file
38
src/MXCAFDoc/MXCAFDoc_ColorRetrievalDriver.cdl
Executable file
@@ -0,0 +1,38 @@
|
||||
-- File: MXCAFDoc_ColorRetrievalDriver.cdl
|
||||
-- Created: Tue Aug 15 15:16:37 2000
|
||||
-- Author: data exchange team
|
||||
-- <det@strelox.nnov.matra-dtv.fr>
|
||||
---Copyright: Matra Datavision 2000
|
||||
|
||||
|
||||
class ColorRetrievalDriver from MXCAFDoc inherits ARDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses
|
||||
RRelocationTable from MDF,
|
||||
Attribute from PDF,
|
||||
Attribute from TDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
-- Create -- Version 0
|
||||
-- returns mutable ColorRetrievalDriver from MXCAFDoc;
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable ColorRetrievalDriver from MXCAFDoc;
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
---Purpose: Returns the type: XCAFDoc_Color
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from TDF;
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from PDF;
|
||||
Target : mutable Attribute from TDF;
|
||||
RelocTable : RRelocationTable from MDF);
|
||||
|
||||
end ColorRetrievalDriver;
|
71
src/MXCAFDoc/MXCAFDoc_ColorRetrievalDriver.cxx
Executable file
71
src/MXCAFDoc/MXCAFDoc_ColorRetrievalDriver.cxx
Executable file
@@ -0,0 +1,71 @@
|
||||
// File: MXCAFDoc_ColorRetrievalDriver.cxx
|
||||
// Created: Tue Aug 15 15:37:48 2000
|
||||
// Author: data exchange team
|
||||
// <det@strelox.nnov.matra-dtv.fr>
|
||||
|
||||
|
||||
#include <MDF_RRelocationTable.hxx>
|
||||
#include <MXCAFDoc_ColorRetrievalDriver.ixx>
|
||||
#include <MgtTopLoc.hxx>
|
||||
#include <PTColStd_PersistentTransientMap.hxx>
|
||||
#include <PXCAFDoc_Color.hxx>
|
||||
#include <XCAFDoc_Color.hxx>
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Constructor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_ColorRetrievalDriver::MXCAFDoc_ColorRetrievalDriver(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ARDriver (theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_ColorRetrievalDriver::VersionNumber() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_ColorRetrievalDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(PXCAFDoc_Color);
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TDF_Attribute) MXCAFDoc_ColorRetrievalDriver::NewEmpty() const
|
||||
{
|
||||
return new XCAFDoc_Color();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_ColorRetrievalDriver::Paste(const Handle(PDF_Attribute)& Source,
|
||||
const Handle(TDF_Attribute)& Target,
|
||||
const Handle(MDF_RRelocationTable)&// RelocTable
|
||||
) const
|
||||
{
|
||||
Handle(PXCAFDoc_Color) S = Handle(PXCAFDoc_Color)::DownCast (Source);
|
||||
Handle(XCAFDoc_Color) T = Handle(XCAFDoc_Color)::DownCast (Target);
|
||||
|
||||
T->Set(S->Get());
|
||||
|
||||
}
|
||||
|
42
src/MXCAFDoc/MXCAFDoc_ColorStorageDriver.cdl
Executable file
42
src/MXCAFDoc/MXCAFDoc_ColorStorageDriver.cdl
Executable file
@@ -0,0 +1,42 @@
|
||||
-- File: MXCAFDoc_ColorStorageDriver.cdl
|
||||
-- Created: Tue Aug 15 15:15:59 2000
|
||||
-- Author: data exchange team
|
||||
-- <det@strelox.nnov.matra-dtv.fr>
|
||||
---Copyright: Matra Datavision 2000
|
||||
|
||||
|
||||
class ColorStorageDriver from MXCAFDoc inherits ASDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses
|
||||
SRelocationTable from MDF,
|
||||
Attribute from TDF,
|
||||
Attribute from PDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
|
||||
-- Create -- Version 0
|
||||
-- returns mutable ColorStorageDriver from MXCAFDoc;
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable ColorStorageDriver from MXCAFDoc;
|
||||
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
---Purpose: Returns the type: XCAFDoc_Color.
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from PDF;
|
||||
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from TDF;
|
||||
Target : mutable Attribute from PDF;
|
||||
RelocTable : SRelocationTable from MDF);
|
||||
|
||||
|
||||
end ColorStorageDriver;
|
67
src/MXCAFDoc/MXCAFDoc_ColorStorageDriver.cxx
Executable file
67
src/MXCAFDoc/MXCAFDoc_ColorStorageDriver.cxx
Executable file
@@ -0,0 +1,67 @@
|
||||
// File: MXCAFDoc_ColorStorageDriver.cxx
|
||||
// Created: Tue Aug 15 15:32:19 2000
|
||||
// Author: data exchange team
|
||||
// <det@strelox.nnov.matra-dtv.fr>
|
||||
|
||||
|
||||
#include <MDF_SRelocationTable.hxx>
|
||||
#include <MXCAFDoc_ColorStorageDriver.ixx>
|
||||
#include <MgtTopLoc.hxx>
|
||||
#include <PTColStd_TransientPersistentMap.hxx>
|
||||
#include <PXCAFDoc_Color.hxx>
|
||||
#include <XCAFDoc_Color.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : Constructor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_ColorStorageDriver::MXCAFDoc_ColorStorageDriver(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ASDriver (theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_ColorStorageDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_ColorStorageDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(XCAFDoc_Color);
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(PDF_Attribute) MXCAFDoc_ColorStorageDriver::NewEmpty() const
|
||||
{
|
||||
return new PXCAFDoc_Color();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_ColorStorageDriver::Paste(const Handle(TDF_Attribute)& Source,
|
||||
const Handle(PDF_Attribute)& Target,
|
||||
const Handle(MDF_SRelocationTable)& //RelocTable
|
||||
) const
|
||||
{
|
||||
Handle(XCAFDoc_Color) S = Handle(XCAFDoc_Color)::DownCast (Source);
|
||||
Handle(PXCAFDoc_Color) T = Handle(PXCAFDoc_Color)::DownCast (Target);
|
||||
|
||||
T->Set(S->GetColor());
|
||||
}
|
||||
|
37
src/MXCAFDoc/MXCAFDoc_ColorToolRetrievalDriver.cdl
Executable file
37
src/MXCAFDoc/MXCAFDoc_ColorToolRetrievalDriver.cdl
Executable file
@@ -0,0 +1,37 @@
|
||||
-- File: MXCAFDoc_ColorToolRetrievalDriver.cdl
|
||||
-- Created: Thu Aug 31 14:56:01 2000
|
||||
-- Author: data exchange team
|
||||
-- <det@strelox.nnov.matra-dtv.fr>
|
||||
---Copyright: Matra Datavision 2000
|
||||
|
||||
|
||||
class ColorToolRetrievalDriver from MXCAFDoc inherits ARDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
uses
|
||||
RRelocationTable from MDF,
|
||||
Attribute from PDF,
|
||||
Attribute from TDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
-- Create -- Version 0
|
||||
-- returns mutable ColorToolRetrievalDriver from MXCAFDoc;
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable ColorToolRetrievalDriver from MXCAFDoc;
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
---Purpose: Returns the type: XCAFDoc_Color
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from TDF;
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from PDF;
|
||||
Target : mutable Attribute from TDF;
|
||||
RelocTable : RRelocationTable from MDF);
|
||||
|
||||
end ColorToolRetrievalDriver;
|
65
src/MXCAFDoc/MXCAFDoc_ColorToolRetrievalDriver.cxx
Executable file
65
src/MXCAFDoc/MXCAFDoc_ColorToolRetrievalDriver.cxx
Executable file
@@ -0,0 +1,65 @@
|
||||
// File: MXCAFDoc_ColorToolRetrievalDriver.cxx
|
||||
// Created: Tue Aug 15 15:37:48 2000
|
||||
// Author: data exchange team
|
||||
// <det@strelox.nnov.matra-dtv.fr>
|
||||
|
||||
|
||||
#include <MDF_RRelocationTable.hxx>
|
||||
#include <MXCAFDoc_ColorToolRetrievalDriver.ixx>
|
||||
#include <MgtTopLoc.hxx>
|
||||
#include <PTColStd_PersistentTransientMap.hxx>
|
||||
#include <PXCAFDoc_ColorTool.hxx>
|
||||
#include <XCAFDoc_ColorTool.hxx>
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Constructor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_ColorToolRetrievalDriver::MXCAFDoc_ColorToolRetrievalDriver(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ARDriver (theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_ColorToolRetrievalDriver::VersionNumber() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_ColorToolRetrievalDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(PXCAFDoc_ColorTool);
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TDF_Attribute) MXCAFDoc_ColorToolRetrievalDriver::NewEmpty() const
|
||||
{
|
||||
return new XCAFDoc_ColorTool();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_ColorToolRetrievalDriver::Paste (const Handle(PDF_Attribute)& /* Source */,
|
||||
const Handle(TDF_Attribute)& /* Target */,
|
||||
const Handle(MDF_RRelocationTable)& /*RelocTable*/) const
|
||||
{
|
||||
}
|
||||
|
42
src/MXCAFDoc/MXCAFDoc_ColorToolStorageDriver.cdl
Executable file
42
src/MXCAFDoc/MXCAFDoc_ColorToolStorageDriver.cdl
Executable file
@@ -0,0 +1,42 @@
|
||||
-- File: MXCAFDoc_ColorToolStorageDriver.cdl
|
||||
-- Created: Tue Aug 15 15:15:59 2000
|
||||
-- Author: data exchange team
|
||||
-- <det@strelox.nnov.matra-dtv.fr>
|
||||
---Copyright: Matra Datavision 2000
|
||||
|
||||
|
||||
class ColorToolStorageDriver from MXCAFDoc inherits ASDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses
|
||||
SRelocationTable from MDF,
|
||||
Attribute from TDF,
|
||||
Attribute from PDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
|
||||
-- Create -- Version 0
|
||||
-- returns mutable ColorToolStorageDriver from MXCAFDoc;
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable ColorToolStorageDriver from MXCAFDoc;
|
||||
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
---Purpose: Returns the type: XCAFDoc_Color.
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from PDF;
|
||||
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from TDF;
|
||||
Target : mutable Attribute from PDF;
|
||||
RelocTable : SRelocationTable from MDF);
|
||||
|
||||
|
||||
end ColorToolStorageDriver;
|
62
src/MXCAFDoc/MXCAFDoc_ColorToolStorageDriver.cxx
Executable file
62
src/MXCAFDoc/MXCAFDoc_ColorToolStorageDriver.cxx
Executable file
@@ -0,0 +1,62 @@
|
||||
// File: MXCAFDoc_ColorToolStorageDriver.cxx
|
||||
// Created: Tue Aug 15 15:32:19 2000
|
||||
// Author: data exchange team
|
||||
// <det@strelox.nnov.matra-dtv.fr>
|
||||
|
||||
|
||||
#include <MDF_SRelocationTable.hxx>
|
||||
#include <MXCAFDoc_ColorToolStorageDriver.ixx>
|
||||
#include <MgtTopLoc.hxx>
|
||||
#include <PTColStd_TransientPersistentMap.hxx>
|
||||
#include <PXCAFDoc_ColorTool.hxx>
|
||||
#include <XCAFDoc_ColorTool.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : Constructor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_ColorToolStorageDriver::MXCAFDoc_ColorToolStorageDriver(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ASDriver (theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_ColorToolStorageDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_ColorToolStorageDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(XCAFDoc_ColorTool);
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(PDF_Attribute) MXCAFDoc_ColorToolStorageDriver::NewEmpty() const
|
||||
{
|
||||
return new PXCAFDoc_ColorTool();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_ColorToolStorageDriver::Paste (const Handle(TDF_Attribute)& /* Source */,
|
||||
const Handle(PDF_Attribute)& /* Target */,
|
||||
const Handle(MDF_SRelocationTable)& /*RelocTable*/) const
|
||||
{
|
||||
}
|
||||
|
35
src/MXCAFDoc/MXCAFDoc_DatumRetrievalDriver.cdl
Executable file
35
src/MXCAFDoc/MXCAFDoc_DatumRetrievalDriver.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: MXCAFDoc_DatumRetrievalDriver.cdl
|
||||
-- Created: Wed Dec 10 09:48:30 2008
|
||||
-- Author: Pavel TELKOV
|
||||
-- <ptv@valenox>
|
||||
---Copyright: Open CASCADE 2008
|
||||
|
||||
class DatumRetrievalDriver from MXCAFDoc inherits ARDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
uses
|
||||
RRelocationTable from MDF,
|
||||
Attribute from PDF,
|
||||
Attribute from TDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable DatumRetrievalDriver from MXCAFDoc;
|
||||
---Purpose: Returns mutable DatumRetrievalDriver from MXCAFDoc;
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
---Purpose: Returns the type: XCAFDoc_Datum
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from TDF;
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from PDF;
|
||||
Target : mutable Attribute from TDF;
|
||||
RelocTable : RRelocationTable from MDF);
|
||||
|
||||
end DatumRetrievalDriver from MXCAFDoc;
|
77
src/MXCAFDoc/MXCAFDoc_DatumRetrievalDriver.cxx
Executable file
77
src/MXCAFDoc/MXCAFDoc_DatumRetrievalDriver.cxx
Executable file
@@ -0,0 +1,77 @@
|
||||
// File: MXCAFDoc_DatumRetrievalDriver.cxx
|
||||
// Created: 10.12.08 09:46:46
|
||||
// Author: Pavel TELKOV
|
||||
// Copyright: Open CASCADE 2008
|
||||
|
||||
#include <MXCAFDoc_DatumRetrievalDriver.ixx>
|
||||
#include <PXCAFDoc_Datum.hxx>
|
||||
#include <XCAFDoc_Datum.hxx>
|
||||
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
#include <PCollection_HAsciiString.hxx>
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : MCAFDoc_DatumRetrievalDriver
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_DatumRetrievalDriver::MXCAFDoc_DatumRetrievalDriver
|
||||
(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ARDriver (theMsgDriver)
|
||||
{}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_DatumRetrievalDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_DatumRetrievalDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(PXCAFDoc_Datum);
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TDF_Attribute) MXCAFDoc_DatumRetrievalDriver::NewEmpty() const
|
||||
{
|
||||
return new XCAFDoc_Datum();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_DatumRetrievalDriver::Paste(const Handle(PDF_Attribute)& Source,
|
||||
const Handle(TDF_Attribute)& Target,
|
||||
const Handle(MDF_RRelocationTable)& RelocTable) const
|
||||
{
|
||||
Handle(PXCAFDoc_Datum) S = Handle(PXCAFDoc_Datum)::DownCast (Source);
|
||||
Handle(XCAFDoc_Datum) T = Handle(XCAFDoc_Datum)::DownCast (Target);
|
||||
|
||||
#ifdef DEB
|
||||
PTColStd_PersistentTransientMap& PTMap =
|
||||
#endif
|
||||
RelocTable->OtherTable();
|
||||
Handle(TCollection_HAsciiString) aName, aDescr, anId;
|
||||
if ( !S->GetName().IsNull() )
|
||||
aName = new TCollection_HAsciiString( (S->GetName())->Convert() );
|
||||
if ( !S->GetDescription().IsNull() )
|
||||
aDescr = new TCollection_HAsciiString( (S->GetDescription())->Convert() );
|
||||
if ( !S->GetIdentification().IsNull() )
|
||||
anId = new TCollection_HAsciiString( (S->GetIdentification())->Convert() );
|
||||
|
||||
T->Set(aName, aDescr, anId);
|
||||
}
|
36
src/MXCAFDoc/MXCAFDoc_DatumStorageDriver.cdl
Executable file
36
src/MXCAFDoc/MXCAFDoc_DatumStorageDriver.cdl
Executable file
@@ -0,0 +1,36 @@
|
||||
-- File: MXCAFDoc_DimTolStorageDriver.cdl
|
||||
-- Created: Wed Dec 10 09:05:14 2008
|
||||
-- Author: Pavel TELKOV
|
||||
-- <ptv@valenox>
|
||||
---Copyright: Open CASCADE 2008
|
||||
|
||||
class DatumStorageDriver from MXCAFDoc inherits ASDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
uses
|
||||
SRelocationTable from MDF,
|
||||
Attribute from TDF,
|
||||
Attribute from PDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable DatumStorageDriver from MXCAFDoc;
|
||||
---Purpose: Returns mutable DatumStorageDriver from MXCAFDoc;
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
---Purpose: Returns the type: XCAFDoc_Datum.
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from PDF;
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from TDF;
|
||||
Target : mutable Attribute from PDF;
|
||||
RelocTable : SRelocationTable from MDF);
|
||||
|
||||
end DatumStorageDriver;
|
79
src/MXCAFDoc/MXCAFDoc_DatumStorageDriver.cxx
Executable file
79
src/MXCAFDoc/MXCAFDoc_DatumStorageDriver.cxx
Executable file
@@ -0,0 +1,79 @@
|
||||
// File: MXCAFDoc_DatumStorageDriver.cxx
|
||||
// Created: 10.12.08 09:06:26
|
||||
// Author: Pavel TELKOV
|
||||
// Copyright: Open CASCADE 2008
|
||||
|
||||
#include <MXCAFDoc_DatumStorageDriver.ixx>
|
||||
#include <XCAFDoc_Datum.hxx>
|
||||
#include <PXCAFDoc_Datum.hxx>
|
||||
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
#include <PCollection_HAsciiString.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : MXCAFDoc_DatumStorageDriver
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_DatumStorageDriver::MXCAFDoc_DatumStorageDriver
|
||||
(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ASDriver (theMsgDriver)
|
||||
{}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_DatumStorageDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_DatumStorageDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(XCAFDoc_Datum);
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(PDF_Attribute) MXCAFDoc_DatumStorageDriver::NewEmpty() const
|
||||
{
|
||||
return new PXCAFDoc_Datum();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_DatumStorageDriver::Paste(const Handle(TDF_Attribute)& Source,
|
||||
const Handle(PDF_Attribute)& Target,
|
||||
const Handle(MDF_SRelocationTable)& RelocTable) const
|
||||
{
|
||||
Handle(XCAFDoc_Datum) S = Handle(XCAFDoc_Datum)::DownCast (Source);
|
||||
Handle(PXCAFDoc_Datum) T = Handle(PXCAFDoc_Datum)::DownCast (Target);
|
||||
#ifdef DEB
|
||||
PTColStd_TransientPersistentMap& TPMap =
|
||||
#endif
|
||||
RelocTable->OtherTable();
|
||||
Handle(TCollection_HAsciiString) aNameStr = S->GetName();
|
||||
Handle(TCollection_HAsciiString) aDescrStr = S->GetDescription();
|
||||
Handle(TCollection_HAsciiString) anIdStr = S->GetIdentification();
|
||||
|
||||
Handle(PCollection_HAsciiString) aName, aDescr, anId;
|
||||
if ( !aNameStr.IsNull() )
|
||||
aName = new PCollection_HAsciiString (aNameStr->String());
|
||||
if ( !aDescrStr.IsNull() )
|
||||
aDescr = new PCollection_HAsciiString (aDescrStr->String());
|
||||
if ( !anIdStr.IsNull() )
|
||||
anId = new PCollection_HAsciiString (anIdStr->String());
|
||||
|
||||
T->Set(aName, aDescr, anId);
|
||||
}
|
35
src/MXCAFDoc/MXCAFDoc_DimTolRetrievalDriver.cdl
Executable file
35
src/MXCAFDoc/MXCAFDoc_DimTolRetrievalDriver.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: MXCAFDoc_DimTolRetrievalDriver.cdl
|
||||
-- Created: Wed Dec 10 09:48:30 2008
|
||||
-- Author: Pavel TELKOV
|
||||
-- <ptv@valenox>
|
||||
---Copyright: Open CASCADE 2008
|
||||
|
||||
class DimTolRetrievalDriver from MXCAFDoc inherits ARDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
uses
|
||||
RRelocationTable from MDF,
|
||||
Attribute from PDF,
|
||||
Attribute from TDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable DimTolRetrievalDriver from MXCAFDoc;
|
||||
---Purpose: Returns mutable DimTolRetrievalDriver from MXCAFDoc;
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
---Purpose: Returns the type: XCAFDoc_DimTol
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from TDF;
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from PDF;
|
||||
Target : mutable Attribute from TDF;
|
||||
RelocTable : RRelocationTable from MDF);
|
||||
|
||||
end DimTolRetrievalDriver from MXCAFDoc;
|
86
src/MXCAFDoc/MXCAFDoc_DimTolRetrievalDriver.cxx
Executable file
86
src/MXCAFDoc/MXCAFDoc_DimTolRetrievalDriver.cxx
Executable file
@@ -0,0 +1,86 @@
|
||||
// File: MXCAFDoc_DimTolRetrievalDriver.cxx
|
||||
// Created: 10.12.08 09:46:46
|
||||
// Author: Pavel TELKOV
|
||||
// Copyright: Open CASCADE 2008
|
||||
|
||||
#include <MXCAFDoc_DimTolRetrievalDriver.ixx>
|
||||
#include <PXCAFDoc_DimTol.hxx>
|
||||
#include <XCAFDoc_DimTol.hxx>
|
||||
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
#include <TColStd_HArray1OfReal.hxx>
|
||||
#include <PCollection_HAsciiString.hxx>
|
||||
#include <PColStd_HArray1OfReal.hxx>
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : MCAFDoc_DimTolRetrievalDriver
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_DimTolRetrievalDriver::MXCAFDoc_DimTolRetrievalDriver
|
||||
(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ARDriver (theMsgDriver)
|
||||
{}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_DimTolRetrievalDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_DimTolRetrievalDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(PXCAFDoc_DimTol);
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TDF_Attribute) MXCAFDoc_DimTolRetrievalDriver::NewEmpty() const
|
||||
{
|
||||
return new XCAFDoc_DimTol();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_DimTolRetrievalDriver::Paste(const Handle(PDF_Attribute)& Source,
|
||||
const Handle(TDF_Attribute)& Target,
|
||||
const Handle(MDF_RRelocationTable)& RelocTable) const
|
||||
{
|
||||
Handle(PXCAFDoc_DimTol) S = Handle(PXCAFDoc_DimTol)::DownCast (Source);
|
||||
Handle(XCAFDoc_DimTol) T = Handle(XCAFDoc_DimTol)::DownCast (Target);
|
||||
|
||||
#ifdef DEB
|
||||
PTColStd_PersistentTransientMap& PTMap =
|
||||
#endif
|
||||
RelocTable->OtherTable();
|
||||
Handle(TColStd_HArray1OfReal) aVals;
|
||||
Handle(PColStd_HArray1OfReal) aPArr = S->GetVal();
|
||||
if ( !aPArr.IsNull() )
|
||||
{
|
||||
Standard_Integer i = aPArr->Lower(), n = aPArr->Upper();
|
||||
aVals = new TColStd_HArray1OfReal( i, n );
|
||||
for( ; i <= n; i++ )
|
||||
aVals->SetValue( i, aPArr->Value( i ) );
|
||||
}
|
||||
Handle(TCollection_HAsciiString) aName, aDescr;
|
||||
if ( !S->GetName().IsNull() )
|
||||
aName = new TCollection_HAsciiString( (S->GetName())->Convert() );
|
||||
if ( !S->GetDescription().IsNull() )
|
||||
aDescr = new TCollection_HAsciiString( (S->GetDescription())->Convert() );
|
||||
|
||||
T->Set(S->GetKind(), aVals, aName, aDescr);
|
||||
}
|
36
src/MXCAFDoc/MXCAFDoc_DimTolStorageDriver.cdl
Executable file
36
src/MXCAFDoc/MXCAFDoc_DimTolStorageDriver.cdl
Executable file
@@ -0,0 +1,36 @@
|
||||
-- File: MXCAFDoc_DimTolStorageDriver.cdl
|
||||
-- Created: Wed Dec 10 09:05:14 2008
|
||||
-- Author: Pavel TELKOV
|
||||
-- <ptv@valenox>
|
||||
---Copyright: Open CASCADE 2008
|
||||
|
||||
class DimTolStorageDriver from MXCAFDoc inherits ASDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
uses
|
||||
SRelocationTable from MDF,
|
||||
Attribute from TDF,
|
||||
Attribute from PDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable DimTolStorageDriver from MXCAFDoc;
|
||||
---Purpose: Returns mutable DimTolStorageDriver from MXCAFDoc;
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
---Purpose: Returns the type: XCAFDoc_DimTol.
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from PDF;
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from TDF;
|
||||
Target : mutable Attribute from PDF;
|
||||
RelocTable : SRelocationTable from MDF);
|
||||
|
||||
end DimTolStorageDriver;
|
87
src/MXCAFDoc/MXCAFDoc_DimTolStorageDriver.cxx
Executable file
87
src/MXCAFDoc/MXCAFDoc_DimTolStorageDriver.cxx
Executable file
@@ -0,0 +1,87 @@
|
||||
// File: MXCAFDoc_DimTolStorageDriver.cxx
|
||||
// Created: 10.12.08 09:06:26
|
||||
// Author: Pavel TELKOV
|
||||
// Copyright: Open CASCADE 2008
|
||||
|
||||
#include <MXCAFDoc_DimTolStorageDriver.ixx>
|
||||
#include <XCAFDoc_DimTol.hxx>
|
||||
#include <PXCAFDoc_DimTol.hxx>
|
||||
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
#include <TColStd_HArray1OfReal.hxx>
|
||||
#include <PCollection_HAsciiString.hxx>
|
||||
#include <PColStd_HArray1OfReal.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : MXCAFDoc_DimTolStorageDriver
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_DimTolStorageDriver::MXCAFDoc_DimTolStorageDriver
|
||||
(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ASDriver (theMsgDriver)
|
||||
{}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_DimTolStorageDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_DimTolStorageDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(XCAFDoc_DimTol);
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(PDF_Attribute) MXCAFDoc_DimTolStorageDriver::NewEmpty() const
|
||||
{
|
||||
return new PXCAFDoc_DimTol();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_DimTolStorageDriver::Paste(const Handle(TDF_Attribute)& Source,
|
||||
const Handle(PDF_Attribute)& Target,
|
||||
const Handle(MDF_SRelocationTable)& RelocTable) const
|
||||
{
|
||||
Handle(XCAFDoc_DimTol) S = Handle(XCAFDoc_DimTol)::DownCast (Source);
|
||||
Handle(PXCAFDoc_DimTol) T = Handle(PXCAFDoc_DimTol)::DownCast (Target);
|
||||
#ifdef DEB
|
||||
PTColStd_TransientPersistentMap& TPMap =
|
||||
#endif
|
||||
RelocTable->OtherTable();
|
||||
Handle(TColStd_HArray1OfReal) aHArr = S->GetVal();
|
||||
Handle(PColStd_HArray1OfReal) aVals;
|
||||
if ( !aHArr.IsNull() )
|
||||
{
|
||||
Standard_Integer i = aHArr->Lower(), n = aHArr->Upper();
|
||||
aVals = new PColStd_HArray1OfReal( i, n );
|
||||
for( ; i <= n; i++ )
|
||||
aVals->SetValue( i, aHArr->Value( i ) );
|
||||
}
|
||||
Handle(TCollection_HAsciiString) aNameStr = S->GetName();
|
||||
Handle(TCollection_HAsciiString) aDescrStr = S->GetDescription();
|
||||
|
||||
Handle(PCollection_HAsciiString) aName, aDescr;
|
||||
if ( !aNameStr.IsNull() )
|
||||
aName = new PCollection_HAsciiString (aNameStr->String());
|
||||
if ( !aDescrStr.IsNull() )
|
||||
aDescr = new PCollection_HAsciiString (aDescrStr->String());
|
||||
|
||||
T->Set(S->GetKind(), aVals, aName, aDescr);
|
||||
}
|
36
src/MXCAFDoc/MXCAFDoc_DimTolToolRetrievalDriver.cdl
Executable file
36
src/MXCAFDoc/MXCAFDoc_DimTolToolRetrievalDriver.cdl
Executable file
@@ -0,0 +1,36 @@
|
||||
-- File: MXCAFDoc_DimTolToolRetrievalDriver.cdl
|
||||
-- Created: Wed Dec 10 09:09:35 2008
|
||||
-- Author: Pavel TELKOV
|
||||
-- <ptv@valenox>
|
||||
---Copyright: Open CASCADE 2008
|
||||
|
||||
class DimTolToolRetrievalDriver from MXCAFDoc inherits ARDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
uses
|
||||
RRelocationTable from MDF,
|
||||
Attribute from PDF,
|
||||
Attribute from TDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
-- Create -- Version 0
|
||||
-- returns mutable DimTolToolRetrievalDriver from MXCAFDoc;
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable DimTolToolRetrievalDriver from MXCAFDoc;
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
---Purpose: Returns the type: XCAFDoc_DimTolTool
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from TDF;
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from PDF;
|
||||
Target : mutable Attribute from TDF;
|
||||
RelocTable : RRelocationTable from MDF);
|
||||
|
||||
end DimTolToolRetrievalDriver;
|
63
src/MXCAFDoc/MXCAFDoc_DimTolToolRetrievalDriver.cxx
Executable file
63
src/MXCAFDoc/MXCAFDoc_DimTolToolRetrievalDriver.cxx
Executable file
@@ -0,0 +1,63 @@
|
||||
// File: MXCAFDoc_DimTolToolRetrievalDriver.cxx
|
||||
// Created: 10.12.08 09:12:17
|
||||
// Author: Pavel TELKOV
|
||||
// Copyright: Open CASCADE 2008
|
||||
|
||||
#include <MDF_RRelocationTable.hxx>
|
||||
#include <MXCAFDoc_DimTolToolRetrievalDriver.ixx>
|
||||
#include <PXCAFDoc_DimTolTool.hxx>
|
||||
#include <XCAFDoc_DimTolTool.hxx>
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Constructor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_DimTolToolRetrievalDriver::MXCAFDoc_DimTolToolRetrievalDriver
|
||||
(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ARDriver (theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_DimTolToolRetrievalDriver::VersionNumber() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_DimTolToolRetrievalDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(PXCAFDoc_DimTolTool);
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TDF_Attribute) MXCAFDoc_DimTolToolRetrievalDriver::NewEmpty() const
|
||||
{
|
||||
return new XCAFDoc_DimTolTool();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_DimTolToolRetrievalDriver::Paste
|
||||
(const Handle(PDF_Attribute)& /* Source */,
|
||||
const Handle(TDF_Attribute)& /* Target */,
|
||||
const Handle(MDF_RRelocationTable)& /*RelocTable*/) const
|
||||
{
|
||||
}
|
41
src/MXCAFDoc/MXCAFDoc_DimTolToolStorageDriver.cdl
Executable file
41
src/MXCAFDoc/MXCAFDoc_DimTolToolStorageDriver.cdl
Executable file
@@ -0,0 +1,41 @@
|
||||
-- File: MXCAFDoc_DimTolToolStorageDriver.cdl
|
||||
-- Created: Wed Dec 10 09:05:14 2008
|
||||
-- Author: Pavel TELKOV
|
||||
-- <ptv@valenox>
|
||||
---Copyright: Open CASCADE 2008
|
||||
|
||||
|
||||
class DimTolToolStorageDriver from MXCAFDoc inherits ASDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses
|
||||
SRelocationTable from MDF,
|
||||
Attribute from TDF,
|
||||
Attribute from PDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
|
||||
-- Create -- Version 0
|
||||
-- returns mutable DimTolToolStorageDriver from MXCAFDoc;
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable DimTolToolStorageDriver from MXCAFDoc;
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
---Purpose: Returns the type: XCAFDoc_DimTolTool
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from PDF;
|
||||
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from TDF;
|
||||
Target : mutable Attribute from PDF;
|
||||
RelocTable : SRelocationTable from MDF);
|
||||
|
||||
|
||||
end DimTolToolStorageDriver;
|
60
src/MXCAFDoc/MXCAFDoc_DimTolToolStorageDriver.cxx
Executable file
60
src/MXCAFDoc/MXCAFDoc_DimTolToolStorageDriver.cxx
Executable file
@@ -0,0 +1,60 @@
|
||||
// File: MXCAFDoc_DimTolToolStorageDriver.cxx
|
||||
// Created: 10.12.08 09:08:37
|
||||
// Author: Pavel TELKOV
|
||||
// Copyright: Open CASCADE 2008
|
||||
|
||||
#include <MDF_SRelocationTable.hxx>
|
||||
#include <MXCAFDoc_DimTolToolStorageDriver.ixx>
|
||||
#include <PXCAFDoc_DimTolTool.hxx>
|
||||
#include <XCAFDoc_DimTolTool.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : Constructor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_DimTolToolStorageDriver::MXCAFDoc_DimTolToolStorageDriver
|
||||
(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ASDriver (theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_DimTolToolStorageDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_DimTolToolStorageDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(XCAFDoc_DimTolTool);
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(PDF_Attribute) MXCAFDoc_DimTolToolStorageDriver::NewEmpty() const
|
||||
{
|
||||
return new PXCAFDoc_DimTolTool();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_DimTolToolStorageDriver::Paste
|
||||
(const Handle(TDF_Attribute)& /* Source */,
|
||||
const Handle(PDF_Attribute)& /* Target */,
|
||||
const Handle(MDF_SRelocationTable)& /*RelocTable*/) const
|
||||
{
|
||||
}
|
38
src/MXCAFDoc/MXCAFDoc_DocumentToolRetrievalDriver.cdl
Executable file
38
src/MXCAFDoc/MXCAFDoc_DocumentToolRetrievalDriver.cdl
Executable file
@@ -0,0 +1,38 @@
|
||||
-- File: MXCAFDoc_DocumentToolRetrievalDriver.cdl
|
||||
-- Created: Tue Aug 15 15:16:37 2000
|
||||
-- Author: data exchange team
|
||||
-- <det@strelox.nnov.matra-dtv.fr>
|
||||
---Copyright: Matra Datavision 2000
|
||||
|
||||
|
||||
class DocumentToolRetrievalDriver from MXCAFDoc inherits ARDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses
|
||||
RRelocationTable from MDF,
|
||||
Attribute from PDF,
|
||||
Attribute from TDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
-- Create -- Version 0
|
||||
-- returns mutable DocumentToolRetrievalDriver from MXCAFDoc;
|
||||
Create (theMessageDriver : MessageDriver from CDM)
|
||||
returns mutable DocumentToolRetrievalDriver from MXCAFDoc;
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
---Purpose: Returns the type: XCAFDoc_Color
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from TDF;
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from PDF;
|
||||
Target : mutable Attribute from TDF;
|
||||
RelocTable : RRelocationTable from MDF);
|
||||
|
||||
end DocumentToolRetrievalDriver;
|
76
src/MXCAFDoc/MXCAFDoc_DocumentToolRetrievalDriver.cxx
Executable file
76
src/MXCAFDoc/MXCAFDoc_DocumentToolRetrievalDriver.cxx
Executable file
@@ -0,0 +1,76 @@
|
||||
// File: MXCAFDoc_DocumentToolRetrievalDriver.cxx
|
||||
// Created: Tue Aug 15 15:37:48 2000
|
||||
// Author: data exchange team
|
||||
// <det@strelox.nnov.matra-dtv.fr>
|
||||
|
||||
|
||||
#include <MDF_RRelocationTable.hxx>
|
||||
#include <MXCAFDoc_DocumentToolRetrievalDriver.ixx>
|
||||
#include <MgtTopLoc.hxx>
|
||||
#include <PTColStd_PersistentTransientMap.hxx>
|
||||
#include <PXCAFDoc_DocumentTool.hxx>
|
||||
#include <XCAFDoc_DocumentTool.hxx>
|
||||
#include <TDF_Label.hxx>
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Constructor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_DocumentToolRetrievalDriver::MXCAFDoc_DocumentToolRetrievalDriver(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ARDriver (theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_DocumentToolRetrievalDriver::VersionNumber() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_DocumentToolRetrievalDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(PXCAFDoc_DocumentTool);
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TDF_Attribute) MXCAFDoc_DocumentToolRetrievalDriver::NewEmpty() const
|
||||
{
|
||||
return new XCAFDoc_DocumentTool();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_DocumentToolRetrievalDriver::Paste(const Handle(PDF_Attribute)& ,//Source,
|
||||
const Handle(TDF_Attribute)& Target,
|
||||
const Handle(MDF_RRelocationTable)&// RelocTable
|
||||
) const
|
||||
{
|
||||
Handle(XCAFDoc_DocumentTool) T = Handle(XCAFDoc_DocumentTool)::DownCast (Target);
|
||||
T->Init();
|
||||
// TDF_Label L = T->Label();
|
||||
// if (L.IsNull()) {
|
||||
// cout<<"XCAFDoc_DocumentTool::Paste FUCK!!!"<<endl;
|
||||
// return;
|
||||
// }
|
||||
// L.ForgetAttribute(XCAFDoc_DocumentTool::GetID());
|
||||
// XCAFDoc_DocumentTool::Set(L, Standard_False);
|
||||
}
|
||||
|
41
src/MXCAFDoc/MXCAFDoc_DocumentToolStorageDriver.cdl
Executable file
41
src/MXCAFDoc/MXCAFDoc_DocumentToolStorageDriver.cdl
Executable file
@@ -0,0 +1,41 @@
|
||||
-- File: MXCAFDoc_DocumentToolStorageDriver.cdl
|
||||
-- Created: Tue Aug 15 15:15:59 2000
|
||||
-- Author: data exchange team
|
||||
-- <det@strelox.nnov.matra-dtv.fr>
|
||||
---Copyright: Matra Datavision 2000
|
||||
|
||||
|
||||
class DocumentToolStorageDriver from MXCAFDoc inherits ASDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses
|
||||
SRelocationTable from MDF,
|
||||
Attribute from TDF,
|
||||
Attribute from PDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
|
||||
-- Create -- Version 0
|
||||
-- returns mutable DocumentToolStorageDriver from MXCAFDoc;
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable DocumentToolStorageDriver from MXCAFDoc;
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
---Purpose: Returns the type: XCAFDoc_Color.
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from PDF;
|
||||
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from TDF;
|
||||
Target : mutable Attribute from PDF;
|
||||
RelocTable : SRelocationTable from MDF);
|
||||
|
||||
|
||||
end DocumentToolStorageDriver;
|
62
src/MXCAFDoc/MXCAFDoc_DocumentToolStorageDriver.cxx
Executable file
62
src/MXCAFDoc/MXCAFDoc_DocumentToolStorageDriver.cxx
Executable file
@@ -0,0 +1,62 @@
|
||||
// File: MXCAFDoc_DocumentToolStorageDriver.cxx
|
||||
// Created: Tue Aug 15 15:32:19 2000
|
||||
// Author: data exchange team
|
||||
// <det@strelox.nnov.matra-dtv.fr>
|
||||
|
||||
|
||||
#include <MDF_SRelocationTable.hxx>
|
||||
#include <MXCAFDoc_DocumentToolStorageDriver.ixx>
|
||||
#include <MgtTopLoc.hxx>
|
||||
#include <PTColStd_TransientPersistentMap.hxx>
|
||||
#include <PXCAFDoc_DocumentTool.hxx>
|
||||
#include <XCAFDoc_DocumentTool.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : Constructor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_DocumentToolStorageDriver::MXCAFDoc_DocumentToolStorageDriver(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ASDriver (theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_DocumentToolStorageDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_DocumentToolStorageDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(XCAFDoc_DocumentTool);
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(PDF_Attribute) MXCAFDoc_DocumentToolStorageDriver::NewEmpty() const
|
||||
{
|
||||
return new PXCAFDoc_DocumentTool();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_DocumentToolStorageDriver::Paste(const Handle(TDF_Attribute)& /* Source */,
|
||||
const Handle(PDF_Attribute)& /* Target */,
|
||||
const Handle(MDF_SRelocationTable)& /*RelocTable*/) const
|
||||
{
|
||||
}
|
||||
|
36
src/MXCAFDoc/MXCAFDoc_GraphNodeRetrievalDriver.cdl
Executable file
36
src/MXCAFDoc/MXCAFDoc_GraphNodeRetrievalDriver.cdl
Executable file
@@ -0,0 +1,36 @@
|
||||
-- File: MXCAFDoc_GraphNodeRetrievalDriver.cdl
|
||||
-- Created: Fri Sep 29 10:42:30 2000
|
||||
-- Author: Pavel TELKOV
|
||||
-- <det@nordox.nnov.matra-dtv.fr>
|
||||
---Copyright: Matra Datavision 2000
|
||||
|
||||
|
||||
class GraphNodeRetrievalDriver from MXCAFDoc inherits ARDriver from MDF
|
||||
|
||||
uses
|
||||
|
||||
RRelocationTable from MDF,
|
||||
Attribute from PDF,
|
||||
Attribute from TDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
|
||||
-- Create returns mutable GraphNodeRetrievalDriver from MXCAFDoc;
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable GraphNodeRetrievalDriver from MXCAFDoc;
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from TDF;
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from PDF;
|
||||
Target : mutable Attribute from TDF;
|
||||
RelocTable : RRelocationTable from MDF);
|
||||
|
||||
end GraphNodeRetrievalDriver;
|
91
src/MXCAFDoc/MXCAFDoc_GraphNodeRetrievalDriver.cxx
Executable file
91
src/MXCAFDoc/MXCAFDoc_GraphNodeRetrievalDriver.cxx
Executable file
@@ -0,0 +1,91 @@
|
||||
// File: MXCAFDoc_GraphNodeRetrievalDriver.cxx
|
||||
// Created: Fri Sep 29 10:45:58 2000
|
||||
// Author: Pavel TELKOV
|
||||
// <det@nordox.nnov.matra-dtv.fr>
|
||||
|
||||
|
||||
#include <MXCAFDoc_GraphNodeRetrievalDriver.ixx>
|
||||
#include <PXCAFDoc_GraphNode.hxx>
|
||||
#include <XCAFDoc_GraphNode.hxx>
|
||||
#include <Standard_NoSuchObject.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : Constructor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_GraphNodeRetrievalDriver::MXCAFDoc_GraphNodeRetrievalDriver(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ARDriver (theMsgDriver)
|
||||
{}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_GraphNodeRetrievalDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_GraphNodeRetrievalDriver::SourceType() const
|
||||
{ return STANDARD_TYPE(PXCAFDoc_GraphNode); }
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TDF_Attribute) MXCAFDoc_GraphNodeRetrievalDriver::NewEmpty() const
|
||||
{ return new XCAFDoc_GraphNode(); }
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_GraphNodeRetrievalDriver::Paste (const Handle(PDF_Attribute)& Source,
|
||||
const Handle(TDF_Attribute)& Target,
|
||||
const Handle(MDF_RRelocationTable)& RelocTable) const
|
||||
{
|
||||
Handle(PXCAFDoc_GraphNode) S = Handle(PXCAFDoc_GraphNode)::DownCast(Source);
|
||||
Handle(XCAFDoc_GraphNode) T = Handle(XCAFDoc_GraphNode)::DownCast(Target);
|
||||
T->SetGraphID(S->GetGraphID());
|
||||
|
||||
Handle(XCAFDoc_GraphNode) TFirst;
|
||||
Handle(PXCAFDoc_GraphNode) PFirst;
|
||||
Standard_Integer i;
|
||||
for ( i = 1; i <= S->NbFathers(); i++) {
|
||||
PFirst = S->GetFather(i);
|
||||
if ( !PFirst.IsNull() ) {
|
||||
if (!RelocTable->HasRelocation(PFirst, TFirst)) {
|
||||
Standard_NoSuchObject::Raise("MXCAFDoc_GraphNodeRetrievalDriver::Paste");
|
||||
}
|
||||
if (!TFirst.IsNull()) {
|
||||
TFirst->SetGraphID(S->GetGraphID());
|
||||
T->SetFather(TFirst);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for ( i = 1; i <= S->NbChildren(); i++) {
|
||||
PFirst = S->GetChild(i);
|
||||
if ( !PFirst.IsNull() ) {
|
||||
if (!RelocTable->HasRelocation(PFirst, TFirst)) {
|
||||
Standard_NoSuchObject::Raise("MXCAFDoc_GraphNodeRetrievalDriver::Paste");
|
||||
}
|
||||
if (!TFirst.IsNull()) {
|
||||
TFirst->SetGraphID(S->GetGraphID());
|
||||
T->SetChild(TFirst);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
35
src/MXCAFDoc/MXCAFDoc_GraphNodeStorageDriver.cdl
Executable file
35
src/MXCAFDoc/MXCAFDoc_GraphNodeStorageDriver.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: MXCAFDoc_GraphNodeStorageDriver.cdl
|
||||
-- Created: Fri Sep 29 10:41:48 2000
|
||||
-- Author: data exchange team
|
||||
-- <det@nordox.nnov.matra-dtv.fr>
|
||||
---Copyright: Matra Datavision 2000
|
||||
|
||||
|
||||
class GraphNodeStorageDriver from MXCAFDoc inherits ASDriver from MDF
|
||||
|
||||
uses
|
||||
|
||||
SRelocationTable from MDF,
|
||||
Attribute from TDF,
|
||||
Attribute from PDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
-- Create returns mutable GraphNodeStorageDriver from MXCAFDoc;
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable GraphNodeStorageDriver from MXCAFDoc;
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from PDF;
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from TDF;
|
||||
Target : mutable Attribute from PDF;
|
||||
RelocTable : SRelocationTable from MDF);
|
||||
|
||||
end GraphNodeStorageDriver;
|
87
src/MXCAFDoc/MXCAFDoc_GraphNodeStorageDriver.cxx
Executable file
87
src/MXCAFDoc/MXCAFDoc_GraphNodeStorageDriver.cxx
Executable file
@@ -0,0 +1,87 @@
|
||||
// File: MXCAFDoc_GraphNodeStorageDriver.cxx
|
||||
// Created: Fri Sep 29 10:46:06 2000
|
||||
// Author: data exchange team
|
||||
// <det@nordox.nnov.matra-dtv.fr>
|
||||
|
||||
|
||||
#include <MXCAFDoc_GraphNodeStorageDriver.ixx>
|
||||
|
||||
#include <XCAFDoc_GraphNode.hxx>
|
||||
#include <PXCAFDoc_GraphNode.hxx>
|
||||
#include <Standard_NoSuchObject.hxx>
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Constructor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_GraphNodeStorageDriver::MXCAFDoc_GraphNodeStorageDriver(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ASDriver (theMsgDriver)
|
||||
{}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_GraphNodeStorageDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_GraphNodeStorageDriver::SourceType() const
|
||||
{ return STANDARD_TYPE(XCAFDoc_GraphNode); }
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(PDF_Attribute) MXCAFDoc_GraphNodeStorageDriver::NewEmpty() const
|
||||
{ return new PXCAFDoc_GraphNode(); }
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_GraphNodeStorageDriver::Paste(const Handle(TDF_Attribute)& Source,
|
||||
const Handle(PDF_Attribute)& Target,
|
||||
const Handle(MDF_SRelocationTable)& RelocTable) const
|
||||
{
|
||||
Handle(XCAFDoc_GraphNode) S = Handle(XCAFDoc_GraphNode)::DownCast (Source);
|
||||
Handle(PXCAFDoc_GraphNode) T = Handle(PXCAFDoc_GraphNode)::DownCast (Target);
|
||||
|
||||
Handle (PXCAFDoc_GraphNode) TF;
|
||||
Handle (XCAFDoc_GraphNode) F;
|
||||
Standard_Integer i;
|
||||
|
||||
for ( i = 1; i <= S->NbFathers(); i++) {
|
||||
F = S->GetFather(i);
|
||||
if (!F.IsNull ()) {
|
||||
if (!RelocTable->HasRelocation(F, TF)) {
|
||||
Standard_NoSuchObject::Raise("MXCAFDoc_GraphNodeStorageDriver::Paste");
|
||||
}
|
||||
T->SetFather(TF);
|
||||
}
|
||||
}
|
||||
|
||||
for ( i = 1; i <= S->NbChildren(); i++) {
|
||||
F = S->GetChild(i);
|
||||
if (!F.IsNull()) {
|
||||
if (!RelocTable->HasRelocation(F, TF)) {
|
||||
Standard_NoSuchObject::Raise("MXCAFDoc_GraphNodeStorageDriver::Paste");
|
||||
}
|
||||
T->SetChild(TF);
|
||||
}
|
||||
}
|
||||
|
||||
T->SetGraphID(S->ID());
|
||||
}
|
37
src/MXCAFDoc/MXCAFDoc_LayerToolRetrievalDriver.cdl
Executable file
37
src/MXCAFDoc/MXCAFDoc_LayerToolRetrievalDriver.cdl
Executable file
@@ -0,0 +1,37 @@
|
||||
-- File: MXCAFDoc_LayerToolRetrievalDriver.cdl
|
||||
-- Created: Thu Aug 31 14:56:01 2000
|
||||
-- Author: data exchange team
|
||||
-- <det@strelox.nnov.matra-dtv.fr>
|
||||
---Copyright: Matra Datavision 2000
|
||||
|
||||
|
||||
class LayerToolRetrievalDriver from MXCAFDoc inherits ARDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
uses
|
||||
RRelocationTable from MDF,
|
||||
Attribute from PDF,
|
||||
Attribute from TDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
-- Create -- Version 0
|
||||
-- returns mutable LayerToolRetrievalDriver from MXCAFDoc;
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable LayerToolRetrievalDriver from MXCAFDoc;
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
---Purpose: Returns the type: XCAFDoc_Layer
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from TDF;
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from PDF;
|
||||
Target : mutable Attribute from TDF;
|
||||
RelocTable : RRelocationTable from MDF);
|
||||
|
||||
end LayerToolRetrievalDriver;
|
63
src/MXCAFDoc/MXCAFDoc_LayerToolRetrievalDriver.cxx
Executable file
63
src/MXCAFDoc/MXCAFDoc_LayerToolRetrievalDriver.cxx
Executable file
@@ -0,0 +1,63 @@
|
||||
// File: MXCAFDoc_LayerToolRetrievalDriver.cxx
|
||||
// Created: Tue Aug 15 15:37:48 2000
|
||||
// Author: data exchange team
|
||||
// <det@strelox.nnov.matra-dtv.fr>
|
||||
|
||||
|
||||
#include <MDF_RRelocationTable.hxx>
|
||||
#include <MXCAFDoc_LayerToolRetrievalDriver.ixx>
|
||||
#include <PXCAFDoc_LayerTool.hxx>
|
||||
#include <XCAFDoc_LayerTool.hxx>
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Constructor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_LayerToolRetrievalDriver::MXCAFDoc_LayerToolRetrievalDriver(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ARDriver (theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_LayerToolRetrievalDriver::VersionNumber() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_LayerToolRetrievalDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(PXCAFDoc_LayerTool);
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TDF_Attribute) MXCAFDoc_LayerToolRetrievalDriver::NewEmpty() const
|
||||
{
|
||||
return new XCAFDoc_LayerTool();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_LayerToolRetrievalDriver::Paste (const Handle(PDF_Attribute)& /* Source */,
|
||||
const Handle(TDF_Attribute)& /* Target */,
|
||||
const Handle(MDF_RRelocationTable)& /*RelocTable*/) const
|
||||
{
|
||||
}
|
||||
|
41
src/MXCAFDoc/MXCAFDoc_LayerToolStorageDriver.cdl
Executable file
41
src/MXCAFDoc/MXCAFDoc_LayerToolStorageDriver.cdl
Executable file
@@ -0,0 +1,41 @@
|
||||
-- File: MXCAFDoc_LayerToolStorageDriver.cdl
|
||||
-- Created: Tue Aug 15 15:15:59 2000
|
||||
-- Author: data exchange team
|
||||
-- <det@strelox.nnov.matra-dtv.fr>
|
||||
---Copyright: Matra Datavision 2000
|
||||
|
||||
|
||||
class LayerToolStorageDriver from MXCAFDoc inherits ASDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses
|
||||
SRelocationTable from MDF,
|
||||
Attribute from TDF,
|
||||
Attribute from PDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
|
||||
-- Create -- Version 0
|
||||
-- returns mutable LayerToolStorageDriver from MXCAFDoc;
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable LayerToolStorageDriver from MXCAFDoc;
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
---Purpose: Returns the type: XCAFDoc_Layer.
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from PDF;
|
||||
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from TDF;
|
||||
Target : mutable Attribute from PDF;
|
||||
RelocTable : SRelocationTable from MDF);
|
||||
|
||||
|
||||
end LayerToolStorageDriver;
|
60
src/MXCAFDoc/MXCAFDoc_LayerToolStorageDriver.cxx
Executable file
60
src/MXCAFDoc/MXCAFDoc_LayerToolStorageDriver.cxx
Executable file
@@ -0,0 +1,60 @@
|
||||
// File: MXCAFDoc_LayerToolStorageDriver.cxx
|
||||
// Created: Tue Aug 15 15:32:19 2000
|
||||
// Author: data exchange team
|
||||
// <det@strelox.nnov.matra-dtv.fr>
|
||||
|
||||
|
||||
#include <MDF_SRelocationTable.hxx>
|
||||
#include <MXCAFDoc_LayerToolStorageDriver.ixx>
|
||||
#include <PXCAFDoc_LayerTool.hxx>
|
||||
#include <XCAFDoc_LayerTool.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : Constructor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_LayerToolStorageDriver::MXCAFDoc_LayerToolStorageDriver(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ASDriver (theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_LayerToolStorageDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_LayerToolStorageDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(XCAFDoc_LayerTool);
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(PDF_Attribute) MXCAFDoc_LayerToolStorageDriver::NewEmpty() const
|
||||
{
|
||||
return new PXCAFDoc_LayerTool();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_LayerToolStorageDriver::Paste (const Handle(TDF_Attribute)& /* Source */,
|
||||
const Handle(PDF_Attribute)& /* Target */,
|
||||
const Handle(MDF_SRelocationTable)& /*RelocTable*/) const
|
||||
{
|
||||
}
|
||||
|
40
src/MXCAFDoc/MXCAFDoc_LocationRetrievalDriver.cdl
Executable file
40
src/MXCAFDoc/MXCAFDoc_LocationRetrievalDriver.cdl
Executable file
@@ -0,0 +1,40 @@
|
||||
-- File: MXCAFDoc_LocationRetrievalDriver.cdl
|
||||
-- Created: Tue Aug 15 15:16:37 2000
|
||||
-- Author: data exchange team
|
||||
-- <det@strelox.nnov.matra-dtv.fr>
|
||||
---Copyright: Matra Datavision 2000
|
||||
|
||||
|
||||
class LocationRetrievalDriver from MXCAFDoc inherits ARDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses
|
||||
RRelocationTable from MDF,
|
||||
Attribute from PDF,
|
||||
Attribute from TDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
-- Create -- Version 0
|
||||
-- returns mutable LocationRetrievalDriver from MXCAFDoc;
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable LocationRetrievalDriver from MXCAFDoc;
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
---Purpose: Returns the type: XCAFDoc_Location
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from TDF;
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from PDF;
|
||||
Target : mutable Attribute from TDF;
|
||||
RelocTable : RRelocationTable from MDF);
|
||||
|
||||
end LocationRetrievalDriver;
|
||||
|
||||
|
71
src/MXCAFDoc/MXCAFDoc_LocationRetrievalDriver.cxx
Executable file
71
src/MXCAFDoc/MXCAFDoc_LocationRetrievalDriver.cxx
Executable file
@@ -0,0 +1,71 @@
|
||||
// File: MXCAFDoc_LocationRetrievalDriver.cxx
|
||||
// Created: Tue Aug 15 15:37:48 2000
|
||||
// Author: data exchange team
|
||||
// <det@strelox.nnov.matra-dtv.fr>
|
||||
|
||||
|
||||
#include <MDF_RRelocationTable.hxx>
|
||||
#include <MXCAFDoc_LocationRetrievalDriver.ixx>
|
||||
#include <MgtTopLoc.hxx>
|
||||
#include <PTColStd_PersistentTransientMap.hxx>
|
||||
#include <PXCAFDoc_Location.hxx>
|
||||
#include <XCAFDoc_Location.hxx>
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Constructor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_LocationRetrievalDriver::MXCAFDoc_LocationRetrievalDriver(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ARDriver (theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_LocationRetrievalDriver::VersionNumber() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_LocationRetrievalDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(PXCAFDoc_Location);
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TDF_Attribute) MXCAFDoc_LocationRetrievalDriver::NewEmpty() const
|
||||
{
|
||||
return new XCAFDoc_Location();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_LocationRetrievalDriver::Paste(const Handle(PDF_Attribute)& Source,
|
||||
const Handle(TDF_Attribute)& Target,
|
||||
const Handle(MDF_RRelocationTable)& RelocTable) const
|
||||
{
|
||||
Handle(PXCAFDoc_Location) S = Handle(PXCAFDoc_Location)::DownCast (Source);
|
||||
Handle(XCAFDoc_Location) T = Handle(XCAFDoc_Location)::DownCast (Target);
|
||||
|
||||
PTColStd_PersistentTransientMap& PTMap = RelocTable->OtherTable();
|
||||
T->Set(MgtTopLoc::Translate(S->Get(), PTMap));
|
||||
|
||||
}
|
||||
|
44
src/MXCAFDoc/MXCAFDoc_LocationStorageDriver.cdl
Executable file
44
src/MXCAFDoc/MXCAFDoc_LocationStorageDriver.cdl
Executable file
@@ -0,0 +1,44 @@
|
||||
-- File: MXCAFDoc_LocationStorageDriver.cdl
|
||||
-- Created: Tue Aug 15 15:15:59 2000
|
||||
-- Author: data exchange team
|
||||
-- <det@strelox.nnov.matra-dtv.fr>
|
||||
---Copyright: Matra Datavision 2000
|
||||
|
||||
|
||||
class LocationStorageDriver from MXCAFDoc inherits ASDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses
|
||||
SRelocationTable from MDF,
|
||||
Attribute from TDF,
|
||||
Attribute from PDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
|
||||
-- Create -- Version 0
|
||||
-- returns mutable LocationStorageDriver from MXCAFDoc;
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable LocationStorageDriver from MXCAFDoc;
|
||||
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
---Purpose: Returns the type: XCAFDoc_Location.
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from PDF;
|
||||
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from TDF;
|
||||
Target : mutable Attribute from PDF;
|
||||
RelocTable : SRelocationTable from MDF);
|
||||
|
||||
|
||||
end LocationStorageDriver;
|
||||
|
||||
|
67
src/MXCAFDoc/MXCAFDoc_LocationStorageDriver.cxx
Executable file
67
src/MXCAFDoc/MXCAFDoc_LocationStorageDriver.cxx
Executable file
@@ -0,0 +1,67 @@
|
||||
// File: MXCAFDoc_LocationStorageDriver.cxx
|
||||
// Created: Tue Aug 15 15:32:19 2000
|
||||
// Author: data exchange team
|
||||
// <det@strelox.nnov.matra-dtv.fr>
|
||||
|
||||
|
||||
#include <MDF_SRelocationTable.hxx>
|
||||
#include <MXCAFDoc_LocationStorageDriver.ixx>
|
||||
#include <MgtTopLoc.hxx>
|
||||
#include <PTColStd_TransientPersistentMap.hxx>
|
||||
#include <PXCAFDoc_Location.hxx>
|
||||
#include <XCAFDoc_Location.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : Constructor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_LocationStorageDriver::MXCAFDoc_LocationStorageDriver(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ASDriver (theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_LocationStorageDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_LocationStorageDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(XCAFDoc_Location);
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(PDF_Attribute) MXCAFDoc_LocationStorageDriver::NewEmpty() const
|
||||
{
|
||||
return new PXCAFDoc_Location();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_LocationStorageDriver::Paste(const Handle(TDF_Attribute)& Source,
|
||||
const Handle(PDF_Attribute)& Target,
|
||||
const Handle(MDF_SRelocationTable)& RelocTable) const
|
||||
{
|
||||
Handle(XCAFDoc_Location) S = Handle(XCAFDoc_Location)::DownCast (Source);
|
||||
Handle(PXCAFDoc_Location) T = Handle(PXCAFDoc_Location)::DownCast (Target);
|
||||
|
||||
PTColStd_TransientPersistentMap& TPMap = RelocTable->OtherTable();
|
||||
T->Set(MgtTopLoc::Translate(S->Get(), TPMap));
|
||||
}
|
||||
|
35
src/MXCAFDoc/MXCAFDoc_MaterialRetrievalDriver.cdl
Executable file
35
src/MXCAFDoc/MXCAFDoc_MaterialRetrievalDriver.cdl
Executable file
@@ -0,0 +1,35 @@
|
||||
-- File: MXCAFDoc_MaterialRetrievalDriver.cdl
|
||||
-- Created: Wed Dec 10 09:48:30 2008
|
||||
-- Author: Pavel TELKOV
|
||||
-- <ptv@valenox>
|
||||
---Copyright: Open CASCADE 2008
|
||||
|
||||
class MaterialRetrievalDriver from MXCAFDoc inherits ARDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
uses
|
||||
RRelocationTable from MDF,
|
||||
Attribute from PDF,
|
||||
Attribute from TDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable MaterialRetrievalDriver from MXCAFDoc;
|
||||
---Purpose: Returns mutable MaterialRetrievalDriver from MXCAFDoc;
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
---Purpose: Returns the type: XCAFDoc_Material
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from TDF;
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from PDF;
|
||||
Target : mutable Attribute from TDF;
|
||||
RelocTable : RRelocationTable from MDF);
|
||||
|
||||
end MaterialRetrievalDriver from MXCAFDoc;
|
79
src/MXCAFDoc/MXCAFDoc_MaterialRetrievalDriver.cxx
Executable file
79
src/MXCAFDoc/MXCAFDoc_MaterialRetrievalDriver.cxx
Executable file
@@ -0,0 +1,79 @@
|
||||
// File: MXCAFDoc_MaterialRetrievalDriver.cxx
|
||||
// Created: 10.12.08 09:46:46
|
||||
// Author: Pavel TELKOV
|
||||
// Copyright: Open CASCADE 2008
|
||||
|
||||
#include <MXCAFDoc_MaterialRetrievalDriver.ixx>
|
||||
#include <PXCAFDoc_Material.hxx>
|
||||
#include <XCAFDoc_Material.hxx>
|
||||
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
#include <PCollection_HAsciiString.hxx>
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : MCAFDoc_MaterialRetrievalDriver
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_MaterialRetrievalDriver::MXCAFDoc_MaterialRetrievalDriver
|
||||
(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ARDriver (theMsgDriver)
|
||||
{}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_MaterialRetrievalDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_MaterialRetrievalDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(PXCAFDoc_Material);
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TDF_Attribute) MXCAFDoc_MaterialRetrievalDriver::NewEmpty() const
|
||||
{
|
||||
return new XCAFDoc_Material();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_MaterialRetrievalDriver::Paste(const Handle(PDF_Attribute)& Source,
|
||||
const Handle(TDF_Attribute)& Target,
|
||||
const Handle(MDF_RRelocationTable)& RelocTable) const
|
||||
{
|
||||
Handle(PXCAFDoc_Material) S = Handle(PXCAFDoc_Material)::DownCast (Source);
|
||||
Handle(XCAFDoc_Material) T = Handle(XCAFDoc_Material)::DownCast (Target);
|
||||
|
||||
#ifdef DEB
|
||||
PTColStd_PersistentTransientMap& PTMap =
|
||||
#endif
|
||||
RelocTable->OtherTable();
|
||||
Handle(TCollection_HAsciiString) aName, aDescr, aDensName, aDensValType;
|
||||
if ( !S->GetName().IsNull() )
|
||||
aName = new TCollection_HAsciiString( (S->GetName())->Convert() );
|
||||
if ( !S->GetDescription().IsNull() )
|
||||
aDescr = new TCollection_HAsciiString( (S->GetDescription())->Convert() );
|
||||
if ( !S->GetDensName().IsNull() )
|
||||
aDensName = new TCollection_HAsciiString( (S->GetDensName())->Convert() );
|
||||
if ( !S->GetDensValType().IsNull() )
|
||||
aDensValType = new TCollection_HAsciiString( (S->GetDensValType())->Convert() );
|
||||
|
||||
T->Set(aName, aDescr, S->GetDensity(), aDensName, aDensValType);
|
||||
}
|
36
src/MXCAFDoc/MXCAFDoc_MaterialStorageDriver.cdl
Executable file
36
src/MXCAFDoc/MXCAFDoc_MaterialStorageDriver.cdl
Executable file
@@ -0,0 +1,36 @@
|
||||
-- File: MXCAFDoc_MaterialStorageDriver.cdl
|
||||
-- Created: Wed Dec 10 09:05:14 2008
|
||||
-- Author: Pavel TELKOV
|
||||
-- <ptv@valenox>
|
||||
---Copyright: Open CASCADE 2008
|
||||
|
||||
class MaterialStorageDriver from MXCAFDoc inherits ASDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
uses
|
||||
SRelocationTable from MDF,
|
||||
Attribute from TDF,
|
||||
Attribute from PDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable MaterialStorageDriver from MXCAFDoc;
|
||||
---Purpose: Returns mutable MaterialStorageDriver from MXCAFDoc;
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
---Purpose: Returns the type: XCAFDoc_Material.
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from PDF;
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from TDF;
|
||||
Target : mutable Attribute from PDF;
|
||||
RelocTable : SRelocationTable from MDF);
|
||||
|
||||
end MaterialStorageDriver;
|
84
src/MXCAFDoc/MXCAFDoc_MaterialStorageDriver.cxx
Executable file
84
src/MXCAFDoc/MXCAFDoc_MaterialStorageDriver.cxx
Executable file
@@ -0,0 +1,84 @@
|
||||
// File: MXCAFDoc_MaterialStorageDriver.cxx
|
||||
// Created: 10.12.08 09:06:26
|
||||
// Author: Pavel TELKOV
|
||||
// Copyright: Open CASCADE 2008
|
||||
|
||||
#include <MXCAFDoc_MaterialStorageDriver.ixx>
|
||||
#include <XCAFDoc_Material.hxx>
|
||||
#include <PXCAFDoc_Material.hxx>
|
||||
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
#include <TColStd_HArray1OfReal.hxx>
|
||||
#include <PCollection_HAsciiString.hxx>
|
||||
#include <PColStd_HArray1OfReal.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : MXCAFDoc_MaterialStorageDriver
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_MaterialStorageDriver::MXCAFDoc_MaterialStorageDriver
|
||||
(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ASDriver (theMsgDriver)
|
||||
{}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_MaterialStorageDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_MaterialStorageDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(XCAFDoc_Material);
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(PDF_Attribute) MXCAFDoc_MaterialStorageDriver::NewEmpty() const
|
||||
{
|
||||
return new PXCAFDoc_Material();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_MaterialStorageDriver::Paste(const Handle(TDF_Attribute)& Source,
|
||||
const Handle(PDF_Attribute)& Target,
|
||||
const Handle(MDF_SRelocationTable)& RelocTable) const
|
||||
{
|
||||
Handle(XCAFDoc_Material) S = Handle(XCAFDoc_Material)::DownCast (Source);
|
||||
Handle(PXCAFDoc_Material) T = Handle(PXCAFDoc_Material)::DownCast (Target);
|
||||
#ifdef DEB
|
||||
PTColStd_TransientPersistentMap& TPMap =
|
||||
#endif
|
||||
RelocTable->OtherTable();
|
||||
Handle(TCollection_HAsciiString) aNameStr = S->GetName();
|
||||
Handle(TCollection_HAsciiString) aDescrStr = S->GetDescription();
|
||||
Handle(TCollection_HAsciiString) aDensNameStr = S->GetDensName();
|
||||
Handle(TCollection_HAsciiString) aDensValTypeStr = S->GetDensValType();
|
||||
|
||||
Handle(PCollection_HAsciiString) aName, aDescr, aDensName, aDensValType;
|
||||
if ( !aNameStr.IsNull() )
|
||||
aName = new PCollection_HAsciiString (aNameStr->String());
|
||||
if ( !aDescrStr.IsNull() )
|
||||
aDescr = new PCollection_HAsciiString (aDescrStr->String());
|
||||
if ( !aDensNameStr.IsNull() )
|
||||
aDensName = new PCollection_HAsciiString (aDensNameStr->String());
|
||||
if ( !aDensValTypeStr.IsNull() )
|
||||
aDensValType = new PCollection_HAsciiString (aDensValTypeStr->String());
|
||||
|
||||
T->Set(aName, aDescr, S->GetDensity(), aDensName, aDensValType);
|
||||
}
|
36
src/MXCAFDoc/MXCAFDoc_MaterialToolRetrievalDriver.cdl
Executable file
36
src/MXCAFDoc/MXCAFDoc_MaterialToolRetrievalDriver.cdl
Executable file
@@ -0,0 +1,36 @@
|
||||
-- File: MXCAFDoc_MaterialToolRetrievalDriver.cdl
|
||||
-- Created: Wed Dec 10 09:09:35 2008
|
||||
-- Author: Pavel TELKOV
|
||||
-- <ptv@valenox>
|
||||
---Copyright: Open CASCADE 2008
|
||||
|
||||
class MaterialToolRetrievalDriver from MXCAFDoc inherits ARDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
uses
|
||||
RRelocationTable from MDF,
|
||||
Attribute from PDF,
|
||||
Attribute from TDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
-- Create -- Version 0
|
||||
-- returns mutable MaterialToolRetrievalDriver from MXCAFDoc;
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable MaterialToolRetrievalDriver from MXCAFDoc;
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
---Purpose: Returns the type: XCAFDoc_MaterialTool
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from TDF;
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from PDF;
|
||||
Target : mutable Attribute from TDF;
|
||||
RelocTable : RRelocationTable from MDF);
|
||||
|
||||
end MaterialToolRetrievalDriver;
|
63
src/MXCAFDoc/MXCAFDoc_MaterialToolRetrievalDriver.cxx
Executable file
63
src/MXCAFDoc/MXCAFDoc_MaterialToolRetrievalDriver.cxx
Executable file
@@ -0,0 +1,63 @@
|
||||
// File: MXCAFDoc_MaterialToolRetrievalDriver.cxx
|
||||
// Created: 10.12.08 09:12:17
|
||||
// Author: Pavel TELKOV
|
||||
// Copyright: Open CASCADE 2008
|
||||
|
||||
#include <MDF_RRelocationTable.hxx>
|
||||
#include <MXCAFDoc_MaterialToolRetrievalDriver.ixx>
|
||||
#include <PXCAFDoc_MaterialTool.hxx>
|
||||
#include <XCAFDoc_MaterialTool.hxx>
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Constructor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_MaterialToolRetrievalDriver::MXCAFDoc_MaterialToolRetrievalDriver
|
||||
(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ARDriver (theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_MaterialToolRetrievalDriver::VersionNumber() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_MaterialToolRetrievalDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(PXCAFDoc_MaterialTool);
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TDF_Attribute) MXCAFDoc_MaterialToolRetrievalDriver::NewEmpty() const
|
||||
{
|
||||
return new XCAFDoc_MaterialTool();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_MaterialToolRetrievalDriver::Paste
|
||||
(const Handle(PDF_Attribute)& /* Source */,
|
||||
const Handle(TDF_Attribute)& /* Target */,
|
||||
const Handle(MDF_RRelocationTable)& /*RelocTable*/) const
|
||||
{
|
||||
}
|
41
src/MXCAFDoc/MXCAFDoc_MaterialToolStorageDriver.cdl
Executable file
41
src/MXCAFDoc/MXCAFDoc_MaterialToolStorageDriver.cdl
Executable file
@@ -0,0 +1,41 @@
|
||||
-- File: MXCAFDoc_MaterialToolStorageDriver.cdl
|
||||
-- Created: Wed Dec 10 09:05:14 2008
|
||||
-- Author: Pavel TELKOV
|
||||
-- <ptv@valenox>
|
||||
---Copyright: Open CASCADE 2008
|
||||
|
||||
|
||||
class MaterialToolStorageDriver from MXCAFDoc inherits ASDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses
|
||||
SRelocationTable from MDF,
|
||||
Attribute from TDF,
|
||||
Attribute from PDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
|
||||
-- Create -- Version 0
|
||||
-- returns mutable MaterialToolStorageDriver from MXCAFDoc;
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable MaterialToolStorageDriver from MXCAFDoc;
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
---Purpose: Returns the type: XCAFDoc_MaterialTool
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from PDF;
|
||||
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from TDF;
|
||||
Target : mutable Attribute from PDF;
|
||||
RelocTable : SRelocationTable from MDF);
|
||||
|
||||
|
||||
end MaterialToolStorageDriver;
|
60
src/MXCAFDoc/MXCAFDoc_MaterialToolStorageDriver.cxx
Executable file
60
src/MXCAFDoc/MXCAFDoc_MaterialToolStorageDriver.cxx
Executable file
@@ -0,0 +1,60 @@
|
||||
// File: MXCAFDoc_MaterialToolStorageDriver.cxx
|
||||
// Created: 10.12.08 09:08:37
|
||||
// Author: Pavel TELKOV
|
||||
// Copyright: Open CASCADE 2008
|
||||
|
||||
#include <MDF_SRelocationTable.hxx>
|
||||
#include <MXCAFDoc_MaterialToolStorageDriver.ixx>
|
||||
#include <PXCAFDoc_MaterialTool.hxx>
|
||||
#include <XCAFDoc_MaterialTool.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : Constructor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_MaterialToolStorageDriver::MXCAFDoc_MaterialToolStorageDriver
|
||||
(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ASDriver (theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_MaterialToolStorageDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_MaterialToolStorageDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(XCAFDoc_MaterialTool);
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(PDF_Attribute) MXCAFDoc_MaterialToolStorageDriver::NewEmpty() const
|
||||
{
|
||||
return new PXCAFDoc_MaterialTool();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_MaterialToolStorageDriver::Paste
|
||||
(const Handle(TDF_Attribute)& /* Source */,
|
||||
const Handle(PDF_Attribute)& /* Target */,
|
||||
const Handle(MDF_SRelocationTable)& /*RelocTable*/) const
|
||||
{
|
||||
}
|
38
src/MXCAFDoc/MXCAFDoc_ShapeToolRetrievalDriver.cdl
Executable file
38
src/MXCAFDoc/MXCAFDoc_ShapeToolRetrievalDriver.cdl
Executable file
@@ -0,0 +1,38 @@
|
||||
-- File: MXCAFDoc_ShapeToolRetrievalDriver.cdl
|
||||
-- Created: Tue Aug 15 15:16:37 2000
|
||||
-- Author: data exchange team
|
||||
-- <det@strelox.nnov.matra-dtv.fr>
|
||||
---Copyright: Matra Datavision 2000
|
||||
|
||||
|
||||
class ShapeToolRetrievalDriver from MXCAFDoc inherits ARDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses
|
||||
RRelocationTable from MDF,
|
||||
Attribute from PDF,
|
||||
Attribute from TDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
-- Create -- Version 0
|
||||
-- returns mutable ShapeToolRetrievalDriver from MXCAFDoc;
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable ShapeToolRetrievalDriver from MXCAFDoc;
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
---Purpose: Returns the type: XCAFDoc_Color
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from TDF;
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from PDF;
|
||||
Target : mutable Attribute from TDF;
|
||||
RelocTable : RRelocationTable from MDF);
|
||||
|
||||
end ShapeToolRetrievalDriver;
|
65
src/MXCAFDoc/MXCAFDoc_ShapeToolRetrievalDriver.cxx
Executable file
65
src/MXCAFDoc/MXCAFDoc_ShapeToolRetrievalDriver.cxx
Executable file
@@ -0,0 +1,65 @@
|
||||
// File: MXCAFDoc_ShapeToolRetrievalDriver.cxx
|
||||
// Created: Tue Aug 15 15:37:48 2000
|
||||
// Author: data exchange team
|
||||
// <det@strelox.nnov.matra-dtv.fr>
|
||||
|
||||
|
||||
#include <MDF_RRelocationTable.hxx>
|
||||
#include <MXCAFDoc_ShapeToolRetrievalDriver.ixx>
|
||||
#include <MgtTopLoc.hxx>
|
||||
#include <PTColStd_PersistentTransientMap.hxx>
|
||||
#include <PXCAFDoc_ShapeTool.hxx>
|
||||
#include <XCAFDoc_ShapeTool.hxx>
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Constructor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_ShapeToolRetrievalDriver::MXCAFDoc_ShapeToolRetrievalDriver(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ARDriver (theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_ShapeToolRetrievalDriver::VersionNumber() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_ShapeToolRetrievalDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(PXCAFDoc_ShapeTool);
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TDF_Attribute) MXCAFDoc_ShapeToolRetrievalDriver::NewEmpty() const
|
||||
{
|
||||
return new XCAFDoc_ShapeTool();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_ShapeToolRetrievalDriver::Paste (const Handle(PDF_Attribute)& /* Source */,
|
||||
const Handle(TDF_Attribute)& /* Target*/,
|
||||
const Handle(MDF_RRelocationTable)& /*RelocTable*/) const
|
||||
{
|
||||
}
|
||||
|
41
src/MXCAFDoc/MXCAFDoc_ShapeToolStorageDriver.cdl
Executable file
41
src/MXCAFDoc/MXCAFDoc_ShapeToolStorageDriver.cdl
Executable file
@@ -0,0 +1,41 @@
|
||||
-- File: MXCAFDoc_ShapeToolStorageDriver.cdl
|
||||
-- Created: Tue Aug 15 15:15:59 2000
|
||||
-- Author: data exchange team
|
||||
-- <det@strelox.nnov.matra-dtv.fr>
|
||||
---Copyright: Matra Datavision 2000
|
||||
|
||||
|
||||
class ShapeToolStorageDriver from MXCAFDoc inherits ASDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses
|
||||
SRelocationTable from MDF,
|
||||
Attribute from TDF,
|
||||
Attribute from PDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
|
||||
-- Create -- Version 0
|
||||
-- returns mutable ShapeToolStorageDriver from MXCAFDoc;
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable ShapeToolStorageDriver from MXCAFDoc;
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
---Purpose: Returns the type: XCAFDoc_Color.
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from PDF;
|
||||
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from TDF;
|
||||
Target : mutable Attribute from PDF;
|
||||
RelocTable : SRelocationTable from MDF);
|
||||
|
||||
|
||||
end ShapeToolStorageDriver;
|
62
src/MXCAFDoc/MXCAFDoc_ShapeToolStorageDriver.cxx
Executable file
62
src/MXCAFDoc/MXCAFDoc_ShapeToolStorageDriver.cxx
Executable file
@@ -0,0 +1,62 @@
|
||||
// File: MXCAFDoc_ShapeToolStorageDriver.cxx
|
||||
// Created: Tue Aug 15 15:32:19 2000
|
||||
// Author: data exchange team
|
||||
// <det@strelox.nnov.matra-dtv.fr>
|
||||
|
||||
|
||||
#include <MDF_SRelocationTable.hxx>
|
||||
#include <MXCAFDoc_ShapeToolStorageDriver.ixx>
|
||||
#include <MgtTopLoc.hxx>
|
||||
#include <PTColStd_TransientPersistentMap.hxx>
|
||||
#include <PXCAFDoc_ShapeTool.hxx>
|
||||
#include <XCAFDoc_ShapeTool.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : Constructor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_ShapeToolStorageDriver::MXCAFDoc_ShapeToolStorageDriver(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ASDriver (theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_ShapeToolStorageDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_ShapeToolStorageDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(XCAFDoc_ShapeTool);
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(PDF_Attribute) MXCAFDoc_ShapeToolStorageDriver::NewEmpty() const
|
||||
{
|
||||
return new PXCAFDoc_ShapeTool();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_ShapeToolStorageDriver::Paste (const Handle(TDF_Attribute)& /* Source */,
|
||||
const Handle(PDF_Attribute)& /* Target */,
|
||||
const Handle(MDF_SRelocationTable)& /*RelocTable*/) const
|
||||
{
|
||||
}
|
||||
|
37
src/MXCAFDoc/MXCAFDoc_VolumeRetrievalDriver.cdl
Executable file
37
src/MXCAFDoc/MXCAFDoc_VolumeRetrievalDriver.cdl
Executable file
@@ -0,0 +1,37 @@
|
||||
-- File: MXCAFDoc_VolumeRetrievalDriver.cdl
|
||||
-- Created: Fri Sep 8 18:26:44 2000
|
||||
-- Author: data exchange team
|
||||
-- <det@nordox.nnov.matra-dtv.fr>
|
||||
---Copyright: Matra Datavision 2000
|
||||
|
||||
|
||||
class VolumeRetrievalDriver from MXCAFDoc inherits ARDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
uses
|
||||
RRelocationTable from MDF,
|
||||
Attribute from PDF,
|
||||
Attribute from TDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
-- Create
|
||||
-- returns mutable VolumeRetrievalDriver from MXCAFDoc;
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable VolumeRetrievalDriver from MXCAFDoc;
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
---Purpose: Returns the type: XCAFDoc_Volume
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from TDF;
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from PDF;
|
||||
Target : mutable Attribute from TDF;
|
||||
RelocTable : RRelocationTable from MDF);
|
||||
|
||||
end VolumeRetrievalDriver from MXCAFDoc;
|
64
src/MXCAFDoc/MXCAFDoc_VolumeRetrievalDriver.cxx
Executable file
64
src/MXCAFDoc/MXCAFDoc_VolumeRetrievalDriver.cxx
Executable file
@@ -0,0 +1,64 @@
|
||||
// File: MXCAFDoc_VolumeRetrievalDriver.cxx
|
||||
// Created: Fri Sep 8 18:31:04 2000
|
||||
// Author: data exchange team
|
||||
// <det@nordox.nnov.matra-dtv.fr>
|
||||
|
||||
|
||||
#include <MXCAFDoc_VolumeRetrievalDriver.ixx>
|
||||
#include <PXCAFDoc_Volume.hxx>
|
||||
#include <XCAFDoc_Volume.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : MCAFDoc_VolumeRetrievalDriver
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_VolumeRetrievalDriver::MXCAFDoc_VolumeRetrievalDriver(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ARDriver (theMsgDriver)
|
||||
{}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_VolumeRetrievalDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_VolumeRetrievalDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(PXCAFDoc_Volume);
|
||||
return sourceType;
|
||||
}
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TDF_Attribute) MXCAFDoc_VolumeRetrievalDriver::NewEmpty() const
|
||||
{
|
||||
return new XCAFDoc_Volume();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_VolumeRetrievalDriver::Paste(const Handle(PDF_Attribute)& Source,
|
||||
const Handle(TDF_Attribute)& Target,
|
||||
const Handle(MDF_RRelocationTable)& RelocTable) const
|
||||
{
|
||||
Handle(PXCAFDoc_Volume) S = Handle(PXCAFDoc_Volume)::DownCast (Source);
|
||||
Handle(XCAFDoc_Volume) T = Handle(XCAFDoc_Volume)::DownCast (Target);
|
||||
|
||||
#ifdef DEB
|
||||
PTColStd_PersistentTransientMap& PTMap =
|
||||
#endif
|
||||
RelocTable->OtherTable();
|
||||
T->Set(S->Get());
|
||||
}
|
38
src/MXCAFDoc/MXCAFDoc_VolumeStorageDriver.cdl
Executable file
38
src/MXCAFDoc/MXCAFDoc_VolumeStorageDriver.cdl
Executable file
@@ -0,0 +1,38 @@
|
||||
-- File: MXCAFDoc_VolumeStorageDriver.cdl
|
||||
-- Created: Fri Sep 8 18:36:59 2000
|
||||
-- Author: data exchange team
|
||||
-- <det@nordox.nnov.matra-dtv.fr>
|
||||
---Copyright: Matra Datavision 2000
|
||||
|
||||
|
||||
class VolumeStorageDriver from MXCAFDoc inherits ASDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
uses
|
||||
SRelocationTable from MDF,
|
||||
Attribute from TDF,
|
||||
Attribute from PDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
|
||||
-- Create
|
||||
-- returns mutable VolumeStorageDriver from MXCAFDoc;
|
||||
Create (theMsgDriver : MessageDriver from CDM)
|
||||
returns mutable VolumeStorageDriver from MXCAFDoc;
|
||||
|
||||
VersionNumber(me) returns Integer from Standard;
|
||||
---Purpose: Returns the version number from which the driver
|
||||
-- is available: 0.
|
||||
|
||||
SourceType(me) returns Type from Standard;
|
||||
---Purpose: Returns the type: XCAFDoc_Volume.
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from PDF;
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from TDF;
|
||||
Target : mutable Attribute from PDF;
|
||||
RelocTable : SRelocationTable from MDF);
|
||||
|
||||
end VolumeStorageDriver;
|
65
src/MXCAFDoc/MXCAFDoc_VolumeStorageDriver.cxx
Executable file
65
src/MXCAFDoc/MXCAFDoc_VolumeStorageDriver.cxx
Executable file
@@ -0,0 +1,65 @@
|
||||
// File: MXCAFDoc_VolumeStorageDriver.cxx
|
||||
// Created: Fri Sep 8 18:37:02 2000
|
||||
// Author: data exchange team
|
||||
// <det@nordox.nnov.matra-dtv.fr>
|
||||
|
||||
|
||||
#include <MXCAFDoc_VolumeStorageDriver.ixx>
|
||||
#include <XCAFDoc_Volume.hxx>
|
||||
#include <PXCAFDoc_Volume.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : MXCAFDoc_VolumeStorageDriver
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MXCAFDoc_VolumeStorageDriver::MXCAFDoc_VolumeStorageDriver(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ASDriver (theMsgDriver)
|
||||
{}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MXCAFDoc_VolumeStorageDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MXCAFDoc_VolumeStorageDriver::SourceType() const
|
||||
{
|
||||
static Handle(Standard_Type) sourceType = STANDARD_TYPE(XCAFDoc_Volume);
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(PDF_Attribute) MXCAFDoc_VolumeStorageDriver::NewEmpty() const
|
||||
{
|
||||
return new PXCAFDoc_Volume();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MXCAFDoc_VolumeStorageDriver::Paste(const Handle(TDF_Attribute)& Source,
|
||||
const Handle(PDF_Attribute)& Target,
|
||||
const Handle(MDF_SRelocationTable)& RelocTable) const
|
||||
{
|
||||
Handle(XCAFDoc_Volume) S = Handle(XCAFDoc_Volume)::DownCast (Source);
|
||||
Handle(PXCAFDoc_Volume) T = Handle(PXCAFDoc_Volume)::DownCast (Target);
|
||||
|
||||
#ifdef DEB
|
||||
PTColStd_TransientPersistentMap& TPMap =
|
||||
#endif
|
||||
RelocTable->OtherTable();
|
||||
T->Set(S->Get());
|
||||
}
|
Reference in New Issue
Block a user