/usr/include/opencascade/MgtBRep.hxx is in libopencascade-ocaf-lite-dev 6.5.0.dfsg-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | // This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _MgtBRep_HeaderFile
#define _MgtBRep_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif
#ifndef _Handle_PTopoDS_HShape_HeaderFile
#include <Handle_PTopoDS_HShape.hxx>
#endif
#ifndef _MgtBRep_TriangleMode_HeaderFile
#include <MgtBRep_TriangleMode.hxx>
#endif
class PTopoDS_HShape;
class TopoDS_Shape;
class PTColStd_TransientPersistentMap;
class PTopoDS_Shape1;
class PTColStd_PersistentTransientMap;
class MgtBRep_TranslateTool;
class MgtBRep_TranslateTool1;
//! The MgtBRep package provides methods to translate <br>
//! data between the BRep package and the PBRep <br>
//! package. <br>
//! <br>
//! That is to translate persistent BRep data <br>
//! structures in Transient BRep data structures and <br>
//! vice-versa. <br>
//! <br>
//! The MgtBRep package uses : <br>
//! <br>
//! * The MgtBas package to bind a transient and a <br>
//! persistent object. <br>
//! <br>
//! * The MgtTopoDS package to provide basic methods <br>
//! to translate TopoDS and PTopoDS data. <br>
//! <br>
//! * The MgtTopLoc package to translate Locations. <br>
//! <br>
//! * The MgtGeom, MgtGeom2d packages to translate <br>
//! geometric data. <br>
//! <br>
//! * The MgtPoly package to translate triangulation data. <br>
//! <br>
//! The Translate methods has TriangleMode argument. <br>
//! If it is MgtBRep_WithTriangle, the methods returns or <br>
//! create a Shape with triangulation. <br>
class MgtBRep {
public:
void* operator new(size_t,void* anAddress)
{
return anAddress;
}
void* operator new(size_t size)
{
return Standard::Allocate(size);
}
void operator delete(void *anAddress)
{
if (anAddress) Standard::Free((Standard_Address&)anAddress);
}
//! Translate a transient Shape to a persistent Shape. <br>
//! he translation is performed according <br>
//! to the map aMap and the triangulation <br>
//! specified by aTriMode <br>
Standard_EXPORT static Handle_PTopoDS_HShape Translate(const TopoDS_Shape& aShape,PTColStd_TransientPersistentMap& aMap,const MgtBRep_TriangleMode aTriMode) ;
//! Translate a transient Shape to a persistent Shape. <br>
//! The translation is performed according to the map aMap and the <br>
//! triangulation specified by aTriMode. <br>
//! The map, aMap, is a tool that lets you share <br>
//! topological components. When the map is <br>
//! initialized, it is empty. It is built up and used by the <br>
//! Translate function every time a topological <br>
//! component is converted from persistent to <br>
//! transient and vice versa. This is true for all <br>
//! topological components that can be shared: <br>
//! vertex, edge, wire, face, shell, solid, and so on. <br>
//! This map allows you to share individual <br>
//! components as they are translated, and also lets <br>
//! you share previously converted components <br>
//! when you translate other objects which share <br>
//! (i.e. refer to) these components. <br>
//! The triangulation mode, aTriMode, specifies <br>
//! whether a representation of the object as a set <br>
//! of triangles - if such a representation exists - is <br>
//! to be translated or not in addition to the <br>
//! canonical definition of the object. <br>
Standard_EXPORT static void Translate1(const TopoDS_Shape& aShape,PTColStd_TransientPersistentMap& aMap,PTopoDS_Shape1& aResult,const MgtBRep_TriangleMode aTriMode) ;
//! Translate a persistent Shape to a transient Shape. <br>
//! Used for upwards compatibility. <br>
Standard_EXPORT static void Translate(const Handle(PTopoDS_HShape)& aShape,PTColStd_PersistentTransientMap& aMap,TopoDS_Shape& aResult,const MgtBRep_TriangleMode aTriMode) ;
//! Translate a persistent Shape to a transient Shape. <br>
Standard_EXPORT static void Translate1(const PTopoDS_Shape1& aShape,PTColStd_PersistentTransientMap& aMap,TopoDS_Shape& aResult,const MgtBRep_TriangleMode aTriMode) ;
protected:
private:
friend class MgtBRep_TranslateTool;
friend class MgtBRep_TranslateTool1;
};
// other Inline functions and methods (like "C++: function call" methods)
#endif
|