/usr/include/opencascade/MgtTopLoc.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 | // 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 _MgtTopLoc_HeaderFile
#define _MgtTopLoc_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif
#ifndef _Handle_PTopLoc_Datum3D_HeaderFile
#include <Handle_PTopLoc_Datum3D.hxx>
#endif
#ifndef _Handle_TopLoc_Datum3D_HeaderFile
#include <Handle_TopLoc_Datum3D.hxx>
#endif
class PTopLoc_Datum3D;
class TopLoc_Datum3D;
class PTColStd_TransientPersistentMap;
class PTColStd_PersistentTransientMap;
class PTopLoc_Location;
class TopLoc_Location;
//! The package MgtTopLoc provides methods to store <br>
//! and retrieve local coordinate systems. i.e. <br>
//! translationg them from Persistent to Transient and <br>
//! vice-versa. <br>
//! <br>
//! * Persistent local coordinate systems are provided <br>
//! by the package PTopLoc. <br>
//! <br>
//! * Transient local coordinate systems are provided <br>
//! by the package TopLoc. <br>
//! <br>
//! This package keeps track of previous translations <br>
//! to preserve the incremental feature of coordinate <br>
//! systems. i.e. once a data has been translated, <br>
//! translating it back will give the original data. <br>
//! <br>
//! Two kinds of objects are managed : <br>
//! <br>
//! * Datum3D : A Datum3D is an elementary local <br>
//! coordinate system handled by reference. <br>
//! <br>
//! * Location : A Location is a complex local <br>
//! coordinate system made by linking elementary <br>
//! coordinate systems (Datum3D). If a Location is <br>
//! translated twice only the local coordinate systems <br>
//! will be the same. This is not a problem as the <br>
//! comparison of Locations is based on the comparison <br>
//! of local coordinate systems. <br>
class MgtTopLoc {
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 Datum3D to a persistant <br>
//! Datum3D. <br>
Standard_EXPORT static Handle_PTopLoc_Datum3D Translate(const Handle(TopLoc_Datum3D)& D,PTColStd_TransientPersistentMap& M) ;
//! Translate a persistant Datum3D to a transient <br>
//! Datum3D. <br>
Standard_EXPORT static Handle_TopLoc_Datum3D Translate(const Handle(PTopLoc_Datum3D)& D,PTColStd_PersistentTransientMap& M) ;
//! Translate a non storable Location to a storable <br>
//! Location. <br>
Standard_EXPORT static PTopLoc_Location Translate(const TopLoc_Location& L,PTColStd_TransientPersistentMap& M) ;
//! Translate a storable Location to a non storable <br>
//! Location. <br>
Standard_EXPORT static TopLoc_Location Translate(const PTopLoc_Location& L,PTColStd_PersistentTransientMap& M) ;
protected:
private:
};
// other Inline functions and methods (like "C++: function call" methods)
#endif
|