1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-21 10:13:43 +03:00

0024927: Getting rid of "Persistent" functionality -- Storable

Delete "Storable" class from "Standard" package and all use of it
This commit is contained in:
dln 2014-08-15 10:03:58 +04:00 committed by bugmaster
parent 41f0360528
commit 087da3bdd9
68 changed files with 73 additions and 215 deletions

View File

@ -119,14 +119,14 @@ Standard_Boolean BinMXCAFDoc_LocationDriver::Translate(const BinObjMgt_Persisten
Standard_Real aScaleFactor; Standard_Real aScaleFactor;
theSource >> aScaleFactor; theSource >> aScaleFactor;
aTrsf._CSFDB_Setgp_Trsfscale(aScaleFactor); aTrsf.SetScaleFactor(aScaleFactor);
Standard_Integer aForm; Standard_Integer aForm;
theSource >> aForm; theSource >> aForm;
aTrsf._CSFDB_Setgp_Trsfshape((gp_TrsfForm)aForm); aTrsf.SetForm((gp_TrsfForm)aForm);
Standard_Integer R, C; Standard_Integer R, C;
gp_Mat& aMat = (gp_Mat&)aTrsf._CSFDB_Getgp_Trsfmatrix(); gp_Mat& aMat = (gp_Mat&)aTrsf.HVectorialPart();
for(R = 1; R <= 3; R++) for(R = 1; R <= 3; R++)
for(C = 1; C <= 3; C++) { for(C = 1; C <= 3; C++) {
Standard_Real aVal; Standard_Real aVal;
@ -136,7 +136,7 @@ Standard_Boolean BinMXCAFDoc_LocationDriver::Translate(const BinObjMgt_Persisten
Standard_Real x, y, z; Standard_Real x, y, z;
theSource >> x >> y >> z; theSource >> x >> y >> z;
gp_XYZ& aLoc = (gp_XYZ&)aTrsf._CSFDB_Getgp_Trsfloc(); gp_XYZ& aLoc = (gp_XYZ&)aTrsf.TranslationPart();
aLoc.SetX(x); aLoc.SetX(x);
aLoc.SetY(y); aLoc.SetY(y);
aLoc.SetZ(z); aLoc.SetZ(z);

View File

@ -14,7 +14,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Color from Draw inherits Storable class Color from Draw
---Purpose: ---Purpose:

View File

@ -15,7 +15,6 @@
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
generic class Point from Extrema (Pnt as any) generic class Point from Extrema (Pnt as any)
inherits Storable from Standard
---Purpose: Definition of a point on curve. ---Purpose: Definition of a point on curve.

View File

@ -40,8 +40,6 @@ from GccAna
-- distance between C1 and OnLine is lower than or -- distance between C1 and OnLine is lower than or
-- equal Tolerance. -- equal Tolerance.
--inherits Storable from Standard
uses Pnt2d from gp, uses Pnt2d from gp,
Lin2d from gp, Lin2d from gp,
Circ2d from gp, Circ2d from gp,

View File

@ -27,8 +27,6 @@ from GccAna
-- Its direction is making an angle Angle with the -- Its direction is making an angle Angle with the
-- second argument. -- second argument.
--inherits Storable from Standard
uses Lin2d from gp, uses Lin2d from gp,
Pnt2d from gp, Pnt2d from gp,
QualifiedCirc from GccEnt, QualifiedCirc from GccEnt,

View File

@ -30,8 +30,6 @@ from GccAna
-- - implementing the construction algorithm, and -- - implementing the construction algorithm, and
-- - consulting the result(s). -- - consulting the result(s).
--inherits Storable from Standard
uses Pnt2d from gp, uses Pnt2d from gp,
Lin2d from gp, Lin2d from gp,
Circ2d from gp, Circ2d from gp,

View File

@ -29,8 +29,6 @@ from GccAna
-- - implementing the construction algorithm, and -- - implementing the construction algorithm, and
-- - consulting the result. -- - consulting the result.
--inherits Storable from Standard
uses Lin2d from gp, uses Lin2d from gp,
Pnt2d from gp, Pnt2d from gp,
Bisec from GccInt Bisec from GccInt

View File

@ -27,8 +27,6 @@ from GccEnt
-- - is built so that both the circle and it are external to one another, or -- - is built so that both the circle and it are external to one another, or
-- - is undefined (all solutions apply). -- - is undefined (all solutions apply).
inherits Storable from Standard
uses Position from GccEnt, uses Position from GccEnt,
Circ2d from gp Circ2d from gp

View File

@ -18,8 +18,6 @@ class QualifiedLin
from GccEnt from GccEnt
inherits Storable from Standard
--- Purpose: Describes a qualified 2D line. --- Purpose: Describes a qualified 2D line.
-- A qualified 2D line is a line (gp_Lin2d line) with a -- A qualified 2D line is a line (gp_Lin2d line) with a
-- qualifier which specifies whether the solution of a -- qualifier which specifies whether the solution of a

View File

@ -14,7 +14,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class DefSwitch from IGESData inherits Storable class DefSwitch from IGESData
---Purpose : description of a directory componant which can be either ---Purpose : description of a directory componant which can be either
-- undefined (let Void), defined as a Reference to an entity, -- undefined (let Void), defined as a Reference to an entity,

View File

@ -14,7 +14,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class DirPart from IGESData inherits Storable -- for Array class DirPart from IGESData -- for Array
---Purpose : litteral/numeric description of an entity's directory section, ---Purpose : litteral/numeric description of an entity's directory section,
-- taken from file -- taken from file

View File

@ -14,7 +14,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class IntPoint from IntAna2d inherits Storable from Standard class IntPoint from IntAna2d
---Purpose: Geometrical intersection between two 2d elements. ---Purpose: Geometrical intersection between two 2d elements.

View File

@ -19,9 +19,6 @@ class IntersectionPoint from IntRes2d
---Purpose: Definition of an intersection point between two ---Purpose: Definition of an intersection point between two
-- 2D curves. -- 2D curves.
inherits Storable from Standard
uses Pnt2d from gp, uses Pnt2d from gp,
Transition from IntRes2d Transition from IntRes2d
is is

View File

@ -19,9 +19,6 @@ class IntersectionSegment from IntRes2d
---Purpose: Definition of an intersection curve between ---Purpose: Definition of an intersection curve between
-- two 2D curves. -- two 2D curves.
inherits Storable from Standard
uses IntersectionPoint from IntRes2d uses IntersectionPoint from IntRes2d
raises DomainError from Standard raises DomainError from Standard

View File

@ -16,8 +16,6 @@
class Transition from IntRes2d class Transition from IntRes2d
inherits Storable from Standard
---Purpose: Definition of the type of transition near an ---Purpose: Definition of the type of transition near an
-- intersection point between two curves. The transition -- intersection point between two curves. The transition
-- is either a "true transition", which means that one of -- is either a "true transition", which means that one of

View File

@ -14,7 +14,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class EntityList from Interface -- inherits Storable class EntityList from Interface
---Purpose : This class defines a list of Entities (Transient Objects), ---Purpose : This class defines a list of Entities (Transient Objects),
-- it can be used as a field of other Transient classes, with -- it can be used as a field of other Transient classes, with

View File

@ -14,7 +14,6 @@
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Color from Quantity class Color from Quantity
inherits Storable
---Purpose: This class allows the definition of a colour. ---Purpose: This class allows the definition of a colour.
-- The names of the colours are from the X11 specification. -- The names of the colours are from the X11 specification.

View File

@ -16,8 +16,6 @@
class Date from Quantity class Date from Quantity
inherits Storable from Standard
---Purpose: This class provides services to manage date information. ---Purpose: This class provides services to manage date information.
-- A date represents the following time intervals: -- A date represents the following time intervals:
-- year, month, day, hour, minute, second, -- year, month, day, hour, minute, second,

View File

@ -20,8 +20,6 @@ class Period from Quantity
-- gives the interval between two dates. -- gives the interval between two dates.
-- A period is expressed in seconds and microseconds. -- A period is expressed in seconds and microseconds.
inherits Storable from Standard
raises PeriodDefinitionError raises PeriodDefinitionError
is is

View File

@ -73,19 +73,19 @@ is
class AncestorIterator; class AncestorIterator;
deferred class Storable ; primitive Boolean;
primitive Boolean inherits Storable; primitive Character;
primitive Character inherits Storable; primitive ExtCharacter;
primitive ExtCharacter inherits Storable; primitive Integer;
primitive Integer inherits Storable; primitive Byte;
primitive Byte inherits Storable; primitive Real;
primitive Real inherits Storable; primitive ShortReal;
primitive ShortReal inherits Storable; primitive Time;
primitive Time inherits Storable; primitive OId;
primitive OId inherits Storable;
deferred class Persistent ; -- inherits Storable class GUID;
class GUID; -- inherits Storable
deferred class Persistent ;
deferred class Transient ; deferred class Transient ;
class Type; -- inherits Transient class Type; -- inherits Transient

View File

@ -16,8 +16,6 @@
class GUID from Standard class GUID from Standard
inherits Storable from Standard
is is
Create returns GUID from Standard; Create returns GUID from Standard;

View File

@ -15,8 +15,6 @@
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
deferred class Persistent from Standard deferred class Persistent from Standard
inherits
Storable from Standard
---Purpose: ---Purpose:
-- The root of the entire persistent class hierarchy. -- The root of the entire persistent class hierarchy.
@ -59,7 +57,7 @@ uses
is is
Delete (me: mutable) is redefined; Delete (me: mutable) is virtual;
---Purpose: Deletes this object. ---Purpose: Deletes this object.

View File

@ -34,7 +34,6 @@ class Standard_Transient;
#include <Standard_CString.hxx> #include <Standard_CString.hxx>
#include <Standard_ExtString.hxx> #include <Standard_ExtString.hxx>
#include <Standard_Address.hxx> #include <Standard_Address.hxx>
#include <Standard_Storable.hxx>
__Standard_API Standard_Integer HashCode(const Standard_Address, __Standard_API Standard_Integer HashCode(const Standard_Address,
const Standard_Integer, const Standard_Integer,

View File

@ -31,7 +31,6 @@
// ================================== // ==================================
// Methods implemeted in Standard_Real.cxx // Methods implemeted in Standard_Real.cxx
// ================================== // ==================================
//.... Herited from Standard_Storable
__Standard_API Standard_Integer HashCode (const Standard_Real, const Standard_Integer); __Standard_API Standard_Integer HashCode (const Standard_Real, const Standard_Integer);
__Standard_API Standard_Real ACos (const Standard_Real ); __Standard_API Standard_Real ACos (const Standard_Real );

View File

@ -141,7 +141,6 @@ inline Standard_ShortReal Min (const Standard_ShortReal Val1,
// ================================== // ==================================
// Methods implemeted in Standard_ShortReal.cxx // Methods implemeted in Standard_ShortReal.cxx
// ================================== // ==================================
//.... Herited from Standard_Storable
__Standard_API Standard_Integer HashCode (const Standard_ShortReal, const Standard_Integer); __Standard_API Standard_Integer HashCode (const Standard_ShortReal, const Standard_Integer);
//------------------------------------------------------------------- //-------------------------------------------------------------------

View File

@ -1,53 +0,0 @@
-- Created on: 1991-09-05
-- Created by: jean pierre TIRAULT
-- Copyright (c) 1991-1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- This file is part of Open CASCADE Technology software library.
--
-- This library is free software; you can redistribute it and/or modify it under
-- the terms of the GNU Lesser General Public License version 2.1 as published
-- by the Free Software Foundation, with special exception defined in the file
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-- distribution for complete text of the license and disclaimer of any warranty.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
deferred class Storable from Standard
---Purpose: This class Storable is an abstract class that allows built-in
-- primitive types to be extended. They are not themselves
-- persistent, but are known by the database, therefore can be used
-- to define the internal representation of persistent objects.
-- Otherwise, all the fields of subclasses of Object MUST inherit
-- from Storable.
--
-- This class provides also a framework for copying, comparing and
-- printing.
is
Delete ( me : out ) is virtual;
---C++: alias "Standard_EXPORT virtual ~Standard_Storable(){Delete();}"
HashCode (me; Upper : Integer ) returns Integer is virtual;
---Purpose: Returns a hashed value denoting <me>. This value is in
-- the range 1..<Upper>.
---C++: function call
---Level: Advanced
IsEqual (me; Other : Storable) returns Boolean
---Purpose: Returns true if the direct contents of <me> and
-- <Other> are memberwise equal.
---C++: alias operator ==
---Level: Public
is static;
IsSimilar (me; Other : Storable) returns Boolean;
---Purpose: Returns true if the Deep contents of <me> and
-- <Other> are memberwise equal.
---C++: function call
---Level: Public
end Storable;

View File

@ -1,36 +0,0 @@
// Copyright (c) 1998-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <Standard_Storable.ixx>
void Standard_Storable::Delete()
{}
//========================================================================
Standard_Integer Standard_Storable::HashCode(const Standard_Integer Upper)const
{
return ::HashCode((Standard_Address) this, Upper, STANDARD_TYPE(Standard_Storable));
}
//========================================================================
Standard_Boolean Standard_Storable::IsEqual(const Standard_Storable& ) const
{
return Standard_True;
}
//========================================================================
Standard_Boolean Standard_Storable::IsSimilar(const Standard_Storable& ) const
{
return Standard_True;
}

View File

@ -14,7 +14,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
deferred class SelectType from StepData -- inherits Storable deferred class SelectType from StepData
---Purpose : SelectType is the basis used for SELECT_TYPE definitions from ---Purpose : SelectType is the basis used for SELECT_TYPE definitions from
-- the EXPRESS form. A SELECT_TYPE in EXPRESS is an enumeration -- the EXPRESS form. A SELECT_TYPE in EXPRESS is an enumeration
@ -22,8 +22,8 @@ deferred class SelectType from StepData -- inherits Storable
-- no specific Methods, and no exclusivity (a given Type can be -- no specific Methods, and no exclusivity (a given Type can be
-- member of several SELECT_TYPES, plus be itself a SUB_TYPE). -- member of several SELECT_TYPES, plus be itself a SUB_TYPE).
-- --
-- A SelectType can be field of a Transient Entity (it is itself -- A SelectType can be field of a Transient Entity or only used
-- Storable) or only used to control an input Argument -- to control an input Argument
-- --
-- This class implies to designate each member Type by a Case -- This class implies to designate each member Type by a Case
-- Number which is a positive Integer value (this allows a faster -- Number which is a positive Integer value (this allows a faster

View File

@ -1,4 +1,3 @@
Storage_Macros.hxx Storage_Macros.hxx
Storage_BucketOfPersistent.hxx Storage_BucketOfPersistent.hxx
Storage_Position.hxx Storage_Position.hxx
Storage_Container.hxx

View File

@ -109,8 +109,6 @@ is
ReadSolve ReadSolve
end; end;
primitive Container inherits Storable from Standard;
imported BucketOfPersistent; imported BucketOfPersistent;
imported Position; -- typedef long imported Position; -- typedef long

View File

@ -1,24 +0,0 @@
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _Storage_Container_HeaderFile
#define _Storage_Container_HeaderFile
class Storage_BaseDriver;
typedef Storage_BaseDriver* Storage_Container;
Storage_Container& Storage_CurrentContainer();
#endif

View File

@ -13,7 +13,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Shape1 from XmlMNaming inherits Storable class Shape1 from XmlMNaming
---Purpose: The XmlMNaming_Shape1 is the Persistent view of a TopoDS_Shape. ---Purpose: The XmlMNaming_Shape1 is the Persistent view of a TopoDS_Shape.
-- --

View File

@ -78,19 +78,19 @@ Standard_Boolean XmlObjMgt_GP::Translate
Standard_Real aScaleFactor = Standard_Real(Strtod (aStr, &ptr)); Standard_Real aScaleFactor = Standard_Real(Strtod (aStr, &ptr));
if (ptr != aStr && errno != ERANGE && errno != EINVAL) if (ptr != aStr && errno != ERANGE && errno != EINVAL)
{ {
T._CSFDB_Setgp_Trsfscale(aScaleFactor); T.SetScaleFactor(aScaleFactor);
aStr = ptr; aStr = ptr;
Standard_Integer aForm = Standard_Integer(strtol(aStr, &ptr, 10)); Standard_Integer aForm = Standard_Integer(strtol(aStr, &ptr, 10));
if (ptr != aStr && errno != ERANGE && errno != EINVAL) { if (ptr != aStr && errno != ERANGE && errno != EINVAL) {
T._CSFDB_Setgp_Trsfshape((gp_TrsfForm)aForm); T.SetForm((gp_TrsfForm)aForm);
aStr = ptr; aStr = ptr;
// gp_Mat aMatr; // gp_Mat aMatr;
aStr = ::Translate(aStr, (gp_Mat&)T._CSFDB_Getgp_Trsfmatrix()); aStr = ::Translate(aStr, (gp_Mat&)T.HVectorialPart());
if (aStr) { if (aStr) {
// gp_XYZ aTransl; // gp_XYZ aTransl;
::Translate(aStr, (gp_XYZ&)T._CSFDB_Getgp_Trsfloc()); ::Translate(aStr, (gp_XYZ&)T.TranslationPart());
aResult = Standard_True; aResult = Standard_True;
} }
} }

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Ax1 from gp inherits Storable class Ax1 from gp
--- Purpose : Describes an axis in 3D space. --- Purpose : Describes an axis in 3D space.
-- An axis is defined by: -- An axis is defined by:

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Ax2 from gp inherits Storable class Ax2 from gp
--- Purpose : --- Purpose :
-- Describes a right-handed coordinate system in 3D space. -- Describes a right-handed coordinate system in 3D space.

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Ax22d from gp inherits Storable class Ax22d from gp
--- Purpose : --- Purpose :
-- Describes a coordinate system in a plane (2D space). -- Describes a coordinate system in a plane (2D space).
-- A coordinate system is defined by: -- A coordinate system is defined by:

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Ax2d from gp inherits Storable class Ax2d from gp
---Purpose: ---Purpose:
-- Describes an axis in the plane (2D space). -- Describes an axis in the plane (2D space).

View File

@ -14,7 +14,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Ax3 from gp inherits Storable class Ax3 from gp
--- Purpose : Describes a coordinate system in 3D space. Unlike a --- Purpose : Describes a coordinate system in 3D space. Unlike a
-- gp_Ax2 coordinate system, a gp_Ax3 can be -- gp_Ax2 coordinate system, a gp_Ax3 can be

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Circ from gp inherits Storable class Circ from gp
--- Purpose : --- Purpose :
-- Describes a circle in 3D space. -- Describes a circle in 3D space.

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Circ2d from gp inherits Storable class Circ2d from gp
--- Purpose : Describes a circle in the plane (2D space). --- Purpose : Describes a circle in the plane (2D space).
-- A circle is defined by its radius and positioned in the -- A circle is defined by its radius and positioned in the
-- plane with a coordinate system (a gp_Ax22d object) as follows: -- plane with a coordinate system (a gp_Ax22d object) as follows:

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Cone from gp inherits Storable class Cone from gp

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Cylinder from gp inherits Storable class Cylinder from gp
--- Purpose : --- Purpose :
-- Describes an infinite cylindrical surface. -- Describes an infinite cylindrical surface.

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Dir from gp inherits Storable class Dir from gp
---Purpose: ---Purpose:
-- Describes a unit vector in 3D space. This unit vector is also called "Direction". -- Describes a unit vector in 3D space. This unit vector is also called "Direction".
-- See Also -- See Also

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Dir2d from gp inherits Storable class Dir2d from gp
---Purpose: Describes a unit vector in the plane (2D space). This unit ---Purpose: Describes a unit vector in the plane (2D space). This unit
-- vector is also called "Direction". -- vector is also called "Direction".

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Elips from gp inherits Storable class Elips from gp
--- Purpose : --- Purpose :
-- Describes an ellipse in 3D space. -- Describes an ellipse in 3D space.
-- An ellipse is defined by its major and minor radii and -- An ellipse is defined by its major and minor radii and

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Elips2d from gp inherits Storable class Elips2d from gp
--- Purpose : --- Purpose :
-- Describes an ellipse in the plane (2D space). -- Describes an ellipse in the plane (2D space).

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class GTrsf from gp inherits Storable class GTrsf from gp
--- Purpose : --- Purpose :
-- Defines a non-persistent transformation in 3D space. -- Defines a non-persistent transformation in 3D space.

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class GTrsf2d from gp inherits Storable class GTrsf2d from gp
--- Purpose : --- Purpose :

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Hypr from gp inherits Storable class Hypr from gp
--- Purpose : Describes a branch of a hyperbola in 3D space. --- Purpose : Describes a branch of a hyperbola in 3D space.
-- A hyperbola is defined by its major and minor radii and -- A hyperbola is defined by its major and minor radii and

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Hypr2d from gp inherits Storable class Hypr2d from gp
---Purpose: ---Purpose:
-- Describes a branch of a hyperbola in the plane (2D space). -- Describes a branch of a hyperbola in the plane (2D space).

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Lin from gp inherits Storable class Lin from gp
---Purpose: ---Purpose:
-- Describes a line in 3D space. -- Describes a line in 3D space.

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Lin2d from gp inherits Storable class Lin2d from gp
---Purpose: Describes a line in 2D space. ---Purpose: Describes a line in 2D space.
-- A line is positioned in the plane with an axis (a gp_Ax2d -- A line is positioned in the plane with an axis (a gp_Ax2d

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Mat from gp inherits Storable class Mat from gp
---Purpose: ---Purpose:
-- Describes a three column, three row matrix. This sort of -- Describes a three column, three row matrix. This sort of
-- object is used in various vectorial or matrix computations. -- object is used in various vectorial or matrix computations.

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Mat2d from gp inherits Storable class Mat2d from gp
---Purpose: ---Purpose:
-- Describes a two column, two row matrix. This sort of -- Describes a two column, two row matrix. This sort of
-- object is used in various vectorial or matrix computations. -- object is used in various vectorial or matrix computations.

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Parab from gp inherits Storable class Parab from gp
---Purpose: ---Purpose:
-- Describes a parabola in 3D space. -- Describes a parabola in 3D space.

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Parab2d from gp inherits Storable class Parab2d from gp
---Purpose: Describes a parabola in the plane (2D space). ---Purpose: Describes a parabola in the plane (2D space).
-- A parabola is defined by its focal length (that is, the -- A parabola is defined by its focal length (that is, the

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Pln from gp inherits Storable class Pln from gp
--- Purpose :Describes a plane. --- Purpose :Describes a plane.

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Pnt from gp inherits Storable class Pnt from gp
--- Purpose : Defines a 3D cartesian point. --- Purpose : Defines a 3D cartesian point.

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Pnt2d from gp inherits Storable class Pnt2d from gp
--- Purpose : Defines a non-persistent 2D cartesian point. --- Purpose : Defines a non-persistent 2D cartesian point.

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Sphere from gp inherits Storable class Sphere from gp
--- Purpose : --- Purpose :

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Torus from gp inherits Storable class Torus from gp
--- Purpose : --- Purpose :
-- Describes a torus. -- Describes a torus.

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Trsf from gp inherits Storable class Trsf from gp
--- Purpose: Defines a non-persistent transformation in 3D space. --- Purpose: Defines a non-persistent transformation in 3D space.
-- The following transformations are implemented : -- The following transformations are implemented :
@ -201,6 +201,8 @@ is
ConstructionError from Standard ConstructionError from Standard
is static; is static;
SetForm (me : in out; P : TrsfForm from gp) is static;
SetValues(me : in out; SetValues(me : in out;
a11, a12, a13, a14, a11, a12, a13, a14,
a21, a22, a23, a24, a21, a22, a23, a24,

View File

@ -54,6 +54,11 @@ inline void gp_Trsf::SetTranslation(const gp_Pnt& P1,
loc = (P2.XYZ()).Subtracted (P1.XYZ()); loc = (P2.XYZ()).Subtracted (P1.XYZ());
} }
inline void gp_Trsf::SetForm(const gp_TrsfForm P)
{
shape = P;
}
inline Standard_Boolean gp_Trsf::IsNegative() const inline Standard_Boolean gp_Trsf::IsNegative() const
{ return (scale < 0.0); } { return (scale < 0.0); }

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Trsf2d from gp inherits Storable class Trsf2d from gp
--- Purpose : --- Purpose :
-- Defines a non-persistent transformation in 2D space. -- Defines a non-persistent transformation in 2D space.

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Vec from gp inherits Storable class Vec from gp
--- Purpose : --- Purpose :
-- Defines a non-persistent vector in 3D space. -- Defines a non-persistent vector in 3D space.

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class Vec2d from gp inherits Storable class Vec2d from gp
--- Purpose : --- Purpose :
-- Defines a non-persistent vector in 2D space. -- Defines a non-persistent vector in 2D space.

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class XY from gp inherits Storable class XY from gp
--- Purpose : --- Purpose :
-- This class describes a cartesian coordinate entity in 2D -- This class describes a cartesian coordinate entity in 2D

View File

@ -12,7 +12,7 @@
-- Alternatively, this file may be used under the terms of Open CASCADE -- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement. -- commercial license or contractual agreement.
class XYZ from gp inherits Storable class XYZ from gp
--- Purpose : --- Purpose :
-- This class describes a cartesian coordinate entity in -- This class describes a cartesian coordinate entity in