Standard_Real aScaleFactor;
theSource >> aScaleFactor;
- aTrsf._CSFDB_Setgp_Trsfscale(aScaleFactor);
+ aTrsf.SetScaleFactor(aScaleFactor);
Standard_Integer aForm;
theSource >> aForm;
- aTrsf._CSFDB_Setgp_Trsfshape((gp_TrsfForm)aForm);
+ aTrsf.SetForm((gp_TrsfForm)aForm);
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(C = 1; C <= 3; C++) {
Standard_Real aVal;
Standard_Real 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.SetY(y);
aLoc.SetZ(z);
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Color from Draw inherits Storable
+class Color from Draw
---Purpose:
-- commercial license or contractual agreement.
generic class Point from Extrema (Pnt as any)
- inherits Storable from Standard
---Purpose: Definition of a point on curve.
-- distance between C1 and OnLine is lower than or
-- equal Tolerance.
---inherits Storable from Standard
-
uses Pnt2d from gp,
Lin2d from gp,
Circ2d from gp,
-- Its direction is making an angle Angle with the
-- second argument.
---inherits Storable from Standard
-
uses Lin2d from gp,
Pnt2d from gp,
QualifiedCirc from GccEnt,
-- - defining the construction of 2D line(s),
-- - implementing the construction algorithm, and
-- - consulting the result(s).
-
---inherits Storable from Standard
uses Pnt2d from gp,
Lin2d from gp,
-- - implementing the construction algorithm, and
-- - consulting the result.
---inherits Storable from Standard
-
uses Lin2d from gp,
Pnt2d from gp,
Bisec from GccInt
-- - is enclosed by the circle, or
-- - is built so that both the circle and it are external to one another, or
-- - is undefined (all solutions apply).
-
-inherits Storable from Standard
uses Position from GccEnt,
Circ2d from gp
from GccEnt
-inherits Storable from Standard
-
--- Purpose: Describes a qualified 2D line.
-- A qualified 2D line is a line (gp_Lin2d line) with a
-- qualifier which specifies whether the solution of a
-- Alternatively, this file may be used under the terms of Open CASCADE
-- 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
-- undefined (let Void), defined as a Reference to an entity,
-- Alternatively, this file may be used under the terms of Open CASCADE
-- 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,
-- taken from file
-- Alternatively, this file may be used under the terms of Open CASCADE
-- 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: Definition of an intersection point between two
-- 2D curves.
-
-inherits Storable from Standard
-
uses Pnt2d from gp,
Transition from IntRes2d
is
---Purpose: Definition of an intersection curve between
-- two 2D curves.
-
-inherits Storable from Standard
-
uses IntersectionPoint from IntRes2d
raises DomainError from Standard
class Transition from IntRes2d
-inherits Storable from Standard
-
---Purpose: Definition of the type of transition near an
-- intersection point between two curves. The transition
-- is either a "true transition", which means that one of
-- Alternatively, this file may be used under the terms of Open CASCADE
-- 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),
-- it can be used as a field of other Transient classes, with
-- commercial license or contractual agreement.
class Color from Quantity
-inherits Storable
---Purpose: This class allows the definition of a colour.
-- The names of the colours are from the X11 specification.
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Date from Quantity
-
-inherits Storable from Standard
+class Date from Quantity
---Purpose: This class provides services to manage date information.
-- A date represents the following time intervals:
-- gives the interval between two dates.
-- A period is expressed in seconds and microseconds.
-inherits Storable from Standard
-
raises PeriodDefinitionError
is
class AncestorIterator;
- deferred class Storable ;
- primitive Boolean inherits Storable;
- primitive Character inherits Storable;
- primitive ExtCharacter inherits Storable;
- primitive Integer inherits Storable;
- primitive Byte inherits Storable;
- primitive Real inherits Storable;
- primitive ShortReal inherits Storable;
- primitive Time inherits Storable;
- primitive OId inherits Storable;
-
- deferred class Persistent ; -- inherits Storable
- class GUID; -- inherits Storable
+ primitive Boolean;
+ primitive Character;
+ primitive ExtCharacter;
+ primitive Integer;
+ primitive Byte;
+ primitive Real;
+ primitive ShortReal;
+ primitive Time;
+ primitive OId;
+
+ class GUID;
+
+ deferred class Persistent ;
deferred class Transient ;
class Type; -- inherits Transient
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class GUID from Standard
-
-inherits Storable from Standard
+class GUID from Standard
is
Create returns GUID from Standard;
-- commercial license or contractual agreement.
deferred class Persistent from Standard
-inherits
- Storable from Standard
---Purpose:
-- The root of the entire persistent class hierarchy.
is
- Delete (me: mutable) is redefined;
+ Delete (me: mutable) is virtual;
---Purpose: Deletes this object.
#include <Standard_CString.hxx>
#include <Standard_ExtString.hxx>
#include <Standard_Address.hxx>
-#include <Standard_Storable.hxx>
__Standard_API Standard_Integer HashCode(const Standard_Address,
const Standard_Integer,
// ==================================
// Methods implemeted in Standard_Real.cxx
// ==================================
-//.... Herited from Standard_Storable
__Standard_API Standard_Integer HashCode (const Standard_Real, const Standard_Integer);
__Standard_API Standard_Real ACos (const Standard_Real );
// ==================================
// Methods implemeted in Standard_ShortReal.cxx
// ==================================
-//.... Herited from Standard_Storable
__Standard_API Standard_Integer HashCode (const Standard_ShortReal, const Standard_Integer);
//-------------------------------------------------------------------
+++ /dev/null
--- 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;
-
+++ /dev/null
-// 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;
-}
-- Alternatively, this file may be used under the terms of Open CASCADE
-- 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
-- the EXPRESS form. A SELECT_TYPE in EXPRESS is an enumeration
-- no specific Methods, and no exclusivity (a given Type can be
-- member of several SELECT_TYPES, plus be itself a SUB_TYPE).
--
- -- A SelectType can be field of a Transient Entity (it is itself
- -- Storable) or only used to control an input Argument
+ -- A SelectType can be field of a Transient Entity or only used
+ -- to control an input Argument
--
-- This class implies to designate each member Type by a Case
-- Number which is a positive Integer value (this allows a faster
Storage_Macros.hxx
Storage_BucketOfPersistent.hxx
Storage_Position.hxx
-Storage_Container.hxx
ReadSolve
end;
- primitive Container inherits Storable from Standard;
-
imported BucketOfPersistent;
imported Position; -- typedef long
+++ /dev/null
-// 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
-
-- Alternatively, this file may be used under the terms of Open CASCADE
-- 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.
--
Standard_Real aScaleFactor = Standard_Real(Strtod (aStr, &ptr));
if (ptr != aStr && errno != ERANGE && errno != EINVAL)
{
- T._CSFDB_Setgp_Trsfscale(aScaleFactor);
+ T.SetScaleFactor(aScaleFactor);
aStr = ptr;
Standard_Integer aForm = Standard_Integer(strtol(aStr, &ptr, 10));
if (ptr != aStr && errno != ERANGE && errno != EINVAL) {
- T._CSFDB_Setgp_Trsfshape((gp_TrsfForm)aForm);
+ T.SetForm((gp_TrsfForm)aForm);
aStr = ptr;
// gp_Mat aMatr;
- aStr = ::Translate(aStr, (gp_Mat&)T._CSFDB_Getgp_Trsfmatrix());
+ aStr = ::Translate(aStr, (gp_Mat&)T.HVectorialPart());
if (aStr) {
// gp_XYZ aTransl;
- ::Translate(aStr, (gp_XYZ&)T._CSFDB_Getgp_Trsfloc());
+ ::Translate(aStr, (gp_XYZ&)T.TranslationPart());
aResult = Standard_True;
}
}
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Ax1 from gp inherits Storable
+class Ax1 from gp
--- Purpose : Describes an axis in 3D space.
-- An axis is defined by:
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Ax2 from gp inherits Storable
+class Ax2 from gp
--- Purpose :
-- Describes a right-handed coordinate system in 3D space.
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Ax22d from gp inherits Storable
+class Ax22d from gp
--- Purpose :
-- Describes a coordinate system in a plane (2D space).
-- A coordinate system is defined by:
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Ax2d from gp inherits Storable
+class Ax2d from gp
---Purpose:
-- Describes an axis in the plane (2D space).
-- Alternatively, this file may be used under the terms of Open CASCADE
-- 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
-- gp_Ax2 coordinate system, a gp_Ax3 can be
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Circ from gp inherits Storable
+class Circ from gp
--- Purpose :
-- Describes a circle in 3D space.
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Circ2d from gp inherits Storable
+class Circ2d from gp
--- Purpose : Describes a circle in the plane (2D space).
-- A circle is defined by its radius and positioned in the
-- plane with a coordinate system (a gp_Ax22d object) as follows:
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Cone from gp inherits Storable
+class Cone from gp
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Cylinder from gp inherits Storable
+class Cylinder from gp
--- Purpose :
-- Describes an infinite cylindrical surface.
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Dir from gp inherits Storable
+class Dir from gp
---Purpose:
-- Describes a unit vector in 3D space. This unit vector is also called "Direction".
-- See Also
-- Alternatively, this file may be used under the terms of Open CASCADE
-- 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
-- vector is also called "Direction".
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Elips from gp inherits Storable
+class Elips from gp
--- Purpose :
-- Describes an ellipse in 3D space.
-- An ellipse is defined by its major and minor radii and
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Elips2d from gp inherits Storable
+class Elips2d from gp
--- Purpose :
-- Describes an ellipse in the plane (2D space).
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class GTrsf from gp inherits Storable
+class GTrsf from gp
--- Purpose :
-- Defines a non-persistent transformation in 3D space.
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class GTrsf2d from gp inherits Storable
+class GTrsf2d from gp
--- Purpose :
-- Alternatively, this file may be used under the terms of Open CASCADE
-- 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.
-- A hyperbola is defined by its major and minor radii and
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Hypr2d from gp inherits Storable
+class Hypr2d from gp
---Purpose:
-- Describes a branch of a hyperbola in the plane (2D space).
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Lin from gp inherits Storable
+class Lin from gp
---Purpose:
-- Describes a line in 3D space.
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Lin2d from gp inherits Storable
+class Lin2d from gp
---Purpose: Describes a line in 2D space.
-- A line is positioned in the plane with an axis (a gp_Ax2d
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Mat from gp inherits Storable
+class Mat from gp
---Purpose:
-- Describes a three column, three row matrix. This sort of
-- object is used in various vectorial or matrix computations.
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Mat2d from gp inherits Storable
+class Mat2d from gp
---Purpose:
-- Describes a two column, two row matrix. This sort of
-- object is used in various vectorial or matrix computations.
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Parab from gp inherits Storable
+class Parab from gp
---Purpose:
-- Describes a parabola in 3D space.
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Parab2d from gp inherits Storable
+class Parab2d from gp
---Purpose: Describes a parabola in the plane (2D space).
-- A parabola is defined by its focal length (that is, the
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Pln from gp inherits Storable
+class Pln from gp
--- Purpose :Describes a plane.
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Pnt from gp inherits Storable
+class Pnt from gp
--- Purpose : Defines a 3D cartesian point.
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Pnt2d from gp inherits Storable
+class Pnt2d from gp
--- Purpose : Defines a non-persistent 2D cartesian point.
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Sphere from gp inherits Storable
+class Sphere from gp
--- Purpose :
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Torus from gp inherits Storable
+class Torus from gp
--- Purpose :
-- Describes a torus.
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Trsf from gp inherits Storable
+class Trsf from gp
--- Purpose: Defines a non-persistent transformation in 3D space.
-- The following transformations are implemented :
raises
ConstructionError from Standard
is static;
+
+ SetForm (me : in out; P : TrsfForm from gp) is static;
SetValues(me : in out;
a11, a12, a13, a14,
loc = (P2.XYZ()).Subtracted (P1.XYZ());
}
+inline void gp_Trsf::SetForm(const gp_TrsfForm P)
+{
+ shape = P;
+}
+
inline Standard_Boolean gp_Trsf::IsNegative() const
{ return (scale < 0.0); }
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Trsf2d from gp inherits Storable
+class Trsf2d from gp
--- Purpose :
-- Defines a non-persistent transformation in 2D space.
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Vec from gp inherits Storable
+class Vec from gp
--- Purpose :
-- Defines a non-persistent vector in 3D space.
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class Vec2d from gp inherits Storable
+class Vec2d from gp
--- Purpose :
-- Defines a non-persistent vector in 2D space.
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class XY from gp inherits Storable
+class XY from gp
--- Purpose :
-- This class describes a cartesian coordinate entity in 2D
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
-class XYZ from gp inherits Storable
+class XYZ from gp
--- Purpose :
-- This class describes a cartesian coordinate entity in