mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
Integration of OCCT 6.5.0 from SVN
This commit is contained in:
106
src/MDataXtd/MDataXtd.cdl
Executable file
106
src/MDataXtd/MDataXtd.cdl
Executable file
@@ -0,0 +1,106 @@
|
||||
-- File: MDataStd.cdl
|
||||
-- Created: Thu Aug 7 16:12:08 1997
|
||||
-- Author: VAUTHIER Jean-Claude
|
||||
-- modified Sergey Zaritchny
|
||||
---Copyright: Matra Datavision 1997
|
||||
|
||||
|
||||
|
||||
package MDataXtd
|
||||
|
||||
---Purpose: Storage and Retrieval drivers for modelling
|
||||
-- attributes. Transient attributes are defined in
|
||||
-- package TDataStd and persistent one are defined in
|
||||
-- package PDataStd
|
||||
|
||||
uses TDF,
|
||||
PDF,
|
||||
MDF,
|
||||
CDM,
|
||||
TDataStd,
|
||||
TDataXtd,
|
||||
Geom, -- a supprimer des que Translate est poussee dans MgtGeom
|
||||
PGeom -- a supprimer des que Translate est poussee dans MgtGeom
|
||||
|
||||
is
|
||||
|
||||
---Purpose: Storage drivers for TDataXtd attributes
|
||||
-- =======================================
|
||||
|
||||
class ShapeStorageDriver;
|
||||
|
||||
class PointStorageDriver;
|
||||
|
||||
class AxisStorageDriver;
|
||||
|
||||
class PlaneStorageDriver;
|
||||
|
||||
class GeometryStorageDriver;
|
||||
|
||||
class ConstraintStorageDriver;
|
||||
|
||||
class PlacementStorageDriver;
|
||||
|
||||
class PatternStdStorageDriver;
|
||||
|
||||
|
||||
|
||||
---Purpose: Retrieval drivers for PDataXtd attributes
|
||||
-- =========================================
|
||||
|
||||
class ShapeRetrievalDriver;
|
||||
|
||||
class PointRetrievalDriver;
|
||||
|
||||
class AxisRetrievalDriver;
|
||||
|
||||
class PlaneRetrievalDriver;
|
||||
|
||||
class GeometryRetrievalDriver;
|
||||
|
||||
class ConstraintRetrievalDriver;
|
||||
|
||||
class PlacementRetrievalDriver;
|
||||
|
||||
class PatternStdRetrievalDriver;
|
||||
|
||||
|
||||
|
||||
AddStorageDrivers(aDriverSeq : ASDriverHSequence from MDF; theMessageDriver : MessageDriver from CDM);
|
||||
---Purpose: Adds the attribute storage drivers to <aDriverSeq>.
|
||||
|
||||
|
||||
AddRetrievalDrivers(aDriverSeq : ARDriverHSequence from MDF; theMessageDriver : MessageDriver from CDM);
|
||||
---Purpose: Adds the attribute retrieval drivers to <aDriverSeq>.
|
||||
|
||||
|
||||
Translate (Geometry : Geometry from Geom)
|
||||
---Purpose: Method to launch in MgtGeom
|
||||
-- Delete MDataStd_1.cxx
|
||||
-- Modify MDataStd_GeometryStorageDriver::Paste
|
||||
returns Geometry from PGeom;
|
||||
|
||||
|
||||
Translate (Geometry : Geometry from PGeom)
|
||||
---Purpose : Method to lasunch in MgtGeom
|
||||
-- Delete MDataStd_1.cxx
|
||||
-- Modify MDataStd_GeometryRetrievalDriver::Paste
|
||||
returns Geometry from Geom;
|
||||
|
||||
|
||||
---Purpose: Translation of TDataXtd enumerations to integer
|
||||
-- ===============================================
|
||||
|
||||
ConstraintTypeToInteger (e : ConstraintEnum from TDataXtd)
|
||||
returns Integer from Standard;
|
||||
|
||||
IntegerToConstraintType (i : Integer from Standard)
|
||||
returns ConstraintEnum from TDataXtd;
|
||||
|
||||
GeometryTypeToInteger (e : GeometryEnum from TDataXtd)
|
||||
returns Integer from Standard;
|
||||
|
||||
IntegerToGeometryType (i : Integer from Standard)
|
||||
returns GeometryEnum from TDataXtd;
|
||||
|
||||
end MDataXtd;
|
309
src/MDataXtd/MDataXtd.cxx
Executable file
309
src/MDataXtd/MDataXtd.cxx
Executable file
@@ -0,0 +1,309 @@
|
||||
// File: MDataStd.cxx
|
||||
// ------------
|
||||
// Author: DAUTRY Philippe
|
||||
// Copyright: Matra Datavision 1997
|
||||
// modified Sergey Zaritchny
|
||||
// Version: 0.0
|
||||
// History: Version Date Purpose
|
||||
// 0.0 Aug 4 1997 Creation
|
||||
|
||||
|
||||
|
||||
#include <MDataXtd.ixx>
|
||||
#include <MDF_ASDriverTable.hxx>
|
||||
#include <MDF_ARDriverTable.hxx>
|
||||
#include <CDM_MessageDriver.hxx>
|
||||
//
|
||||
// Storage
|
||||
//
|
||||
#include <MDataXtd_ShapeStorageDriver.hxx>
|
||||
#include <MDataXtd_PointStorageDriver.hxx>
|
||||
#include <MDataXtd_AxisStorageDriver.hxx>
|
||||
#include <MDataXtd_PlaneStorageDriver.hxx>
|
||||
#include <MDataXtd_GeometryStorageDriver.hxx>
|
||||
#include <MDataXtd_ConstraintStorageDriver.hxx>
|
||||
#include <MDataXtd_PlacementStorageDriver.hxx>
|
||||
#include <MDataXtd_PatternStdStorageDriver.hxx>
|
||||
|
||||
//
|
||||
// Retrieval
|
||||
//
|
||||
#include <MDataXtd_ShapeRetrievalDriver.hxx>
|
||||
#include <MDataXtd_PointRetrievalDriver.hxx>
|
||||
#include <MDataXtd_AxisRetrievalDriver.hxx>
|
||||
#include <MDataXtd_PlaneRetrievalDriver.hxx>
|
||||
#include <MDataXtd_GeometryRetrievalDriver.hxx>
|
||||
#include <MDataXtd_ConstraintRetrievalDriver.hxx>
|
||||
#include <MDataXtd_PlacementRetrievalDriver.hxx>
|
||||
#include <MDataXtd_PatternStdRetrievalDriver.hxx>
|
||||
|
||||
//
|
||||
// enums
|
||||
//
|
||||
#include <TDataStd_RealEnum.hxx>
|
||||
#include <TDataXtd_ConstraintEnum.hxx>
|
||||
#include <TDataXtd_GeometryEnum.hxx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
#include <MgtGeom.hxx>
|
||||
#include <Geom_Curve.hxx>
|
||||
#include <Geom_Surface.hxx>
|
||||
#include <Geom_Point.hxx>
|
||||
#include <Geom_Axis1Placement.hxx>
|
||||
#include <Geom_Axis2Placement.hxx>
|
||||
#include <Geom_Direction.hxx>
|
||||
#include <Geom_VectorWithMagnitude.hxx>
|
||||
#include <PGeom_Curve.hxx>
|
||||
#include <PGeom_Surface.hxx>
|
||||
#include <PGeom_Point.hxx>
|
||||
#include <PGeom_Axis1Placement.hxx>
|
||||
#include <PGeom_Axis2Placement.hxx>
|
||||
#include <PGeom_Direction.hxx>
|
||||
#include <PGeom_VectorWithMagnitude.hxx>
|
||||
#include <Standard_NullObject.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : AddStorageDriver
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MDataXtd::AddStorageDrivers
|
||||
(const Handle(MDF_ASDriverHSequence)& aDriverSeq, const Handle(CDM_MessageDriver)& theMsgDriver)
|
||||
{
|
||||
aDriverSeq->Append(new MDataXtd_ShapeStorageDriver(theMsgDriver));
|
||||
aDriverSeq->Append(new MDataXtd_PointStorageDriver(theMsgDriver));
|
||||
aDriverSeq->Append(new MDataXtd_AxisStorageDriver(theMsgDriver));
|
||||
aDriverSeq->Append(new MDataXtd_PlaneStorageDriver(theMsgDriver));
|
||||
aDriverSeq->Append(new MDataXtd_GeometryStorageDriver(theMsgDriver));
|
||||
aDriverSeq->Append(new MDataXtd_ConstraintStorageDriver(theMsgDriver));
|
||||
aDriverSeq->Append(new MDataXtd_PlacementStorageDriver(theMsgDriver));
|
||||
aDriverSeq->Append(new MDataXtd_PatternStdStorageDriver(theMsgDriver));
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : AddRetrievalDriver
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MDataXtd::AddRetrievalDrivers
|
||||
(const Handle(MDF_ARDriverHSequence)& aDriverSeq,const Handle(CDM_MessageDriver)& theMsgDriver)
|
||||
{
|
||||
aDriverSeq->Append(new MDataXtd_ShapeRetrievalDriver(theMsgDriver));
|
||||
aDriverSeq->Append(new MDataXtd_PointRetrievalDriver(theMsgDriver));
|
||||
aDriverSeq->Append(new MDataXtd_AxisRetrievalDriver(theMsgDriver));
|
||||
aDriverSeq->Append(new MDataXtd_PlaneRetrievalDriver(theMsgDriver));
|
||||
aDriverSeq->Append(new MDataXtd_GeometryRetrievalDriver(theMsgDriver));
|
||||
aDriverSeq->Append(new MDataXtd_ConstraintRetrievalDriver(theMsgDriver));
|
||||
aDriverSeq->Append(new MDataXtd_PlacementRetrievalDriver(theMsgDriver));
|
||||
aDriverSeq->Append(new MDataXtd_PatternStdRetrievalDriver(theMsgDriver));
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ConstraintTypeToInteger
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MDataXtd::ConstraintTypeToInteger(const TDataXtd_ConstraintEnum e)
|
||||
{
|
||||
switch (e) {
|
||||
// planar constraints
|
||||
case TDataXtd_RADIUS : return 0;
|
||||
case TDataXtd_DIAMETER : return 1;
|
||||
case TDataXtd_MINOR_RADIUS : return 2;
|
||||
case TDataXtd_MAJOR_RADIUS : return 3;
|
||||
case TDataXtd_TANGENT : return 4;
|
||||
case TDataXtd_PARALLEL : return 5;
|
||||
case TDataXtd_PERPENDICULAR : return 6;
|
||||
case TDataXtd_CONCENTRIC : return 7;
|
||||
case TDataXtd_COINCIDENT : return 8;
|
||||
case TDataXtd_DISTANCE : return 9;
|
||||
case TDataXtd_ANGLE : return 10;
|
||||
case TDataXtd_EQUAL_RADIUS : return 11;
|
||||
case TDataXtd_SYMMETRY : return 12;
|
||||
case TDataXtd_MIDPOINT : return 13;
|
||||
case TDataXtd_EQUAL_DISTANCE : return 14;
|
||||
case TDataXtd_FIX : return 15;
|
||||
case TDataXtd_RIGID : return 16;
|
||||
// placement constraints
|
||||
case TDataXtd_FROM : return 17;
|
||||
case TDataXtd_AXIS : return 18;
|
||||
case TDataXtd_MATE : return 19;
|
||||
case TDataXtd_ALIGN_FACES : return 20;
|
||||
case TDataXtd_ALIGN_AXES : return 21;
|
||||
case TDataXtd_AXES_ANGLE : return 22;
|
||||
case TDataXtd_FACES_ANGLE : return 23;
|
||||
case TDataXtd_ROUND : return 24;
|
||||
case TDataXtd_OFFSET : return 25;
|
||||
|
||||
default:
|
||||
Standard_DomainError::Raise("TDataXtd_ConstraintEnum; enum term unknown");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : IntegerToConstraintType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
TDataXtd_ConstraintEnum MDataXtd::IntegerToConstraintType(const Standard_Integer i)
|
||||
{
|
||||
switch(i)
|
||||
{
|
||||
// planar constraints
|
||||
case 0 : return TDataXtd_RADIUS;
|
||||
case 1 : return TDataXtd_DIAMETER;
|
||||
case 2 : return TDataXtd_MINOR_RADIUS;
|
||||
case 3 : return TDataXtd_MAJOR_RADIUS;
|
||||
case 4 : return TDataXtd_TANGENT;
|
||||
case 5 : return TDataXtd_PARALLEL;
|
||||
case 6 : return TDataXtd_PERPENDICULAR;
|
||||
case 7 : return TDataXtd_CONCENTRIC;
|
||||
case 8 : return TDataXtd_COINCIDENT;
|
||||
case 9 : return TDataXtd_DISTANCE;
|
||||
case 10 : return TDataXtd_ANGLE;
|
||||
case 11 : return TDataXtd_EQUAL_RADIUS;
|
||||
case 12 : return TDataXtd_SYMMETRY;
|
||||
case 13 : return TDataXtd_MIDPOINT;
|
||||
case 14 : return TDataXtd_EQUAL_DISTANCE;
|
||||
case 15 : return TDataXtd_FIX;
|
||||
case 16 : return TDataXtd_RIGID;
|
||||
// placement constraints
|
||||
case 17 : return TDataXtd_FROM;
|
||||
case 18 : return TDataXtd_AXIS;
|
||||
case 19 : return TDataXtd_MATE;
|
||||
case 20 : return TDataXtd_ALIGN_FACES;
|
||||
case 21 : return TDataXtd_ALIGN_AXES;
|
||||
case 22 : return TDataXtd_AXES_ANGLE;
|
||||
case 23 : return TDataXtd_FACES_ANGLE;
|
||||
case 24 : return TDataXtd_ROUND;
|
||||
case 25 : return TDataXtd_OFFSET;
|
||||
default :
|
||||
Standard_DomainError::Raise("TDataXtd_ConstraintEnum; enum term unknown ");
|
||||
}
|
||||
return TDataXtd_TANGENT;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : GeometryTypeToInteger
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MDataXtd::GeometryTypeToInteger(const TDataXtd_GeometryEnum e)
|
||||
{
|
||||
switch (e) {
|
||||
case TDataXtd_ANY_GEOM : return 0;
|
||||
case TDataXtd_POINT : return 1;
|
||||
case TDataXtd_LINE : return 2;
|
||||
case TDataXtd_CIRCLE : return 3;
|
||||
case TDataXtd_ELLIPSE : return 4;
|
||||
|
||||
default:
|
||||
Standard_DomainError::Raise("TDataXtd_GeometryEnum; enum term unknown");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : IntegerToGeometryType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
TDataXtd_GeometryEnum MDataXtd::IntegerToGeometryType(const Standard_Integer i)
|
||||
{
|
||||
switch(i)
|
||||
{
|
||||
case 0 : return TDataXtd_ANY_GEOM;
|
||||
case 1 : return TDataXtd_POINT;
|
||||
case 2 : return TDataXtd_LINE;
|
||||
case 3 : return TDataXtd_CIRCLE;
|
||||
case 4 : return TDataXtd_ELLIPSE;
|
||||
|
||||
default :
|
||||
Standard_DomainError::Raise("TDataXtd_GeometryEnum; enum term unknown ");
|
||||
}
|
||||
return TDataXtd_ANY_GEOM;
|
||||
}
|
||||
|
||||
Handle(Geom_Geometry) MDataXtd::Translate (const Handle(PGeom_Geometry)& Geometry) {
|
||||
Handle(Standard_Type) GeometryType = Geometry->DynamicType ();
|
||||
|
||||
if (GeometryType == STANDARD_TYPE(PGeom_Surface)) {
|
||||
Handle(PGeom_Surface)& Surface = (Handle(PGeom_Surface)&) Geometry;
|
||||
return MgtGeom::Translate (Surface);
|
||||
}
|
||||
else if (GeometryType == STANDARD_TYPE(PGeom_Curve)) {
|
||||
Handle(PGeom_Curve)& Curve = (Handle(PGeom_Curve)&) Geometry;
|
||||
return MgtGeom::Translate (Curve);
|
||||
}
|
||||
else if (GeometryType == STANDARD_TYPE(PGeom_Point)) {
|
||||
Handle(PGeom_Point)& Point = (Handle(PGeom_Point)&) Geometry;
|
||||
return MgtGeom::Translate (Point);
|
||||
}
|
||||
else if (GeometryType == STANDARD_TYPE(PGeom_Axis1Placement)) {
|
||||
Handle(PGeom_Axis1Placement)& Axis1 = (Handle(PGeom_Axis1Placement)&) Geometry;
|
||||
return MgtGeom::Translate (Axis1);
|
||||
}
|
||||
else if (GeometryType == STANDARD_TYPE(Geom_Axis2Placement)) {
|
||||
Handle(PGeom_Axis2Placement)& Axis2 = (Handle(PGeom_Axis2Placement)&) Geometry;
|
||||
return MgtGeom::Translate (Axis2);
|
||||
}
|
||||
else if (GeometryType == STANDARD_TYPE(PGeom_Direction)) {
|
||||
Handle(PGeom_Direction)& Dir = (Handle(PGeom_Direction)&) Geometry;
|
||||
return MgtGeom::Translate (Dir);
|
||||
}
|
||||
else if (GeometryType == STANDARD_TYPE(PGeom_VectorWithMagnitude)) {
|
||||
Handle(PGeom_VectorWithMagnitude)& Vec = (Handle(PGeom_VectorWithMagnitude)&) Geometry;
|
||||
return MgtGeom::Translate (Vec);
|
||||
}
|
||||
else {
|
||||
Standard_NullObject::Raise("No mapping for the current Persistent Geometry");
|
||||
}
|
||||
|
||||
Handle(Geom_Surface) dummy;
|
||||
return dummy;
|
||||
}
|
||||
|
||||
|
||||
Handle(PGeom_Geometry) MDataXtd::Translate (const Handle(Geom_Geometry)& Geometry) {
|
||||
|
||||
Handle(Standard_Type) GeometryType = Geometry->DynamicType ();
|
||||
|
||||
if (GeometryType == STANDARD_TYPE(Geom_Surface)) {
|
||||
Handle(Geom_Surface)& Surface = (Handle(Geom_Surface)&) Geometry;
|
||||
return MgtGeom::Translate (Surface);
|
||||
}
|
||||
else if (GeometryType == STANDARD_TYPE(Geom_Curve)) {
|
||||
Handle(Geom_Curve)& Curve = (Handle(Geom_Curve)&) Geometry;
|
||||
return MgtGeom::Translate (Curve);
|
||||
}
|
||||
else if (GeometryType == STANDARD_TYPE(Geom_Point)) {
|
||||
Handle(Geom_Point)& Point = (Handle(Geom_Point)&) Geometry;
|
||||
return MgtGeom::Translate (Point);
|
||||
}
|
||||
else if (GeometryType == STANDARD_TYPE(Geom_Axis1Placement)) {
|
||||
Handle(Geom_Axis1Placement)& Axis1 = (Handle(Geom_Axis1Placement)&) Geometry;
|
||||
return MgtGeom::Translate (Axis1);
|
||||
}
|
||||
else if (GeometryType == STANDARD_TYPE(Geom_Axis2Placement)) {
|
||||
Handle(Geom_Axis2Placement)& Axis2 = (Handle(Geom_Axis2Placement)&) Geometry;
|
||||
return MgtGeom::Translate (Axis2);
|
||||
}
|
||||
else if (GeometryType == STANDARD_TYPE(Geom_Direction)) {
|
||||
Handle(Geom_Direction)& Dir = (Handle(Geom_Direction)&) Geometry;
|
||||
return MgtGeom::Translate (Dir);
|
||||
}
|
||||
else if (GeometryType == STANDARD_TYPE(Geom_VectorWithMagnitude)) {
|
||||
Handle(Geom_VectorWithMagnitude)& Vec = (Handle(Geom_VectorWithMagnitude)&) Geometry;
|
||||
return MgtGeom::Translate (Vec);
|
||||
}
|
||||
else {
|
||||
Standard_NullObject::Raise("No mapping for the current Transient Geometry");
|
||||
}
|
||||
|
||||
Handle(PGeom_Surface) dummy;
|
||||
return dummy;
|
||||
}
|
||||
|
||||
|
||||
|
40
src/MDataXtd/MDataXtd_AxisRetrievalDriver.cdl
Executable file
40
src/MDataXtd/MDataXtd_AxisRetrievalDriver.cdl
Executable file
@@ -0,0 +1,40 @@
|
||||
-- File: MDataXtd_AxisRetrievalDriver.cdl
|
||||
-- Created: Thu Aug 7 17:16:50 1997
|
||||
-- Author: VAUTHIER Jean-Claude
|
||||
-- modified Sergey Zaritchny
|
||||
---Copyright: Matra Datavision 1997
|
||||
|
||||
|
||||
|
||||
class AxisRetrievalDriver from MDataXtd inherits ARDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses RRelocationTable from MDF,
|
||||
Attribute from PDF,
|
||||
Attribute from TDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
|
||||
|
||||
Create(theMessageDriver : MessageDriver from CDM) -- Version 0
|
||||
returns mutable AxisRetrievalDriver from MDataXtd;
|
||||
|
||||
|
||||
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: Axis from PDataXtd.
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from TDF;
|
||||
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from PDF;
|
||||
Target : mutable Attribute from TDF;
|
||||
RelocTable : RRelocationTable from MDF);
|
||||
|
||||
end AxisRetrievalDriver;
|
23
src/MDataXtd/MDataXtd_AxisRetrievalDriver.cxx
Executable file
23
src/MDataXtd/MDataXtd_AxisRetrievalDriver.cxx
Executable file
@@ -0,0 +1,23 @@
|
||||
#include <MDataXtd_AxisRetrievalDriver.ixx>
|
||||
#include <PDataXtd_Axis.hxx>
|
||||
#include <TDataXtd_Axis.hxx>
|
||||
#include <CDM_MessageDriver.hxx>
|
||||
|
||||
MDataXtd_AxisRetrievalDriver::MDataXtd_AxisRetrievalDriver(const Handle(CDM_MessageDriver)& theMsgDriver):MDF_ARDriver(theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
Standard_Integer MDataXtd_AxisRetrievalDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
Handle(Standard_Type) MDataXtd_AxisRetrievalDriver::SourceType() const
|
||||
{ return STANDARD_TYPE(PDataXtd_Axis); }
|
||||
|
||||
Handle(TDF_Attribute) MDataXtd_AxisRetrievalDriver::NewEmpty() const
|
||||
{ return new TDataXtd_Axis (); }
|
||||
|
||||
//void MDataXtd_AxisRetrievalDriver::Paste(const Handle(PDF_Attribute)& Source,const Handle(TDF_Attribute)& Target,const Handle(MDF_RRelocationTable)& RelocTable) const
|
||||
void MDataXtd_AxisRetrievalDriver::Paste(const Handle(PDF_Attribute)& ,const Handle(TDF_Attribute)& ,const Handle(MDF_RRelocationTable)& ) const
|
||||
{
|
||||
}
|
||||
|
40
src/MDataXtd/MDataXtd_AxisStorageDriver.cdl
Executable file
40
src/MDataXtd/MDataXtd_AxisStorageDriver.cdl
Executable file
@@ -0,0 +1,40 @@
|
||||
-- File: MDataXtd_AxisStorageDriver.cdl
|
||||
-- Created: Thu Aug 7 17:09:27 1997
|
||||
-- Author: VAUTHIER Jean-Claude
|
||||
-- modified Sergey Zaritchny
|
||||
---Copyright: Matra Datavision 1997
|
||||
|
||||
class AxisStorageDriver from MDataXtd inherits ASDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses SRelocationTable from MDF,
|
||||
Attribute from TDF,
|
||||
Attribute from PDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
|
||||
is
|
||||
|
||||
Create (theMessageDriver : MessageDriver from CDM)
|
||||
returns mutable AxisStorageDriver from MDataXtd;
|
||||
|
||||
|
||||
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: Integer from TDataStd.
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from PDF;
|
||||
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from TDF;
|
||||
Target : mutable Attribute from PDF;
|
||||
RelocTable : SRelocationTable from MDF);
|
||||
|
||||
|
||||
end AxisStorageDriver;
|
||||
|
22
src/MDataXtd/MDataXtd_AxisStorageDriver.cxx
Executable file
22
src/MDataXtd/MDataXtd_AxisStorageDriver.cxx
Executable file
@@ -0,0 +1,22 @@
|
||||
#include <MDataXtd_AxisStorageDriver.ixx>
|
||||
#include <PDataXtd_Axis.hxx>
|
||||
#include <TDataXtd_Axis.hxx>
|
||||
#include <CDM_MessageDriver.hxx>
|
||||
|
||||
MDataXtd_AxisStorageDriver::MDataXtd_AxisStorageDriver(const Handle(CDM_MessageDriver)& theMsgDriver):MDF_ASDriver(theMsgDriver)
|
||||
{
|
||||
}
|
||||
Standard_Integer MDataXtd_AxisStorageDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
Handle(Standard_Type) MDataXtd_AxisStorageDriver::SourceType() const
|
||||
{ return STANDARD_TYPE(TDataXtd_Axis); }
|
||||
|
||||
Handle(PDF_Attribute) MDataXtd_AxisStorageDriver::NewEmpty() const
|
||||
{ return new PDataXtd_Axis (); }
|
||||
|
||||
//void MDataXtd_AxisStorageDriver::Paste(const Handle(TDF_Attribute)& Source,const Handle(PDF_Attribute)& Target,const Handle(MDF_SRelocationTable)& RelocTable) const
|
||||
void MDataXtd_AxisStorageDriver::Paste(const Handle(TDF_Attribute)& ,const Handle(PDF_Attribute)& ,const Handle(MDF_SRelocationTable)& ) const
|
||||
{
|
||||
}
|
||||
|
41
src/MDataXtd/MDataXtd_ConstraintRetrievalDriver.cdl
Executable file
41
src/MDataXtd/MDataXtd_ConstraintRetrievalDriver.cdl
Executable file
@@ -0,0 +1,41 @@
|
||||
-- File: MDataXtd_ConstraintRetrievalDriver.cdl
|
||||
-- Created: Thu Aug 7 17:17:48 1997
|
||||
-- Author: VAUTHIER Jean-Claude
|
||||
-- modified Sergey Zaritchny
|
||||
---Copyright: Matra Datavision 1997
|
||||
|
||||
|
||||
|
||||
|
||||
class ConstraintRetrievalDriver from MDataXtd inherits ARDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses RRelocationTable from MDF,
|
||||
Attribute from PDF,
|
||||
Attribute from TDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
|
||||
|
||||
Create(theMessageDriver : MessageDriver from CDM) -- Version 0
|
||||
returns mutable ConstraintRetrievalDriver from MDataXtd;
|
||||
|
||||
|
||||
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: Constraint from PDataXtd.
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from TDF;
|
||||
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from PDF;
|
||||
Target : mutable Attribute from TDF;
|
||||
RelocTable : RRelocationTable from MDF);
|
||||
|
||||
end ConstraintRetrievalDriver;
|
107
src/MDataXtd/MDataXtd_ConstraintRetrievalDriver.cxx
Executable file
107
src/MDataXtd/MDataXtd_ConstraintRetrievalDriver.cxx
Executable file
@@ -0,0 +1,107 @@
|
||||
#include <MDataXtd_ConstraintRetrievalDriver.ixx>
|
||||
#include <MDataXtd.hxx>
|
||||
#include <PDataXtd_Constraint.hxx>
|
||||
#include <TDataXtd_Constraint.hxx>
|
||||
#include <TDataXtd_ConstraintEnum.hxx>
|
||||
#include <TNaming_NamedShape.hxx>
|
||||
#include <PNaming_NamedShape.hxx>
|
||||
#include <PDF_HAttributeArray1.hxx>
|
||||
#include <Standard_NoSuchObject.hxx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
#include <CDM_MessageDriver.hxx>
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : MDataXtd_ConstraintRetrievalDriver
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MDataXtd_ConstraintRetrievalDriver::MDataXtd_ConstraintRetrievalDriver(const Handle(CDM_MessageDriver)& theMsgDriver):MDF_ARDriver(theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MDataXtd_ConstraintRetrievalDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MDataXtd_ConstraintRetrievalDriver::SourceType() const
|
||||
{ return STANDARD_TYPE(PDataXtd_Constraint); }
|
||||
|
||||
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TDF_Attribute) MDataXtd_ConstraintRetrievalDriver::NewEmpty() const
|
||||
{ return new TDataXtd_Constraint (); }
|
||||
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MDataXtd_ConstraintRetrievalDriver::Paste (
|
||||
const Handle(PDF_Attribute)& Source,
|
||||
const Handle(TDF_Attribute)& Target,
|
||||
const Handle(MDF_RRelocationTable)& RelocTable) const
|
||||
{
|
||||
Handle(PDataXtd_Constraint) S =
|
||||
Handle(PDataXtd_Constraint)::DownCast (Source);
|
||||
Handle(TDataXtd_Constraint) T =
|
||||
Handle(TDataXtd_Constraint)::DownCast (Target);
|
||||
|
||||
Handle(TDataStd_Real) TValue;
|
||||
Handle(PDataStd_Real) Value = S->GetValue ();
|
||||
if (!Value.IsNull ()) {
|
||||
if (!RelocTable->HasRelocation(Value, TValue )) {
|
||||
Standard_NoSuchObject::Raise("MDataXtd_ConstraintRetrievalDriver::Paste");
|
||||
}
|
||||
T->SetValue(TValue);
|
||||
}
|
||||
|
||||
Handle(PDF_HAttributeArray1) PGeometries = S->GetGeometries ();
|
||||
if (!PGeometries.IsNull()) {
|
||||
for (Standard_Integer i = 1; i <= PGeometries->Length (); i++) {
|
||||
Handle(PDF_Attribute) PG = PGeometries->Value (i);
|
||||
if (!PG.IsNull ()) {
|
||||
Handle(TNaming_NamedShape) G;
|
||||
if (!RelocTable->HasRelocation (PG, G)) {
|
||||
Standard_NoSuchObject::Raise("MDataXtd_ConstraintRetrievalDriver::Paste");
|
||||
}
|
||||
T->SetGeometry (i, G);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Handle(PNaming_NamedShape) PPlane = S->GetPlane();
|
||||
Handle(TNaming_NamedShape) TPlane;
|
||||
if (!PPlane.IsNull()) {
|
||||
if (!RelocTable->HasRelocation (PPlane, TPlane )) {
|
||||
Standard_NoSuchObject::Raise("MDataXtd_ConstraintStorageDriver::Paste");
|
||||
}
|
||||
T->SetPlane(TPlane);
|
||||
}
|
||||
T->SetType (MDataXtd::IntegerToConstraintType (S->GetType ()));
|
||||
T->Verified(S->Verified());
|
||||
T->Inverted(S->Inverted());
|
||||
T->Reversed(S->Reversed());
|
||||
}
|
||||
|
||||
|
||||
|
40
src/MDataXtd/MDataXtd_ConstraintStorageDriver.cdl
Executable file
40
src/MDataXtd/MDataXtd_ConstraintStorageDriver.cdl
Executable file
@@ -0,0 +1,40 @@
|
||||
-- File: MDataXtd_ConstraintStorageDriver.cdl
|
||||
-- Created: Thu Aug 7 17:09:27 1997
|
||||
-- Author: VAUTHIER Jean-Claude
|
||||
-- modified Sergey Zaritchny
|
||||
---Copyright: Matra Datavision 1997
|
||||
|
||||
class ConstraintStorageDriver from MDataXtd inherits ASDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses SRelocationTable from MDF,
|
||||
Attribute from TDF,
|
||||
Attribute from PDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
|
||||
is
|
||||
|
||||
Create (theMessageDriver : MessageDriver from CDM)
|
||||
returns mutable ConstraintStorageDriver from MDataXtd;
|
||||
|
||||
|
||||
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: Integer from TDataStd.
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from PDF;
|
||||
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from TDF;
|
||||
Target : mutable Attribute from PDF;
|
||||
RelocTable : SRelocationTable from MDF);
|
||||
|
||||
|
||||
end ConstraintStorageDriver;
|
||||
|
110
src/MDataXtd/MDataXtd_ConstraintStorageDriver.cxx
Executable file
110
src/MDataXtd/MDataXtd_ConstraintStorageDriver.cxx
Executable file
@@ -0,0 +1,110 @@
|
||||
#include <MDataXtd_ConstraintStorageDriver.ixx>
|
||||
#include <PDataXtd_Constraint.hxx>
|
||||
#include <TDataXtd_Constraint.hxx>
|
||||
#include <TNaming_NamedShape.hxx>
|
||||
#include <PNaming_NamedShape.hxx>
|
||||
#include <PDF_HAttributeArray1.hxx>
|
||||
#include <Standard_NoSuchObject.hxx>
|
||||
#include <TDataXtd_ConstraintEnum.hxx>
|
||||
#include <Standard_NoSuchObject.hxx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
#include <MDataXtd.hxx>
|
||||
#include <CDM_MessageDriver.hxx>
|
||||
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : MDataXtd_ConstraintStorageDriver
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MDataXtd_ConstraintStorageDriver::MDataXtd_ConstraintStorageDriver(const Handle(CDM_MessageDriver)& theMsgDriver):MDF_ASDriver(theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MDataXtd_ConstraintStorageDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MDataXtd_ConstraintStorageDriver::SourceType() const
|
||||
{ return STANDARD_TYPE (TDataXtd_Constraint); }
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(PDF_Attribute) MDataXtd_ConstraintStorageDriver::NewEmpty() const
|
||||
{ return new PDataXtd_Constraint; }
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MDataXtd_ConstraintStorageDriver::Paste (
|
||||
const Handle(TDF_Attribute)& Source,
|
||||
const Handle(PDF_Attribute)& Target,
|
||||
const Handle(MDF_SRelocationTable)& RelocTable) const
|
||||
{
|
||||
Handle(TDataXtd_Constraint) S =
|
||||
Handle(TDataXtd_Constraint)::DownCast (Source);
|
||||
Handle(PDataXtd_Constraint) T =
|
||||
Handle(PDataXtd_Constraint)::DownCast (Target);
|
||||
|
||||
Handle(PDataStd_Real) TValue;
|
||||
Handle(TDataStd_Real) Value = S->GetValue ();
|
||||
if (!Value.IsNull ()) {
|
||||
if (!RelocTable->HasRelocation (Value, TValue )) {
|
||||
Standard_NoSuchObject::Raise("MDataXtd_ConstraintStorageDriver::Paste");
|
||||
}
|
||||
T->Set (TValue);
|
||||
}
|
||||
|
||||
Standard_Integer NbGeom = S->NbGeometries ();
|
||||
if (NbGeom >= 1) {
|
||||
Handle(PDF_HAttributeArray1) PGeometries = new PDF_HAttributeArray1 (1, NbGeom);
|
||||
for (Standard_Integer i = 1; i <= NbGeom; i++) {
|
||||
Handle(PDF_Attribute) PG;
|
||||
if (!S->GetGeometry (i).IsNull()) {
|
||||
if(!RelocTable->HasRelocation (S->GetGeometry (i), PG)) {
|
||||
Standard_NoSuchObject::Raise("MDataXtd_ConstraintStorageDriver::Paste");
|
||||
}
|
||||
}
|
||||
PGeometries->SetValue (i,PG);
|
||||
}
|
||||
T->SetGeometries (PGeometries);
|
||||
}
|
||||
|
||||
Handle(TNaming_NamedShape) TPlane = S->GetPlane();
|
||||
Handle(PNaming_NamedShape) PPlane;
|
||||
if (!TPlane.IsNull()) {
|
||||
if (!RelocTable->HasRelocation (TPlane, PPlane )) {
|
||||
Standard_NoSuchObject::Raise("MDataXtd_ConstraintStorageDriver::Paste");
|
||||
}
|
||||
T->SetPlane(PPlane);
|
||||
}
|
||||
|
||||
T->SetType (MDataXtd::ConstraintTypeToInteger(S->GetType ()));
|
||||
T->Verified(S->Verified());
|
||||
T->Inverted(S->Inverted());
|
||||
T->Reversed(S->Reversed());
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
41
src/MDataXtd/MDataXtd_GeometryRetrievalDriver.cdl
Executable file
41
src/MDataXtd/MDataXtd_GeometryRetrievalDriver.cdl
Executable file
@@ -0,0 +1,41 @@
|
||||
-- File: MDataXtd_GeometryRetrievalDriver.cdl
|
||||
-- Created: Wed Nov 19 15:58:25 1997
|
||||
-- Author: Denis PASCAL
|
||||
-- <dp@dingox.paris1.matra-dtv.fr>
|
||||
-- modified Sergey Zaritchny
|
||||
---Copyright: Matra Datavision 1997
|
||||
|
||||
|
||||
|
||||
class GeometryRetrievalDriver from MDataXtd inherits ARDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses RRelocationTable from MDF,
|
||||
Attribute from PDF,
|
||||
Attribute from TDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
|
||||
|
||||
Create(theMessageDriver : MessageDriver from CDM) -- Version 0
|
||||
returns mutable GeometryRetrievalDriver from MDataXtd;
|
||||
|
||||
|
||||
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: Geometry from PDataXtd.
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from TDF;
|
||||
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from PDF;
|
||||
Target : mutable Attribute from TDF;
|
||||
RelocTable : RRelocationTable from MDF);
|
||||
|
||||
end GeometryRetrievalDriver;
|
75
src/MDataXtd/MDataXtd_GeometryRetrievalDriver.cxx
Executable file
75
src/MDataXtd/MDataXtd_GeometryRetrievalDriver.cxx
Executable file
@@ -0,0 +1,75 @@
|
||||
// File: MDataXtd_GeometryRetrievalDriver.cxx
|
||||
// Created: Wed Nov 19 15:59:14 1997
|
||||
// Author: Denis PASCAL
|
||||
// <dp@dingox.paris1.matra-dtv.fr>
|
||||
|
||||
|
||||
#include <MDataXtd_GeometryRetrievalDriver.ixx>
|
||||
#include <TDataXtd_GeometryEnum.hxx>
|
||||
#include <TDataXtd_Geometry.hxx>
|
||||
#include <PDataXtd_Geometry.hxx>
|
||||
#include <MDataXtd.hxx>
|
||||
#include <CDM_MessageDriver.hxx>
|
||||
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : MDataXtd_GeometryRetrievalDriver
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MDataXtd_GeometryRetrievalDriver::MDataXtd_GeometryRetrievalDriver(const Handle(CDM_MessageDriver)& theMsgDriver):MDF_ARDriver(theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MDataXtd_GeometryRetrievalDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MDataXtd_GeometryRetrievalDriver::SourceType() const
|
||||
{ return STANDARD_TYPE(PDataXtd_Geometry); }
|
||||
|
||||
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TDF_Attribute) MDataXtd_GeometryRetrievalDriver::NewEmpty() const
|
||||
{ return new TDataXtd_Geometry (); }
|
||||
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MDataXtd_GeometryRetrievalDriver::Paste (
|
||||
const Handle(PDF_Attribute)& Source,
|
||||
const Handle(TDF_Attribute)& Target,
|
||||
// const Handle(MDF_RRelocationTable)& RelocTable) const
|
||||
const Handle(MDF_RRelocationTable)& ) const
|
||||
{
|
||||
Handle(PDataXtd_Geometry) S =
|
||||
Handle(PDataXtd_Geometry)::DownCast (Source);
|
||||
Handle(TDataXtd_Geometry) T =
|
||||
Handle(TDataXtd_Geometry)::DownCast (Target);
|
||||
|
||||
T->SetType (MDataXtd::IntegerToGeometryType (S->GetType ()));
|
||||
}
|
||||
|
||||
|
||||
|
42
src/MDataXtd/MDataXtd_GeometryStorageDriver.cdl
Executable file
42
src/MDataXtd/MDataXtd_GeometryStorageDriver.cdl
Executable file
@@ -0,0 +1,42 @@
|
||||
-- File: MDataXtd_GeometryStorageDriver.cdl
|
||||
-- Created: Wed Nov 19 15:57:14 1997
|
||||
-- Author: Denis PASCAL
|
||||
-- <dp@dingox.paris1.matra-dtv.fr>
|
||||
-- modified Sergey Zaritchny
|
||||
---Copyright: Matra Datavision 1997
|
||||
|
||||
|
||||
class GeometryStorageDriver from MDataXtd inherits ASDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses SRelocationTable from MDF,
|
||||
Attribute from TDF,
|
||||
Attribute from PDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
|
||||
is
|
||||
|
||||
Create(theMessageDriver : MessageDriver from CDM)
|
||||
returns mutable GeometryStorageDriver from MDataXtd;
|
||||
|
||||
|
||||
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: Integer from TDataStd.
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from PDF;
|
||||
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from TDF;
|
||||
Target : mutable Attribute from PDF;
|
||||
RelocTable : SRelocationTable from MDF);
|
||||
|
||||
|
||||
end GeometryStorageDriver;
|
||||
|
75
src/MDataXtd/MDataXtd_GeometryStorageDriver.cxx
Executable file
75
src/MDataXtd/MDataXtd_GeometryStorageDriver.cxx
Executable file
@@ -0,0 +1,75 @@
|
||||
// File: MDataXtd_GeometryStorageDriver.cxx
|
||||
// Created: Wed Nov 19 16:00:50 1997
|
||||
// Author: Denis PASCAL
|
||||
// <dp@dingox.paris1.matra-dtv.fr>
|
||||
|
||||
|
||||
#include <MDataXtd_GeometryStorageDriver.ixx>
|
||||
#include <TDataXtd_GeometryEnum.hxx>
|
||||
#include <MDataXtd.hxx>
|
||||
#include <TDataXtd_Geometry.hxx>
|
||||
#include <PDataXtd_Geometry.hxx>
|
||||
#include <CDM_MessageDriver.hxx>
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : MDataXtd_GeometryStorageDriver
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MDataXtd_GeometryStorageDriver::MDataXtd_GeometryStorageDriver(const Handle(CDM_MessageDriver)& theMsgDriver):MDF_ASDriver(theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MDataXtd_GeometryStorageDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MDataXtd_GeometryStorageDriver::SourceType() const
|
||||
{ return STANDARD_TYPE (TDataXtd_Geometry); }
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(PDF_Attribute) MDataXtd_GeometryStorageDriver::NewEmpty() const
|
||||
{ return new PDataXtd_Geometry; }
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MDataXtd_GeometryStorageDriver::Paste (
|
||||
const Handle(TDF_Attribute)& Source,
|
||||
const Handle(PDF_Attribute)& Target,
|
||||
// const Handle(MDF_SRelocationTable)& RelocTable) const
|
||||
const Handle(MDF_SRelocationTable)& ) const
|
||||
{
|
||||
Handle(TDataXtd_Geometry) S =
|
||||
Handle(TDataXtd_Geometry)::DownCast (Source);
|
||||
Handle(PDataXtd_Geometry) T =
|
||||
Handle(PDataXtd_Geometry)::DownCast (Target);
|
||||
|
||||
T->SetType (MDataXtd::GeometryTypeToInteger(S->GetType ()));
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
40
src/MDataXtd/MDataXtd_PatternStdRetrievalDriver.cdl
Executable file
40
src/MDataXtd/MDataXtd_PatternStdRetrievalDriver.cdl
Executable file
@@ -0,0 +1,40 @@
|
||||
-- File: MDataXtd_PatternStdRetrievalDriver.cdl
|
||||
-- Created: Mon Feb 16 14:33:53 1998
|
||||
-- Author: Jing Cheng MEI
|
||||
-- <mei@pinochiox.paris1.matra-dtv.fr>
|
||||
-- modified Sergey Zaritchny
|
||||
---Copyright: Matra Datavision 1998
|
||||
|
||||
class PatternStdRetrievalDriver from MDataXtd inherits ARDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses RRelocationTable from MDF,
|
||||
Attribute from PDF,
|
||||
Attribute from TDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
|
||||
|
||||
Create(theMessageDriver : MessageDriver from CDM) -- Version 0
|
||||
returns mutable PatternStdRetrievalDriver from MDataXtd;
|
||||
|
||||
|
||||
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: PatternStd from PDataXtd.
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from TDF;
|
||||
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from PDF;
|
||||
Target : mutable Attribute from TDF;
|
||||
RelocTable : RRelocationTable from MDF);
|
||||
|
||||
end PatternStdRetrievalDriver;
|
||||
|
106
src/MDataXtd/MDataXtd_PatternStdRetrievalDriver.cxx
Executable file
106
src/MDataXtd/MDataXtd_PatternStdRetrievalDriver.cxx
Executable file
@@ -0,0 +1,106 @@
|
||||
// File: MDataXtd_PatternStdRetrievalDriver.cxx
|
||||
// Created: Mon Feb 16 14:37:06 1998
|
||||
// Author: Jing Cheng MEI
|
||||
// <mei@pinochiox.paris1.matra-dtv.fr>
|
||||
|
||||
|
||||
#include <MDataXtd_PatternStdRetrievalDriver.ixx>
|
||||
#include <PDataXtd_PatternStd.hxx>
|
||||
#include <TDataXtd_PatternStd.hxx>
|
||||
#include <CDM_MessageDriver.hxx>
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : MDataXtd_PatternStd
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MDataXtd_PatternStdRetrievalDriver::MDataXtd_PatternStdRetrievalDriver(const Handle(CDM_MessageDriver)& theMsgDriver):MDF_ARDriver(theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MDataXtd_PatternStdRetrievalDriver::VersionNumber() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MDataXtd_PatternStdRetrievalDriver::SourceType() const
|
||||
{
|
||||
return STANDARD_TYPE(PDataXtd_PatternStd);
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TDF_Attribute) MDataXtd_PatternStdRetrievalDriver::NewEmpty() const
|
||||
{
|
||||
return new TDataXtd_PatternStd ();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MDataXtd_PatternStdRetrievalDriver::Paste (const Handle(PDF_Attribute)& Source,
|
||||
const Handle(TDF_Attribute)& Target,
|
||||
const Handle(MDF_RRelocationTable)& RRelocTable) const
|
||||
{
|
||||
Handle(PDataXtd_PatternStd) S = Handle(PDataXtd_PatternStd)::DownCast (Source);
|
||||
Handle(TDataXtd_PatternStd) T = Handle(TDataXtd_PatternStd)::DownCast (Target);
|
||||
|
||||
T->Signature(S->Signature());
|
||||
T->Axis1Reversed(S->Axis1Reversed());
|
||||
T->Axis2Reversed(S->Axis2Reversed());
|
||||
|
||||
Standard_Integer signature = S->Signature();
|
||||
|
||||
Handle(PNaming_NamedShape) PNS;
|
||||
Handle(TNaming_NamedShape) TNS;
|
||||
Handle(PDataStd_Real) PReal;
|
||||
Handle(TDataStd_Real) TReal;
|
||||
Handle(PDataStd_Integer) PInt;
|
||||
Handle(TDataStd_Integer) TInt;
|
||||
|
||||
if (signature < 5) {
|
||||
PNS = S->Axis1();
|
||||
RRelocTable->HasRelocation(PNS, TNS);
|
||||
T->Axis1(TNS);
|
||||
PReal = S->Value1();
|
||||
RRelocTable->HasRelocation(PReal, TReal);
|
||||
T->Value1(TReal);
|
||||
PInt = S->NbInstances1();
|
||||
RRelocTable->HasRelocation(PInt, TInt);
|
||||
T->NbInstances1(TInt);
|
||||
|
||||
if (signature > 2) {
|
||||
PNS = S->Axis2();
|
||||
RRelocTable->HasRelocation(PNS, TNS);
|
||||
T->Axis2(TNS);
|
||||
PReal = S->Value2();
|
||||
RRelocTable->HasRelocation(PReal, TReal);
|
||||
T->Value2(TReal);
|
||||
PInt = S->NbInstances2();
|
||||
RRelocTable->HasRelocation(PInt, TInt);
|
||||
T->NbInstances2(TInt);
|
||||
}
|
||||
}
|
||||
else {
|
||||
PNS = S->Mirror();
|
||||
RRelocTable->HasRelocation(PNS, TNS);
|
||||
T->Mirror(TNS);
|
||||
}
|
||||
}
|
44
src/MDataXtd/MDataXtd_PatternStdStorageDriver.cdl
Executable file
44
src/MDataXtd/MDataXtd_PatternStdStorageDriver.cdl
Executable file
@@ -0,0 +1,44 @@
|
||||
-- File: MDataXtd_PatternStdStorageDriver.cdl
|
||||
-- Created: Mon Feb 16 14:28:52 1998
|
||||
-- Author: Jing Cheng MEI
|
||||
-- <mei@pinochiox.paris1.matra-dtv.fr>
|
||||
-- modified Sergey Zaritchny
|
||||
---Copyright: Matra Datavision 1998
|
||||
|
||||
|
||||
class PatternStdStorageDriver from MDataXtd inherits ASDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses SRelocationTable from MDF,
|
||||
Attribute from TDF,
|
||||
Attribute from PDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
|
||||
is
|
||||
|
||||
Create (theMessageDriver : MessageDriver from CDM)
|
||||
returns mutable PatternStdStorageDriver from MDataXtd;
|
||||
|
||||
|
||||
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: Integer from TDataStd.
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from PDF;
|
||||
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from TDF;
|
||||
Target : mutable Attribute from PDF;
|
||||
RelocTable : SRelocationTable from MDF);
|
||||
|
||||
|
||||
end PatternStdStorageDriver;
|
||||
|
||||
|
||||
|
109
src/MDataXtd/MDataXtd_PatternStdStorageDriver.cxx
Executable file
109
src/MDataXtd/MDataXtd_PatternStdStorageDriver.cxx
Executable file
@@ -0,0 +1,109 @@
|
||||
// File: MDataXtd_PatternStdStorageDriver.cxx
|
||||
// Created: Mon Feb 16 14:29:45 1998
|
||||
// Author: Jing Cheng MEI
|
||||
// <mei@pinochiox.paris1.matra-dtv.fr>
|
||||
|
||||
|
||||
#include <MDataXtd_PatternStdStorageDriver.ixx>
|
||||
#include <PDataXtd_PatternStd.hxx>
|
||||
#include <TDataXtd_PatternStd.hxx>
|
||||
#include <CDM_MessageDriver.hxx>
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : MDataXtd_PatternStdStorageDriver
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MDataXtd_PatternStdStorageDriver::MDataXtd_PatternStdStorageDriver(const Handle(CDM_MessageDriver)& theMsgDriver):MDF_ASDriver(theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MDataXtd_PatternStdStorageDriver::VersionNumber() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MDataXtd_PatternStdStorageDriver::SourceType() const
|
||||
{
|
||||
return STANDARD_TYPE(TDataXtd_PatternStd);
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(PDF_Attribute) MDataXtd_PatternStdStorageDriver::NewEmpty() const
|
||||
{
|
||||
return new PDataXtd_PatternStd ();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MDataXtd_PatternStdStorageDriver::Paste (const Handle(TDF_Attribute)& Source,
|
||||
const Handle(PDF_Attribute)& Target,
|
||||
const Handle(MDF_SRelocationTable)& SRelocTable) const
|
||||
{
|
||||
Handle(TDataXtd_PatternStd) S = Handle(TDataXtd_PatternStd)::DownCast (Source);
|
||||
Handle(PDataXtd_PatternStd) T = Handle(PDataXtd_PatternStd)::DownCast (Target);
|
||||
|
||||
T->Signature(S->Signature());
|
||||
T->Axis1Reversed(S->Axis1Reversed());
|
||||
T->Axis2Reversed(S->Axis2Reversed());
|
||||
|
||||
Standard_Integer signature = S->Signature();
|
||||
|
||||
Handle(TNaming_NamedShape) TNS;
|
||||
Handle(PNaming_NamedShape) PNS;
|
||||
Handle(TDataStd_Real) TReal;
|
||||
Handle(PDataStd_Real) PReal;
|
||||
Handle(TDataStd_Integer) TInt;
|
||||
Handle(PDataStd_Integer) PInt;
|
||||
|
||||
if (signature < 5) {
|
||||
TNS = S->Axis1();
|
||||
SRelocTable->HasRelocation(TNS, PNS);
|
||||
T->Axis1(PNS);
|
||||
TReal = S->Value1();
|
||||
SRelocTable->HasRelocation(TReal, PReal);
|
||||
T->Value1(PReal);
|
||||
TInt = S->NbInstances1();
|
||||
SRelocTable->HasRelocation(TInt, PInt);
|
||||
T->NbInstances1(PInt);
|
||||
|
||||
if (signature > 2) {
|
||||
TNS = S->Axis2();
|
||||
SRelocTable->HasRelocation(TNS, PNS);
|
||||
T->Axis2(PNS);
|
||||
TReal = S->Value2();
|
||||
SRelocTable->HasRelocation(TReal, PReal);
|
||||
T->Value2(PReal);
|
||||
TInt = S->NbInstances2();
|
||||
SRelocTable->HasRelocation(TInt, PInt);
|
||||
T->NbInstances2(PInt);
|
||||
}
|
||||
}
|
||||
else {
|
||||
TNS = S->Mirror();
|
||||
SRelocTable->HasRelocation(TNS, PNS);
|
||||
T->Mirror(PNS);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
39
src/MDataXtd/MDataXtd_PlacementRetrievalDriver.cdl
Executable file
39
src/MDataXtd/MDataXtd_PlacementRetrievalDriver.cdl
Executable file
@@ -0,0 +1,39 @@
|
||||
-- File: MDataXtd_PlacementRetrievalDriver.cdl
|
||||
-- Created: Thu Aug 7 17:18:02 1997
|
||||
-- Author: VAUTHIER Jean-Claude
|
||||
-- modified Sergey Zaritchny
|
||||
---Copyright: Matra Datavision 1997
|
||||
|
||||
|
||||
class PlacementRetrievalDriver from MDataXtd inherits ARDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses RRelocationTable from MDF,
|
||||
Attribute from PDF,
|
||||
Attribute from TDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
|
||||
|
||||
Create(theMessageDriver : MessageDriver from CDM) -- Version 0
|
||||
returns mutable PlacementRetrievalDriver from MDataXtd;
|
||||
|
||||
|
||||
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: Placement from PDataXtd.
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from TDF;
|
||||
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from PDF;
|
||||
Target : mutable Attribute from TDF;
|
||||
RelocTable : RRelocationTable from MDF);
|
||||
|
||||
end PlacementRetrievalDriver;
|
61
src/MDataXtd/MDataXtd_PlacementRetrievalDriver.cxx
Executable file
61
src/MDataXtd/MDataXtd_PlacementRetrievalDriver.cxx
Executable file
@@ -0,0 +1,61 @@
|
||||
#include <MDataXtd_PlacementRetrievalDriver.ixx>
|
||||
#include <PDataXtd_Placement.hxx>
|
||||
#include <TDataXtd_Placement.hxx>
|
||||
#include <CDM_MessageDriver.hxx>
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : MDataXtd_PlacementRetrievalDriver
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MDataXtd_PlacementRetrievalDriver::MDataXtd_PlacementRetrievalDriver(const Handle(CDM_MessageDriver)& theMsgDriver):MDF_ARDriver(theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MDataXtd_PlacementRetrievalDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MDataXtd_PlacementRetrievalDriver::SourceType() const
|
||||
{ return STANDARD_TYPE(PDataXtd_Placement);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(TDF_Attribute) MDataXtd_PlacementRetrievalDriver::NewEmpty() const
|
||||
{ return new TDataXtd_Placement; }
|
||||
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MDataXtd_PlacementRetrievalDriver::Paste (
|
||||
// const Handle(PDF_Attribute)& Source,
|
||||
const Handle(PDF_Attribute)& ,
|
||||
// const Handle(TDF_Attribute)& Target,
|
||||
const Handle(TDF_Attribute)& ,
|
||||
// const Handle(MDF_RRelocationTable)& RelocTable) const
|
||||
const Handle(MDF_RRelocationTable)& ) const
|
||||
{
|
||||
}
|
39
src/MDataXtd/MDataXtd_PlacementStorageDriver.cdl
Executable file
39
src/MDataXtd/MDataXtd_PlacementStorageDriver.cdl
Executable file
@@ -0,0 +1,39 @@
|
||||
-- File: MDataXtd_PlacementStorageDriver.cdl
|
||||
-- Created: Thu Aug 7 17:09:27 1997
|
||||
-- Author: VAUTHIER Jean-Claude
|
||||
-- modified Sergey Zaritchny
|
||||
---Copyright: Matra Datavision 1997
|
||||
|
||||
class PlacementStorageDriver from MDataXtd inherits ASDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses SRelocationTable from MDF,
|
||||
Attribute from TDF,
|
||||
Attribute from PDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
|
||||
Create (theMessageDriver : MessageDriver from CDM)
|
||||
returns mutable PlacementStorageDriver from MDataXtd;
|
||||
|
||||
|
||||
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: Integer from TDataStd.
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from PDF;
|
||||
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from TDF;
|
||||
Target : mutable Attribute from PDF;
|
||||
RelocTable : SRelocationTable from MDF);
|
||||
|
||||
|
||||
end PlacementStorageDriver;
|
||||
|
61
src/MDataXtd/MDataXtd_PlacementStorageDriver.cxx
Executable file
61
src/MDataXtd/MDataXtd_PlacementStorageDriver.cxx
Executable file
@@ -0,0 +1,61 @@
|
||||
#include <MDataXtd_PlacementStorageDriver.ixx>
|
||||
#include <PDataXtd_Placement.hxx>
|
||||
#include <TDataXtd_Placement.hxx>
|
||||
#include <CDM_MessageDriver.hxx>
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : MDataXtd_PlacementStorageDriver
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
MDataXtd_PlacementStorageDriver::MDataXtd_PlacementStorageDriver(const Handle(CDM_MessageDriver)& theMsgDriver):MDF_ASDriver(theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : VersionNumber
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Integer MDataXtd_PlacementStorageDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : SourceType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Standard_Type) MDataXtd_PlacementStorageDriver::SourceType() const
|
||||
{ return STANDARD_TYPE(TDataXtd_Placement); }
|
||||
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : NewEmpty
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(PDF_Attribute) MDataXtd_PlacementStorageDriver::NewEmpty() const
|
||||
{ return new PDataXtd_Placement; }
|
||||
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Paste
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void MDataXtd_PlacementStorageDriver::Paste (
|
||||
// const Handle(TDF_Attribute)& Source,
|
||||
const Handle(TDF_Attribute)& ,
|
||||
// const Handle(PDF_Attribute)& Target,
|
||||
const Handle(PDF_Attribute)& ,
|
||||
// const Handle(MDF_SRelocationTable)& RelocTable) const
|
||||
const Handle(MDF_SRelocationTable)& ) const
|
||||
{
|
||||
}
|
||||
|
38
src/MDataXtd/MDataXtd_PlaneRetrievalDriver.cdl
Executable file
38
src/MDataXtd/MDataXtd_PlaneRetrievalDriver.cdl
Executable file
@@ -0,0 +1,38 @@
|
||||
-- File: MDataXtd_PlaneRetrievalDriver.cdl
|
||||
-- Created: Thu Aug 7 17:17:14 1997
|
||||
-- Author: VAUTHIER Jean-Claude
|
||||
-- modified Sergey Zaritchny
|
||||
---Copyright: Matra Datavision 1997
|
||||
|
||||
|
||||
class PlaneRetrievalDriver from MDataXtd inherits ARDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses RRelocationTable from MDF,
|
||||
Attribute from PDF,
|
||||
Attribute from TDF,
|
||||
MessageDriver from CDM
|
||||
is
|
||||
|
||||
|
||||
Create (theMessageDriver : MessageDriver from CDM) -- Version 0
|
||||
returns mutable PlaneRetrievalDriver from MDataXtd;
|
||||
|
||||
|
||||
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: Plane from PDataXtd.
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from TDF;
|
||||
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from PDF;
|
||||
Target : mutable Attribute from TDF;
|
||||
RelocTable : RRelocationTable from MDF);
|
||||
|
||||
end PlaneRetrievalDriver;
|
23
src/MDataXtd/MDataXtd_PlaneRetrievalDriver.cxx
Executable file
23
src/MDataXtd/MDataXtd_PlaneRetrievalDriver.cxx
Executable file
@@ -0,0 +1,23 @@
|
||||
#include <MDataXtd_PlaneRetrievalDriver.ixx>
|
||||
#include <PDataXtd_Plane.hxx>
|
||||
#include <TDataXtd_Plane.hxx>
|
||||
#include <CDM_MessageDriver.hxx>
|
||||
|
||||
MDataXtd_PlaneRetrievalDriver::MDataXtd_PlaneRetrievalDriver(const Handle(CDM_MessageDriver)& theMsgDriver):MDF_ARDriver(theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
Standard_Integer MDataXtd_PlaneRetrievalDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
Handle(Standard_Type) MDataXtd_PlaneRetrievalDriver::SourceType() const
|
||||
{ return STANDARD_TYPE (PDataXtd_Plane); }
|
||||
|
||||
Handle(TDF_Attribute) MDataXtd_PlaneRetrievalDriver::NewEmpty() const
|
||||
{ return new TDataXtd_Plane; }
|
||||
|
||||
//void MDataXtd_PlaneRetrievalDriver::Paste(const Handle(PDF_Attribute)& Source,const Handle(TDF_Attribute)& Target,const Handle(MDF_RRelocationTable)& RelocTable) const
|
||||
void MDataXtd_PlaneRetrievalDriver::Paste(const Handle(PDF_Attribute)& ,const Handle(TDF_Attribute)& ,const Handle(MDF_RRelocationTable)& ) const
|
||||
{
|
||||
}
|
||||
|
40
src/MDataXtd/MDataXtd_PlaneStorageDriver.cdl
Executable file
40
src/MDataXtd/MDataXtd_PlaneStorageDriver.cdl
Executable file
@@ -0,0 +1,40 @@
|
||||
-- File: MDataXtd_PlaneStorageDriver.cdl
|
||||
-- Created: Thu Aug 7 17:09:27 1997
|
||||
-- Author: VAUTHIER Jean-Claude
|
||||
-- modified Sergey Zaritchny
|
||||
---Copyright: Matra Datavision 1997
|
||||
|
||||
class PlaneStorageDriver from MDataXtd inherits ASDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses SRelocationTable from MDF,
|
||||
Attribute from TDF,
|
||||
Attribute from PDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
|
||||
is
|
||||
|
||||
Create (theMessageDriver : MessageDriver from CDM)
|
||||
returns mutable PlaneStorageDriver from MDataXtd;
|
||||
|
||||
|
||||
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: Integer from TDataStd.
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from PDF;
|
||||
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from TDF;
|
||||
Target : mutable Attribute from PDF;
|
||||
RelocTable : SRelocationTable from MDF);
|
||||
|
||||
|
||||
end PlaneStorageDriver;
|
||||
|
23
src/MDataXtd/MDataXtd_PlaneStorageDriver.cxx
Executable file
23
src/MDataXtd/MDataXtd_PlaneStorageDriver.cxx
Executable file
@@ -0,0 +1,23 @@
|
||||
#include <MDataXtd_PlaneStorageDriver.ixx>
|
||||
#include <PDataXtd_Plane.hxx>
|
||||
#include <TDataXtd_Plane.hxx>
|
||||
#include <CDM_MessageDriver.hxx>
|
||||
|
||||
MDataXtd_PlaneStorageDriver::MDataXtd_PlaneStorageDriver(const Handle(CDM_MessageDriver)& theMsgDriver):MDF_ASDriver(theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
Standard_Integer MDataXtd_PlaneStorageDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
Handle(Standard_Type) MDataXtd_PlaneStorageDriver::SourceType() const
|
||||
{ return STANDARD_TYPE(TDataXtd_Plane); }
|
||||
|
||||
Handle(PDF_Attribute) MDataXtd_PlaneStorageDriver::NewEmpty() const
|
||||
{ return new PDataXtd_Plane (); }
|
||||
|
||||
//void MDataXtd_PlaneStorageDriver::Paste(const Handle(TDF_Attribute)& Source,const Handle(PDF_Attribute)& Target,const Handle(MDF_SRelocationTable)& RelocTable) const
|
||||
void MDataXtd_PlaneStorageDriver::Paste(const Handle(TDF_Attribute)& ,const Handle(PDF_Attribute)& ,const Handle(MDF_SRelocationTable)& ) const
|
||||
{
|
||||
}
|
||||
|
40
src/MDataXtd/MDataXtd_PointRetrievalDriver.cdl
Executable file
40
src/MDataXtd/MDataXtd_PointRetrievalDriver.cdl
Executable file
@@ -0,0 +1,40 @@
|
||||
-- File: MDataXtd_PointRetrievalDriver.cdl
|
||||
-- Created: Thu Aug 7 17:16:38 1997
|
||||
-- Author: VAUTHIER Jean-Claude
|
||||
-- modified Sergey Zaritchny
|
||||
---Copyright: Matra Datavision 1997
|
||||
|
||||
|
||||
class PointRetrievalDriver from MDataXtd inherits ARDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses RRelocationTable from MDF,
|
||||
Attribute from PDF,
|
||||
Attribute from TDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
|
||||
|
||||
Create (theMessageDriver : MessageDriver from CDM) -- Version 0
|
||||
returns mutable PointRetrievalDriver from MDataXtd;
|
||||
|
||||
|
||||
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: Point from PDataXtd.
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from TDF;
|
||||
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from PDF;
|
||||
Target : mutable Attribute from TDF;
|
||||
RelocTable : RRelocationTable from MDF);
|
||||
|
||||
end PointRetrievalDriver;
|
||||
|
23
src/MDataXtd/MDataXtd_PointRetrievalDriver.cxx
Executable file
23
src/MDataXtd/MDataXtd_PointRetrievalDriver.cxx
Executable file
@@ -0,0 +1,23 @@
|
||||
#include <MDataXtd_PointRetrievalDriver.ixx>
|
||||
#include <PDataXtd_Point.hxx>
|
||||
#include <TDataXtd_Point.hxx>
|
||||
#include <CDM_MessageDriver.hxx>
|
||||
|
||||
MDataXtd_PointRetrievalDriver::MDataXtd_PointRetrievalDriver(const Handle(CDM_MessageDriver)& theMsgDriver):MDF_ARDriver(theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
Standard_Integer MDataXtd_PointRetrievalDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
Handle(Standard_Type) MDataXtd_PointRetrievalDriver::SourceType() const
|
||||
{ return STANDARD_TYPE(PDataXtd_Point); }
|
||||
|
||||
Handle(TDF_Attribute) MDataXtd_PointRetrievalDriver::NewEmpty() const
|
||||
{ return new TDataXtd_Point (); }
|
||||
|
||||
//void MDataXtd_PointRetrievalDriver::Paste(const Handle(PDF_Attribute)& Source,const Handle(TDF_Attribute)& Target,const Handle(MDF_RRelocationTable)& RelocTable) const
|
||||
void MDataXtd_PointRetrievalDriver::Paste(const Handle(PDF_Attribute)& ,const Handle(TDF_Attribute)& ,const Handle(MDF_RRelocationTable)& ) const
|
||||
{
|
||||
}
|
||||
|
42
src/MDataXtd/MDataXtd_PointStorageDriver.cdl
Executable file
42
src/MDataXtd/MDataXtd_PointStorageDriver.cdl
Executable file
@@ -0,0 +1,42 @@
|
||||
-- File: MDataXtd_PointStorageDriver.cdl
|
||||
-- Created: Thu Aug 7 17:09:27 1997
|
||||
-- Author: VAUTHIER Jean-Claude
|
||||
-- modified Sergey Zaritchny
|
||||
---Copyright: Matra Datavision 1997
|
||||
|
||||
class PointStorageDriver from MDataXtd inherits ASDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses SRelocationTable from MDF,
|
||||
Attribute from TDF,
|
||||
Attribute from PDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
|
||||
is
|
||||
|
||||
Create (theMessageDriver : MessageDriver from CDM)
|
||||
returns mutable PointStorageDriver from MDataXtd;
|
||||
|
||||
|
||||
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: Integer from TDataStd.
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from PDF;
|
||||
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from TDF;
|
||||
Target : mutable Attribute from PDF;
|
||||
RelocTable : SRelocationTable from MDF);
|
||||
|
||||
|
||||
end PointStorageDriver;
|
||||
|
||||
|
||||
|
22
src/MDataXtd/MDataXtd_PointStorageDriver.cxx
Executable file
22
src/MDataXtd/MDataXtd_PointStorageDriver.cxx
Executable file
@@ -0,0 +1,22 @@
|
||||
#include <MDataXtd_PointStorageDriver.ixx>
|
||||
#include <PDataXtd_Point.hxx>
|
||||
#include <TDataXtd_Point.hxx>
|
||||
#include <CDM_MessageDriver.hxx>
|
||||
|
||||
MDataXtd_PointStorageDriver::MDataXtd_PointStorageDriver(const Handle(CDM_MessageDriver)& theMsgDriver):MDF_ASDriver(theMsgDriver) {}
|
||||
|
||||
Standard_Integer MDataXtd_PointStorageDriver::VersionNumber() const
|
||||
|
||||
{ return 0; }
|
||||
|
||||
Handle(Standard_Type) MDataXtd_PointStorageDriver::SourceType() const
|
||||
{ return STANDARD_TYPE(TDataXtd_Point);}
|
||||
|
||||
Handle(PDF_Attribute) MDataXtd_PointStorageDriver::NewEmpty() const
|
||||
{ return new PDataXtd_Point (); }
|
||||
|
||||
//void MDataXtd_PointStorageDriver::Paste(const Handle(TDF_Attribute)& Source,const Handle(PDF_Attribute)& Target,const Handle(MDF_SRelocationTable)& RelocTable) const
|
||||
void MDataXtd_PointStorageDriver::Paste(const Handle(TDF_Attribute)& ,const Handle(PDF_Attribute)& ,const Handle(MDF_SRelocationTable)& ) const
|
||||
{
|
||||
}
|
||||
|
39
src/MDataXtd/MDataXtd_ShapeRetrievalDriver.cdl
Executable file
39
src/MDataXtd/MDataXtd_ShapeRetrievalDriver.cdl
Executable file
@@ -0,0 +1,39 @@
|
||||
-- File: MDataXtd_ShapeRetrievalDriver.cdl
|
||||
-- Created: Thu Jul 1 17:19:00 1999
|
||||
-- Author: Sergey RUIN
|
||||
-- modified Sergey Zaritchny
|
||||
---Copyright: Matra Datavision 1999
|
||||
|
||||
|
||||
class ShapeRetrievalDriver from MDataXtd inherits ARDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses RRelocationTable from MDF,
|
||||
Attribute from PDF,
|
||||
Attribute from TDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
is
|
||||
|
||||
|
||||
Create(theMessageDriver : MessageDriver from CDM) -- Version 0
|
||||
returns mutable ShapeRetrievalDriver from MDataXtd;
|
||||
|
||||
|
||||
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: Shape from PDataXtd.
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from TDF;
|
||||
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from PDF;
|
||||
Target : mutable Attribute from TDF;
|
||||
RelocTable : RRelocationTable from MDF);
|
||||
|
||||
end ShapeRetrievalDriver;
|
21
src/MDataXtd/MDataXtd_ShapeRetrievalDriver.cxx
Executable file
21
src/MDataXtd/MDataXtd_ShapeRetrievalDriver.cxx
Executable file
@@ -0,0 +1,21 @@
|
||||
#include <MDataXtd_ShapeRetrievalDriver.ixx>
|
||||
#include <PDataXtd_Shape.hxx>
|
||||
#include <TDataXtd_Shape.hxx>
|
||||
#include <CDM_MessageDriver.hxx>
|
||||
|
||||
MDataXtd_ShapeRetrievalDriver::MDataXtd_ShapeRetrievalDriver(const Handle(CDM_MessageDriver)& theMsgDriver):MDF_ARDriver(theMsgDriver)
|
||||
{}
|
||||
|
||||
Standard_Integer MDataXtd_ShapeRetrievalDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
Handle(Standard_Type) MDataXtd_ShapeRetrievalDriver::SourceType() const
|
||||
{ return STANDARD_TYPE(PDataXtd_Shape); }
|
||||
|
||||
Handle(TDF_Attribute) MDataXtd_ShapeRetrievalDriver::NewEmpty() const
|
||||
{ return new TDataXtd_Shape; }
|
||||
|
||||
void MDataXtd_ShapeRetrievalDriver::Paste(const Handle(PDF_Attribute)& Source,const Handle(TDF_Attribute)& Target,const Handle(MDF_RRelocationTable)& RelocTable) const
|
||||
{
|
||||
}
|
||||
|
40
src/MDataXtd/MDataXtd_ShapeStorageDriver.cdl
Executable file
40
src/MDataXtd/MDataXtd_ShapeStorageDriver.cdl
Executable file
@@ -0,0 +1,40 @@
|
||||
-- File: MDataXtd_ShapeStorageDriver.cdl
|
||||
-- Created: Thu Jul 1 17:09:27 1999
|
||||
-- Author: Sergey RUIN
|
||||
-- modified Sergey Zaritchny
|
||||
---Copyright: Matra Datavision 1999
|
||||
|
||||
class ShapeStorageDriver from MDataXtd inherits ASDriver from MDF
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses SRelocationTable from MDF,
|
||||
Attribute from TDF,
|
||||
Attribute from PDF,
|
||||
MessageDriver from CDM
|
||||
|
||||
|
||||
is
|
||||
|
||||
Create (theMessageDriver : MessageDriver from CDM)
|
||||
returns mutable ShapeStorageDriver from MDataXtd;
|
||||
|
||||
|
||||
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: Integer from TDataStd.
|
||||
|
||||
NewEmpty (me) returns mutable Attribute from PDF;
|
||||
|
||||
|
||||
Paste(me;
|
||||
Source : Attribute from TDF;
|
||||
Target : mutable Attribute from PDF;
|
||||
RelocTable : SRelocationTable from MDF);
|
||||
|
||||
|
||||
end ShapeStorageDriver;
|
||||
|
23
src/MDataXtd/MDataXtd_ShapeStorageDriver.cxx
Executable file
23
src/MDataXtd/MDataXtd_ShapeStorageDriver.cxx
Executable file
@@ -0,0 +1,23 @@
|
||||
#include <MDataXtd_ShapeStorageDriver.ixx>
|
||||
#include <PDataXtd_Shape.hxx>
|
||||
#include <TDataXtd_Shape.hxx>
|
||||
#include <CDM_MessageDriver.hxx>
|
||||
|
||||
MDataXtd_ShapeStorageDriver::MDataXtd_ShapeStorageDriver(const Handle(CDM_MessageDriver)& theMsgDriver):MDF_ASDriver(theMsgDriver)
|
||||
{
|
||||
}
|
||||
|
||||
Standard_Integer MDataXtd_ShapeStorageDriver::VersionNumber() const
|
||||
{ return 0; }
|
||||
|
||||
Handle(Standard_Type) MDataXtd_ShapeStorageDriver::SourceType() const
|
||||
{ return STANDARD_TYPE(TDataXtd_Shape); }
|
||||
|
||||
Handle(PDF_Attribute) MDataXtd_ShapeStorageDriver::NewEmpty() const
|
||||
{ return new PDataXtd_Shape; }
|
||||
|
||||
//void MDataXtd_ShapeStorageDriver::Paste(const Handle(TDF_Attribute)& Source,const Handle(PDF_Attribute)& Target,const Handle(MDF_SRelocationTable)& RelocTable) const
|
||||
void MDataXtd_ShapeStorageDriver::Paste(const Handle(TDF_Attribute)& ,const Handle(PDF_Attribute)& ,const Handle(MDF_SRelocationTable)& ) const
|
||||
{
|
||||
}
|
||||
|
Reference in New Issue
Block a user