mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0024002: Overall code and build procedure refactoring -- automatic
Automatic upgrade of OCCT code by command "occt_upgrade . -nocdl": - WOK-generated header files from inc and sources from drv are moved to src - CDL files removed - All packages are converted to nocdlpack
This commit is contained in:
@@ -1 +1,11 @@
|
||||
GeomTools.cxx
|
||||
GeomTools.hxx
|
||||
GeomTools_Curve2dSet.cxx
|
||||
GeomTools_Curve2dSet.hxx
|
||||
GeomTools_CurveSet.cxx
|
||||
GeomTools_CurveSet.hxx
|
||||
GeomTools_Debug.cxx
|
||||
GeomTools_SurfaceSet.cxx
|
||||
GeomTools_SurfaceSet.hxx
|
||||
GeomTools_UndefinedTypeHandler.cxx
|
||||
GeomTools_UndefinedTypeHandler.hxx
|
||||
|
@@ -1,89 +0,0 @@
|
||||
-- Created on: 1992-08-28
|
||||
-- Created by: Remi LEQUETTE
|
||||
-- Copyright (c) 1992-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.
|
||||
|
||||
package GeomTools
|
||||
|
||||
---Purpose: The GeomTools package provides utilities for Geometry.
|
||||
--
|
||||
-- * SurfaceSet, CurveSet, Curve2dSet : Tools used
|
||||
-- for dumping, writing and reading.
|
||||
--
|
||||
-- * Methods to dump, write, read curves and surfaces.
|
||||
|
||||
uses
|
||||
Geom,
|
||||
Geom2d,
|
||||
TColStd,
|
||||
Message
|
||||
|
||||
is
|
||||
|
||||
class UndefinedTypeHandler;
|
||||
--
|
||||
-- Dump, Write, Read tools
|
||||
|
||||
class SurfaceSet;
|
||||
|
||||
class CurveSet;
|
||||
|
||||
class Curve2dSet;
|
||||
---Purpose: A set of Curves from Geom2d.
|
||||
|
||||
--
|
||||
-- Methods
|
||||
--
|
||||
|
||||
Dump(S : Surface from Geom; OS : in out OStream);
|
||||
---Purpose: Dumps the surface on the stream.
|
||||
|
||||
Write(S : Surface from Geom; OS : in out OStream);
|
||||
---Purpose: Writes the surface on the stream.
|
||||
|
||||
Read(S : in out Surface from Geom; IS : in out IStream);
|
||||
---Purpose: Reads the surface from the stream.
|
||||
|
||||
|
||||
Dump(C : Curve from Geom; OS : in out OStream);
|
||||
---Purpose: Dumps the Curve on the stream.
|
||||
|
||||
Write(C : Curve from Geom; OS : in out OStream);
|
||||
---Purpose: Writes the Curve on the stream.
|
||||
|
||||
Read(C : in out Curve from Geom; IS : in out IStream);
|
||||
---Purpose: Reads the Curve from the stream.
|
||||
|
||||
|
||||
Dump(C : Curve from Geom2d; OS : in out OStream);
|
||||
---Purpose: Dumps the Curve on the stream.
|
||||
|
||||
Write(C : Curve from Geom2d; OS : in out OStream);
|
||||
---Purpose: Writes the Curve on the stream.
|
||||
|
||||
Read(C : in out Curve from Geom2d; IS : in out IStream);
|
||||
---Purpose: Reads the Curve from the stream.
|
||||
|
||||
SetUndefinedTypeHandler(aHandler: UndefinedTypeHandler from GeomTools);
|
||||
|
||||
GetUndefinedTypeHandler returns UndefinedTypeHandler from GeomTools;
|
||||
|
||||
GetReal(IS : out IStream from Standard; theValue : out Real from Standard);
|
||||
---Purpose: Reads the Standard_Real value from the stream. Zero is read
|
||||
--- in case of error
|
||||
|
||||
|
||||
end GeomTools;
|
||||
|
||||
|
@@ -14,11 +14,14 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <GeomTools.ixx>
|
||||
|
||||
#include <GeomTools_SurfaceSet.hxx>
|
||||
#include <GeomTools_CurveSet.hxx>
|
||||
#include <Geom2d_Curve.hxx>
|
||||
#include <Geom_Curve.hxx>
|
||||
#include <Geom_Surface.hxx>
|
||||
#include <GeomTools.hxx>
|
||||
#include <GeomTools_Curve2dSet.hxx>
|
||||
#include <GeomTools_CurveSet.hxx>
|
||||
#include <GeomTools_SurfaceSet.hxx>
|
||||
#include <GeomTools_UndefinedTypeHandler.hxx>
|
||||
|
||||
static Handle(GeomTools_UndefinedTypeHandler) theActiveHandler = new GeomTools_UndefinedTypeHandler;
|
||||
|
113
src/GeomTools/GeomTools.hxx
Normal file
113
src/GeomTools/GeomTools.hxx
Normal file
@@ -0,0 +1,113 @@
|
||||
// Created on: 1992-08-28
|
||||
// Created by: Remi LEQUETTE
|
||||
// Copyright (c) 1992-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.
|
||||
|
||||
#ifndef _GeomTools_HeaderFile
|
||||
#define _GeomTools_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Standard_OStream.hxx>
|
||||
#include <Standard_IStream.hxx>
|
||||
#include <Standard_Real.hxx>
|
||||
class Geom_Surface;
|
||||
class Geom_Curve;
|
||||
class Geom2d_Curve;
|
||||
class GeomTools_UndefinedTypeHandler;
|
||||
class GeomTools_UndefinedTypeHandler;
|
||||
class GeomTools_SurfaceSet;
|
||||
class GeomTools_CurveSet;
|
||||
class GeomTools_Curve2dSet;
|
||||
|
||||
|
||||
//! The GeomTools package provides utilities for Geometry.
|
||||
//!
|
||||
//! * SurfaceSet, CurveSet, Curve2dSet : Tools used
|
||||
//! for dumping, writing and reading.
|
||||
//!
|
||||
//! * Methods to dump, write, read curves and surfaces.
|
||||
class GeomTools
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! A set of Curves from Geom2d.
|
||||
//! Dumps the surface on the stream.
|
||||
Standard_EXPORT static void Dump (const Handle(Geom_Surface)& S, Standard_OStream& OS);
|
||||
|
||||
//! Writes the surface on the stream.
|
||||
Standard_EXPORT static void Write (const Handle(Geom_Surface)& S, Standard_OStream& OS);
|
||||
|
||||
//! Reads the surface from the stream.
|
||||
Standard_EXPORT static void Read (Handle(Geom_Surface)& S, Standard_IStream& IS);
|
||||
|
||||
//! Dumps the Curve on the stream.
|
||||
Standard_EXPORT static void Dump (const Handle(Geom_Curve)& C, Standard_OStream& OS);
|
||||
|
||||
//! Writes the Curve on the stream.
|
||||
Standard_EXPORT static void Write (const Handle(Geom_Curve)& C, Standard_OStream& OS);
|
||||
|
||||
//! Reads the Curve from the stream.
|
||||
Standard_EXPORT static void Read (Handle(Geom_Curve)& C, Standard_IStream& IS);
|
||||
|
||||
//! Dumps the Curve on the stream.
|
||||
Standard_EXPORT static void Dump (const Handle(Geom2d_Curve)& C, Standard_OStream& OS);
|
||||
|
||||
//! Writes the Curve on the stream.
|
||||
Standard_EXPORT static void Write (const Handle(Geom2d_Curve)& C, Standard_OStream& OS);
|
||||
|
||||
//! Reads the Curve from the stream.
|
||||
Standard_EXPORT static void Read (Handle(Geom2d_Curve)& C, Standard_IStream& IS);
|
||||
|
||||
Standard_EXPORT static void SetUndefinedTypeHandler (const Handle(GeomTools_UndefinedTypeHandler)& aHandler);
|
||||
|
||||
Standard_EXPORT static Handle(GeomTools_UndefinedTypeHandler) GetUndefinedTypeHandler();
|
||||
|
||||
//! Reads the Standard_Real value from the stream. Zero is read
|
||||
//! in case of error
|
||||
Standard_EXPORT static void GetReal (Standard_IStream& IS, Standard_Real& theValue);
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
friend class GeomTools_UndefinedTypeHandler;
|
||||
friend class GeomTools_SurfaceSet;
|
||||
friend class GeomTools_CurveSet;
|
||||
friend class GeomTools_Curve2dSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _GeomTools_HeaderFile
|
@@ -1,98 +0,0 @@
|
||||
-- Created on: 1993-07-19
|
||||
-- Created by: Remi LEQUETTE
|
||||
-- Copyright (c) 1993-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.
|
||||
|
||||
class Curve2dSet from GeomTools
|
||||
|
||||
---Purpose: Stores a set of Curves from Geom2d.
|
||||
|
||||
uses
|
||||
Curve from Geom2d,
|
||||
IndexedMapOfTransient from TColStd,
|
||||
ProgressIndicator from Message
|
||||
|
||||
raises
|
||||
OutOfRange from Standard
|
||||
|
||||
is
|
||||
|
||||
Create returns Curve2dSet from GeomTools;
|
||||
---Purpose: Returns an empty set of Curves.
|
||||
|
||||
Clear(me : in out)
|
||||
---Purpose: Clears the content of the set.
|
||||
is static;
|
||||
|
||||
Add(me : in out; C : Curve from Geom2d) returns Integer
|
||||
---Purpose: Incorporate a new Curve in the set and returns
|
||||
-- its index.
|
||||
is static;
|
||||
|
||||
Curve2d(me; I : Integer) returns Curve from Geom2d
|
||||
---Purpose: Returns the Curve of index <I>.
|
||||
raises
|
||||
OutOfRange from Standard
|
||||
is static;
|
||||
|
||||
Index(me; C : Curve from Geom2d) returns Integer
|
||||
---Purpose: Returns the index of <L>.
|
||||
is static;
|
||||
|
||||
Dump(me; OS : in out OStream)
|
||||
---Purpose: Dumps the content of me on the stream <OS>.
|
||||
is static;
|
||||
|
||||
Write(me; OS : in out OStream)
|
||||
---Purpose: Writes the content of me on the stream <OS> in a
|
||||
-- format that can be read back by Read.
|
||||
is static;
|
||||
|
||||
Read(me : in out; IS : in out IStream)
|
||||
---Purpose: Reads the content of me from the stream <IS>. me
|
||||
-- is first cleared.
|
||||
--
|
||||
is static;
|
||||
|
||||
--
|
||||
-- class methods to write an read curves
|
||||
--
|
||||
|
||||
PrintCurve2d(myclass; C : Curve from Geom2d;
|
||||
OS : in out OStream;
|
||||
compact : Boolean = Standard_False);
|
||||
---Purpose: Dumps the curve on the stream, if compact is True
|
||||
-- use the compact format that can be read back.
|
||||
|
||||
ReadCurve2d(myclass; IS : in out IStream;
|
||||
C : in out Curve from Geom2d)
|
||||
returns IStream;
|
||||
---Purpose: Reads the curve from the stream. The curve is
|
||||
-- assumed to have been writtent with the Print
|
||||
-- method (compact = True).
|
||||
--
|
||||
---C++: return &
|
||||
|
||||
SetProgress(me : in out; PR : ProgressIndicator from Message);
|
||||
|
||||
GetProgress(me) returns ProgressIndicator from Message;
|
||||
|
||||
fields
|
||||
|
||||
myMap : IndexedMapOfTransient from TColStd;
|
||||
myProgress : ProgressIndicator from Message;
|
||||
|
||||
end Curve2dSet;
|
||||
|
||||
|
@@ -14,34 +14,34 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <Standard_Stream.hxx>
|
||||
#include <GeomTools_Curve2dSet.ixx>
|
||||
#include <GeomTools.hxx>
|
||||
#include <GeomTools_UndefinedTypeHandler.hxx>
|
||||
|
||||
#include <Geom2d_Circle.hxx>
|
||||
#include <Geom2d_Line.hxx>
|
||||
#include <Geom2d_Ellipse.hxx>
|
||||
#include <Geom2d_Parabola.hxx>
|
||||
#include <Geom2d_Hyperbola.hxx>
|
||||
#include <Geom2d_BezierCurve.hxx>
|
||||
#include <Geom2d_BSplineCurve.hxx>
|
||||
#include <Geom2d_TrimmedCurve.hxx>
|
||||
#include <Geom2d_Circle.hxx>
|
||||
#include <Geom2d_Curve.hxx>
|
||||
#include <Geom2d_Ellipse.hxx>
|
||||
#include <Geom2d_Hyperbola.hxx>
|
||||
#include <Geom2d_Line.hxx>
|
||||
#include <Geom2d_OffsetCurve.hxx>
|
||||
|
||||
#include <gp_Lin2d.hxx>
|
||||
#include <Geom2d_Parabola.hxx>
|
||||
#include <Geom2d_TrimmedCurve.hxx>
|
||||
#include <GeomTools.hxx>
|
||||
#include <GeomTools_Curve2dSet.hxx>
|
||||
#include <GeomTools_UndefinedTypeHandler.hxx>
|
||||
#include <gp_Circ2d.hxx>
|
||||
#include <gp_Elips2d.hxx>
|
||||
#include <gp_Parab2d.hxx>
|
||||
#include <gp_Hypr2d.hxx>
|
||||
|
||||
#include <TColStd_Array1OfReal.hxx>
|
||||
#include <TColStd_Array1OfInteger.hxx>
|
||||
#include <TColgp_Array1OfPnt2d.hxx>
|
||||
#include <Standard_Failure.hxx>
|
||||
#include <Standard_ErrorHandler.hxx>
|
||||
#include <gp_Lin2d.hxx>
|
||||
#include <gp_Parab2d.hxx>
|
||||
#include <Message_ProgressIndicator.hxx>
|
||||
#include <Message_ProgressSentry.hxx>
|
||||
#include <Geom2d_Curve.hxx>
|
||||
#include <Standard_ErrorHandler.hxx>
|
||||
#include <Standard_Failure.hxx>
|
||||
#include <Standard_OutOfRange.hxx>
|
||||
#include <Standard_Stream.hxx>
|
||||
#include <TColgp_Array1OfPnt2d.hxx>
|
||||
#include <TColStd_Array1OfInteger.hxx>
|
||||
#include <TColStd_Array1OfReal.hxx>
|
||||
|
||||
#define LINE 1
|
||||
#define CIRCLE 2
|
||||
|
107
src/GeomTools/GeomTools_Curve2dSet.hxx
Normal file
107
src/GeomTools/GeomTools_Curve2dSet.hxx
Normal file
@@ -0,0 +1,107 @@
|
||||
// Created on: 1993-07-19
|
||||
// Created by: Remi LEQUETTE
|
||||
// Copyright (c) 1993-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.
|
||||
|
||||
#ifndef _GeomTools_Curve2dSet_HeaderFile
|
||||
#define _GeomTools_Curve2dSet_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <TColStd_IndexedMapOfTransient.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_OStream.hxx>
|
||||
#include <Standard_IStream.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class Message_ProgressIndicator;
|
||||
class Standard_OutOfRange;
|
||||
class Geom2d_Curve;
|
||||
|
||||
|
||||
//! Stores a set of Curves from Geom2d.
|
||||
class GeomTools_Curve2dSet
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Returns an empty set of Curves.
|
||||
Standard_EXPORT GeomTools_Curve2dSet();
|
||||
|
||||
//! Clears the content of the set.
|
||||
Standard_EXPORT void Clear();
|
||||
|
||||
//! Incorporate a new Curve in the set and returns
|
||||
//! its index.
|
||||
Standard_EXPORT Standard_Integer Add (const Handle(Geom2d_Curve)& C);
|
||||
|
||||
//! Returns the Curve of index <I>.
|
||||
Standard_EXPORT Handle(Geom2d_Curve) Curve2d (const Standard_Integer I) const;
|
||||
|
||||
//! Returns the index of <L>.
|
||||
Standard_EXPORT Standard_Integer Index (const Handle(Geom2d_Curve)& C) const;
|
||||
|
||||
//! Dumps the content of me on the stream <OS>.
|
||||
Standard_EXPORT void Dump (Standard_OStream& OS) const;
|
||||
|
||||
//! Writes the content of me on the stream <OS> in a
|
||||
//! format that can be read back by Read.
|
||||
Standard_EXPORT void Write (Standard_OStream& OS) const;
|
||||
|
||||
//! Reads the content of me from the stream <IS>. me
|
||||
//! is first cleared.
|
||||
Standard_EXPORT void Read (Standard_IStream& IS);
|
||||
|
||||
//! Dumps the curve on the stream, if compact is True
|
||||
//! use the compact format that can be read back.
|
||||
Standard_EXPORT static void PrintCurve2d (const Handle(Geom2d_Curve)& C, Standard_OStream& OS, const Standard_Boolean compact = Standard_False);
|
||||
|
||||
//! Reads the curve from the stream. The curve is
|
||||
//! assumed to have been writtent with the Print
|
||||
//! method (compact = True).
|
||||
Standard_EXPORT static Standard_IStream& ReadCurve2d (Standard_IStream& IS, Handle(Geom2d_Curve)& C);
|
||||
|
||||
Standard_EXPORT void SetProgress (const Handle(Message_ProgressIndicator)& PR);
|
||||
|
||||
Standard_EXPORT Handle(Message_ProgressIndicator) GetProgress() const;
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
TColStd_IndexedMapOfTransient myMap;
|
||||
Handle(Message_ProgressIndicator) myProgress;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _GeomTools_Curve2dSet_HeaderFile
|
@@ -1,98 +0,0 @@
|
||||
-- Created on: 1993-07-19
|
||||
-- Created by: Remi LEQUETTE
|
||||
-- Copyright (c) 1993-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.
|
||||
|
||||
class CurveSet from GeomTools
|
||||
|
||||
---Purpose: Stores a set of Curves from Geom.
|
||||
|
||||
uses
|
||||
Curve from Geom,
|
||||
IndexedMapOfTransient from TColStd,
|
||||
ProgressIndicator from Message
|
||||
|
||||
raises
|
||||
OutOfRange from Standard
|
||||
|
||||
is
|
||||
|
||||
Create returns CurveSet from GeomTools;
|
||||
---Purpose: Returns an empty set of Curves.
|
||||
|
||||
Clear(me : in out)
|
||||
---Purpose: Clears the content of the set.
|
||||
is static;
|
||||
|
||||
Add(me : in out; C : Curve from Geom) returns Integer
|
||||
---Purpose: Incorporate a new Curve in the set and returns
|
||||
-- its index.
|
||||
is static;
|
||||
|
||||
Curve(me; I : Integer) returns Curve from Geom
|
||||
---Purpose: Returns the Curve of index <I>.
|
||||
raises
|
||||
OutOfRange from Standard
|
||||
is static;
|
||||
|
||||
Index(me; C : Curve from Geom) returns Integer
|
||||
---Purpose: Returns the index of <L>.
|
||||
is static;
|
||||
|
||||
Dump(me; OS : in out OStream)
|
||||
---Purpose: Dumps the content of me on the stream <OS>.
|
||||
is static;
|
||||
|
||||
Write(me; OS : in out OStream)
|
||||
---Purpose: Writes the content of me on the stream <OS> in a
|
||||
-- format that can be read back by Read.
|
||||
is static;
|
||||
|
||||
Read(me : in out; IS : in out IStream)
|
||||
---Purpose: Reads the content of me from the stream <IS>. me
|
||||
-- is first cleared.
|
||||
--
|
||||
is static;
|
||||
|
||||
--
|
||||
-- class methods to write an read curves
|
||||
--
|
||||
|
||||
PrintCurve(myclass; C : Curve from Geom;
|
||||
OS : in out OStream;
|
||||
compact : Boolean = Standard_False);
|
||||
---Purpose: Dumps the curve on the stream, if compact is True
|
||||
-- use the compact format that can be read back.
|
||||
|
||||
ReadCurve(myclass; IS : in out IStream;
|
||||
C : in out Curve from Geom)
|
||||
returns IStream;
|
||||
---Purpose: Reads the curve from the stream. The curve is
|
||||
-- assumed to have been writtent with the Print
|
||||
-- method (compact = True).
|
||||
--
|
||||
---C++: return &
|
||||
|
||||
SetProgress(me : in out; PR : ProgressIndicator from Message);
|
||||
|
||||
GetProgress(me) returns ProgressIndicator from Message;
|
||||
|
||||
fields
|
||||
|
||||
myMap : IndexedMapOfTransient from TColStd;
|
||||
myProgress : ProgressIndicator from Message;
|
||||
|
||||
end CurveSet;
|
||||
|
||||
|
@@ -14,34 +14,34 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <Standard_Stream.hxx>
|
||||
#include <GeomTools_CurveSet.ixx>
|
||||
#include <GeomTools.hxx>
|
||||
#include <GeomTools_UndefinedTypeHandler.hxx>
|
||||
|
||||
#include <Geom_Circle.hxx>
|
||||
#include <Geom_Line.hxx>
|
||||
#include <Geom_Ellipse.hxx>
|
||||
#include <Geom_Parabola.hxx>
|
||||
#include <Geom_Hyperbola.hxx>
|
||||
#include <Geom_BezierCurve.hxx>
|
||||
#include <Geom_BSplineCurve.hxx>
|
||||
#include <Geom_TrimmedCurve.hxx>
|
||||
#include <Geom_Circle.hxx>
|
||||
#include <Geom_Curve.hxx>
|
||||
#include <Geom_Ellipse.hxx>
|
||||
#include <Geom_Hyperbola.hxx>
|
||||
#include <Geom_Line.hxx>
|
||||
#include <Geom_OffsetCurve.hxx>
|
||||
|
||||
#include <gp_Lin.hxx>
|
||||
#include <Geom_Parabola.hxx>
|
||||
#include <Geom_TrimmedCurve.hxx>
|
||||
#include <GeomTools.hxx>
|
||||
#include <GeomTools_CurveSet.hxx>
|
||||
#include <GeomTools_UndefinedTypeHandler.hxx>
|
||||
#include <gp_Circ.hxx>
|
||||
#include <gp_Elips.hxx>
|
||||
#include <gp_Parab.hxx>
|
||||
#include <gp_Hypr.hxx>
|
||||
|
||||
#include <TColStd_Array1OfReal.hxx>
|
||||
#include <TColStd_Array1OfInteger.hxx>
|
||||
#include <TColgp_Array1OfPnt.hxx>
|
||||
#include <Standard_Failure.hxx>
|
||||
#include <Standard_ErrorHandler.hxx>
|
||||
#include <gp_Lin.hxx>
|
||||
#include <gp_Parab.hxx>
|
||||
#include <Message_ProgressIndicator.hxx>
|
||||
#include <Message_ProgressSentry.hxx>
|
||||
#include <Geom_Curve.hxx>
|
||||
#include <Standard_ErrorHandler.hxx>
|
||||
#include <Standard_Failure.hxx>
|
||||
#include <Standard_OutOfRange.hxx>
|
||||
#include <Standard_Stream.hxx>
|
||||
#include <TColgp_Array1OfPnt.hxx>
|
||||
#include <TColStd_Array1OfInteger.hxx>
|
||||
#include <TColStd_Array1OfReal.hxx>
|
||||
|
||||
#define LINE 1
|
||||
#define CIRCLE 2
|
||||
|
107
src/GeomTools/GeomTools_CurveSet.hxx
Normal file
107
src/GeomTools/GeomTools_CurveSet.hxx
Normal file
@@ -0,0 +1,107 @@
|
||||
// Created on: 1993-07-19
|
||||
// Created by: Remi LEQUETTE
|
||||
// Copyright (c) 1993-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.
|
||||
|
||||
#ifndef _GeomTools_CurveSet_HeaderFile
|
||||
#define _GeomTools_CurveSet_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <TColStd_IndexedMapOfTransient.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_OStream.hxx>
|
||||
#include <Standard_IStream.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class Message_ProgressIndicator;
|
||||
class Standard_OutOfRange;
|
||||
class Geom_Curve;
|
||||
|
||||
|
||||
//! Stores a set of Curves from Geom.
|
||||
class GeomTools_CurveSet
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Returns an empty set of Curves.
|
||||
Standard_EXPORT GeomTools_CurveSet();
|
||||
|
||||
//! Clears the content of the set.
|
||||
Standard_EXPORT void Clear();
|
||||
|
||||
//! Incorporate a new Curve in the set and returns
|
||||
//! its index.
|
||||
Standard_EXPORT Standard_Integer Add (const Handle(Geom_Curve)& C);
|
||||
|
||||
//! Returns the Curve of index <I>.
|
||||
Standard_EXPORT Handle(Geom_Curve) Curve (const Standard_Integer I) const;
|
||||
|
||||
//! Returns the index of <L>.
|
||||
Standard_EXPORT Standard_Integer Index (const Handle(Geom_Curve)& C) const;
|
||||
|
||||
//! Dumps the content of me on the stream <OS>.
|
||||
Standard_EXPORT void Dump (Standard_OStream& OS) const;
|
||||
|
||||
//! Writes the content of me on the stream <OS> in a
|
||||
//! format that can be read back by Read.
|
||||
Standard_EXPORT void Write (Standard_OStream& OS) const;
|
||||
|
||||
//! Reads the content of me from the stream <IS>. me
|
||||
//! is first cleared.
|
||||
Standard_EXPORT void Read (Standard_IStream& IS);
|
||||
|
||||
//! Dumps the curve on the stream, if compact is True
|
||||
//! use the compact format that can be read back.
|
||||
Standard_EXPORT static void PrintCurve (const Handle(Geom_Curve)& C, Standard_OStream& OS, const Standard_Boolean compact = Standard_False);
|
||||
|
||||
//! Reads the curve from the stream. The curve is
|
||||
//! assumed to have been writtent with the Print
|
||||
//! method (compact = True).
|
||||
Standard_EXPORT static Standard_IStream& ReadCurve (Standard_IStream& IS, Handle(Geom_Curve)& C);
|
||||
|
||||
Standard_EXPORT void SetProgress (const Handle(Message_ProgressIndicator)& PR);
|
||||
|
||||
Standard_EXPORT Handle(Message_ProgressIndicator) GetProgress() const;
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
TColStd_IndexedMapOfTransient myMap;
|
||||
Handle(Message_ProgressIndicator) myProgress;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _GeomTools_CurveSet_HeaderFile
|
@@ -1,98 +0,0 @@
|
||||
-- Created on: 1993-07-19
|
||||
-- Created by: Remi LEQUETTE
|
||||
-- Copyright (c) 1993-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.
|
||||
|
||||
class SurfaceSet from GeomTools
|
||||
|
||||
---Purpose: Stores a set of Surfaces from Geom.
|
||||
|
||||
uses
|
||||
Surface from Geom,
|
||||
IndexedMapOfTransient from TColStd,
|
||||
ProgressIndicator from Message
|
||||
|
||||
raises
|
||||
OutOfRange from Standard
|
||||
|
||||
is
|
||||
|
||||
Create returns SurfaceSet from GeomTools;
|
||||
---Purpose: Returns an empty set of Surfaces.
|
||||
|
||||
Clear(me : in out)
|
||||
---Purpose: Clears the content of the set.
|
||||
is static;
|
||||
|
||||
Add(me : in out; S : Surface from Geom) returns Integer
|
||||
---Purpose: Incorporate a new Surface in the set and returns
|
||||
-- its index.
|
||||
is static;
|
||||
|
||||
Surface(me; I : Integer) returns Surface from Geom
|
||||
---Purpose: Returns the Surface of index <I>.
|
||||
raises
|
||||
OutOfRange from Standard
|
||||
is static;
|
||||
|
||||
Index(me; S : Surface from Geom) returns Integer
|
||||
---Purpose: Returns the index of <L>.
|
||||
is static;
|
||||
|
||||
Dump(me; OS : in out OStream)
|
||||
---Purpose: Dumps the content of me on the stream <OS>.
|
||||
is static;
|
||||
|
||||
Write(me; OS : in out OStream)
|
||||
---Purpose: Writes the content of me on the stream <OS> in a
|
||||
-- format that can be read back by Read.
|
||||
is static;
|
||||
|
||||
Read(me : in out; IS : in out IStream)
|
||||
---Purpose: Reads the content of me from the stream <IS>. me
|
||||
-- is first cleared.
|
||||
--
|
||||
is static;
|
||||
|
||||
--
|
||||
-- class methods to write an read surfaces
|
||||
--
|
||||
|
||||
PrintSurface(myclass; S : Surface from Geom;
|
||||
OS : in out OStream;
|
||||
compact : Boolean = Standard_False);
|
||||
---Purpose: Dumps the surface on the stream, if compact is True
|
||||
-- use the compact format that can be read back.
|
||||
|
||||
ReadSurface(myclass; IS : in out IStream;
|
||||
S : in out Surface from Geom)
|
||||
returns IStream;
|
||||
---Purpose: Reads the surface from the stream. The surface is
|
||||
-- assumed to have been writtent with the Print
|
||||
-- method (compact = True).
|
||||
--
|
||||
---C++: return &
|
||||
|
||||
SetProgress(me : in out; PR : ProgressIndicator from Message);
|
||||
|
||||
GetProgress(me) returns ProgressIndicator from Message;
|
||||
|
||||
fields
|
||||
|
||||
myMap : IndexedMapOfTransient from TColStd;
|
||||
myProgress : ProgressIndicator from Message;
|
||||
|
||||
end SurfaceSet;
|
||||
|
||||
|
@@ -14,39 +14,39 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <Standard_Stream.hxx>
|
||||
#include <GeomTools_SurfaceSet.ixx>
|
||||
#include <GeomTools.hxx>
|
||||
#include <GeomTools_UndefinedTypeHandler.hxx>
|
||||
|
||||
#include <GeomTools_CurveSet.hxx>
|
||||
#include <Geom_Plane.hxx>
|
||||
#include <Geom_CylindricalSurface.hxx>
|
||||
#include <Geom_ConicalSurface.hxx>
|
||||
#include <Geom_SphericalSurface.hxx>
|
||||
#include <Geom_ToroidalSurface.hxx>
|
||||
#include <Geom_SurfaceOfLinearExtrusion.hxx>
|
||||
#include <Geom_SurfaceOfRevolution.hxx>
|
||||
#include <Geom_BezierSurface.hxx>
|
||||
#include <Geom_BSplineSurface.hxx>
|
||||
#include <Geom_RectangularTrimmedSurface.hxx>
|
||||
#include <Geom_ConicalSurface.hxx>
|
||||
#include <Geom_CylindricalSurface.hxx>
|
||||
#include <Geom_OffsetSurface.hxx>
|
||||
|
||||
#include <gp_Pln.hxx>
|
||||
#include <gp_Cylinder.hxx>
|
||||
#include <Geom_Plane.hxx>
|
||||
#include <Geom_RectangularTrimmedSurface.hxx>
|
||||
#include <Geom_SphericalSurface.hxx>
|
||||
#include <Geom_Surface.hxx>
|
||||
#include <Geom_SurfaceOfLinearExtrusion.hxx>
|
||||
#include <Geom_SurfaceOfRevolution.hxx>
|
||||
#include <Geom_ToroidalSurface.hxx>
|
||||
#include <GeomTools.hxx>
|
||||
#include <GeomTools_CurveSet.hxx>
|
||||
#include <GeomTools_SurfaceSet.hxx>
|
||||
#include <GeomTools_UndefinedTypeHandler.hxx>
|
||||
#include <gp_Cone.hxx>
|
||||
#include <gp_Cylinder.hxx>
|
||||
#include <gp_Pln.hxx>
|
||||
#include <gp_Sphere.hxx>
|
||||
#include <gp_Torus.hxx>
|
||||
|
||||
#include <TColStd_Array1OfReal.hxx>
|
||||
#include <TColStd_Array1OfInteger.hxx>
|
||||
#include <TColgp_Array1OfPnt.hxx>
|
||||
#include <TColStd_Array2OfReal.hxx>
|
||||
#include <TColgp_Array2OfPnt.hxx>
|
||||
#include <Standard_Failure.hxx>
|
||||
#include <Standard_ErrorHandler.hxx>
|
||||
#include <Message_ProgressIndicator.hxx>
|
||||
#include <Message_ProgressSentry.hxx>
|
||||
#include <Geom_Surface.hxx>
|
||||
#include <Standard_ErrorHandler.hxx>
|
||||
#include <Standard_Failure.hxx>
|
||||
#include <Standard_OutOfRange.hxx>
|
||||
#include <Standard_Stream.hxx>
|
||||
#include <TColgp_Array1OfPnt.hxx>
|
||||
#include <TColgp_Array2OfPnt.hxx>
|
||||
#include <TColStd_Array1OfInteger.hxx>
|
||||
#include <TColStd_Array1OfReal.hxx>
|
||||
#include <TColStd_Array2OfReal.hxx>
|
||||
|
||||
#define PLANE 1
|
||||
#define CYLINDER 2
|
||||
|
107
src/GeomTools/GeomTools_SurfaceSet.hxx
Normal file
107
src/GeomTools/GeomTools_SurfaceSet.hxx
Normal file
@@ -0,0 +1,107 @@
|
||||
// Created on: 1993-07-19
|
||||
// Created by: Remi LEQUETTE
|
||||
// Copyright (c) 1993-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.
|
||||
|
||||
#ifndef _GeomTools_SurfaceSet_HeaderFile
|
||||
#define _GeomTools_SurfaceSet_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <TColStd_IndexedMapOfTransient.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_OStream.hxx>
|
||||
#include <Standard_IStream.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class Message_ProgressIndicator;
|
||||
class Standard_OutOfRange;
|
||||
class Geom_Surface;
|
||||
|
||||
|
||||
//! Stores a set of Surfaces from Geom.
|
||||
class GeomTools_SurfaceSet
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Returns an empty set of Surfaces.
|
||||
Standard_EXPORT GeomTools_SurfaceSet();
|
||||
|
||||
//! Clears the content of the set.
|
||||
Standard_EXPORT void Clear();
|
||||
|
||||
//! Incorporate a new Surface in the set and returns
|
||||
//! its index.
|
||||
Standard_EXPORT Standard_Integer Add (const Handle(Geom_Surface)& S);
|
||||
|
||||
//! Returns the Surface of index <I>.
|
||||
Standard_EXPORT Handle(Geom_Surface) Surface (const Standard_Integer I) const;
|
||||
|
||||
//! Returns the index of <L>.
|
||||
Standard_EXPORT Standard_Integer Index (const Handle(Geom_Surface)& S) const;
|
||||
|
||||
//! Dumps the content of me on the stream <OS>.
|
||||
Standard_EXPORT void Dump (Standard_OStream& OS) const;
|
||||
|
||||
//! Writes the content of me on the stream <OS> in a
|
||||
//! format that can be read back by Read.
|
||||
Standard_EXPORT void Write (Standard_OStream& OS) const;
|
||||
|
||||
//! Reads the content of me from the stream <IS>. me
|
||||
//! is first cleared.
|
||||
Standard_EXPORT void Read (Standard_IStream& IS);
|
||||
|
||||
//! Dumps the surface on the stream, if compact is True
|
||||
//! use the compact format that can be read back.
|
||||
Standard_EXPORT static void PrintSurface (const Handle(Geom_Surface)& S, Standard_OStream& OS, const Standard_Boolean compact = Standard_False);
|
||||
|
||||
//! Reads the surface from the stream. The surface is
|
||||
//! assumed to have been writtent with the Print
|
||||
//! method (compact = True).
|
||||
Standard_EXPORT static Standard_IStream& ReadSurface (Standard_IStream& IS, Handle(Geom_Surface)& S);
|
||||
|
||||
Standard_EXPORT void SetProgress (const Handle(Message_ProgressIndicator)& PR);
|
||||
|
||||
Standard_EXPORT Handle(Message_ProgressIndicator) GetProgress() const;
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
TColStd_IndexedMapOfTransient myMap;
|
||||
Handle(Message_ProgressIndicator) myProgress;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _GeomTools_SurfaceSet_HeaderFile
|
@@ -1,69 +0,0 @@
|
||||
-- Created on: 1999-10-29
|
||||
-- Created by: Pavel DURANDIN
|
||||
-- Copyright (c) 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.
|
||||
|
||||
class UndefinedTypeHandler from GeomTools inherits TShared from MMgt
|
||||
|
||||
---Purpose:
|
||||
|
||||
uses
|
||||
|
||||
Curve from Geom,
|
||||
Surface from Geom,
|
||||
Curve from Geom2d,
|
||||
OStream,
|
||||
IStream
|
||||
|
||||
is
|
||||
|
||||
Create returns UndefinedTypeHandler from GeomTools;
|
||||
|
||||
-- Curve
|
||||
|
||||
PrintCurve(me; C : Curve from Geom;
|
||||
OS : in out OStream;
|
||||
compact : Boolean = Standard_False) is virtual;
|
||||
|
||||
ReadCurve(me; ctype: Integer;
|
||||
IS : in out IStream;
|
||||
C : in out Curve from Geom)
|
||||
returns IStream is virtual;
|
||||
---C++: return &
|
||||
|
||||
--PCurve
|
||||
|
||||
PrintCurve2d(me; C : Curve from Geom2d;
|
||||
OS : in out OStream;
|
||||
compact : Boolean = Standard_False) is virtual;
|
||||
|
||||
ReadCurve2d(me; ctype: Integer;
|
||||
IS : in out IStream;
|
||||
C : in out Curve from Geom2d)
|
||||
returns IStream is virtual;
|
||||
---C++: return &
|
||||
|
||||
--Surface
|
||||
|
||||
PrintSurface(me; S : Surface from Geom;
|
||||
OS : in out OStream;
|
||||
compact : Boolean = Standard_False) is virtual;
|
||||
|
||||
ReadSurface(me; ctype: Integer;
|
||||
IS : in out IStream;
|
||||
S : in out Surface from Geom)
|
||||
returns IStream is virtual;
|
||||
---C++: return &
|
||||
|
||||
end UndefinedTypeHandler;
|
@@ -14,7 +14,12 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <GeomTools_UndefinedTypeHandler.ixx>
|
||||
|
||||
#include <Geom2d_Curve.hxx>
|
||||
#include <Geom_Curve.hxx>
|
||||
#include <Geom_Surface.hxx>
|
||||
#include <GeomTools_UndefinedTypeHandler.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
GeomTools_UndefinedTypeHandler::GeomTools_UndefinedTypeHandler()
|
||||
{
|
||||
|
80
src/GeomTools/GeomTools_UndefinedTypeHandler.hxx
Normal file
80
src/GeomTools/GeomTools_UndefinedTypeHandler.hxx
Normal file
@@ -0,0 +1,80 @@
|
||||
// Created on: 1999-10-29
|
||||
// Created by: Pavel DURANDIN
|
||||
// Copyright (c) 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.
|
||||
|
||||
#ifndef _GeomTools_UndefinedTypeHandler_HeaderFile
|
||||
#define _GeomTools_UndefinedTypeHandler_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_OStream.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_IStream.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
class Geom_Curve;
|
||||
class Geom2d_Curve;
|
||||
class Geom_Surface;
|
||||
|
||||
|
||||
class GeomTools_UndefinedTypeHandler;
|
||||
DEFINE_STANDARD_HANDLE(GeomTools_UndefinedTypeHandler, MMgt_TShared)
|
||||
|
||||
|
||||
class GeomTools_UndefinedTypeHandler : public MMgt_TShared
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT GeomTools_UndefinedTypeHandler();
|
||||
|
||||
Standard_EXPORT virtual void PrintCurve (const Handle(Geom_Curve)& C, Standard_OStream& OS, const Standard_Boolean compact = Standard_False) const;
|
||||
|
||||
Standard_EXPORT virtual Standard_IStream& ReadCurve (const Standard_Integer ctype, Standard_IStream& IS, Handle(Geom_Curve)& C) const;
|
||||
|
||||
Standard_EXPORT virtual void PrintCurve2d (const Handle(Geom2d_Curve)& C, Standard_OStream& OS, const Standard_Boolean compact = Standard_False) const;
|
||||
|
||||
Standard_EXPORT virtual Standard_IStream& ReadCurve2d (const Standard_Integer ctype, Standard_IStream& IS, Handle(Geom2d_Curve)& C) const;
|
||||
|
||||
Standard_EXPORT virtual void PrintSurface (const Handle(Geom_Surface)& S, Standard_OStream& OS, const Standard_Boolean compact = Standard_False) const;
|
||||
|
||||
Standard_EXPORT virtual Standard_IStream& ReadSurface (const Standard_Integer ctype, Standard_IStream& IS, Handle(Geom_Surface)& S) const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(GeomTools_UndefinedTypeHandler,MMgt_TShared)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _GeomTools_UndefinedTypeHandler_HeaderFile
|
Reference in New Issue
Block a user