Implementation of global functions STANDARD_TYPE() for types not inheriting Standard_Transient or Standard_Persistent are eliminated.
Global functions and class methods ShallowCopy() are removed; also removed unused classes Visual3d_PickPath and Visual3d_PickDescriptor.
Global functions and class methods ShallowDump() are removed, except for classes Standard_GUID, TopLoc_Datum, and TopLoc_Location as the latter are still used in some Debug printouts.
+++ /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.
-
-#include <Aspect_CLayer2d.hxx>
-
-const Handle(Standard_Type)& STANDARD_TYPE(Aspect_CLayer2d)
-{
- static Handle(Standard_Type) _atype = new Standard_Type ("Aspect_CLayer2d", sizeof (Aspect_CLayer2d));
- return _atype;
-}
#include <InterfaceGraphic_Aspect.hxx>
typedef CALL_DEF_LAYER Aspect_CLayer2d;
-#if defined(__cplusplus) || defined(c_plusplus)
-/*==== Definition de Type ====================================================*/
-
-#include <Standard_Type.hxx>
-const Handle(Standard_Type)& TYPE(Aspect_CLayer2d) ;
-/*============================================================================*/
-
-#endif
#endif /*Aspect_CLayer2d_HeaderFile*/
#ifndef _Aspect_Display_HeaderFile
#define _Aspect_Display_HeaderFile
- typedef void* Aspect_Display; /* Display* under UNIX */
-
-#if defined(__cplusplus) || defined(c_plusplus)
-/*==== Definition de Type ====================================================*/
-
-#include <Standard_Macro.hxx>
-class Handle(Standard_Type);
-const Handle(Standard_Type)& STANDARD_TYPE(Aspect_Display);
-
-/*============================================================================*/
-#endif
+typedef void* Aspect_Display; /* Display* under UNIX */
#endif /* _Aspect_Display_HeaderFile */
typedef unsigned long Aspect_Drawable; /* Window or Pixmap under UNIX */
#endif /* WNT */
-#if defined(__cplusplus) || defined(c_plusplus)
-/*==== Definition de Type ====================================================*/
-
-#include <Standard_Macro.hxx>
-class Handle(Standard_Type);
-const Handle(Standard_Type)& STANDARD_TYPE(Aspect_Drawable);
-
-/*============================================================================*/
-#endif
-
#endif /* _Aspect_Drawable_HeaderFile */
+++ /dev/null
-// Created on: 1994-08-24
-// Created by: Modelistation
-// Copyright (c) 1994-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 <Aspect_FStream.hxx>
-
-const Handle(Standard_Type)& STANDARD_TYPE(Aspect_FStream)
-{
- static Handle(Standard_Type) _atype =
- new Standard_Type("Aspect_FStream",sizeof(Aspect_FStream));
- return _atype;
-}
typedef ofstream* Aspect_FStream;
-#include <Standard_Type.hxx>
-const Handle(Standard_Type)& STANDARD_TYPE(Aspect_FStream);
-
#endif
void* theUserData,
Aspect_GraphicCallbackStruct* theCallData);
-class Handle(Standard_Type);
-const Handle(Standard_Type)& STANDARD_TYPE(Aspect_GraphicCallbackProc);
-
#endif /* _Aspect_GraphicCallbackProc_HeaderFile */
+++ /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.
-
-#include <Aspect_Handle.hxx>
-#include <Standard_Type.hxx>
-
-const Handle(Standard_Type)& STANDARD_TYPE(Aspect_Handle)
-{
- static Handle(Standard_Type) _atype = new Standard_Type ("Aspect_Handle", sizeof (Aspect_Handle));
- return _atype;
-}
typedef unsigned long Aspect_Handle;
#endif /* WNT */
-#if defined(__cplusplus) || defined(c_plusplus)
-/*==== Definition de Type ====================================================*/
-
-#include <Standard_Macro.hxx>
-class Handle(Standard_Type);
-const Handle(Standard_Type)& STANDARD_TYPE(Aspect_Handle);
-
-/*============================================================================*/
-#endif
-
#endif /* _Aspect_Handle_HeaderFile */
+++ /dev/null
-// Created on: 2001-01-26
-// Created by: SPK
-// Copyright (c) 2001-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 <Aspect_IFStream.hxx>
-
-const Handle(Standard_Type)& STANDARD_TYPE(Aspect_IFStream)
-{
- static Handle(Standard_Type) _atype =
- new Standard_Type("Aspect_IFStream", sizeof(Aspect_IFStream));
- return _atype;
-}
#include <Standard_Stream.hxx>
-typedef ifstream* Aspect_IFStream;
-
-#include <Standard_Type.hxx>
-const Handle(Standard_Type)& STANDARD_TYPE(Aspect_IFStream);
+typedef std::ifstream* Aspect_IFStream;
#endif
+++ /dev/null
-// Created on: 1998-10-28
-// Created by: DCB
-// 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 <Aspect_RGBPixel.hxx>
-
-const Handle(Standard_Type)& STANDARD_TYPE(Aspect_RGBPixel)
-{
- static Handle(Standard_Type) _atype =
- new Standard_Type("Aspect_RGBPixel",sizeof(Aspect_RGBPixel));
- return _atype;
-}
#ifndef _Aspect_RGBPixel_HeaderFile
#define _Aspect_RGBPixel_HeaderFile
-#include <Standard_Type.hxx>
typedef struct {
float red;
float green;
float blue;
} Aspect_RGBPixel;
-const Handle(Standard_Type)& STANDARD_TYPE(Aspect_RGBPixel);
-
#endif
typedef void* Aspect_RenderingContext; /* GLXContext under UNIX */
/* HGLRC under WNT */
-#if defined(__cplusplus) || defined(c_plusplus)
-/*==== Definition de Type ====================================================*/
-
-#include <Standard_Macro.hxx>
-class Handle(Standard_Type);
-const Handle(Standard_Type)& STANDARD_TYPE(Aspect_RenderingContext);
-
-/*============================================================================*/
-#endif
-
#endif /* _Aspect_RenderingContext_HeaderFile */
Aspect_WOKSteps.edl
Aspect_CMPLRS.edl
Aspect_FStream.hxx
-Aspect_FStream.cxx
Aspect_IFStream.hxx
-Aspect_IFStream.cxx
Aspect_CLayer2d.hxx
-Aspect_CLayer2d.cxx
Aspect_RGBPixel.hxx
-Aspect_RGBPixel.cxx
-Aspect_Handle.cxx
Aspect_Handle.hxx
Aspect_XWD.hxx
Aspect_Units.hxx
Unlock (me) is static;
---Purpose: unlocks the array <me> from memory
-
- ShallowDump (me; S: in out OStream)
- --Purpose: Prints the contents at the first level of <me> on
- -- the stream <s>. The Root version of ShallowDump prints
- -- the name of the class <me> is an instance of,
- -- followed by its memory address.
- ---C++: function call
- is redefined;
-
fields
mySize : Integer is protected;
// Last revision : January 1996 JMS/CLE
// portage OBJY 3.8
-
-
-
-// --------------------------------------------------------------------
-// ShallowDump
-// --------------------------------------------------------------------
-//void DBC_BaseArray::ShallowDump( Standard_OStream& S) const
-void DBC_BaseArray::ShallowDump( Standard_OStream& ) const
-{
-}
-
-
// --------------------------------------------------------------------
// Constructor
// --------------------------------------------------------------------
#endif
#endif
-Handle_Standard_Type& DBC_BaseArray_Type_();
-
class Standard_EXPORT DBC_BaseArray :
public os_virtual_behavior /* New */ {
Standard_Integer Upper() const;
Standard_Address Lock() const;
void Unlock() const;
-virtual void ShallowDump(Standard_OStream& S) const;
void Destroy() ;
~DBC_BaseArray()
{
Destroy();
}
-
-
-
-
- // Type management
- //
- friend Handle_Standard_Type& DBC_BaseArray_Type_();
-
protected:
// Methods PROTECTED
#include <DBC_BaseArray.lxx>
-
-
-// other Inline functions and methods (like "C++: function call" methods)
-//
-void ShallowDump(const DBC_BaseArray& me,Standard_OStream& S) {
- me.ShallowDump(S);
-}
-
-
-
#endif
di << "No UAttribute Attribute on label" << "\n";
}
else {
-// UA->ID().ShallowDump(cout);
-// cout << endl;
char *aStrGUID = new char[37];
UA->ID().ToCString(aStrGUID);
di << aStrGUID;
Graphic3d_CStructure.cxx
Graphic3d_CStructure.hxx
Graphic3d_CStructure_Handle.hxx
-Graphic3d_CBitFields16.cxx
Graphic3d_CBitFields16.hxx
-Graphic3d_CBitFields20.cxx
Graphic3d_CBitFields20.hxx
-Graphic3d_CBitFields8.cxx
Graphic3d_CBitFields8.hxx
-Graphic3d_CBitFields4.cxx
Graphic3d_CBitFields4.hxx
-Graphic3d_CTexture.cxx
Graphic3d_CTexture.hxx
-Graphic3d_CLight.cxx
Graphic3d_CLight.hxx
-Graphic3d_CPick.cxx
Graphic3d_CPick.hxx
-Graphic3d_CBounds.cxx
Graphic3d_CBounds.hxx
-Graphic3d_CUserDraw.cxx
Graphic3d_CUserDraw.hxx
-Graphic3d_CView.cxx
Graphic3d_CView.hxx
-Graphic3d_CGraduatedTrihedron.cxx
Graphic3d_CGraduatedTrihedron.hxx
Graphic3d_Structure.lxx
Graphic3d_Structure.pxx
Graphic3d_PrimitiveArray.hxx
Graphic3d_TransModeFlags.hxx
Graphic3d_CTransPersStruct.hxx
-Graphic3d_CTransPersStruct.cxx
Graphic3d_NListOfHAsciiString.hxx
Graphic3d_AspectText3d.cxx
Graphic3d_PtrFrameBuffer.hxx
+++ /dev/null
-// Copyright (c) 1995-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 <Graphic3d_CBitFields16.hxx>
-
-const Handle(Standard_Type)& STANDARD_TYPE(Graphic3d_CBitFields16)
-{
- static Handle(Standard_Type) _atype =
- new Standard_Type ("Graphic3d_CBitFields16", sizeof (Graphic3d_CBitFields16));
- return _atype;
-}
} Graphic3d_CBitFields16;
-#if defined(__cplusplus) || defined(c_plusplus)
-/*==== Definition de Type ====================================================*/
-#include <Standard_Type.hxx>
-const Handle(Standard_Type)& STANDARD_TYPE(Graphic3d_CBitFields16);
-/*============================================================================*/
-
-#endif
#endif /*Graphic3d_CBitFields16_HeaderFile*/
+++ /dev/null
-// Copyright (c) 1995-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 <Graphic3d_CBitFields20.hxx>
-
-const Handle(Standard_Type)& STANDARD_TYPE(Graphic3d_CBitFields20)
-{
- static Handle(Standard_Type) _atype =
- new Standard_Type ("Graphic3d_CBitFields20", sizeof (Graphic3d_CBitFields20));
- return _atype;
-}
} Graphic3d_CBitFields20;
-#if defined(__cplusplus) || defined(c_plusplus)
-/*==== Definition de Type ====================================================*/
-#include <Standard_Type.hxx>
-const Handle(Standard_Type)& STANDARD_TYPE(Graphic3d_CBitFields20);
-/*============================================================================*/
-
-#endif
#endif /*Graphic3d_CBitFields20_HeaderFile*/
+++ /dev/null
-// Copyright (c) 1995-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 <Graphic3d_CBitFields4.hxx>
-
-const Handle(Standard_Type)& STANDARD_TYPE(Graphic3d_CBitFields4)
-{
- static Handle(Standard_Type) _atype =
- new Standard_Type ("Graphic3d_CBitFields4", sizeof (Graphic3d_CBitFields4));
- return _atype;
-}
} Graphic3d_CBitFields4;
-#if defined(__cplusplus) || defined(c_plusplus)
-/*==== Definition de Type ====================================================*/
-#include <Standard_Type.hxx>
-const Handle(Standard_Type)& STANDARD_TYPE(Graphic3d_CBitFields4);
-/*============================================================================*/
-
-#endif
#endif /*Graphic3d_CBitFields4_HeaderFile*/
+++ /dev/null
-// Copyright (c) 1995-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 <Graphic3d_CBitFields8.hxx>
-
-const Handle(Standard_Type)& STANDARD_TYPE(Graphic3d_CBitFields8)
-{
- static Handle(Standard_Type) _atype =
- new Standard_Type ("Graphic3d_CBitFields8", sizeof (Graphic3d_CBitFields8));
- return _atype;
-}
} Graphic3d_CBitFields8;
-#if defined(__cplusplus) || defined(c_plusplus)
-/*==== Definition de Type ====================================================*/
-#include <Standard_Type.hxx>
-const Handle(Standard_Type)& STANDARD_TYPE(Graphic3d_CBitFields8);
-/*============================================================================*/
-
-#endif
#endif /*Graphic3d_CBitFields8_HeaderFile*/
+++ /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.
-
-#include <Graphic3d_CBounds.hxx>
-
-const Handle(Standard_Type)& TYPE(Graphic3d_CBounds)
-{
- static Handle(Standard_Type) _atype =
- new Standard_Type ("Graphic3d_CBounds", sizeof (Graphic3d_CBounds));
- return _atype;
-}
#include <InterfaceGraphic_Graphic3d.hxx>
typedef CALL_DEF_BOUNDS Graphic3d_CBounds;
-#if defined(__cplusplus) || defined(c_plusplus)
-/*==== Definition de Type ====================================================*/
-#include <Standard_Type.hxx>
-const Handle(Standard_Type)& TYPE(Graphic3d_CBounds) ;
-/*============================================================================*/
-
-#endif
#endif /*Graphic3d_CBounds_HeaderFile*/
+++ /dev/null
-// Created on: 2011-03-06
-// Created by: Sergey ZERCHANINOV
-// Copyright (c) 2011-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 <Graphic3d_CGraduatedTrihedron.hxx>
-
-const Handle(Standard_Type)& TYPE(Graphic3d_CGraduatedTrihedron)
-{
- static Handle(Standard_Type) _atype =
- new Standard_Type ("Graphic3d_CGraduatedTrihedron", sizeof (Graphic3d_CGraduatedTrihedron));
- return _atype;
-}
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
-#include <Standard_Type.hxx>
#include <Quantity_Color.hxx>
#include <TCollection_AsciiString.hxx>
#include <TCollection_ExtendedString.hxx>
Visual3d_View* ptrVisual3dView;
};
-const Handle(Standard_Type)& TYPE(Graphic3d_CGraduatedTrihedron);
-
#endif /*Graphic3d_CGraduatedTrihedron_HeaderFile*/
+++ /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.
-
-#include <Graphic3d_CLight.hxx>
-
-const Handle(Standard_Type)& TYPE(Graphic3d_CLight)
-{
- static Handle(Standard_Type) _atype =
- new Standard_Type ("Graphic3d_CLight", sizeof (Graphic3d_CLight));
- return _atype;
-}
#include <InterfaceGraphic_Graphic3d.hxx>
#include <InterfaceGraphic_Visual3d.hxx>
#include <Graphic3d_Vec.hxx>
-#include <Standard_Type.hxx>
//! Light definition
struct Graphic3d_CLight
+++ /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.
-
-#include <Graphic3d_CPick.hxx>
-
-const Handle(Standard_Type)& TYPE(Graphic3d_CPick)
-{
- static Handle(Standard_Type) _atype =
- new Standard_Type ("Graphic3d_CPick", sizeof (Graphic3d_CPick));
- return _atype;
-}
#include <InterfaceGraphic_Visual3d.hxx>
typedef CALL_DEF_PICK Graphic3d_CPick;
-#if defined(__cplusplus) || defined(c_plusplus)
-/*==== Definition de Type ====================================================*/
-
-#include <Standard_Type.hxx>
-const Handle(Standard_Type)& TYPE(Graphic3d_CPick);
-/*============================================================================*/
-
-#endif
#endif /*Graphic3d_CPick_HeaderFile*/
+++ /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.
-
-#include <Graphic3d_CTexture.hxx>
-
-const Handle(Standard_Type)& TYPE(Graphic3d_CTexture)
-{
- static Handle(Standard_Type) _atype =
- new Standard_Type ("Graphic3d_CTexture", sizeof (Graphic3d_CTexture));
- return _atype;
-}
#define _Graphic3d_CTexture_HeaderFile
#include <Graphic3d_TextureMap.hxx>
-#include <Standard_Type.hxx>
class Graphic3d_CTexture
{
};
-const Handle(Standard_Type)& TYPE(Graphic3d_CTexture);
-
#endif // Graphic3d_CTexture_HeaderFile
+++ /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.
-
-#include <Graphic3d_CTransPersStruct.hxx>
-
-const Handle(Standard_Type)& TYPE(Graphic3d_CTransPersStruct)
-{
- static Handle(Standard_Type) _atype =
- new Standard_Type ("Graphic3d_CTransPersStruct", sizeof (Graphic3d_CTransPersStruct));
- return _atype;
-}
#include <InterfaceGraphic_Graphic3d.hxx>
typedef CALL_DEF_TRANSFORM_PERSISTENCE Graphic3d_CTransPersStruct;
-#if defined(__cplusplus) || defined(c_plusplus)
-/*==== Definition de Type ====================================================*/
-#include <Standard_Type.hxx>
-const Handle(Standard_Type)& TYPE(Graphic3d_CTransPersStruct);
-/*============================================================================*/
-
-#endif
#endif /*_Graphic3d_CTransPersStruct_HeaderFile*/
+++ /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.
-
-#include <Graphic3d_CUserDraw.hxx>
-
-const Handle(Standard_Type)& TYPE(Graphic3d_CUserDraw)
-{
- static Handle(Standard_Type) _atype =
- new Standard_Type ("Graphic3d_CUserDraw", sizeof (Graphic3d_CUserDraw));
- return _atype;
-}
#include <InterfaceGraphic_Graphic3d.hxx>
typedef CALL_DEF_USERDRAW Graphic3d_CUserDraw;
-#if defined(__cplusplus) || defined(c_plusplus)
-/*==== Definition de Type ====================================================*/
-#include <Standard_Type.hxx>
-const Handle(Standard_Type)& TYPE(Graphic3d_CUserDraw) ;
-/*============================================================================*/
-
-#endif
#endif /*Graphic3d_CUserDraw_HeaderFile*/
+++ /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.
-
-#include <Graphic3d_CView.hxx>
-
-const Handle(Standard_Type)& TYPE(Graphic3d_CView)
-{
- static Handle(Standard_Type) _atype =
- new Standard_Type ("Graphic3d_CView", sizeof (Graphic3d_CView));
- return _atype;
-}
#include <Graphic3d_TextureEnv.hxx>
#include <Graphic3d_Camera.hxx>
-#include <Standard_Type.hxx>
#include <Graphic3d_CLight.hxx>
#include <Graphic3d_SequenceOfHClipPlane.hxx>
};
-const Handle(Standard_Type)& TYPE(Graphic3d_CView);
-
#endif // Graphic3d_CView_HeaderFile
IFSelect_ActFunc.hxx
-IFSelect_ActFunc.cxx
+++ /dev/null
-// Created on: 2000-02-29
-// Created by: data exchange team
-// Copyright (c) 2000-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 <IFSelect_ActFunc.hxx>
-
-//=======================================================================
-//function : IFSelect_ActFunc_Type_
-//purpose :
-//=======================================================================
-
-Handle(Standard_Type)& STANDARD_TYPE(IFSelect_ActFunc)
-{
- static Handle(Standard_Type) _aType =
- new Standard_Type("IFSelect_ActFunc", sizeof(IFSelect_ActFunc), 0, NULL);
-
- return _aType;
-}
-
#ifndef _IFSelect_ActFunc_HeaderFile
#define _IFSelect_ActFunc_HeaderFile
-#include <Standard_Type.hxx>
#include <IFSelect_SessionPilot.hxx>
#include <IFSelect_ReturnStatus.hxx>
typedef IFSelect_ReturnStatus (*IFSelect_ActFunc) (const Handle(IFSelect_SessionPilot)&);
-Standard_EXPORT Handle(Standard_Type)& STANDARD_TYPE(IFSelect_ActFunc);
-
#endif
MoniTool_ValueInterpret.hxx
-MoniTool_ValueInterpret.cxx
MoniTool_ValueSatisfies.hxx
-MoniTool_ValueSatisfies.cxx
MoniTool_Macros.hxx
+++ /dev/null
-// Created on: 2000-02-28
-// Created by: data exchange team
-// Copyright (c) 2000-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 <MoniTool_ValueInterpret.hxx>
-
-//=======================================================================
-//function : MoniTool_ValueInterpret_Type_
-//purpose :
-//=======================================================================
-
-Handle(Standard_Type)& STANDARD_TYPE(MoniTool_ValueInterpret)
-{
- static Handle(Standard_Type) _aType =
- new Standard_Type("MoniTool_ValueInterpret", sizeof(MoniTool_ValueInterpret), 0, NULL);
-
- return _aType;
-}
-
#ifndef MoniTool_ValueInterpret_HeaderFile
#define MoniTool_ValueInterpret_HeaderFile
-#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
class Handle(MoniTool_TypedValue);
const Handle(TCollection_HAsciiString)& val,
const Standard_Boolean native);
-Standard_EXPORT Handle(Standard_Type)& STANDARD_TYPE(MoniTool_ValueInterpret);
-
#endif
+++ /dev/null
-// Created on: 2000-02-28
-// Created by: data exchange team
-// Copyright (c) 2000-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 <MoniTool_ValueSatisfies.hxx>
-
-//=======================================================================
-//function : MoniTool_ValueSatisfies_Type_
-//purpose :
-//=======================================================================
-
-Handle(Standard_Type)& STANDARD_TYPE(MoniTool_ValueSatisfies)
-{
- static Handle(Standard_Type) _aType =
- new Standard_Type("MoniTool_ValueSatisfies", sizeof(MoniTool_ValueSatisfies), 0, NULL);
-
- return _aType;
-}
-
#ifndef MoniTool_ValueSatisfies_HeaderFile
#define MoniTool_ValueSatisfies_HeaderFile
-#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
typedef Standard_Boolean (*MoniTool_ValueSatisfies) (const Handle(TCollection_HAsciiString)& val);
-Standard_EXPORT Handle(Standard_Type)& STANDARD_TYPE(MoniTool_ValueSatisfies);
-
#endif
#include <Standard.hxx>
-#include <string>
+#include <cstring>
#include <cstdlib>
//! This template class represent constant UTF-* string.
const Standard_Byte* theStrSrc,
const Standard_Integer theSizeBytes)
{
- ::memcpy (theStrDst, theStrSrc, (Standard_Size )theSizeBytes);
+ std::memcpy (theStrDst, theStrSrc, (Standard_Size )theSizeBytes);
}
//! Compare two Unicode strings per-byte.
const Standard_Integer theSizeBytes2)
{
return (theSizeBytes1 == theSizeBytes2)
- && (::memcmp (theString1, theString2, (Standard_Size )theSizeBytes1) == 0);
+ && (std::memcmp (theString1, theString2, (Standard_Size )theSizeBytes1) == 0);
}
private: //! @name private fields
EXTERNLIB
OSD_CMPLRS.edl
-OSD_Function.cxx
OSD_Function.hxx
OSD_ErrorList.hxx
OSD_WNT.cxx
+++ /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 <OSD_Function.hxx>
-
-const Handle_Standard_Type& OSD_Function_Type_()
-{
- static Handle_Standard_Type _aType =
- new Standard_Type("OSD_Function",sizeof(OSD_Function));
-
- return _aType;
-}
#ifndef OSD_Function_HeaderFile
#define OSD_Function_HeaderFile
-#include <Standard_Type.hxx>
-const Handle_Standard_Type& OSD_Function_Type_();
-
typedef int (* OSD_Function)(...);
#endif
#include <set>
#include <map>
#include <cstdlib>
+#include <cstring>
#include <iomanip>
#ifndef SIZE_MAX
-- Exceptions
-- Standard_OutOfRange if Index is not within the bounds of this array.
- ShallowCopy(me)
- returns mutable like me
- is redefined;
- ---Purpose: Returns a new array containing a copy
- -- of the values (of the elements) in this array.
-
-
- ShallowDump (me; s: in out OStream)
- is redefined;
- ---Level: Advanced
- ---C++: function call
-
Field (me)returns FieldOfHArray1
---Level: Internal
is private;
*/
-
-// ----------------------------------------------------------------------
-// ShallowCopy
-// ----------------------------------------------------------------------
-
-Handle(Standard_Persistent) PCollection_HArray1::ShallowCopy() const
-{
- PCollection_HArray1* TheCopy = new PCollection_HArray1(*this);
-// PCollection_FieldOfHArray1 DataCopy (Data);
-// TheCopy->Data = DataCopy;
- return TheCopy;
-}
-
-// ----------------------------------------------------------------------
-// ShallowDump
-// ----------------------------------------------------------------------
-
-void PCollection_HArray1::ShallowDump(Standard_OStream& S) const
-{
- ::ShallowDump(Data,S);
-}
-
-
-
/* Anciens INLINE */
// ----------------------------------------------------------------------
-- Standard_OutOfRange if the index (Row,
-- Column) is not within the bounds of this array.
- ShallowCopy(me)
- returns mutable like me
- is redefined;
- ---Purpose: Returns a new array containing a copy of the
- -- values (of the elements) in this array.
-
- ShallowDump (me; s: in out OStream)
- is redefined;
- ---Level: Advanced
- ---C++: function call
-
-
Field (me) returns FieldOfHArray2
is private;
---Level: Internal
}
*/
-// --------------------------------------------------------------------
-// ShallowCopy
-// --------------------------------------------------------------------
-Handle(Standard_Persistent) PCollection_HArray2::ShallowCopy() const
-{
- PCollection_HArray2* TheCopy = new PCollection_HArray2(*this);
-// PCollection_FieldOfHArray2 DataCopy (Data);
-// TheCopy->Data = DataCopy;
- return TheCopy;
-}
-
-// --------------------------------------------------------------------
-// ShallowDump
-// --------------------------------------------------------------------
-void PCollection_HArray2::ShallowDump(Standard_OStream& S) const
-{
- ::ShallowDump(Data,S);
-}
-
-
-
-
-
/* Anciens INLINE */
// --------------------------------------------------------------------
---Purpose: Returns the character of index Index of the string
---Example: me = "abcd", Index = 2, Value returns 'b'.
- ShallowDump (me; s: in out OStream)
- is redefined;
- ---Level: Advanced
- ---C++: function call
-
Assign(me : mutable ;TheData : VArrayOfCharacter) is private;
---Level: Internal
---Purpose : Assigns the field of the current structure with
{
Data = TheField;
}
-
-//------------------------------------------------------------------------
-// ShallowDump
-//------------------------------------------------------------------------
-void PCollection_HAsciiString::ShallowDump(Standard_OStream& S) const
-{
- S << "begin class HAsciiString " << endl;
- ::ShallowDump(Data, S);
- S << "end class HAsciiString" << endl;
-}
---Level: Public
---Purpose: Modification of the forward pointer
- ShallowCopy(me)
- returns mutable like me
- is redefined;
- ---Level: Advanced
- ---C++: function call
-
- ShallowDump (me; s: in out OStream)
- is redefined;
- ---Level: Advanced
- ---C++: function call
-
Destroy(me : mutable);
---C++: alias ~
return L; // C'est L qui est retourne.
}
-
-// -----------------------------------------------------------------------
-// - -
-// - -
-// - -
-// -----------------------------------------------------------------------
-Handle(Standard_Persistent) PCollection_HDoubleList::ShallowCopy() const
-{
-
- Handle(PCollection_HDoubleList) TheList, // Traversal depth of <this>
- TheCopy, // The list returned
- Pred, // Backward pointer
- Succ, // Forward pointer
- Last; // Last cell
-
- TheCopy = new PCollection_HDoubleList; // Initialization of the list
- // that will be returned
- Standard_Boolean FirstTime = Standard_True;
-
- TheList = this; // Start at the beginning
- Pred = Succ = TheCopy;
-
- while ( ! TheList->IsEmpty() ) { // Append each item at the
- Succ = Succ->Construct(TheList->Value()); // end of the list
- if ( FirstTime ){
- FirstTime = Standard_False;
- TheCopy = Succ;
- }
- else{
- Pred->ChangeForwardPointer(Succ); // Make the link between
- Succ->ChangeBackPointer(Pred); // Pred and Succ
- }
- Pred = Succ;
- Succ = Succ->Tail();
- TheList = TheList->Tail();
- }
- return TheCopy; // Returns the header
-}
-
-// -----------------------------------------------------------------------
-// - -
-// - -
-// - -
-// -----------------------------------------------------------------------
-void PCollection_HDoubleList::ShallowDump(Standard_OStream& S) const
-{
- Handle(PCollection_HDoubleList) TheList;
- TheList = this;
- S << "begin class HDoubleList " << endl;
- while ( ! TheList->IsEmpty() ) {
- ::ShallowDump(TheList->Value(), S);
- TheList = TheList->Tail();
- }
- S << "end of HDoubleList." << endl;
-}
-
-
/* Anciens INLINE */
---Purpose: Returns the character of index Index of the string.
---Example: me = "abcd", Index = 2, Value returns 'b'
- ShallowDump (me; s: in out OStream)
- is redefined;
- ---Level: Advanced
- ---C++: function call
-
-
Assign(me : mutable ;TheData : VArrayOfExtCharacter) is private;
---Level: Internal
---Purpose : Assigns the field of the current structure with
return Data(Index-1);
}
-//------------------------------------------------------------------------
-// ShallowDump
-//------------------------------------------------------------------------
-void PCollection_HExtendedString::ShallowDump(Standard_OStream& S) const
-{
- S << "begin class HExtendedString " << endl;
- ::ShallowDump(Data, S);
- S << "end class HExtendedString" << endl;
-}
-
-
//------------------------------------------------------------------------
// Assign
//------------------------------------------------------------------------
returns SeqNode
is private;
- ShallowCopy(me)
- returns mutable like me
- is redefined;
- ---Level: Advanced
- ---C++: function call
-
-
- ShallowDump (me; s: in out OStream)
- is redefined;
- ---Level: Advanced
- ---C++: function call
-
-
Destroy(me : mutable);
---C++: alias ~
return LastItem->Value();
}
-
-// ----------------------------------------------------
-//
-// ShallowCopy
-//
-// ----------------------------------------------------
-Handle(Standard_Persistent) PCollection_HSequence::ShallowCopy() const
-{
- Handle (PCollection_HSequence) TheCopy ;
- Handle (PCollection_SeqNode) TheList ;
-
-#ifndef OBJS
- TheCopy = new PCollection_HSequence;
-#else
- TheCopy = new (os_segment::of(this)) PCollection_HSequence;
-#endif
- TheList = FirstItem;
- for (Standard_Integer I = 1; I <= Size; I++) {
- TheCopy->Append(TheList->Value());
- TheList = TheList->Next();
- }
-
- return TheCopy;
-
-}
-
-// ----------------------------------------------------
-//
-// ShallowDump
-// ----------------------------------------------------
-void PCollection_HSequence::ShallowDump(Standard_OStream& S) const
-{
- S << "begin class Sequence "<< endl;
- S << "Size : "<< Size << "element(s)." << endl;
- Standard_Integer i = 1;
- Handle(PCollection_SeqNode) cell = FirstItem;
- while ( !cell.IsNull() ) {
- S << "Index : "<< i << endl;
-// ::ShallowDump(cell->Value(),S);
- cell = cell->Next();
- ++i;
- }
- S << "end class Sequence" << endl;
-}
-
-
// IsEmpty : Returns Standard_True if the sequence is empty (i.e. Size = 0)
Standard_Boolean PCollection_HSequence::IsEmpty() const
{
---Level: Public
---Purpose: Modification of the node link.
- ShallowCopy(me)
- returns mutable like me
- is redefined;
- ---Level: Advanced
- ---C++: function call
-
-
- ShallowDump (me; s: in out OStream)
- is redefined;
- ---Level: Advanced
- ---C++: function call
-
-
-
fields
Data : Item;
Next : HSingleList;
return L;
}
-
-// -------------------------------------------------------------------------
-// -
-// Shallowcopy : Redefinition of the shallowcopy dump -
-// ----------- -
-
-// -
-// -------------------------------------------------------------------------
-Handle(Standard_Persistent) PCollection_HSingleList::ShallowCopy() const
-{
- Handle(PCollection_HSingleList) TheList, // Traversal depth of <this>
- TheCopy, // The list returned
- Pred, // Backward pointer
- Succ; // Forward pointer
-#ifndef OBJS
- TheCopy = new PCollection_HSingleList; // Initialization of the list
-#else
- TheCopy = new (os_segment::of(this)) PCollection_HSingleList; // Initialization of the list
-#endif
- // that will be returned
- Standard_Boolean FirstTime = Standard_True;
-
- TheList = this; // Start at the beginning
- Pred = Succ = TheCopy;
-
- while ( ! TheList->IsEmpty() ) { // Append each item at the
- Succ = Succ->Construct(TheList->Value()); // end of the list
- if ( FirstTime ){
- FirstTime = Standard_False;
- TheCopy = Succ;
- }
- else{
- Pred->ChangeForwardPointer(Succ); // Make the link between
- } // Pred and Succ
- Pred = Succ;
- Succ = Succ->Tail();
- TheList = TheList->Tail();
- }
- return TheCopy; // Returns the header
-}
-
-// -------------------------------------------------------------------------
-// -
-// ShallowDump Redefinition of the shallowdump method -
-// ----------- -
-// -
-// -------------------------------------------------------------------------
-void PCollection_HSingleList::ShallowDump(Standard_OStream& S) const
-{
- Handle(PCollection_HSingleList) TheList;
- TheList = this;
- S << "begin class HSingleList " << endl;
- while ( ! TheList->IsEmpty() ) {
- ::ShallowDump(TheList->Value(), S);
- TheList = TheList->Tail();
- }
- S << "end class HSingleList" << endl;
-
-}
-
-
-
/* Anciens INLINE */
Item PCollection_HSingleList::Value() const {
#include <PMMgt_PManaged.ixx>
#include <Standard_TypeMismatch.hxx>
-#ifdef TRACE
-#define PRINT(X) cout X
-#define SHALLOWDUMP(X) X.ShallowDump(cout)
-#else
-#define PRINT(X)
-#define SHALLOWDUMP(X)
-#endif
-
PMMgt_PManaged::PMMgt_PManaged()
{
}
TopLoc_Location L = a.Location();
di << "Location of shape " << argv[1] << ":" << "\n";
-// L.ShallowDump ( di );
di << "Results in:" << "\n";
gp_Trsf T = L.Transformation();
TopLoc_Location l ( T );
- //l.ShallowDump ( di );
Standard_SStream aSStream;
l.ShallowDump ( aSStream );
di << aSStream;
ShapeProcess_OperFunc.hxx
-ShapeProcess_OperFunc.cxx
+++ /dev/null
-// Created on: 2000-08-22
-// Created by: data exchange team
-// Copyright (c) 2000-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 <ShapeProcess_OperFunc.hxx>
-
-//=======================================================================
-//function : MoniFrame_OperFunc_Type_
-//purpose :
-//=======================================================================
-/*
-Handle(Standard_Type)& STANDARD_TYPE(ShapeProcess_OperFunc)
-{
- static Handle(Standard_Type) _aType =
- new Standard_Type("MoniFrame_OperFunc", sizeof(ShapeProcess_OperFunc), 0, NULL);
-
- return _aType;
-}
-*/
#ifndef ShapeProcess_OperFunc_HeaderFile
#define ShapeProcess_OperFunc_HeaderFile
-#include <Standard_Type.hxx>
#include <ShapeProcess_Context.hxx>
typedef Standard_Boolean (*ShapeProcess_OperFunc) (const Handle(ShapeProcess_Context)& context);
-//Standard_EXPORT Handle(Standard_Type)& STANDARD_TYPE(ShapeProcess_OperFunc);
-
#endif
Handle_Standard_Persistent.cxx
Handle_Standard_Transient.cxx
Handle_Standard_Transient.hxx
-Standard_Address.cxx
Standard_Address.hxx
-Standard_Boolean.cxx
Standard_Boolean.hxx
Standard_Byte.hxx
Standard_PByte.hxx
Standard_CLocaleSentry.cxx
Standard_CString.cxx
Standard_CString.hxx
-Standard_Character.cxx
Standard_Character.hxx
-Standard_ExtCharacter.cxx
Standard_ExtCharacter.hxx
Standard_ExtString.cxx
Standard_ExtString.hxx
Standard_HashCode.cxx
-Standard_IStream.cxx
Standard_IStream.hxx
-Standard_Integer.cxx
Standard_Integer.hxx
Standard_Macro.hxx
-Standard_OId.hxx
-Standard_OStream.cxx
Standard_OStream.hxx
Standard_Persistent_proto.hxx
Standard_PrimitiveTypes.hxx
Standard_Real.hxx
Standard_SStream.cxx
Standard_SStream.hxx
-Standard_ShallowDump.cxx
Standard_ShortReal.cxx
Standard_ShortReal.hxx
Standard_Stream.hxx
-Standard_Time.cxx
Standard_Time.hxx
Standard_Transient.hxx
Standard_Transient_proto.hxx
Standard_EXPORT ~Handle(Standard_Persistent)();
- Standard_EXPORT void ShallowDump(Standard_OStream&) const;
-
bool operator==(const Handle(Standard_Persistent)& right) const
{
return entity == right.entity;
+++ /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_Address.hxx>
-#include <Standard_Type.hxx>
-#ifndef _Standard_OStream_HeaderFile
-#include <Standard_OStream.hxx>
-#endif
-
-const Handle_Standard_Type& Standard_Address_Type_()
-{
- static Handle_Standard_Type _aType =
- new Standard_Type("Standard_Address", sizeof(Standard_Address),0,NULL);
-
- return _aType;
-}
-
-
-//============================================================================
-//==== ShallowDump : Writes a CString value.
-//============================================================================
-Standard_EXPORT void ShallowDump (const Standard_Address Value, Standard_OStream& s)
-{ s << Value << " Standard_Address " << "\n"; }
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
-//============================================================================
-//==== Titre: Standard_Address.hxx
-//==== Role : The headr file of primitve type "Address" from package "Standard"
-//====
-//==== Implementation: This is a primitive type implementadef with typedef
-//==== typedef char* Address;
-//============================================================================
-
#ifndef _Standard_Address_HeaderFile
#define _Standard_Address_HeaderFile
-# include <string.h>
-//typedef void* Standard_Address;
-
#include <Standard_Integer.hxx>
-class Handle_Standard_Type;
-
-__Standard_API const Handle_Standard_Type& Standard_Address_Type_();
-//class Standard_OStream;
-//void ShallowDump (const Standard_Address, Standard_OStream& );
-//============================================================================
-//==== ShallowCopy: Returns a CString
-//============================================================================
-inline Standard_Address ShallowCopy (const Standard_Address Value)
-{
- return Value;
-}
-
//============================================================================
//==== HashCode : Returns a HashCode CString
//============================================================================
+++ /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_Boolean.hxx>
-#include <Standard_RangeError.hxx>
-#include <Standard_Stream.hxx>
-#include <Standard_OStream.hxx>
-
-const Handle_Standard_Type& Standard_Boolean_Type_()
-{
- static Handle_Standard_Type _aType =
- new Standard_Type("Standard_Boolean",sizeof(Standard_Boolean),0,NULL);
-
- return _aType;
-}
-
-// ------------------------------------------------------------------
-// Hascode : Computes a hascoding value for a given Integer
-// ------------------------------------------------------------------
-//Standard_Integer HashCode(const Standard_Boolean me
-// ,const Standard_Integer Upper)
-//{
-// if (Upper < 1){
-// Standard_RangeError::
-// Raise("Try to apply HashCode method with negative or null argument.");
-// }
-// return (me % Upper) + 1;
-//}
-
-// ----------------------------------------
-// ShallowCopy : Makes a copy of a boolean
-// ----------------------------------------
-Standard_Boolean ShallowCopy (const Standard_Boolean me)
-{ return me; }
-
-// ------------------------------------------------------------------
-// ShallowDump : Writes a boolean value
-// ------------------------------------------------------------------
-Standard_EXPORT void ShallowDump (const Standard_Boolean Value, Standard_OStream& s)
-{ s << Value << " Standard_Boolean" << "\n"; }
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
-//============================================================================
-//==== Titre: Standard_Boolean.hxx
-//==== Role : The headr file of primitve type "Boolean" from package "Standard"
-//====
-//==== Implementation: This is a primitive type implementadef with typedef
-//==== typedef int Standard_Boolean
-//==== #define Standard_False 0
-//==== #define Standard_True 1
-//============================================================================
-
#ifndef _Standard_Boolean_HeaderFile
#define _Standard_Boolean_HeaderFile
-//typedef unsigned int Standard_Boolean;
-
-
-#ifndef _Standard_TypeDef_HeaderFile
+//typedef unsigned integer Standard_Boolean;
#include <Standard_TypeDef.hxx>
-#endif
-
-class Handle_Standard_Type;
-
-__Standard_API const Handle_Standard_Type& Standard_Boolean_Type_();
-//class Standard_OStream;
-//void ShallowDump (const Standard_Boolean, Standard_OStream& );
-// ===============================================
-// Methods from Standard_Entity class which are redefined:
-// - Hascode
-// - IsEqual
-// - IsSimilar
-// - Shallowcopy
-// - ShallowDump
-// ===============================================
-
-
-// ==================================
-// Method implemented in Standard_Boolean.cxx
-// ==================================
-__Standard_API Standard_Boolean ShallowCopy (const Standard_Boolean);
-//__Standard_API Standard_Integer HashCode (const Standard_Boolean, const Standard_Integer);
-
-// ===============
-// inline methods
-// ===============
-
-// ------------------------------------------------------------------
-// IsEqual : Returns Standard_True if two booleans have the same value
-// ------------------------------------------------------------------
-//inline Standard_Boolean IsEqual(const Standard_Boolean One
-// ,const Standard_Boolean Two)
-//{ return One == Two; }
-
-// ------------------------------------------------------------------
-// IsSimilar : Returns Standard_True if two booleans have the same value
-// ------------------------------------------------------------------
-inline Standard_Boolean IsSimilar(const Standard_Boolean One
- ,const Standard_Boolean Two)
-{ return One == Two; }
-
#endif
+
#include <string.h>
#include <stdarg.h>
-//============================================================================
-//====
-//============================================================================
-const Handle_Standard_Type& Standard_CString_Type_()
-{
- static Handle_Standard_Type _aType =
- new Standard_Type("Standard_CString",sizeof(Standard_CString),0,NULL);
-
- return _aType;
-}
-
-//============================================================================
-//==== ShallowDump : Writes a CString value.
-//============================================================================
-Standard_EXPORT void ShallowDump (const Standard_CString Value, Standard_OStream& s)
-{ s << Value << " Standard_CString " << "\n"; }
-
//============================================================================
//==== HashCode of a CString
//============================================================================
class Handle_Standard_Type;
-
-__Standard_API const Handle_Standard_Type& Standard_CString_Type_();
-
inline Standard_Integer Abs (const Standard_Integer);
-inline Standard_CString ShallowCopy (const Standard_CString Value);
inline Standard_Boolean IsSimilar(const Standard_CString One
,const Standard_CString Two);
__Standard_API Standard_Integer HashCode (const Standard_CString,
__Standard_API int Fprintf (FILE* theFile, const char* theFormat, ...);
__Standard_API int Sprintf (char* theBuffer, const char* theFormat, ...);
-//============================================================================
-//==== ShallowCopy: Returns a CString
-//============================================================================
-inline Standard_CString ShallowCopy (const Standard_CString Value)
-{
- return Value;
-}
-
//============================================================================
//==== IsSimilar : Returns Standard_True if two booleans have the same value
//============================================================================
+++ /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.
-
-//============================================================================
-//==== Titre: Standard_Character.cxx
-//==== Role : the methodes which raise the exceptions are implemented in
-//==== this file.
-//============================================================================
-#include <stdlib.h>
-#include <Standard_Character.hxx>
-#include <Standard_Integer.hxx>
-#include <Standard_RangeError.hxx>
-#include <Standard_Stream.hxx>
-#include <Standard_OStream.hxx>
-#include <Standard_Type.hxx>
-
-const Handle_Standard_Type& Standard_Character_Type_()
-{
- static Handle_Standard_Type _aType =
- new Standard_Type("Standard_Character",sizeof(Standard_Character),0,NULL);
-
- return _aType;
-}
-
-// ------------------------------------------------------------------
-// Hascode : Computes a hascoding value for a given Character
-// ------------------------------------------------------------------
-Standard_Integer HashCode(const Standard_Character me,
- const Standard_Integer Upper)
-{
- if (Upper < 1){
- Standard_RangeError::
- Raise("Try to apply HashCode method with negative or null argument.");
- }
- Standard_Character S[2];
- S[0] = me;
- S[1] = 0;
- return HashCode( atoi(S) , Upper ) ;
-}
-
-// ------------------------------------------------------------------
-// ShallowDump : Writes a character
-// ------------------------------------------------------------------
-Standard_EXPORT void ShallowDump (const Standard_Character Value, Standard_OStream& s)
-{
- s << Value << " Standard_Character" << endl;
-}
#include <string.h>
#include <cctype>
-class Handle_Standard_Type;
-
-__Standard_API const Handle_Standard_Type& Standard_Character_Type_();
-
-//class Standard_OStream;
-//void ShallowDump (const Standard_Character, Standard_OStream& );
-// =====================================
-// Method implemented in Standard_Character.cxx
-// =====================================
-__Standard_API Standard_Integer HashCode(const Standard_Character, const Standard_Integer);
-
-// ===============================================
-// Methods from Standard_Entity class which are redefined:
-// - Hascode
-// - IsEqual
-// - IsSimilar
-// - Shallowcopy
-// - ShallowDump
-// ===============================================
-
-// ===============
-// inline methods
-// ===============
-
// ------------------------------------------------------------------
// IsEqual : Returns Standard_True if two characters have the same value
// ------------------------------------------------------------------
inline Standard_Character UpperCase(const Standard_Character me)
{ return (Standard_Character)(unsigned char)std::toupper(me); }
-// ------------------------------------------------------------------
-// ShallowCopy : Make a copy of one Character
-// ------------------------------------------------------------------
-inline Standard_Character ShallowCopy (const Standard_Character me)
-{ return me; }
-
#endif
+++ /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.
-
-//============================================================================
-//==== Titre: Standard_ExtCharacter.cxx
-//==== Role : the methodes which raise the exceptions are implemented in
-//==== this file.
-//============================================================================
-#include <stdlib.h>
-#include <Standard_ExtCharacter.hxx>
-#include <Standard_Integer.hxx>
-#include <Standard_RangeError.hxx>
-#include <Standard_Type.hxx>
-#include <Standard_Stream.hxx>
-#include <Standard_OStream.hxx>
-
-const Handle_Standard_Type& Standard_ExtCharacter_Type_()
-{
- static Handle_Standard_Type _aType =
- new Standard_Type("Standard_ExtCharacter",sizeof(Standard_ExtCharacter),
- 0,NULL);
-
- return _aType;
-}
-
-
-// ------------------------------------------------------------------
-// Hascode : Computes a hascoding value for a given ExtCharacter
-// ------------------------------------------------------------------
-Standard_Integer HashCode(const Standard_ExtCharacter me,
- const Standard_Integer Upper)
-{
- if (Upper < 1){
- Standard_RangeError::
- Raise("Try to apply HashCode method with negative or null argument.");
- }
- Standard_Integer aCode = me;
- return ( aCode % Upper) + 1;
-}
-
-// ------------------------------------------------------------------
-// ShallowDump : Writes a character
-// ------------------------------------------------------------------
-Standard_EXPORT void ShallowDump (const Standard_ExtCharacter Value
- ,Standard_OStream& s)
-{
- s << hex << Value << " Standard_ExtCharacter" << endl;
-}
#include <string.h>
-class Handle_Standard_Type;
-
-__Standard_API const Handle_Standard_Type& Standard_ExtCharacter_Type_();
-//class Standard_OStream;
-//void ShallowDump (const Standard_ExtCharacter, Standard_OStream& );
-// =====================================
-// Method implemented in Standard_ExtCharacter.cxx
-// =====================================
-__Standard_API Standard_Integer HashCode(const Standard_ExtCharacter, const Standard_Integer);
-
-// ===============================================
-// Methods from Standard_Entity class which are redefined:
-// - Hascode
-// - IsEqual
-// - IsSimilar
-// - Shallowcopy
-// - ShallowDump
-// ===============================================
-
// ===============
// inline methods
// ===============
const Standard_ExtCharacter Two)
{ return One == Two; }
-
-// ------------------------------------------------------------------
-// ShallowCopy : Make a copy of one Character
-// ------------------------------------------------------------------
-inline Standard_ExtCharacter ShallowCopy (const Standard_ExtCharacter me)
-{ return me; }
-
#endif
-
-
-
-
-
-
-
-
-
-
-
-
-
-
#include <Standard_ExtString.hxx>
#include <Standard_Type.hxx>
-#ifndef _Standard_OStream_HeaderFile
#include <Standard_OStream.hxx>
-#endif
-
-//============================================================================
-//==== ShallowDump : Writes a ExtString value.
-//============================================================================
-Standard_EXPORT void ShallowDump (const Standard_ExtString Value, Standard_OStream& s)
-{
- s << hex << Value << " Standard_ExtString " << endl;
-}
-
-const Handle_Standard_Type& Standard_ExtString_Type_()
-{
- static Handle_Standard_Type _aType =
- new Standard_Type("Standard_ExtString",sizeof(Standard_ExtString),0,NULL);
-
- return _aType;
-}
Standard_Integer HashCode (const Standard_ExtString Value,
const Standard_Integer Upper)
#include <Standard_TypeDef.hxx>
-class Handle_Standard_Type;
-
-__Standard_API const Handle_Standard_Type& Standard_ExtString_Type_();
-//class Standard_OStream;
-//void ShallowDump (const Standard_ExtString, Standard_OStream& );
-//============================================================================
-//==== ShallowCopy: Returns a CString
-//============================================================================
-inline Standard_ExtString ShallowCopy (const Standard_ExtString Value)
-{
- return Value;
-}
-
//============================================================================
//==== HashCode : Returns a HashCode ExtString
//============================================================================
Assign(me : out; uid : UUID from Standard);
---C++: alias operator =
- ShallowDump(me; aStream : in out OStream from Standard) is redefined;
+ ShallowDump(me; aStream : in out OStream from Standard);
---Purpose: Display the GUID with the following format:
--
-- "00000000-0000-0000-0000-000000000000"
+++ /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_IStream.hxx>
-#include <Standard_Type.hxx>
-
-const Handle_Standard_Type& Standard_IStream_Type_()
-{
- static Handle_Standard_Type _aType =
- new Standard_Type("Standard_IStream", sizeof(Standard_IStream));
-
- return _aType;
-}
-
#include <Standard_Macro.hxx>
#include <Standard_Stream.hxx>
-class Handle_Standard_Type;
-
-__Standard_API const Handle_Standard_Type& Standard_IStream_Type_();
-
-#define Standard_IStream istream
+typedef std::istream Standard_IStream;
#endif
+++ /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 <stdlib.h>
-#include <Standard_Integer.hxx>
-#include <Standard_ConstructionError.hxx>
-#include <Standard_RangeError.hxx>
-#include <Standard_Stream.hxx>
-#include <Standard_OStream.hxx>
-
-// ------------------------------------------------------------------
-// CharToInt : Converts a character in an integer value
-// ------------------------------------------------------------------
-const Handle_Standard_Type& Standard_Integer_Type_()
-{
- static Handle_Standard_Type _aType = new
- Standard_Type("Standard_Integer",sizeof(Standard_Integer),0,NULL);
-
- return _aType;
-}
-
-Standard_Integer CharToInt(const Standard_Character me)
-{
- if (!IsDigit(me)) {
- Standard_ConstructionError::Raise();
- }
-
- Standard_Character S[2];
- S[0] = me;
- S[1] = 0;
- return atoi(S);
-}
-
-// ------------------------------------------------------------------
-// CharToInt : Converts a string in an integer value
-// ------------------------------------------------------------------
-
-Standard_Integer CharToInt(const Standard_CString me)
-{
- const Standard_Size Len = strlen(me);
- for (Standard_Size I = 0; I < Len; I++)
- if (!IsDigit(me[I])) {
- Standard_ConstructionError::Raise();
- }
- return atoi(me);
-}
-
-// ------------------------------------------------------------------
-// ShallowCopy : Copy of an integer
-// ------------------------------------------------------------------
-
-Standard_Integer ShallowCopy (const Standard_Integer me)
-{ return me; }
-
-// ------------------------------------------------------------------
-// ShallowDump : Writes an integer value
-// ------------------------------------------------------------------
-Standard_EXPORT void ShallowDump (const Standard_Integer Value, Standard_OStream& s)
-{ s << Value << " Standard_Integer" << "\n"; }
-
-// ------------------------------------------------------------------
-// NextPrime : Compute the first prime number greater or equal than an integer
-// ------------------------------------------------------------------
-
-#define VALUESNBR 4
-
-long NextPrime (const long me )
-{
-
- struct svalue {int signiaib ;
- int nbr ;} ;
-
- struct svalue values[VALUESNBR] ;
- long ia ;
- long maxia ;
- long ib[4] ;
- int n[4] ;
-// int signiaib[4] = { -1 , +1 , +1 , -1 } ;
- int signiaib[4];
- signiaib[0] = -1;
- signiaib[1] = 1;
- signiaib[2] = 1;
- signiaib[3] = -1;
- long remain ;
-
- int nbvalues ;
- int loop ;
- int nindd ;
- long minn ;
- long maxvn ;
- long premret = 0 ;
-
- if (me < 0 || me >
-#if defined (__alpha) || defined(DECOSF1)
- 127149130704178201
-#else
- 2147483647
-#endif
- ){
- Standard_RangeError::
- Raise("Try to apply NextPrime method with negative, null or too large value.");
- }
-
- if ( me <= 7 ) {
- if ( me <= 1 )
- return 1 ;
- else if ( me <= 2 )
- return 2 ;
- else if ( me <= 3 )
- return 3 ;
- else if ( me <= 5 )
- return 5 ;
- else if ( me <= 7 )
- return 7 ;
- }
-
- minn = ( me - 1 ) / 6 ; // n minimum
- while ( 6*minn+1 < me ) {
- minn += 1 ;
- }
-
- maxia = long( sqrt((double ) me ) / 6 + 1 ) ;
-
- maxvn = minn + VALUESNBR ;
-
- nbvalues = 0 ;
- for ( nindd = 0 ; nindd < VALUESNBR ; nindd++ ) {
- if ( 6*(nindd+minn)-1 < me ) {
- values[nindd].nbr = 1 ;
- values[nindd].signiaib = -1 ;
- nbvalues += 1 ;
- }
- else {
- values[nindd].nbr = 0 ;
- values[nindd].signiaib = 0 ;
- }
- }
-
- for ( ia = 1 ; ia <= maxia ; ia++ ) {
- if ( nbvalues == VALUESNBR*2 ) {
- break ;
- }
- remain = -VALUESNBR ;
- ib[0] = ( minn + ia - remain ) / (6*ia - 1) ;
- n[0] = int ( 6*ia*ib[0] - ia - ib[0] - minn ) ;
- ib[1] = ( minn - ia - remain ) / (6*ia - 1) ;
- n[1] = int ( 6*ia*ib[1] + ia - ib[1] - minn ) ;
- ib[2] = ( minn + ia - remain ) / (6*ia + 1) ;
- n[2] = int ( 6*ia*ib[2] - ia + ib[2] - minn ) ;
- ib[3] = ( minn - ia - remain ) / (6*ia + 1) ;
- n[3] = int ( 6*ia*ib[3] + ia + ib[3] - minn ) ;
- for ( loop = 0 ; loop < 4 ; loop++ ) {
- if ( n[loop] >= 0 && n[loop] < VALUESNBR ) {
- if ( ( values[n[loop]].nbr == 0 ) ||
- ( values[n[loop]].signiaib == signiaib[loop] ) ) {
- values[n[loop]].signiaib = -signiaib[loop] ;
- values[n[loop]].nbr += 1 ;
- if ( values[n[loop]].nbr <= 2 )
- nbvalues += 1 ;
- }
- }
- }
- }
- for ( nindd = 0 ; nindd < VALUESNBR ; nindd++ ) {
- if ( values[nindd].nbr == 0 ) {
- if ( me <= 6*(nindd+minn)-1 ) {
- premret = 6*(nindd+minn)-1 ;
- break ;
- }
- else if ( me <= 6*(nindd+minn)+1 ) {
- premret = 6*(nindd+minn)+1 ;
- break ;
- }
- }
- else if ( values[nindd].nbr == 1 ) {
- if ( values[nindd].signiaib > 0 ) {
- if ( me <= 6*(nindd+minn)-1 ) {
- premret = 6*(nindd+minn)-1 ;
- break ;
- }
- }
- else {
- if ( me <= 6*(nindd+minn)+1 ) {
- premret = 6*(nindd+minn)+1 ;
- break ;
- }
- }
- }
- }
-
- if ( premret != 0 ) {
- return premret ;
- }
-
- return NextPrime ( 6*(maxvn-1)+2) ;
-
-}
-static const Standard_Integer Primes[] = {
- 101, 1009, 2003, 3001, 4001, 5003, 6007, 7001, 8009, 9001,
- 10007, 12007, 14009, 16007, 18013,
- 20011, 23003, 26003, 29009,
- 33013, 37003,
- 41011, 46021,
- 51001, 57037,
- 65003,
- 100019}; // catch the biggest
-
-const Standard_Integer NbPrimes = 26; // does not include the biggest
-
-Standard_Integer NextPrimeForMap(const Standard_Integer N)
-{
- Standard_Integer i;
- for (i = 0; i < NbPrimes; i++)
- if (Primes[i] > N) break;
- return Primes[i];
-}
#define _Standard_Integer_HeaderFile
#include <Standard_TypeDef.hxx>
-# include <Standard_values.h>
-
-class Handle_Standard_Type;
-
-__Standard_API const Handle_Standard_Type& Standard_Integer_Type_();
-// ===============================================
-// Methods from Standard_Entity class which are redefined:
-// - Hascode
-// - IsEqual
-// - IsSimilar
-// - Shallowcopy
-// - ShallowDump
-// ===============================================
-
-// ==================================
-// Methods implemeted in Standard_Integer.cxx
-// ==================================
-__Standard_API Standard_Integer NextPrimeForMap(const Standard_Integer anInt ) ;
-__Standard_API long NextPrime (const long me);
-__Standard_API Standard_Integer CharToInt (const Standard_Character me);
-__Standard_API Standard_Integer CharToInt (const Standard_CString me);
-__Standard_API Standard_Integer ShallowCopy (const Standard_Integer me);
+#include <Standard_values.h>
// ===============
// Inline methods
+++ /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.
-
-#ifndef _Standard_OId_HeaderFile
-#define _Standard_OId_HeaderFile
-
-#include <Standard_Integer.hxx>
-#include <Standard_OStream.hxx>
-
-class Standard_Persistent;
-typedef Standard_Persistent* Standard_OId;
-
-extern Standard_OId ShallowCopy (const Standard_OId me) ;
-extern Standard_Integer HashCode(const Standard_OId me,
- const Standard_Integer Upper);
-//extern void ShallowDump (const Standard_OId Value, Standard_OStream& s);
-
-const Handle_Standard_Type& Standard_OId_Type_();
-
-#endif
+++ /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_OStream.hxx>
-#include <Standard_Type.hxx>
-
-const Handle_Standard_Type& Standard_OStream_Type_()
-{
- static Handle_Standard_Type _aType =
- new Standard_Type("Standard_OStream", sizeof(Standard_OStream));
-
- return _aType;
-}
-
-
#include <Standard_TypeDef.hxx>
#include <Standard_Stream.hxx>
-class Handle_Standard_Type;
-
-__Standard_API const Handle_Standard_Type& Standard_OStream_Type_();
-
-typedef ostream Standard_OStream;
-
-__Standard_API void ShallowDump(const Standard_Boolean, Standard_OStream& );
-__Standard_API void ShallowDump(const Standard_CString, Standard_OStream& );
-__Standard_API void ShallowDump(const Standard_Character, Standard_OStream& );
-__Standard_API void ShallowDump(const Standard_ExtCharacter, Standard_OStream& );
-__Standard_API void ShallowDump(const Standard_ExtString, Standard_OStream& );
-__Standard_API void ShallowDump(const Standard_Integer, Standard_OStream& );
-__Standard_API void ShallowDump(const Standard_Real, Standard_OStream& );
-__Standard_API void ShallowDump(const Standard_ShortReal, Standard_OStream& );
-class Handle(Standard_Transient);
-__Standard_API void ShallowDump(const Handle(Standard_Transient)&, Standard_OStream& );
-class Handle(Standard_Persistent);
-__Standard_API void ShallowDump(const Handle(Standard_Persistent)&, Standard_OStream& );
+typedef std::ostream Standard_OStream;
#endif
is
- ShallowCopy (me) returns mutable like me is deferred;
- ---Purpose: Returns a copy at the first level of <me>.
- -- The objects referenced are not copied.
- -- Entities copied by ShallowCopy are equal.
- ---C++: function call
- ---Level: Advanced
-
Delete (me: mutable) is redefined;
---Purpose: Deletes this object.
return aHand;
}
-// The Method ShallowCopy
-//
-Handle_Standard_Persistent Standard_Persistent::ShallowCopy() const
-{
- //the method must be redefined in the every subclass that is expected to use it
- Standard_NotImplemented::Raise ("The ShallowCopy() method must be redefined in the subclass");
- return This(); // for compilation only
-}
-
-// Empty Constructor
-//
-// Standard_Persistent::Standard_Persistent()
-// {
-// }
-
// Empty Destructor
//
Standard_Persistent::~Standard_Persistent()
{
}
-// Constructor from a Standard_Persistent
-//
-// Standard_Persistent::Standard_Persistent(const Standard_Persistent& )
-// {
-// }
-
// Operator= with a Standard_Persistent
//
Standard_Persistent& Standard_Persistent::operator=(const Standard_Persistent& )
// return (aType == STANDARD_TYPE(Standard_Persistent));
}
-void Standard_Persistent::ShallowDump(Standard_OStream& AStream) const
-{
- Handle(Standard_Persistent) me = this;
- ::ShallowDump(me, AStream);
-}
-
-
void Standard_Persistent::Delete() const
{
delete((Standard_Persistent *)this);
class Standard_Type;
class Handle_Standard_Type;
+class Handle_Standard_Persistent;
class Standard_Type;
class Storage_stCONSTclCOM;
DEFINE_STANDARD_ALLOC
Standard_EXPORT virtual Handle_Standard_Persistent This() const;
- Standard_EXPORT virtual Handle_Standard_Persistent ShallowCopy () const;
Standard_EXPORT virtual void Delete() const;
Standard_EXPORT virtual ~Standard_Persistent();
Standard_EXPORT virtual const Handle_Standard_Type& DynamicType() const;
Standard_EXPORT Standard_Boolean IsKind(const Handle_Standard_Type&)const;
Standard_EXPORT Standard_Boolean IsInstance(const Handle_Standard_Type&)const;
- Standard_EXPORT virtual void ShallowDump(Standard_OStream& ) const;
};
#include <Handle_Standard_Persistent.hxx>
#include <Standard_Address.hxx>
#include <Standard_Storable.hxx>
-__Standard_API Standard_Address ShallowCopy(const Standard_Address,
- const Handle_Standard_Type& );
-
__Standard_API Standard_Integer HashCode(const Standard_Address,
const Standard_Integer,
const Handle_Standard_Type&);
#include <Standard_Stream.hxx>
#include <Standard_OStream.hxx>
-const Handle_Standard_Type& Standard_Real_Type_()
-{
- static Handle_Standard_Type _aType =
- new Standard_Type("Standard_Real",sizeof(Standard_Real),0,NULL);
-
- return _aType;
-}
-
// ------------------------------------------------------------------
// Hascode : Computes a hascoding value for a given real
// ------------------------------------------------------------------
return HashCode( ( U.I[0] ^ U.I[1] ) , Upper ) ;
}
-// ------------------------------------------------------------------
-// ShallowCopy : Makes a copy of a real value
-// ------------------------------------------------------------------
-Standard_Real ShallowCopy (const Standard_Real me)
-{
- return me;
-}
-
//-------------------------------------------------------------------
// ACos : Returns the value of the arc cosine of a real
//-------------------------------------------------------------------
return res.real;
}
-// ------------------------------------------------------------------
-// ShallowDump : Writes a real value
-// ------------------------------------------------------------------
-Standard_EXPORT void ShallowDump(const Standard_Real Value,
- Standard_OStream& s)
-{ s << Value << " Standard_Real" << "\n"; }
-
-
//-------------------------------------------------------------------
// ATanh : Returns the value of the hyperbolic arc tangent of a real
//-------------------------------------------------------------------
#include <Standard_math.hxx>
#include <Standard_TypeDef.hxx>
-class Handle_Standard_Type;
-
-__Standard_API const Handle_Standard_Type& Standard_Real_Type_();
-
// ===============================================
// Methods from Standard_Entity class which are redefined:
// - Hascode
// - IsEqual
// - IsSimilar
-// - Shallowcopy
-// - ShallowDump
// ===============================================
// ==================================
// ==================================
//.... Herited from Standard_Storable
__Standard_API Standard_Integer HashCode (const Standard_Real, const Standard_Integer);
-__Standard_API Standard_Real ShallowCopy (const Standard_Real );
__Standard_API Standard_Real ACos (const Standard_Real );
__Standard_API Standard_Real ACosApprox (const Standard_Real );
__Standard_API Standard_Real Log (const Standard_Real );
__Standard_API Standard_Real Sqrt (const Standard_Real );
-//class Standard_OStream;
-//void ShallowDump(const Standard_Real, Standard_OStream& );
-
//-------------------------------------------------------------------
// RealSmall : Returns the smallest positive real
//-------------------------------------------------------------------
+++ /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_Transient.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_TypeMismatch.hxx>
-#include <Standard_Persistent.hxx>
-
-// now with these two proto, we don't need the include of Standard_Persistent
-class Handle(Standard_Persistent);
-const Handle_Standard_Type &Standard_Persistent_Type_();
-
-//============================================================================
-void ShallowDump(const Handle(Standard_Persistent)& me, Standard_OStream &aOut)
-{
- Handle(Standard_Type) aType = me->DynamicType();
-
- aOut << "class " << aType->Name() << endl;
-}
-
-//============================================================================
-void ShallowDump(const Handle(Standard_Transient)& me, Standard_OStream &aOut)
-{
- Handle(Standard_Type) aType = me->DynamicType();
-
- aOut << "class " << aType->Name() << endl;
-}
-
#include <Standard_Stream.hxx>
#include <Standard_OStream.hxx>
-const Handle_Standard_Type& Standard_ShortReal_Type_()
-{
- static Handle_Standard_Type _aType =
- new Standard_Type("Standard_ShortReal",sizeof(Standard_ShortReal),0,NULL);
-
- return _aType;
-}
-
-
// ------------------------------------------------------------------
// Hascode : Computes a hascoding value for a given ShortReal
// ------------------------------------------------------------------
} U;
U.R = me;
return HashCode( U.I , Upper) ;
- }
-
-// ------------------------------------------------------------------
-// ShallowCopy : Makes a copy of a ShortReal value
-// ------------------------------------------------------------------
-Standard_ShortReal ShallowCopy (const Standard_ShortReal me)
-{
- return me;
}
-
-
-// ------------------------------------------------------------------
-// ShallowDump : Writes a ShortReal value
-// ------------------------------------------------------------------
-Standard_EXPORT void ShallowDump(const Standard_ShortReal Value,
- Standard_OStream& s)
-{ s << Value << " Standard_ShortReal" << "\n"; }
class Handle_Standard_Type;
-__Standard_API const Handle_Standard_Type& Standard_ShortReal_Type_();
-//class Standard_OStream;
-//void ShallowDump (const Standard_ShortReal, Standard_OStream& );
-
// *********************************** //
// Class methods //
// //
// - Hascode
// - IsEqual
// - IsSimilar
-// - Shallowcopy
-// - ShallowDump
// ===============================================
// ==================================
// ==================================
//.... Herited from Standard_Storable
__Standard_API Standard_Integer HashCode (const Standard_ShortReal, const Standard_Integer);
-__Standard_API Standard_ShortReal ShallowCopy (const Standard_ShortReal );
//-------------------------------------------------------------------
// IsEqual : Returns Standard_True if two ShortReals are equal
---C++: function call
---Level: Public
- ShallowDump (me; S: in out OStream) is virtual;
- ---Purpose: Prints the contents at the first level of <me> on
- -- the stream <s>. The Root version of ShallowDump prints
- -- the name of the class <me> is instance of, followed by
- -- its memory address.
- ---C++: function call
- ---Level: Public
-
end Storable;
{
return Standard_True;
}
-
-//========================================================================
-void Standard_Storable::ShallowDump(Standard_OStream& ) const
-{
-// ::ShallowDump((Standard_Address) this, STANDARD_TYPE(Standard_Storable), S);
-}
-
+++ /dev/null
-// Copyright (c) 2013-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_Time.hxx>
-#include <Standard_ConstructionError.hxx>
-
-const Handle_Standard_Type& Standard_Time_Type_()
-{
- static Handle_Standard_Type _aType =
- new Standard_Type ("Standard_Time", sizeof(Standard_Time), 0, NULL);
-
- return _aType;
-}
#include <Standard_TypeDef.hxx>
-class Handle_Standard_Type;
-
-__Standard_API const Handle_Standard_Type& Standard_Time_Type_();
-
// ===============================================
// Methods from Standard_Entity class which are redefined:
// - IsEqual
return DynamicType()->SubType ( theTypeName );
}
-void Standard_Transient::ShallowDump(Standard_OStream& theStream) const
-{
- theStream << "class " << DynamicType()->Name() << " at " << this << endl;
-}
-
-
void Standard_Transient::Delete() const
{
delete((Standard_Transient *)this);
//! Memory deallocator for transient classes
Standard_EXPORT virtual void Delete() const;
- Standard_EXPORT virtual void ShallowDump(Standard_OStream& ) const;
-
//! Returns a type information object about this object.
Standard_EXPORT virtual const Handle_Standard_Type& DynamicType() const;
-- AncestorIterator.
---Level: Advanced
- ShallowDump (me);
- ---Purpose:
- -- Prints the Information about type.
- ---C++: function call
- ---Level: Advanced
-
- ShallowDump (me; S: in out OStream);
- ---Purpose:
- -- Prints the Information about type.
- ---C++: function call
- ---Level: Advanced
-
Print (me; s: in out OStream);
---Purpose:
-- Prints on the stream <s> the name of Type.
return Standard_False;
}
-//============================================================================
-void Standard_Type::ShallowDump() const
-{
- ShallowDump(cout) ;
-}
-
-//============================================================================
-void Standard_Type::ShallowDump(Standard_OStream& AStream) const
-{
- Standard_Integer i;
- Handle(Standard_Type) aType;
-
- Handle(Standard_Type) *allAncestors;
-
-// AStream << "Standard_Type " << hex << (Standard_Address )this << dec << " " ;
-
- allAncestors = (Handle(Standard_Type) *)myAncestors;
-
- if(myKind == Standard_IsEnumeration) {
- AStream << "enumeration " << myName << endl;
- }
-
- if(myKind == Standard_IsPrimitive) {
- AStream << "primitive " << myName << endl;
- }
-
- if(myKind == Standard_IsImported) {
- AStream << "imported " << myName << endl;
- }
-
- if(myKind == Standard_IsClass) {
- AStream << "class " << myName << endl;
- if(SubType(STANDARD_TYPE(Standard_Transient))) {
- AStream << " -- manipulated by 'Handle'" << endl;
- }
- else if(SubType(STANDARD_TYPE(Standard_Persistent))) {
- AStream << " -- manipulated by 'Handle' and is 'persistent'"<< endl;
- }
- }
-
- if(myNumberOfParent > 0) {
- AStream << " inherits ";
- for(i=0; i<myNumberOfParent; i++){
- aType = allAncestors[i];
- if (i>1) AStream <<", ";
- if ( !aType.IsNull() )
- AStream << aType->Name();
- else
- AStream << " ??? (TypeIsNull)" ;
- }
- AStream << endl;
- }
-
- if(myNumberOfAncestor > myNumberOfParent) {
- AStream << " -- Ancestors: ";
- for(i=myNumberOfParent; i<myNumberOfAncestor; i++){
- aType = allAncestors[i];
- if (i>1) AStream <<", ";
- if ( !aType.IsNull() )
- AStream << aType->Name();
- else
- AStream << " ??? (TypeIsNull)" ;
- }
- AStream << endl;
- }
-}
-
// ------------------------------------------------------------------
// Print (me; s: in out OStream) returns OStream;
// ------------------------------------------------------------------
#include <Standard_GUID.hxx>
#include <Standard_UUID.hxx>
-const Handle(Standard_Type) & TYPE(Standard_UUID)
-{ static Handle(Standard_Type) _aType=
- new Standard_Type("Standard_UUID", sizeof(Standard_UUID));
- return _aType;
-}
-
//void Standard_GUID::Assign(const Standard_UUID& uid)
void Standard_GUID::Assign(const Standard_UUID& )
{
typedef GUID Standard_UUID ;
-class Handle_Standard_Type;
-const Handle(Standard_Type) & TYPE(Standard_UUID);
-
#endif
Storage_BucketOfPersistent.hxx
Storage_Position.hxx
Storage_Container.hxx
-Storage_Container.cxx
+++ /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.
-
-#include <Storage_Container.hxx>
-#include <Standard_Type.hxx>
-
-const Handle_Standard_Type& Storage_Container_Type_()
-{
- static Handle_Standard_Type _aType = new Standard_Type("Storage_Container",sizeof(Storage_Container));
-
- return _aType;
-}
#ifndef _Storage_Container_HeaderFile
#define _Storage_Container_HeaderFile
-class Handle_Standard_Type;
-const Handle_Standard_Type& Storage_Container_Type_();
class Storage_BaseDriver;
typedef Storage_BaseDriver* Storage_Container;
return cback; \
}
-#define Storage_ADD_TYPES(schema,classe,callback) if (t == classe##_Type_()) { \
+#define Storage_ADD_TYPES(schema,classe,callback) if (t == STANDARD_TYPE(classe)) { \
cback = new callback ; \
BindType(theTypeName,cback); \
cback->Add(p,this); \
---Level: Advanced
---Purpose: Returns the field myString.
- ShallowCopy(me) returns mutable like me;
- ---Level: Advanced
- ---C++: function call
-
- ShallowDump(me ; s: in out OStream);
- ---Level: Avanced
- ---C++: function call
-
IsSameState (me ; other : like me)
---Level: Advanced
returns Boolean;
return myString.Value(where);
}
-// ----------------------------------------------------------------------------
-// ShallowCopy
-// ----------------------------------------------------------------------------
-Handle(TCollection_HAsciiString) TCollection_HAsciiString::ShallowCopy() const
-{
-// Handle(TCollection_HAsciiString) thecopy = new TCollection_HAsciiString;
-// for (Standard_Integer i = 1 ; i <= Length() ; i++)
-// thecopy->Insert(i,Value(i));
-// return thecopy;
- return new TCollection_HAsciiString(*this);
-}
-
-//---------------------------------------------------------------------
-// ShallowDump
-//---------------------------------------------------------------------
-void TCollection_HAsciiString::ShallowDump(Standard_OStream& S) const
-{
- S << "begin class HAsciiString "<<endl;
- myString.Print(S);
-}
-
// ----------------------------------------------------------------------------
// IsSameState
// ----------------------------------------------------------------------------
Print (me ; astream : out OStream);
---Purpose: Displays <me> .
- ShallowCopy(me) returns mutable like me;
- ---C++: function call
-
- ShallowDump(me ; s: in out OStream);
- ---Level: Advanced
-
IsSameState (me ; other : like me) returns Boolean;
---Level: Advanced
myString.Print(S);
}
-// ----------------------------------------------------------------------------
-// ShallowCopy
-// ----------------------------------------------------------------------------
-Handle(TCollection_HExtendedString) TCollection_HExtendedString::ShallowCopy() const
-{
- Handle(TCollection_HExtendedString) thecopy =
- new TCollection_HExtendedString;
- for (Standard_Integer i = 1 ; i <= Length() ; i++)
- thecopy->Insert(i,Value(i));
- return thecopy;
-}
-
-//---------------------------------------------------------------------
-// ShallowDump
-//---------------------------------------------------------------------
-void TCollection_HExtendedString::ShallowDump(Standard_OStream& S) const
-{
- S << "begin class HExtendedString "<<endl;
- myString.Print(S);
-}
-
// ----------------------------------------------------------------------------
// Issamestate
// ----------------------------------------------------------------------------
mySequence.Remove(From,To);
}
-// ---------------------------------------------------------------------
-// ShallowCopy
-// ---------------------------------------------------------------------
-Handle(TCollection_HSequence) TCollection_HSequence::ShallowCopy() const
-{
- Handle (TCollection_HSequence) TheCopy = new TCollection_HSequence();
-
- Standard_Integer i;
- for (i=1; i <= mySequence.Length(); i++) TheCopy->Append(mySequence(i));
- return TheCopy;
-}
-
// ----------------------------------------------------------------------------
// IsSamestate
// ----------------------------------------------------------------------------
-- The two sets cannot be identical.
---C++: inline
is static;
-
- ShallowCopy(me) returns mutable like me;
- ---Level: Advanced
- ---C++: function call
-
- -- IsSameState (me; other: like me) returns Boolean;
- -- Level: Advanced
-
-
Set(me) returns TheSet
---Level: Advanced
return R;
}
-//=======================================================================
-//function : ShallowCopy
-//purpose :
-//=======================================================================
-
-Handle(TCollection_HSet) TCollection_HSet::ShallowCopy() const
-{
- Handle(TCollection_HSet) S = new TCollection_HSet();
- S->ChangeSet() = mySet;
- return S;
-}
-
//=======================================================================
//function : IsSameState
//purpose :
Standard_PCharacter pStr;
//
pStr=toto;
- ID().ToCString(pStr); anOS<<";\tID = "<<toto<<endl;
- //ID().ShallowDump(anOS);anOS<<endl;
+ ID().ToCString(pStr);
+ anOS<<";\tID = "<<toto<<endl;
return anOS;
}
#include <Visual3d_Light.hxx>
#include <Visual3d_ViewManager.hxx>
#include <Visual3d_ContextPick.hxx>
-#include <Visual3d_PickDescriptor.hxx>
-#include <Visual3d_HSequenceOfPickPath.hxx>
-#include <Visual3d_PickPath.hxx>
#include <V3d_BadValue.hxx>
#include <gp_Dir.hxx>
#include <gp_Ax1.hxx>
#include <Visual3d_Light.hxx>
#include <Visual3d_ViewManager.hxx>
#include <Visual3d_ContextPick.hxx>
-#include <Visual3d_PickDescriptor.hxx>
-#include <Visual3d_HSequenceOfPickPath.hxx>
-#include <Visual3d_PickPath.hxx>
#include <V3d_BadValue.hxx>
#include <gp_Dir.hxx>
#include <gp_Ax1.hxx>
#include <Visual3d_Light.hxx>
#include <Visual3d_ViewManager.hxx>
#include <Visual3d_ContextPick.hxx>
-#include <Visual3d_PickDescriptor.hxx>
-#include <Visual3d_HSequenceOfPickPath.hxx>
-#include <Visual3d_PickPath.hxx>
#include <V3d_BadValue.hxx>
#include <gp_Dir.hxx>
#include <gp_Ax1.hxx>
#include <Visual3d_Light.hxx>
#include <Visual3d_ViewManager.hxx>
#include <Visual3d_ContextPick.hxx>
-#include <Visual3d_PickDescriptor.hxx>
-#include <Visual3d_HSequenceOfPickPath.hxx>
-#include <Visual3d_PickPath.hxx>
#include <gp_Dir.hxx>
#include <gp_Ax1.hxx>
#include <gp_Vec.hxx>
---Purpose: Definition of the order of selection
-- TOO_TOPFIRST the root structure first
-- TOO_BOTTOMFIRST the leaf structure first
- -- Allows exploration of a PickPath in a PickDescriptor.
---Category: The enumerations
enumeration TypeOfProjection is TOP_PERSPECTIVE,
-- Only the number of active sources is limited.
---Category: The classes
- class PickDescriptor;
- ---Purpose: A PickDescriptor contains information on the picks.
- -- It contains a certain number of PickPaths.
- ---Category: The classes
-
- class PickPath;
- ---Purpose: A PickPath is a vector ( elem_num, pick_id, struct_id ).
- -- It is one of the constituents of a PickDescriptor.
- -- There are many Pickpaths in a PickDescriptor.
- -- Each PickPath describes a structure or an sub-structure.
- -- The pick-id is set by the SetPickId method from Group.
- ---Category: The classes
-
class View;
---Purpose: Creation and editing of a view in a 3D visualiser.
--
imported NListOfLayerItem;
- class SequenceOfPickPath instantiates
- Sequence from TCollection (PickPath from Visual3d);
- ---Category: Instantiated classes
-
- class HSequenceOfPickPath instantiates
- HSequence from TCollection
- (PickPath from Visual3d, SequenceOfPickPath);
- ---Category: Instantiated classes
-
class SetOfLight instantiates
Set from TCollection (Light from Visual3d);
---Category: Instantiated classes
+++ /dev/null
--- Created on: 1991-11-21
--- Created by: NW,JPB,CAL
--- 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.
-
-class PickDescriptor from Visual3d
-
- ---Version:
-
- ---Purpose: This class contains the pick information.
- -- It contains a certain number of PickPaths.
-
- ---Keywords: Pick Descriptor, Path, Structure, PickId
-
- ---Warning:
- ---References:
-
-uses
-
- Structure from Graphic3d,
- ContextPick from Visual3d,
- PickPath from Visual3d,
- HSequenceOfPickPath from Visual3d
-
-raises
-
- PickError from Visual3d
-
-is
-
- Create ( CTX : ContextPick from Visual3d )
- returns PickDescriptor from Visual3d;
- ---Level: Public
- ---Purpose: Creates a PickDescriptor <me>.
-
- ---------------------------------------------------
- -- Category: Methods to modify the class definition
- ---------------------------------------------------
-
- AddPickPath ( me : in out;
- APickPath : PickPath from Visual3d )
- is static;
- ---Level: Public
- ---Purpose: Adds a PickPath to PickDescriptor <me>.
- ---Category: Methods to modify the class definition
-
- Clear ( me : in out )
- is static;
- ---Level: Public
- ---Purpose: Erases all the information in <me>.
- ---Category: Methods to modify the class definition
-
- ----------------------------
- -- Category: Inquire methods
- ----------------------------
-
- Depth ( me )
- returns Integer from Standard
- is static;
- ---Level: Public
- ---Purpose: Returns the pick depth, that is the
- -- number of PickPaths available in the PickDescriptor.
- ---Category: Inquire methods
-
- PickPath ( me )
- returns HSequenceOfPickPath from Visual3d
- is static;
- ---Level: Internal
- ---Purpose: Returns the group of PickPaths of <me>.
- ---Category: Inquire methods
-
- TopStructure ( me )
- returns Structure from Graphic3d
- ---Level: Public
- ---Purpose: Returns the root structure.
- -- If the pick order was of the type TOO_TOPFIRST
- -- then it's the first structure.
- -- If the pick order was of the type TOO_BOTTOMFIRST
- -- Then it's the last structure.
- -- The pick order is set by the method SetOrder
- -- from ContextPick.
- -- Category: Inquire methods
- -- Warning: Raises PickError if Depth == 0 (no picked structure).
- raises PickError from Visual3d is static;
-
- TopPickId ( me )
- returns Integer from Standard
- ---Level: Public
- ---Purpose: Returns the root structure pickid.
- -- If the pick order was of the type TOO_TOPFIRST
- -- then it's the first pickid.
- -- If the pick order was of the type TOO_BOTTOMFIRST
- -- then it's the last pickid.
- -- The pick order is set by the method SetOrder
- -- from ContextPick.
- -- Category: Inquire methods
- -- Warning: Raises PickError if Depth == 0 (no picked structure).
- raises PickError from Visual3d is static;
-
- TopElementNumber ( me )
- returns Integer from Standard
- ---Level: Public
- ---Purpose: Returns the root structure element number.
- -- If the pick order was of the type TOO_TOPFIRST
- -- then it's the first element number.
- -- If the pick order was of the type TOO_BOTTOMFIRST
- -- then it's the last element number.
- -- The pick order is set by the method SetOrder
- -- from ContextPick.
- -- Category: Inquire methods
- -- Warning: Raises PickError if Depth == 0 (no picked structure).
- raises PickError from Visual3d is static;
-
---\f
-
-fields
-
---
--- Class : Visual3d_PickDescriptor
---
--- Purpose : Declaration of variables specific to the class
--- describing a pick.
---
--- Reminders : A pick return is defined by:
--- - a sequence of (Elem_number, Pick_Id, Struct_Id)
--- - a depth
-
- -- pick sequence
- MyPickPathSequence : HSequenceOfPickPath from Visual3d;
-
- -- context associated to a pick
- MyContext : ContextPick from Visual3d;
-
-end PickDescriptor;
+++ /dev/null
-// Created by: NW,JPB,CAL
-// 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.
-
-//-Version
-
-//-Design Declaration of variables specific to the class
-// describing marking.
-
-//-Warning A return of marking is defined by :
-// - sequence of (Elem_Num, Pick_Id, Structure)
-// - depth
-
-//-References
-
-//-Language C++ 2.0
-
-//-Declarations
-
-// for the class
-#include <Visual3d_PickDescriptor.ixx>
-
-//-Aliases
-
-//-Global data definitions
-
-// -- sequence reperee
-// MyPickPathSequence : HSequenceOfPickPath;
-
-// -- contexte picking de reperage associe
-// MyContext : ContextPick;
-
-//-Constructors
-
-//-Destructors
-
-//-Methods, in order
-
-Visual3d_PickDescriptor::Visual3d_PickDescriptor (const Visual3d_ContextPick& CTXP):
-MyContext (CTXP) {
-
- MyPickPathSequence = new Visual3d_HSequenceOfPickPath ();
-
-}
-
-void Visual3d_PickDescriptor::AddPickPath (const Visual3d_PickPath& APickPath) {
-
- if (MyContext.Depth () > MyPickPathSequence->Length ())
- MyPickPathSequence->Append (APickPath);
-
-}
-
-void Visual3d_PickDescriptor::Clear () {
-
- MyPickPathSequence->Clear ();
-
-}
-
-Standard_Integer Visual3d_PickDescriptor::Depth () const {
-
- return (MyPickPathSequence->Length ());
-
-}
-
-Handle(Graphic3d_Structure) Visual3d_PickDescriptor::TopStructure () const {
-
-Visual3d_PickPath Result;
-
- if (MyPickPathSequence->IsEmpty ())
- Visual3d_PickError::Raise ("PickDescriptor empty");
-
- switch (MyContext.Order ()) {
-
- case Visual3d_TOO_TOPFIRST :
- // MyPickPathSequence->First returns the first
- // PickPath found in the sequence.
- Result = MyPickPathSequence->Sequence().First ();
- break;
-
- case Visual3d_TOO_BOTTOMFIRST :
- // MyPickPathSequence->Last returns the last
- // PickPath found in the sequence.
- Result = MyPickPathSequence->Sequence().Last ();
- break;
-
- }
- return (Result.StructIdentifier ());
-}
-
-Standard_Integer Visual3d_PickDescriptor::TopPickId () const {
-
-Visual3d_PickPath Result;
-
- if (MyPickPathSequence->IsEmpty ())
- Visual3d_PickError::Raise ("PickDescriptor empty");
-
- switch (MyContext.Order ()) {
-
- case Visual3d_TOO_TOPFIRST :
- // MyPickPathSequence->First returns the first
- // PickPath found in the sequence.
- Result = MyPickPathSequence->Sequence().First ();
- break;
-
- case Visual3d_TOO_BOTTOMFIRST :
- // MyPickPathSequence->Last returns the last
- // PickPath found in the sequence.
- Result = MyPickPathSequence->Sequence().Last ();
- break;
-
- }
- return (Result.PickIdentifier ());
-}
-
-Standard_Integer Visual3d_PickDescriptor::TopElementNumber () const {
-
-Visual3d_PickPath Result;
-
- if (MyPickPathSequence->IsEmpty ())
- Visual3d_PickError::Raise ("PickDescriptor empty");
-
- switch (MyContext.Order ()) {
-
- case Visual3d_TOO_TOPFIRST :
- // MyPickPathSequence->First returns the first
- // PickPath found in the sequence.
- Result = MyPickPathSequence->Sequence().First ();
- break;
-
- case Visual3d_TOO_BOTTOMFIRST :
- // MyPickPathSequence->Last returns the last
- // PickPath found in the sequence.
- Result = MyPickPathSequence->Sequence().Last ();
- break;
-
- }
- return (Result.ElementNumber ());
-}
-
-Handle(Visual3d_HSequenceOfPickPath) Visual3d_PickDescriptor::PickPath () const {
-
- return (Handle(Visual3d_HSequenceOfPickPath)::DownCast
- (MyPickPathSequence->ShallowCopy ()));
-
-}
+++ /dev/null
--- Created on: 1991-11-25
--- Created by: NW,JPB,CAL
--- 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.
-
-class PickPath from Visual3d
-
- ---Version:
-
- ---Purpose: PickPath is a vector ( pick_id, struct_id, elem_num ).
- -- It's one of the constituents of a PickDescriptor.
- -- There are many PickPaths in a PickDescriptor.
- -- Each PickPath describes a structure or a sub-structure.
- -- The pick_id is set by SetPickId method from Group.
-
- ---Keywords: Pick Path, PickId
-
- ---Warning:
- ---References:
-
-uses
-
- Structure from Graphic3d
-
-raises
-
- PickError from Visual3d
-
-is
-
- Create
- returns PickPath from Visual3d;
- ---Level: Public
- ---Purpose: Creates an undefined PickPath.
-
- Create ( AElemNumber : Integer from Standard;
- APickId : Integer from Standard;
- AStructure : Structure from Graphic3d)
- returns PickPath from Visual3d;
- ---Level: Public
- ---Purpose: Creates a PickPath :
- -- <AElemNumber> : Element number of the structure picked.
- -- <APickId> : Pick identifier of the structure picked.
- -- <AStructure> : The picked structure.
-
- ---------------------------------------------------
- -- Category: Methods to modify the class definition
- ---------------------------------------------------
-
- SetElementNumber ( me : in out;
- AElemNumber : Integer from Standard )
- is static;
- ---Level: Public
- ---Purpose: Modifies the PickPath <me>.
- -- <AElemNumber> : Element number of the structure picked.
- ---Category: Methods to modify the class definition
-
- SetPickIdentifier ( me : in out;
- APickId : Integer from Standard )
- is static;
- ---Level: Public
- ---Purpose: Modifies the PickPath <me>.
- -- <APickId> : Pick identifier of the structure picked.
- ---Category: Methods to modify the class definition
-
- SetStructIdentifier ( me : in out;
- AStructure : Structure from Graphic3d )
- is static;
- ---Level: Public
- ---Purpose: Modifies the PickPath <me>.
- -- <AStructure> : Identifier of the structure picked.
- ---Category: Methods to modify the class definition
-
- ----------------------------
- -- Category: Inquire methods
- ----------------------------
-
- ElementNumber ( me )
- returns Integer from Standard
- ---Level: Public
- ---Purpose: Returns the element number stocked in the PickPath <me>.
- -- Category: Inquire methods
- -- Warning: Raises PickError if PickPath is empty (no picked structure).
- raises PickError from Visual3d is static;
-
- PickIdentifier ( me )
- returns Integer from Standard
- ---Level: Public
- ---Purpose: Returns the pick identifier stocked in the PickPath <me>.
- -- Category: Inquire methods
- -- Warning: Raises PickError if PickPath is empty (no picked structure).
- raises PickError from Visual3d is static;
-
- StructIdentifier ( me )
- returns Structure from Graphic3d
- ---Level: Public
- ---Purpose: Returns the structure stocked in the PickPath <me>.
- -- Category: Inquire methods
- -- Warning: Raises PickError if PickPath is empty (no picked structure).
- raises PickError from Visual3d is static;
-
---\f
-
-fields
-
---
--- Class : Visual3d_PickPath
---
--- Purpose : Declaration of variables specific to the class
--- describing a picking.
---
--- Reminders : A pick is defined by :
--- - a vector (Elem_Num, Pick_Id, Structure)
---
---
-
- -- the pick vector
- MyElementNumber : Integer from Standard;
- MyPickId : Integer from Standard;
- MyStructure : Structure from Graphic3d;
-
- -- the flag for definition
- MyElementNumberIsDef : Boolean from Standard;
- MyPickIdIsDef : Boolean from Standard;
- MyStructureIsDef : Boolean from Standard;
-
-end PickPath;
+++ /dev/null
-// Created by: NW,JPB,CAL
-// 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.
-
-//-Version
-
-//-Design Declaration of variables specific to the classe
-// describing a marking.
-
-//-Warning Marking is defined by :
-// - vector (Elem_Num, Pick_Id, Structure)
-
-//-References
-
-//-Language C++ 2.0
-
-//-Declarations
-
-// for the class
-#include <Visual3d_PickPath.ixx>
-
-//-Aliases
-
-//-Global data definitions
-
-// -- le vecteur
-// MyElementNumber : Standard_Integer;
-// MyPickId : Standard_Integer;
-// MyStructure : Structure;
-
-// -- les flags pour definition
-// MyElementNumberIsDef : Standard_Boolean;
-// MyPickIdIsDef : Standard_Boolean;
-// MyStructureIsDef : Standard_Boolean;
-
-//-Constructors
-
-//-Destructors
-
-//-Methods, in order
-
-Visual3d_PickPath::Visual3d_PickPath ():
-MyElementNumberIsDef (Standard_False),
-MyPickIdIsDef (Standard_False),
-MyStructureIsDef (Standard_False) {
-}
-
-Visual3d_PickPath::Visual3d_PickPath (const Standard_Integer AnElemNumber, const Standard_Integer APickId, const Handle(Graphic3d_Structure)& AStructure):
-MyElementNumber (AnElemNumber),
-MyPickId (APickId),
-MyStructure (AStructure),
-MyElementNumberIsDef (Standard_True),
-MyPickIdIsDef (Standard_True),
-MyStructureIsDef (Standard_True) {
-}
-
-void Visual3d_PickPath::SetElementNumber (const Standard_Integer AnElemNumber) {
-
- MyElementNumber = AnElemNumber;
- MyElementNumberIsDef = Standard_True;
-
-}
-
-void Visual3d_PickPath::SetPickIdentifier (const Standard_Integer APickId) {
-
- MyPickId = APickId;
- MyPickIdIsDef = Standard_True;
-
-}
-
-void Visual3d_PickPath::SetStructIdentifier (const Handle(Graphic3d_Structure)& AStructure) {
-
- MyStructure = AStructure;
- MyStructureIsDef = Standard_True;
-
-}
-
-Standard_Integer Visual3d_PickPath::ElementNumber () const {
-
- if (!MyElementNumberIsDef)
- Visual3d_PickError::Raise ("No defined ElementNumber");
-
- return (MyElementNumber);
-
-}
-
-Standard_Integer Visual3d_PickPath::PickIdentifier () const {
-
- if (!MyPickIdIsDef)
- Visual3d_PickError::Raise ("No defined PickIdentifier");
-
- return (MyPickId);
-
-}
-
-Handle(Graphic3d_Structure) Visual3d_PickPath::StructIdentifier () const {
-
- if (!MyStructureIsDef)
- Visual3d_PickError::Raise ("No defined StructIdentifier");
-
- return (MyStructure);
-
-}
ContextPick from Visual3d,
Layer from Visual3d,
- PickDescriptor from Visual3d,
SetOfView from Visual3d,
HSetOfView from Visual3d,
View from Visual3d
-- Pickable as determined by the method --
-- Graphic3d_Structure::SetPick --
-- --
- -- The PickDescriptor is : --
- -- A list of PickPath. --
- -- --
- -- The PickPath is defined by : --
- -- A Structure Identification --
- -- A Pick Identification --
- -- An Element Number. --
- -- --
-- To insert a Pick Identification use the --
-- method Graphic3d_Group::SetPickId --
-- --
#include <Graphic3d_MapOfStructure.hxx>
#include <Graphic3d_MapIteratorOfMapOfStructure.hxx>
-#include <Visual3d_PickPath.hxx>
#include <Visual3d_SetIteratorOfSetOfView.hxx>
#if defined (_WIN32) || defined(__WIN32__)
typedef DWORD WNT_Dword;
-extern const Handle( Standard_Type )& STANDARD_TYPE( WNT_Dword );
-
#endif // __WNT_Dword_HeaderFile
typedef UINT WNT_Uint;
-extern const Handle( Standard_Type )& STANDARD_TYPE( WNT_Uint );
-
#endif // __WNT_Uint_HeaderFile
typedef WINDOW_DATA WNT_WindowData;
-extern const Handle( Standard_Type )& STANDARD_TYPE( WNT_WindowData );
-
#endif // __WNT_WindowData_HeaderFile