All occurrences of Standard_EXPORT attached to inline methods in OCCT code are eliminated.
Some unused classes and C++ files producing no code are deleted.
//! Establishes the connection between the Connected
//! Interactive Object, anotherIobj, and its reference.
- Standard_EXPORT void Connect (const Handle(AIS_InteractiveObject)& theAnotherObj) { connect (theAnotherObj, Handle(Geom_Transformation)()); }
+ void Connect (const Handle(AIS_InteractiveObject)& theAnotherObj) { connect (theAnotherObj, Handle(Geom_Transformation)()); }
//! Establishes the connection between the Connected
//! Interactive Object, anotherIobj, and its reference.
//! Locates instance in aLocation.
- Standard_EXPORT void Connect (const Handle(AIS_InteractiveObject)& theAnotherObj,
+ void Connect (const Handle(AIS_InteractiveObject)& theAnotherObj,
const gp_Trsf& theLocation) { connect (theAnotherObj, new Geom_Transformation (theLocation)); }
//! Establishes the connection between the Connected
//! Interactive Object, anotherIobj, and its reference.
//! Locates instance in aLocation.
- Standard_EXPORT void Connect (const Handle(AIS_InteractiveObject)& theAnotherObj,
- const Handle(Geom_Transformation)& theLocation) { connect (theAnotherObj, theLocation); }
+ void Connect (const Handle(AIS_InteractiveObject)& theAnotherObj,
+ const Handle(Geom_Transformation)& theLocation) { connect (theAnotherObj, theLocation); }
//! Returns true if there is a connection established
//! between the presentation and its source reference.
//! Unsets user-defined plane. Therefore the plane for dimension will be
//! computed automatically.
- Standard_EXPORT void UnsetCustomPlane() { myIsPlaneCustom = Standard_False; }
+ void UnsetCustomPlane() { myIsPlaneCustom = Standard_False; }
//! @return TRUE if text position is set by user with method SetTextPosition().
Standard_Boolean IsTextPositionCustom() const
Standard_EXPORT virtual const TCollection_AsciiString& GetModelUnits() const;
- Standard_EXPORT virtual void SetDisplayUnits (const TCollection_AsciiString& /*theUnits*/) { }
+ virtual void SetDisplayUnits (const TCollection_AsciiString& /*theUnits*/) { }
- Standard_EXPORT virtual void SetModelUnits (const TCollection_AsciiString& /*theUnits*/) { }
+ virtual void SetModelUnits (const TCollection_AsciiString& /*theUnits*/) { }
//! Unsets user defined text positioning and enables text positioning
//! by other parameters: text alignment, extension size, flyout and custom plane.
//! Constructs a manipulator object with input location and positions of axes and all parts to be displayed.
Standard_EXPORT AIS_Manipulator (const gp_Ax2& thePosition);
- //! Destructor.
- Standard_EXPORT virtual ~AIS_Manipulator() {}
-
//! Disable or enable visual parts for translation, rotation or scaling for some axis.
//! By default all parts are enabled (will be displayed).
//! @warning Enabling or disabling of visual parts of manipulator does not manage the manipulation (selection) mode.
const Standard_Integer theMode) Standard_OVERRIDE;
//! Disables auto highlighting to use HilightSelected() and HilightOwnerWithColor() overridden methods.
- Standard_EXPORT virtual Standard_Boolean IsAutoHilight() const Standard_OVERRIDE
+ virtual Standard_Boolean IsAutoHilight() const Standard_OVERRIDE
{
return Standard_False;
}
const AIS_ManipulatorMode theMode,
const Standard_Integer thePriority = 0);
- Standard_EXPORT virtual ~AIS_ManipulatorOwner() {}
-
Standard_EXPORT virtual void HilightWithColor (const Handle(PrsMgr_PresentationManager3d)& thePM,
const Handle(Prs3d_Drawer)& theStyle,
const Standard_Integer theMode) Standard_OVERRIDE;
Standard_EXPORT virtual void Unhilight (const Handle(PrsMgr_PresentationManager)& thePM, const Standard_Integer theMode) Standard_OVERRIDE;
- Standard_EXPORT AIS_ManipulatorMode Mode() const { return myMode; }
+ AIS_ManipulatorMode Mode() const { return myMode; }
//! @return index of manipulator axis.
- Standard_EXPORT Standard_Integer Index() const { return myIndex; }
+ Standard_Integer Index() const { return myIndex; }
protected:
//! Set native handle.
//! @return true if definition has been changed
- Standard_EXPORT Standard_Boolean SetNativeHandle (Aspect_Drawable theWindow) { return SetNativeHandles (theWindow, 0, 0); }
+ Standard_Boolean SetNativeHandle (Aspect_Drawable theWindow) { return SetNativeHandles (theWindow, 0, 0); }
//! Set native handles.
//! @return true if definition has been changed
DEFINE_STANDARD_ALLOC
//! Sets the context for the algorithms
- Standard_EXPORT void SetContext (const Handle(IntTools_Context)& theContext) {
+ void SetContext (const Handle(IntTools_Context)& theContext) {
myContext = theContext;
}
//! Returns the input shapes
- Standard_EXPORT const TopTools_ListOfShape& Shapes() const {
+ const TopTools_ListOfShape& Shapes() const {
return myShapes;
}
//! Sets the shapes for building areas
- Standard_EXPORT void SetShapes(const TopTools_ListOfShape& theLS) {
+ void SetShapes(const TopTools_ListOfShape& theLS) {
myShapes = theLS;
}
//! Returns the found loops
- Standard_EXPORT const TopTools_ListOfShape& Loops() const {
+ const TopTools_ListOfShape& Loops() const {
return myLoops;
}
//! Returns the found areas
- Standard_EXPORT const TopTools_ListOfShape& Areas() const {
+ const TopTools_ListOfShape& Areas() const {
return myAreas;
}
//! Defines the preventing of addition of internal parts into result.
//! The default value is FALSE, i.e. the internal parts are added into result.
- Standard_EXPORT void SetAvoidInternalShapes(const Standard_Boolean theAvoidInternal) {
+ void SetAvoidInternalShapes(const Standard_Boolean theAvoidInternal) {
myAvoidInternalShapes = theAvoidInternal;
}
//! Returns the AvoidInternalShapes flag
- Standard_EXPORT Standard_Boolean IsAvoidInternalShapes() const {
+ Standard_Boolean IsAvoidInternalShapes() const {
return myAvoidInternalShapes;
}
Standard_EXPORT BOPAlgo_BuilderArea(const Handle(NCollection_BaseAllocator)& theAllocator);
- Standard_EXPORT virtual void PerformShapesToAvoid() = 0;
+ virtual void PerformShapesToAvoid() = 0;
- Standard_EXPORT virtual void PerformLoops() = 0;
+ virtual void PerformLoops() = 0;
- Standard_EXPORT virtual void PerformAreas() = 0;
+ virtual void PerformAreas() = 0;
- Standard_EXPORT virtual void PerformInternalShapes() = 0;
+ virtual void PerformInternalShapes() = 0;
Handle(IntTools_Context) myContext;
#include <BOPTools_AlgoTools2D.hxx>
#include <BOPTools_AlgoTools3D.hxx>
#include <BOPTools_CoupleOfShape.hxx>
-#include <BOPTools_DataMapOfShapeSet.hxx>
#include <BOPTools_ListOfCoupleOfShape.hxx>
#include <BOPTools_MapOfSet.hxx>
#include <BOPTools_Parallel.hxx>
//! Defines the preventing of addition of internal for solid parts into the result.
//! By default the internal parts are added into result.
- Standard_EXPORT void SetAvoidInternalShapes(const Standard_Boolean theAvoidInternal) {
+ void SetAvoidInternalShapes(const Standard_Boolean theAvoidInternal) {
myAvoidInternalShapes = theAvoidInternal;
}
//! Returns the AvoidInternalShapes flag
- Standard_EXPORT Standard_Boolean IsAvoidInternalShapes() const {
+ Standard_Boolean IsAvoidInternalShapes() const {
return myAvoidInternalShapes;
}
//! Returns the bounding box of the curve
Bnd_Box& ChangeBox();
- Standard_EXPORT void SetPaveBlocks (const BOPDS_ListOfPaveBlock& theLPB);
+ void SetPaveBlocks (const BOPDS_ListOfPaveBlock& theLPB);
//! Selector
//! Clears the contents
- Standard_EXPORT void Clear();
+ void Clear();
//! Modifier
//! Empty contructor
BOPDS_IndexRange();
-Standard_EXPORT virtual ~BOPDS_IndexRange();
-
//! Modifier
//! Sets the first index <theI1> of the range
{
}
//=======================================================================
-//function : ~
-//purpose :
-//=======================================================================
- inline BOPDS_IndexRange::~BOPDS_IndexRange()
-{
-}
-//=======================================================================
//function : SetFirst
//purpose :
//=======================================================================
//! Empty contructor
BOPDS_Pave();
-Standard_EXPORT virtual ~BOPDS_Pave();
-
//! Modifier
//! Sets the index of vertex <theIndex>
myIndex=-1;
myParameter=99.;
}
-//=======================================================================
-//function : ~
-//purpose :
-//=======================================================================
- inline BOPDS_Pave::~BOPDS_Pave()
-{
-}
+
//=======================================================================
//function : SetIndex
//purpose :
+++ /dev/null
-// Created by: Peter KURNEV
-// 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 BOPTools_DataMapOfShapeSet_HeaderFile
-#define BOPTools_DataMapOfShapeSet_HeaderFile
-
-#include <TopoDS_Shape.hxx>
-#include <TopTools_ShapeMapHasher.hxx>
-#include <BOPTools_Set.hxx>
-#include <NCollection_DataMap.hxx>
-
-typedef NCollection_DataMap<TopoDS_Shape, BOPTools_Set, TopTools_ShapeMapHasher> BOPTools_DataMapOfShapeSet;
-typedef BOPTools_DataMapOfShapeSet::Iterator BOPTools_DataMapIteratorOfDataMapOfShapeSet;
-
-#endif
+++ /dev/null
-// Created by: Peter KURNEV
-// 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 _BOPTools_EdgeSet_HeaderFile
-#define _BOPTools_EdgeSet_HeaderFile
-
-#include <Standard.hxx>
-#include <Standard_DefineAlloc.hxx>
-#include <Standard_Handle.hxx>
-
-#include <NCollection_BaseAllocator.hxx>
-#include <Standard_Boolean.hxx>
-#include <TopoDS_Shape.hxx>
-#include <TopTools_MapOfShape.hxx>
-#include <TopTools_ListOfShape.hxx>
-class TopoDS_Shape;
-class TopoDS_Edge;
-
-
-
-class BOPTools_EdgeSet
-{
-public:
-
- DEFINE_STANDARD_ALLOC
-
-
- BOPTools_EdgeSet();
-virtual ~BOPTools_EdgeSet();
-
- BOPTools_EdgeSet(const Handle(NCollection_BaseAllocator)& theAllocator);
-
- void SetShape (const TopoDS_Shape& theS);
-
- const TopoDS_Shape& Shape() const;
-
- void AddEdge (const TopoDS_Edge& theEdge);
-
- Standard_EXPORT void AddEdges (const TopTools_ListOfShape& theLS);
-
- void AddEdges (const TopoDS_Shape& theFace);
-
- void Clear();
-
- void Get (TopTools_ListOfShape& theLS) const;
-
- Standard_Boolean Contains (const BOPTools_EdgeSet& theSet) const;
-
-
-
-
-protected:
-
-
-
- TopoDS_Shape myShape;
- TopTools_MapOfShape myMap;
- TopTools_ListOfShape myEdges;
-
-
-private:
-
-
-
-
-
-};
-
-
-#include <BOPTools_EdgeSet.lxx>
-
-
-
-
-
-#endif // _BOPTools_EdgeSet_HeaderFile
+++ /dev/null
-// Created by: Peter KURNEV
-// 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 <TopExp_Explorer.hxx>
-#include <TopoDS_Edge.hxx>
-#include <BRep_Tool.hxx>
-
-//=======================================================================
-//function :
-//purpose :
-//=======================================================================
- inline BOPTools_EdgeSet::BOPTools_EdgeSet()
-{
-}
-//=======================================================================
-//function :
-//purpose :
-//=======================================================================
- inline BOPTools_EdgeSet::BOPTools_EdgeSet(const Handle(NCollection_BaseAllocator)& theObj)
-:
- myMap(100, theObj),
- myEdges(theObj)
-{
-}
-//=======================================================================
-//function : ~
-//purpose :
-//=======================================================================
- inline BOPTools_EdgeSet::~BOPTools_EdgeSet()
-{
-}
-//=======================================================================
-//function : Clear
-//purpose :
-//=======================================================================
- inline void BOPTools_EdgeSet::Clear()
-{
- myMap.Clear();
- myEdges.Clear();
-}
-//=======================================================================
-//function : SetShape
-//purpose :
-//=======================================================================
- inline void BOPTools_EdgeSet::SetShape(const TopoDS_Shape& theShape)
-{
- myShape=theShape;
-}
-//=======================================================================
-//function : Shape
-//purpose :
-//=======================================================================
- inline const TopoDS_Shape& BOPTools_EdgeSet::Shape()const
-{
- return myShape;
-}
-//=======================================================================
-//function : AddEdge
-//purpose :
-//=======================================================================
- inline void BOPTools_EdgeSet::AddEdge(const TopoDS_Edge& theEdge)
-{
- if (!BRep_Tool::Degenerated(theEdge)){
- myEdges.Append(theEdge);
- myMap.Add(theEdge);
- }
-}
-//=======================================================================
-//function : AddEdges
-//purpose :
-//=======================================================================
- inline void BOPTools_EdgeSet::AddEdges(const TopTools_ListOfShape& theLS)
-{
- TopTools_ListIteratorOfListOfShape aIt;
- //
- aIt.Initialize(theLS);
- for (; aIt.More(); aIt.Next()) {
- const TopoDS_Edge& aE=(*(TopoDS_Edge*)&aIt.Value());
- AddEdge(aE);
- }
-}
-//=======================================================================
-//function : AddEdges
-//purpose :
-//=======================================================================
- inline void BOPTools_EdgeSet::AddEdges(const TopoDS_Shape& theFace)
-{
- TopExp_Explorer aExp(theFace, TopAbs_EDGE);
- for(; aExp.More(); aExp.Next()) {
- const TopoDS_Edge& aE=(*(TopoDS_Edge*)&aExp.Current());
- AddEdge(aE);
- }
-}
-//=======================================================================
-//function : Get
-//purpose :
-//=======================================================================
- inline void BOPTools_EdgeSet::Get(TopTools_ListOfShape& theLS)const
-{
- TopTools_ListIteratorOfListOfShape aIt;
- //
- aIt.Initialize(myEdges);
- for (; aIt.More(); aIt.Next()) {
- const TopoDS_Shape& aS=aIt.Value();
- theLS.Append(aS);
- }
-}
-//=======================================================================
-//function : Contains
-//purpose :
-//=======================================================================
- inline Standard_Boolean BOPTools_EdgeSet::Contains(const BOPTools_EdgeSet& theOther)const
-{
- Standard_Integer aNbEOther, aNbE;
- Standard_Boolean bRet;
- TopTools_ListIteratorOfListOfShape aIt;
- //
- aNbE=0;
- aNbEOther=theOther.myEdges.Extent();
- aIt.Initialize(theOther.myEdges);
- for (; aIt.More(); aIt.Next()) {
- const TopoDS_Shape& aS=aIt.Value();
- bRet=myMap.Contains(aS);
- if (!bRet) {
- return bRet;
- }
- ++aNbE;
- }
- bRet=(aNbE==aNbEOther);
- //
- return bRet;
-}
+++ /dev/null
-// Created by: Peter KURNEV
-// 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 BOPTools_ListOfEdgeSet_HeaderFile
-#define BOPTools_ListOfEdgeSet_HeaderFile
-
-#include <NCollection_List.hxx>
-#include <BOPTools_EdgeSet.hxx>
-
-typedef NCollection_List<BOPTools_EdgeSet> BOPTools_ListOfEdgeSet;
-typedef BOPTools_ListOfEdgeSet::Iterator BOPTools_ListIteratorOfListOfEdgeSet;
-
-
-#endif
+++ /dev/null
-// Created by: Peter KURNEV
-// 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 BOPTools_ListOfShapeSet_HeaderFile
-#define BOPTools_ListOfShapeSet_HeaderFile
-
-
-#include <NCollection_List.hxx>
-#include <BOPTools_ShapeSet.hxx>
-
-typedef NCollection_List<BOPTools_ShapeSet> BOPTools_ListOfShapeSet;
-typedef BOPTools_ListOfShapeSet::Iterator BOPTools_ListIteratorOfListOfShapeSet;
-
-
-#endif
+++ /dev/null
-// Created by: Peter KURNEV
-// 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 <BOPTools_ShapeSet.hxx>
-#include <TopoDS_Edge.hxx>
-#include <TopoDS_Shape.hxx>
+++ /dev/null
-// Created by: Peter KURNEV
-// 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 _BOPTools_ShapeSet_HeaderFile
-#define _BOPTools_ShapeSet_HeaderFile
-
-#include <Standard.hxx>
-#include <Standard_DefineAlloc.hxx>
-#include <Standard_Handle.hxx>
-
-#include <NCollection_BaseAllocator.hxx>
-#include <Standard_Boolean.hxx>
-#include <TopAbs_ShapeEnum.hxx>
-#include <TopoDS_Shape.hxx>
-#include <TopTools_MapOfOrientedShape.hxx>
-#include <TopTools_ListOfShape.hxx>
-class TopoDS_Shape;
-class TopoDS_Edge;
-
-
-//! Implementation of some formal
-//! opereations with a set of shapes
-class BOPTools_ShapeSet
-{
-public:
-
- DEFINE_STANDARD_ALLOC
-
-
- BOPTools_ShapeSet();
-virtual ~BOPTools_ShapeSet();
-
- BOPTools_ShapeSet(const Handle(NCollection_BaseAllocator)& theAllocator);
-
- void SetShape (const TopoDS_Shape& theS);
-
- const TopoDS_Shape& Shape() const;
-
- Standard_EXPORT void Add (const TopTools_ListOfShape& theLS);
-
- void Add (const TopoDS_Shape& theShape);
-
- Standard_EXPORT void Add (const TopoDS_Shape& theShape, const TopAbs_ShapeEnum theType);
-
- void AddEdge (const TopoDS_Edge& theEdge);
-
- Standard_EXPORT void AddEdges (const TopTools_ListOfShape& theLS);
-
- void AddEdges (const TopoDS_Shape& theFace);
-
- void Subtract (const BOPTools_ShapeSet& theSet);
- void operator -= (const BOPTools_ShapeSet& theSet)
-{
- Subtract(theSet);
-}
-
- void Clear();
-
- void Get (TopTools_ListOfShape& theLS) const;
-
- Standard_Boolean Contains (const BOPTools_ShapeSet& theSet) const;
-
-
-
-
-protected:
-
-
-
- TopoDS_Shape myShape;
- TopTools_MapOfOrientedShape myMap;
-
-
-private:
-
-
-
-
-
-};
-
-
-#include <BOPTools_ShapeSet.lxx>
-
-
-
-
-
-#endif // _BOPTools_ShapeSet_HeaderFile
+++ /dev/null
-// Created by: Peter KURNEV
-// 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 <TopExp_Explorer.hxx>
-#include <TopoDS_Edge.hxx>
-#include <BRep_Tool.hxx>
-
-//=======================================================================
-//function :
-//purpose :
-//=======================================================================
- inline BOPTools_ShapeSet::BOPTools_ShapeSet()
-{
-}
-//=======================================================================
-//function :
-//purpose :
-//=======================================================================
- inline BOPTools_ShapeSet::BOPTools_ShapeSet(const Handle(NCollection_BaseAllocator)& theObj)
-:
- myMap(100, theObj)
-{
-}
-//=======================================================================
-//function : ~
-//purpose :
-//=======================================================================
- inline BOPTools_ShapeSet::~BOPTools_ShapeSet()
-{
-}
-//=======================================================================
-//function : Clear
-//purpose :
-//=======================================================================
- inline void BOPTools_ShapeSet::Clear()
-{
- myMap.Clear();
-}
-//=======================================================================
-//function : SetShape
-//purpose :
-//=======================================================================
- inline void BOPTools_ShapeSet::SetShape(const TopoDS_Shape& theShape)
-{
- myShape=theShape;
-}
-//=======================================================================
-//function : Shape
-//purpose :
-//=======================================================================
- inline const TopoDS_Shape& BOPTools_ShapeSet::Shape()const
-{
- return myShape;
-}
-
-//=======================================================================
-//function : Add
-//purpose :
-//=======================================================================
- inline void BOPTools_ShapeSet::Add(const TopoDS_Shape& theShape)
-{
- myMap.Add(theShape);
-}
-//=======================================================================
-//function : Add
-//purpose :
-//=======================================================================
- inline void BOPTools_ShapeSet::Add(const TopoDS_Shape& theShape,
- const TopAbs_ShapeEnum theType)
-{
- TopExp_Explorer aExp(theShape, theType);
- for(; aExp.More(); aExp.Next()) {
- const TopoDS_Shape& aS=aExp.Current();
- myMap.Add(aS);
- }
-}
-//=======================================================================
-//function : Add
-//purpose :
-//=======================================================================
- inline void BOPTools_ShapeSet::Add(const TopTools_ListOfShape& theLS)
-{
- TopTools_ListIteratorOfListOfShape aIt;
- //
- aIt.Init(theLS);
- for (; aIt.More(); aIt.Next()) {
- const TopoDS_Shape& aS=aIt.Value();
- myMap.Add(aS);
- }
-}
-//=======================================================================
-//function : AddEdge
-//purpose :
-//=======================================================================
- inline void BOPTools_ShapeSet::AddEdge(const TopoDS_Edge& theEdge)
-{
- if (!BRep_Tool::Degenerated(theEdge)){
- myMap.Add(theEdge);
- }
-}
-//=======================================================================
-//function : AddEdges
-//purpose :
-//=======================================================================
- inline void BOPTools_ShapeSet::AddEdges(const TopTools_ListOfShape& theLS)
-{
- TopTools_ListIteratorOfListOfShape aIt;
- //
- aIt.Initialize(theLS);
- for (; aIt.More(); aIt.Next()) {
- const TopoDS_Edge& aE=(*(TopoDS_Edge*)&aIt.Value());
- AddEdge(aE);
- }
-}
-//=======================================================================
-//function : AddEdges
-//purpose :
-//=======================================================================
- inline void BOPTools_ShapeSet::AddEdges(const TopoDS_Shape& theFace)
-{
- TopExp_Explorer aExp(theFace, TopAbs_EDGE);
- for(; aExp.More(); aExp.Next()) {
- const TopoDS_Edge& aE=(*(TopoDS_Edge*)&aExp.Current());
- AddEdge(aE);
- }
-}
-//=======================================================================
-//function : Get
-//purpose :
-//=======================================================================
- inline void BOPTools_ShapeSet::Get(TopTools_ListOfShape& theLS)const
-{
- TopTools_MapIteratorOfMapOfOrientedShape aIt;
- //
- aIt.Initialize(myMap);
- for (; aIt.More(); aIt.Next()) {
- const TopoDS_Shape& aS=aIt.Value();
- theLS.Append(aS);
- }
-}
-//=======================================================================
-//function : Contains
-//purpose :
-//=======================================================================
- inline Standard_Boolean BOPTools_ShapeSet::Contains(const BOPTools_ShapeSet& theOther)const
-{
- Standard_Boolean bRet;
- TopTools_MapIteratorOfMapOfOrientedShape aIt;
- //
- aIt.Initialize(theOther.myMap);
- for (; aIt.More(); aIt.Next()) {
- const TopoDS_Shape& aS=aIt.Value();
- bRet=myMap.Contains(aS);
- if (!bRet) {
- break;
- }
- }
- return bRet;
-}
-//=======================================================================
-//function : Subtract
-//purpose :
-//=======================================================================
- inline void BOPTools_ShapeSet::Subtract(const BOPTools_ShapeSet& theOther)
-{
- TopTools_MapIteratorOfMapOfOrientedShape aIt;
- //
- aIt.Initialize(theOther.myMap);
- for (; aIt.More(); aIt.Next()) {
- const TopoDS_Shape& aS=aIt.Value();
- if (myMap.Contains(aS)) {
- myMap.Remove(aS);
- }
- }
-}
BOPTools_BoxBndTree.hxx
BOPTools_ConnexityBlock.hxx
BOPTools_CoupleOfShape.hxx
-BOPTools_DataMapOfShapeSet.hxx
-BOPTools_EdgeSet.hxx
-BOPTools_EdgeSet.lxx
BOPTools_IndexedDataMapOfSetShape.hxx
BOPTools_ListOfConnexityBlock.hxx
BOPTools_ListOfCoupleOfShape.hxx
-BOPTools_ListOfEdgeSet.hxx
-BOPTools_ListOfShapeSet.hxx
BOPTools_MapOfSet.hxx
BOPTools_Parallel.hxx
BOPTools_Set.cxx
BOPTools_Set.hxx
BOPTools_SetMapHasher.hxx
BOPTools_SetMapHasher.lxx
-BOPTools_ShapeSet.cxx
-BOPTools_ShapeSet.hxx
-BOPTools_ShapeSet.lxx
static Approx_Status WhatStatus (const BRepApprox_TheMultiLineOfApprox& ML, const Standard_Integer I1, const Standard_Integer I2);
//! Dump of the current multi-line.
- Standard_EXPORT static void Dump (const BRepApprox_TheMultiLineOfApprox& ML);
+ static void Dump (const BRepApprox_TheMultiLineOfApprox& ML);
Standard_Real Parameter() const;
//! Returns True if an intersection is computed.
- Standard_EXPORT Standard_Boolean HasIntersection() const;
+ Standard_Boolean HasIntersection() const;
//! Returns the intersecting algorithm.
BRepClass3d_Intersector3d& Intersector();
DEFINE_STANDARD_ALLOC
//! computes the distance between two Shapes ( face edge vertex). <br>
- Standard_EXPORT BRepExtrema_DistanceSS(const TopoDS_Shape& S1, const TopoDS_Shape& S2,
+ BRepExtrema_DistanceSS(const TopoDS_Shape& S1, const TopoDS_Shape& S2,
const Bnd_Box& B1, const Bnd_Box& B2,
const Standard_Real DstRef,
const Extrema_ExtFlag F = Extrema_ExtFlag_MINMAX,
//! Parameter theDeflection is used to specify a maximum deviation <br>
//! of extreme distances from the minimum one. <br>
//! Default value is Precision::Confusion(). <br>
- Standard_EXPORT BRepExtrema_DistanceSS(const TopoDS_Shape& S1, const TopoDS_Shape& S2,
+ BRepExtrema_DistanceSS(const TopoDS_Shape& S1, const TopoDS_Shape& S2,
const Bnd_Box& B1, const Bnd_Box& B2,
const Standard_Real DstRef, const Standard_Real aDeflection,
const Extrema_ExtFlag F = Extrema_ExtFlag_MINMAX,
Perform(S1, S2, B1, B2);
}
//! True if the distance has been computed <br>
- Standard_EXPORT Standard_Boolean IsDone() const
+ Standard_Boolean IsDone() const
{
return myModif;
}
//! returns the distance value <br>
- Standard_EXPORT Standard_Real DistValue() const
+ Standard_Real DistValue() const
{
return myDstRef;
}
//! returns the list of solutions on the first shape <br>
- Standard_EXPORT const BRepExtrema_SeqOfSolution& Seq1Value() const
+ const BRepExtrema_SeqOfSolution& Seq1Value() const
{
return SeqSolShape1;
}
//! returns the list of solutions on the second shape <br>
- Standard_EXPORT const BRepExtrema_SeqOfSolution& Seq2Value() const
+ const BRepExtrema_SeqOfSolution& Seq2Value() const
{
return SeqSolShape2;
}
//! sets the flag controlling minimum and maximum search
- Standard_EXPORT void SetFlag(const Extrema_ExtFlag F)
+ void SetFlag(const Extrema_ExtFlag F)
{
myFlag = F;
}
//! sets the flag controlling ...
- Standard_EXPORT void SetAlgo(const Extrema_ExtAlgo A)
+ void SetAlgo(const Extrema_ExtAlgo A)
{
myAlgo = A;
}
DEFINE_STANDARD_ALLOC
- Standard_EXPORT BRepExtrema_ExtCC()
+ BRepExtrema_ExtCC ()
{
}
//! It calculates all the distances. <br>
//! An exception is raised if the fields have not been initialized. <br>
Standard_EXPORT void Perform(const TopoDS_Edge& E1);
//! True if the distances are found. <br>
- Standard_EXPORT Standard_Boolean IsDone() const
+ Standard_Boolean IsDone() const
{
return myExtCC.IsDone();
}
//! Returns the number of extremum distances. <br>
- Standard_EXPORT Standard_Integer NbExt() const
+ Standard_Integer NbExt() const
{
return myExtCC.NbExt();
}
//! Returns True if E1 and E2 are parallel. <br>
- Standard_EXPORT Standard_Boolean IsParallel() const
+ Standard_Boolean IsParallel() const
{
return myExtCC.IsParallel();
}
//! Returns the value of the <N>th extremum square distance. <br>
- Standard_EXPORT Standard_Real SquareDistance(const Standard_Integer N) const
+ Standard_Real SquareDistance(const Standard_Integer N) const
{
return myExtCC.SquareDistance(N);
}
DEFINE_STANDARD_ALLOC
- Standard_EXPORT BRepExtrema_ExtCF()
+ BRepExtrema_ExtCF()
{
}
//! It calculates all the distances. <br>
//! Be careful: this method uses the Face only for classify not for the fields. <br>
Standard_EXPORT void Perform(const TopoDS_Edge& E,const TopoDS_Face& F);
//! True if the distances are found. <br>
- Standard_EXPORT Standard_Boolean IsDone() const
+ Standard_Boolean IsDone() const
{
return myExtCS.IsDone();
}
//! Returns the number of extremum distances. <br>
- Standard_EXPORT Standard_Integer NbExt() const
+ Standard_Integer NbExt() const
{
return mySqDist.Length();
}
//! Returns the value of the <N>th extremum square distance. <br>
- Standard_EXPORT Standard_Real SquareDistance(const Standard_Integer N) const
+ Standard_Real SquareDistance(const Standard_Integer N) const
{
return mySqDist.Value(N);
}
//! Returns True if the curve is on a parallel surface. <br>
- Standard_EXPORT Standard_Boolean IsParallel() const
+ Standard_Boolean IsParallel() const
{
return myExtCS.IsParallel();
}
//! Returns the parameters on the Edge of the <N>th extremum distance. <br>
- Standard_EXPORT Standard_Real ParameterOnEdge(const Standard_Integer N) const
+ Standard_Real ParameterOnEdge(const Standard_Integer N) const
{
return myPointsOnC.Value(N).Parameter();
}
//! Returns the parameters on the Face of the <N>th extremum distance. <br>
- Standard_EXPORT void ParameterOnFace(const Standard_Integer N,Standard_Real& U,Standard_Real& V) const
+ void ParameterOnFace(const Standard_Integer N,Standard_Real& U,Standard_Real& V) const
{
myPointsOnS.Value(N).Parameter(U, V);
}
//! Returns the Point of the <N>th extremum distance. <br>
- Standard_EXPORT gp_Pnt PointOnEdge(const Standard_Integer N) const
+ gp_Pnt PointOnEdge(const Standard_Integer N) const
{
return myPointsOnC.Value(N).Value();
}
//! Returns the Point of the <N>th extremum distance. <br>
- Standard_EXPORT gp_Pnt PointOnFace(const Standard_Integer N) const
+ gp_Pnt PointOnFace(const Standard_Integer N) const
{
return myPointsOnS.Value(N).Value();
}
DEFINE_STANDARD_ALLOC
- Standard_EXPORT BRepExtrema_ExtFF()
+ BRepExtrema_ExtFF()
{
}
//! It calculates all the distances. <br>
//! Be careful: this method uses the Face F2 only for classify, not for the fields. <br>
Standard_EXPORT void Perform(const TopoDS_Face& F1,const TopoDS_Face& F2);
//! True if the distances are found. <br>
- Standard_EXPORT Standard_Boolean IsDone() const
+ Standard_Boolean IsDone() const
{
return myExtSS.IsDone();
}
//! Returns True if the surfaces are parallel. <br>
- Standard_EXPORT Standard_Boolean IsParallel() const
+ Standard_Boolean IsParallel() const
{
return myExtSS.IsParallel();
}
//! Returns the number of extremum distances. <br>
- Standard_EXPORT Standard_Integer NbExt() const
+ Standard_Integer NbExt() const
{
return mySqDist.Length();
}
//! Returns the value of the <N>th extremum square distance. <br>
- Standard_EXPORT Standard_Real SquareDistance(const Standard_Integer N) const
+ Standard_Real SquareDistance(const Standard_Integer N) const
{
return mySqDist.Value(N);
}
//! Returns the parameters on the Face F1 of the <N>th extremum distance. <br>
- Standard_EXPORT void ParameterOnFace1(const Standard_Integer N,Standard_Real& U,Standard_Real& V) const
+ void ParameterOnFace1(const Standard_Integer N,Standard_Real& U,Standard_Real& V) const
{
myPointsOnS1.Value(N).Parameter(U, V);
}
//! Returns the parameters on the Face F2 of the <N>th extremum distance. <br>
- Standard_EXPORT void ParameterOnFace2(const Standard_Integer N,Standard_Real& U,Standard_Real& V) const
+ void ParameterOnFace2(const Standard_Integer N,Standard_Real& U,Standard_Real& V) const
{
myPointsOnS2.Value(N).Parameter(U, V);
}
//! Returns the Point of the <N>th extremum distance. <br>
- Standard_EXPORT gp_Pnt PointOnFace1(const Standard_Integer N) const
+ gp_Pnt PointOnFace1(const Standard_Integer N) const
{
return myPointsOnS1.Value(N).Value();
}
//! Returns the Point of the <N>th extremum distance. <br>
- Standard_EXPORT gp_Pnt PointOnFace2(const Standard_Integer N) const
+ gp_Pnt PointOnFace2(const Standard_Integer N) const
{
return myPointsOnS2.Value(N).Value();
}
DEFINE_STANDARD_ALLOC
- Standard_EXPORT BRepExtrema_ExtPC()
+ BRepExtrema_ExtPC()
{
}
//! It calculates all the distances. <br>
//! An exception is raised if the fields have not been initialized. <br>
Standard_EXPORT void Perform(const TopoDS_Vertex& V);
//! True if the distances are found. <br>
- Standard_EXPORT Standard_Boolean IsDone() const
+ Standard_Boolean IsDone() const
{
return myExtPC.IsDone();
}
//! Returns the number of extremum distances. <br>
- Standard_EXPORT Standard_Integer NbExt() const
+ Standard_Integer NbExt() const
{
return myExtPC.NbExt();
}
//! Returns True if the <N>th extremum distance is a minimum. <br>
- Standard_EXPORT Standard_Boolean IsMin(const Standard_Integer N) const
+ Standard_Boolean IsMin(const Standard_Integer N) const
{
return myExtPC.IsMin(N);
}
//! Returns the value of the <N>th extremum square distance. <br>
- Standard_EXPORT Standard_Real SquareDistance(const Standard_Integer N) const
+ Standard_Real SquareDistance(const Standard_Integer N) const
{
return myExtPC.SquareDistance(N);
}
//! Returns the parameter on the edge of the <N>th extremum distance. <br>
- Standard_EXPORT Standard_Real Parameter(const Standard_Integer N) const
+ Standard_Real Parameter(const Standard_Integer N) const
{
return myExtPC.Point(N).Parameter();
}
//! Returns the Point of the <N>th extremum distance. <br>
- Standard_EXPORT gp_Pnt Point(const Standard_Integer N) const
+ gp_Pnt Point(const Standard_Integer N) const
{
return myExtPC.Point(N).Value();
}
//! of parameter FirstParameter <pnt1> and <br>
//! dist2 is a square distance between <P> and the point <br>
//! of parameter LastParameter <pnt2>. <br>
- Standard_EXPORT void TrimmedSquareDistances(Standard_Real& dist1,Standard_Real& dist2,gp_Pnt& pnt1,gp_Pnt& pnt2) const
+ void TrimmedSquareDistances(Standard_Real& dist1,Standard_Real& dist2,gp_Pnt& pnt1,gp_Pnt& pnt2) const
{
myExtPC.TrimmedSquareDistances(dist1,dist2,pnt1,pnt2);
}
DEFINE_STANDARD_ALLOC
- Standard_EXPORT BRepExtrema_ExtPF()
+ BRepExtrema_ExtPF()
{}
//! It calculates all the distances. <br>
Standard_EXPORT BRepExtrema_ExtPF(const TopoDS_Vertex& TheVertex,const TopoDS_Face& TheFace,
//! Be careful: this method uses the Face only for classify not for the fields. <br>
Standard_EXPORT void Perform(const TopoDS_Vertex& TheVertex,const TopoDS_Face& TheFace);
//! True if the distances are found. <br>
- Standard_EXPORT Standard_Boolean IsDone() const
+ Standard_Boolean IsDone() const
{
return myExtPS.IsDone();
}
//! Returns the number of extremum distances. <br>
- Standard_EXPORT Standard_Integer NbExt() const
+ Standard_Integer NbExt() const
{
return myPoints.Length();
}
//! Returns the value of the <N>th extremum square distance. <br>
- Standard_EXPORT Standard_Real SquareDistance(const Standard_Integer N) const
+ Standard_Real SquareDistance(const Standard_Integer N) const
{
return mySqDist.Value(N);
}
//! Returns the parameters on the Face of the <N>th extremum distance. <br>
- Standard_EXPORT void Parameter(const Standard_Integer N,Standard_Real& U,Standard_Real& V) const
+ void Parameter(const Standard_Integer N,Standard_Real& U,Standard_Real& V) const
{
myPoints.Value(N).Parameter(U, V);
}
//! Returns the Point of the <N>th extremum distance. <br>
- Standard_EXPORT gp_Pnt Point(const Standard_Integer N) const
+ gp_Pnt Point(const Standard_Integer N) const
{
return myPoints.Value(N).Value();
}
- Standard_EXPORT void SetFlag(const Extrema_ExtFlag F)
+ void SetFlag(const Extrema_ExtFlag F)
{
myExtPS.SetFlag(F);
}
- Standard_EXPORT void SetAlgo(const Extrema_ExtAlgo A)
+ void SetAlgo(const Extrema_ExtAlgo A)
{
myExtPS.SetAlgo(A);
}
//! operation. If it is inside the basis shape, a local
//! operation such as glueing can be performed.
//! Initializes the draft prism class
- BRepFeat_MakeDPrism(const TopoDS_Shape& Sbase, const TopoDS_Face& Pbase, const TopoDS_Face& Skface, const Standard_Real Angle, const Standard_Integer Fuse, const Standard_Boolean Modify);
+ BRepFeat_MakeDPrism (const TopoDS_Shape& Sbase, const TopoDS_Face& Pbase, const TopoDS_Face& Skface, const Standard_Real Angle, const Standard_Integer Fuse, const Standard_Boolean Modify)
+ {
+ Init (Sbase, Pbase, Skface, Angle, Fuse, Modify);
+ }
- Standard_EXPORT BRepFeat_MakeDPrism();
+ BRepFeat_MakeDPrism()
+ {
+ }
//! Initializes this algorithm for building draft prisms along surfaces.
//! A face Pbase is selected in the basis shape Sbase to
};
-
-#include <BRepFeat_MakeDPrism.lxx>
-
-
-
-
-
#endif // _BRepFeat_MakeDPrism_HeaderFile
+++ /dev/null
-// Created on: 1996-09-03
-// Created by: Jacques GOUSSARD
-// Copyright (c) 1996-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.
-
-//=======================================================================
-//function : BRepFeat_MakePipe
-//purpose :
-//=======================================================================
-
-inline BRepFeat_MakeDPrism::BRepFeat_MakeDPrism () {}
-
-
-//=======================================================================
-//function : BRepFeat_MakePipe
-//purpose :
-//=======================================================================
-
-inline BRepFeat_MakeDPrism::BRepFeat_MakeDPrism (const TopoDS_Shape& Sbase,
- const TopoDS_Face& Pbase,
- const TopoDS_Face& Skface,
- const Standard_Real Angle,
- const Standard_Integer Fuse,
- const Standard_Boolean Modify)
-
-{
- Init(Sbase,Pbase,Skface,Angle,Fuse,Modify);
-}
-
//! Add splitting edges or wires for whole initial shape
//! withot additional specification edge->face, edge->edge
//! This method puts edge on the corresponding faces from initial shape
- Standard_EXPORT Standard_Boolean Add(const TopTools_SequenceOfShape& theEdges);
+ Standard_Boolean Add(const TopTools_SequenceOfShape& theEdges);
//! Initializes the process on the shape <S>.
void Init (const TopoDS_Shape& S);
BRepFeat_MakeCylindricalHole.lxx
BRepFeat_MakeDPrism.cxx
BRepFeat_MakeDPrism.hxx
-BRepFeat_MakeDPrism.lxx
BRepFeat_MakeLinearForm.cxx
BRepFeat_MakeLinearForm.hxx
BRepFeat_MakeLinearForm.lxx
//! Empty constructor.
- Standard_EXPORT BRepGProp_VinertGK();
+ BRepGProp_VinertGK()
+ : myErrorReached (0.), myAbsolutError (0.)
+ {
+ }
//! Constructor. Computes the global properties of a region of
//! 3D space delimited with the naturally restricted surface
Standard_EXPORT BRepGProp_VinertGK(BRepGProp_Face& theSurface, BRepGProp_Domain& theDomain, const gp_Pln& thePlane, const gp_Pnt& theLocation, const Standard_Real theTolerance = 0.001, const Standard_Boolean theCGFlag = Standard_False, const Standard_Boolean theIFlag = Standard_False);
//! Sets the vertex that delimit 3D closed region of space.
- void SetLocation (const gp_Pnt& theLocation);
+ void SetLocation (const gp_Pnt& theLocation)
+ {
+ loc = theLocation;
+ }
//! Computes the global properties of a region of 3D space
//! delimited with the naturally restricted surface and the
Standard_EXPORT Standard_Real Perform (BRepGProp_Face& theSurface, BRepGProp_Domain& theDomain, const gp_Pln& thePlane, const Standard_Real theTolerance = 0.001, const Standard_Boolean theCGFlag = Standard_False, const Standard_Boolean theIFlag = Standard_False);
//! Returns the relative reached computation error.
- Standard_Real GetErrorReached() const;
+ Standard_Real GetErrorReached () const
+ {
+ return myErrorReached;
+ }
//! Returns the absolut reached computation error.
Standard_Real GetAbsolutError() const;
Standard_Real myErrorReached;
Standard_Real myAbsolutError;
-
-
};
-#include <BRepGProp_VinertGK.lxx>
-
-
-
-
-
#endif // _BRepGProp_VinertGK_HeaderFile
+++ /dev/null
-// Created on: 2005-12-21
-// Created by: Sergey KHROMOV
-// Copyright (c) 2005-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.
-
-//==========================================================================
-//function : Constructor
-// Empty constructor.
-//==========================================================================
-
-inline BRepGProp_VinertGK::BRepGProp_VinertGK()
- : myErrorReached(0.),
- myAbsolutError(0.)
-{
-}
-
-//==========================================================================
-//function : SetLocation
-// Sets the vertex that delimit 3D closed region of space.
-//==========================================================================
-
-inline void BRepGProp_VinertGK::SetLocation(const gp_Pnt &theVertex)
-{
- loc = theVertex;
-}
-
-//==========================================================================
-//function : GetErrorReached
-// Returns the reached Error.
-//==========================================================================
-
-inline Standard_Real BRepGProp_VinertGK::GetErrorReached() const
-{
- return myErrorReached;
-}
BRepGProp_Vinert.hxx
BRepGProp_VinertGK.cxx
BRepGProp_VinertGK.hxx
-BRepGProp_VinertGK.lxx
Standard_EXPORT BRepMesh_Classifier();
//! Destructor.
- Standard_EXPORT virtual ~BRepMesh_Classifier()
+ virtual ~BRepMesh_Classifier()
{
Destroy();
}
//! Setup meshing algorithm by name. <br>
//! Returns TRUE if requested tool is available. <br>
//! On fail Factory will continue to use previous algo.
- Standard_EXPORT Standard_Boolean SetDefaultName(const TCollection_AsciiString& theName)
+ Standard_Boolean SetDefaultName(const TCollection_AsciiString& theName)
{
return SetDefault(theName, myFunctionName);
}
//! Advanced function. Changes function name to retrieve from plugin. <br>
//! Returns TRUE if requested tool is available. <br>
//! On fail Factory will continue to use previous algo.
- Standard_EXPORT Standard_Boolean SetFunctionName(const TCollection_AsciiString& theFuncName)
+ Standard_Boolean SetFunctionName(const TCollection_AsciiString& theFuncName)
{
return SetDefault(myDefaultName, theFuncName);
}
Standard_EXPORT void Add (const gp_XY& thePnt);
//! Update the box by a point.
- Standard_EXPORT void Add (const gp_Pnt2d& thePnt);
+ void Add (const gp_Pnt2d& thePnt);
//! Update the box by another box.
- void Add (const Bnd_B2f& theBox);
+ void Add (const Bnd_B2f& theBox);
//! Query a box corner: (Center - HSize). You must make sure that
//! the box is NOT VOID (see IsVoid()), otherwise the method returns
//! The result is either:
//! - a gp_Pnt point for a curve in 3D space, or
//! - a gp_Pnt2d point for a curve in 2D space.
- Standard_EXPORT static gp_Pnt Value (const Standard_Real U, const gp_Lin& L);
+ static gp_Pnt Value (const Standard_Real U, const gp_Lin& L);
- static gp_Pnt Value (const Standard_Real U, const gp_Circ& C);
+ static gp_Pnt Value (const Standard_Real U, const gp_Circ& C);
- static gp_Pnt Value (const Standard_Real U, const gp_Elips& E);
+ static gp_Pnt Value (const Standard_Real U, const gp_Elips& E);
- static gp_Pnt Value (const Standard_Real U, const gp_Hypr& H);
-
- static gp_Pnt Value (const Standard_Real U, const gp_Parab& Prb);
+ static gp_Pnt Value (const Standard_Real U, const gp_Hypr& H);
+ static gp_Pnt Value (const Standard_Real U, const gp_Parab& Prb);
//! For elementary curves (lines, circles and conics) from the
//! gp package, computes:
//! The results P and V1 are either:
//! - a gp_Pnt point and a gp_Vec vector, for a curve in 3D space, or
//! - a gp_Pnt2d point and a gp_Vec2d vector, for a curve in 2D space.
- Standard_EXPORT static void D1 (const Standard_Real U, const gp_Lin& L, gp_Pnt& P, gp_Vec& V1);
+ static void D1 (const Standard_Real U, const gp_Lin& L, gp_Pnt& P, gp_Vec& V1);
- static void D1 (const Standard_Real U, const gp_Circ& C, gp_Pnt& P, gp_Vec& V1);
+ static void D1 (const Standard_Real U, const gp_Circ& C, gp_Pnt& P, gp_Vec& V1);
- static void D1 (const Standard_Real U, const gp_Elips& E, gp_Pnt& P, gp_Vec& V1);
+ static void D1 (const Standard_Real U, const gp_Elips& E, gp_Pnt& P, gp_Vec& V1);
- static void D1 (const Standard_Real U, const gp_Hypr& H, gp_Pnt& P, gp_Vec& V1);
+ static void D1 (const Standard_Real U, const gp_Hypr& H, gp_Pnt& P, gp_Vec& V1);
- static void D1 (const Standard_Real U, const gp_Parab& Prb, gp_Pnt& P, gp_Vec& V1);
+ static void D1 (const Standard_Real U, const gp_Parab& Prb, gp_Pnt& P, gp_Vec& V1);
//! For elementary curves (circles and conics) from the gp
//! package, computes:
//! The results, P, V1 and V2, are either:
//! - a gp_Pnt point and two gp_Vec vectors, for a curve in 3D space, or
//! - a gp_Pnt2d point and two gp_Vec2d vectors, for a curve in 2D space.
- Standard_EXPORT static void D2 (const Standard_Real U, const gp_Circ& C, gp_Pnt& P, gp_Vec& V1, gp_Vec& V2);
+ static void D2 (const Standard_Real U, const gp_Circ& C, gp_Pnt& P, gp_Vec& V1, gp_Vec& V2);
- static void D2 (const Standard_Real U, const gp_Elips& E, gp_Pnt& P, gp_Vec& V1, gp_Vec& V2);
+ static void D2 (const Standard_Real U, const gp_Elips& E, gp_Pnt& P, gp_Vec& V1, gp_Vec& V2);
- static void D2 (const Standard_Real U, const gp_Hypr& H, gp_Pnt& P, gp_Vec& V1, gp_Vec& V2);
+ static void D2 (const Standard_Real U, const gp_Hypr& H, gp_Pnt& P, gp_Vec& V1, gp_Vec& V2);
- static void D2 (const Standard_Real U, const gp_Parab& Prb, gp_Pnt& P, gp_Vec& V1, gp_Vec& V2);
+ static void D2 (const Standard_Real U, const gp_Parab& Prb, gp_Pnt& P, gp_Vec& V1, gp_Vec& V2);
//! For elementary curves (circles, ellipses and hyperbolae)
//! from the gp package, computes:
//! The results, P, V1, V2 and V3, are either:
//! - a gp_Pnt point and three gp_Vec vectors, for a curve in 3D space, or
//! - a gp_Pnt2d point and three gp_Vec2d vectors, for a curve in 2D space.
- Standard_EXPORT static void D3 (const Standard_Real U, const gp_Circ& C, gp_Pnt& P, gp_Vec& V1, gp_Vec& V2, gp_Vec& V3);
-
- static void D3 (const Standard_Real U, const gp_Elips& E, gp_Pnt& P, gp_Vec& V1, gp_Vec& V2, gp_Vec& V3);
+ static void D3 (const Standard_Real U, const gp_Circ& C, gp_Pnt& P, gp_Vec& V1, gp_Vec& V2, gp_Vec& V3);
- Standard_EXPORT static void D3 (const Standard_Real U, const gp_Hypr& H, gp_Pnt& P, gp_Vec& V1, gp_Vec& V2, gp_Vec& V3);
+ static void D3 (const Standard_Real U, const gp_Elips& E, gp_Pnt& P, gp_Vec& V1, gp_Vec& V2, gp_Vec& V3);
+ static void D3 (const Standard_Real U, const gp_Hypr& H, gp_Pnt& P, gp_Vec& V1, gp_Vec& V2, gp_Vec& V3);
//! For elementary curves (lines, circles and conics) from
//! the gp package, computes the vector corresponding to
//! - a gp_Vec2d vector for a curve in 2D space.
//! In the following functions N is the order of derivation
//! and should be greater than 0
- Standard_EXPORT static gp_Vec DN (const Standard_Real U, const gp_Lin& L, const Standard_Integer N);
-
- static gp_Vec DN (const Standard_Real U, const gp_Circ& C, const Standard_Integer N);
-
- static gp_Vec DN (const Standard_Real U, const gp_Elips& E, const Standard_Integer N);
-
- static gp_Vec DN (const Standard_Real U, const gp_Hypr& H, const Standard_Integer N);
-
- static gp_Vec DN (const Standard_Real U, const gp_Parab& Prb, const Standard_Integer N);
-
- static gp_Pnt2d Value (const Standard_Real U, const gp_Lin2d& L);
-
- static gp_Pnt2d Value (const Standard_Real U, const gp_Circ2d& C);
-
- static gp_Pnt2d Value (const Standard_Real U, const gp_Elips2d& E);
-
- static gp_Pnt2d Value (const Standard_Real U, const gp_Hypr2d& H);
-
- static gp_Pnt2d Value (const Standard_Real U, const gp_Parab2d& Prb);
-
- static void D1 (const Standard_Real U, const gp_Lin2d& L, gp_Pnt2d& P, gp_Vec2d& V1);
+ static gp_Vec DN (const Standard_Real U, const gp_Lin& L, const Standard_Integer N);
- static void D1 (const Standard_Real U, const gp_Circ2d& C, gp_Pnt2d& P, gp_Vec2d& V1);
+ static gp_Vec DN (const Standard_Real U, const gp_Circ& C, const Standard_Integer N);
- static void D1 (const Standard_Real U, const gp_Elips2d& E, gp_Pnt2d& P, gp_Vec2d& V1);
+ static gp_Vec DN (const Standard_Real U, const gp_Elips& E, const Standard_Integer N);
- static void D1 (const Standard_Real U, const gp_Hypr2d& H, gp_Pnt2d& P, gp_Vec2d& V1);
+ static gp_Vec DN (const Standard_Real U, const gp_Hypr& H, const Standard_Integer N);
- static void D1 (const Standard_Real U, const gp_Parab2d& Prb, gp_Pnt2d& P, gp_Vec2d& V1);
+ static gp_Vec DN (const Standard_Real U, const gp_Parab& Prb, const Standard_Integer N);
- static void D2 (const Standard_Real U, const gp_Circ2d& C, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2);
+ static gp_Pnt2d Value (const Standard_Real U, const gp_Lin2d& L);
- static void D2 (const Standard_Real U, const gp_Elips2d& E, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2);
+ static gp_Pnt2d Value (const Standard_Real U, const gp_Circ2d& C);
- static void D2 (const Standard_Real U, const gp_Hypr2d& H, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2);
+ static gp_Pnt2d Value (const Standard_Real U, const gp_Elips2d& E);
- static void D2 (const Standard_Real U, const gp_Parab2d& Prb, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2);
+ static gp_Pnt2d Value (const Standard_Real U, const gp_Hypr2d& H);
- static void D3 (const Standard_Real U, const gp_Circ2d& C, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2, gp_Vec2d& V3);
-
- static void D3 (const Standard_Real U, const gp_Elips2d& E, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2, gp_Vec2d& V3);
+ static gp_Pnt2d Value (const Standard_Real U, const gp_Parab2d& Prb);
+ static void D1 (const Standard_Real U, const gp_Lin2d& L, gp_Pnt2d& P, gp_Vec2d& V1);
+
+ static void D1 (const Standard_Real U, const gp_Circ2d& C, gp_Pnt2d& P, gp_Vec2d& V1);
+
+ static void D1 (const Standard_Real U, const gp_Elips2d& E, gp_Pnt2d& P, gp_Vec2d& V1);
+
+ static void D1 (const Standard_Real U, const gp_Hypr2d& H, gp_Pnt2d& P, gp_Vec2d& V1);
+
+ static void D1 (const Standard_Real U, const gp_Parab2d& Prb, gp_Pnt2d& P, gp_Vec2d& V1);
+
+ static void D2 (const Standard_Real U, const gp_Circ2d& C, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2);
+
+ static void D2 (const Standard_Real U, const gp_Elips2d& E, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2);
+
+ static void D2 (const Standard_Real U, const gp_Hypr2d& H, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2);
+
+ static void D2 (const Standard_Real U, const gp_Parab2d& Prb, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2);
+
+ static void D3 (const Standard_Real U, const gp_Circ2d& C, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2, gp_Vec2d& V3);
+
+ static void D3 (const Standard_Real U, const gp_Elips2d& E, gp_Pnt2d& P, gp_Vec2d& V1, gp_Vec2d& V2, gp_Vec2d& V3);
//! In the following functions N is the order of derivation
//! and should be greater than 0
//! For elementary surfaces from the gp package (planes,
//! cones, cylinders, spheres and tori), computes the point
//! of parameters (U, V).
- Standard_EXPORT static gp_Pnt Value (const Standard_Real U, const Standard_Real V, const gp_Pln& Pl);
+ static gp_Pnt Value (const Standard_Real U, const Standard_Real V, const gp_Pln& Pl);
static gp_Pnt Value (const Standard_Real U, const Standard_Real V, const gp_Cone& C);
//! derivative vector of order Nu and Nv in the u and v
//! parametric directions respectively, at the point of
//! parameters (U, V).
- Standard_EXPORT static gp_Vec DN (const Standard_Real U, const Standard_Real V, const gp_Pln& Pl, const Standard_Integer Nu, const Standard_Integer Nv);
+ static gp_Vec DN (const Standard_Real U, const Standard_Real V, const gp_Pln& Pl, const Standard_Integer Nu, const Standard_Integer Nv);
static gp_Vec DN (const Standard_Real U, const Standard_Real V, const gp_Cone& C, const Standard_Integer Nu, const Standard_Integer Nv);
//! For elementary surfaces from the gp package (planes,
//! cones, cylinders, spheres and tori), computes the point P
//! of parameters (U, V).inline
- Standard_EXPORT static void D0 (const Standard_Real U, const Standard_Real V, const gp_Pln& Pl, gp_Pnt& P);
+ static void D0 (const Standard_Real U, const Standard_Real V, const gp_Pln& Pl, gp_Pnt& P);
static void D0 (const Standard_Real U, const Standard_Real V, const gp_Cone& C, gp_Pnt& P);
//! - the point P of parameters (U, V), and
//! - the first derivative vectors Vu and Vv at this point in
//! the u and v parametric directions respectively.
- Standard_EXPORT static void D1 (const Standard_Real U, const Standard_Real V, const gp_Pln& Pl, gp_Pnt& P, gp_Vec& Vu, gp_Vec& Vv);
+ static void D1 (const Standard_Real U, const Standard_Real V, const gp_Pln& Pl, gp_Pnt& P, gp_Vec& Vu, gp_Vec& Vv);
static void D1 (const Standard_Real U, const Standard_Real V, const gp_Cone& C, gp_Pnt& P, gp_Vec& Vu, gp_Vec& Vv);
//! - the first derivative vectors Vu and Vv at this point in
//! the u and v parametric directions respectively, and
//! - the second derivative vectors Vuu, Vvv and Vuv at this point.
- Standard_EXPORT static void D2 (const Standard_Real U, const Standard_Real V, const gp_Cone& C, gp_Pnt& P, gp_Vec& Vu, gp_Vec& Vv, gp_Vec& Vuu, gp_Vec& Vvv, gp_Vec& Vuv);
+ static void D2 (const Standard_Real U, const Standard_Real V, const gp_Cone& C, gp_Pnt& P, gp_Vec& Vu, gp_Vec& Vv, gp_Vec& Vuu, gp_Vec& Vvv, gp_Vec& Vuv);
static void D2 (const Standard_Real U, const Standard_Real V, const gp_Cylinder& C, gp_Pnt& P, gp_Vec& Vu, gp_Vec& Vv, gp_Vec& Vuu, gp_Vec& Vvv, gp_Vec& Vuv);
//! this point, and
//! - the third derivative vectors Vuuu, Vvvv, Vuuv and
//! Vuvv at this point.
- Standard_EXPORT static void D3 (const Standard_Real U, const Standard_Real V, const gp_Cone& C, gp_Pnt& P, gp_Vec& Vu, gp_Vec& Vv, gp_Vec& Vuu, gp_Vec& Vvv, gp_Vec& Vuv, gp_Vec& Vuuu, gp_Vec& Vvvv, gp_Vec& Vuuv, gp_Vec& Vuvv);
+ static void D3 (const Standard_Real U, const Standard_Real V, const gp_Cone& C, gp_Pnt& P, gp_Vec& Vu, gp_Vec& Vv, gp_Vec& Vuu, gp_Vec& Vvv, gp_Vec& Vuv, gp_Vec& Vuuu, gp_Vec& Vvvv, gp_Vec& Vuuv, gp_Vec& Vuvv);
static void D3 (const Standard_Real U, const Standard_Real V, const gp_Cylinder& C, gp_Pnt& P, gp_Vec& Vu, gp_Vec& Vv, gp_Vec& Vuu, gp_Vec& Vvv, gp_Vec& Vuv, gp_Vec& Vuuu, gp_Vec& Vvvv, gp_Vec& Vuuv, gp_Vec& Vuvv);
//! Returns the fact that the domains were computed
//! for the IndH-th hatching.
- Standard_EXPORT Standard_Boolean IsDone (const Standard_Integer IndH) const;
+ Standard_Boolean IsDone (const Standard_Integer IndH) const;
//! Returns the status about the IndH-th hatching.
HatchGen_ErrorStatus Status (const Standard_Integer IndH) const;
//! true in all these specific cases.
//! Warning
//! Do not use this function before the surface is built.
- Standard_EXPORT Standard_Boolean ExchangeUV() const;
+ Standard_Boolean ExchangeUV() const;
//! Sets a flag to try to create as many planes,
//! cylinder,... as possible. Default value is
static Approx_Status WhatStatus (const GeomInt_TheMultiLineOfWLApprox& ML, const Standard_Integer I1, const Standard_Integer I2);
//! Dump of the current multi-line.
- Standard_EXPORT static void Dump (const GeomInt_TheMultiLineOfWLApprox& ML);
+ static void Dump (const GeomInt_TheMultiLineOfWLApprox& ML);
const Standard_Real theRatioOfRadius = 0.1);
//! \returns position of a solution
- Standard_EXPORT GccEnt_Position GetPosition() const { return myPosition; }
+ GccEnt_Position GetPosition() const { return myPosition; }
//! Sets position of a solution
//! \param thePosition the value
public:
DEFINE_STANDARD_ALLOC
- Standard_EXPORT HLRAlgo_Coincidence() :
+ HLRAlgo_Coincidence() :
myFE(0),
myParam(0.),
myStBef(TopAbs_IN),
static Standard_Integer NbSamples (const gp_Lin& C, const Standard_Real U0, const Standard_Real U1);
- Standard_EXPORT static void SamplePars (const gp_Lin& C, const Standard_Real U0, const Standard_Real U1, const Standard_Real Defl, const Standard_Integer NbMin, Handle(TColStd_HArray1OfReal)& Pars);
+ static void SamplePars (const gp_Lin& C, const Standard_Real U0, const Standard_Real U1, const Standard_Real Defl, const Standard_Integer NbMin, Handle(TColStd_HArray1OfReal)& Pars);
//! <V> on the Surface <A>.
static void D2 (const Standard_Address A, const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V, gp_Vec& D2U, gp_Vec& D2V, gp_Vec& DUV);
- Standard_EXPORT static gp_Vec DN (const Standard_Address A, const Standard_Real U, const Standard_Real V, const Standard_Integer Nu, const Standard_Integer Nv);
+ static gp_Vec DN (const Standard_Address A, const Standard_Real U, const Standard_Real V, const Standard_Integer Nu, const Standard_Integer Nv);
//! returns the order of continuity of the Surface
//! <A>. returns 1 : first derivative only is
//! Returns True if succeeded, and False in case of fail
Standard_EXPORT Standard_Boolean Transfer (Handle(TDocStd_Document)& theDoc);
- Standard_EXPORT Standard_Boolean Perform (const TCollection_AsciiString& theFileName, Handle(TDocStd_Document)& theDoc)
+ Standard_Boolean Perform (const TCollection_AsciiString& theFileName, Handle(TDocStd_Document)& theDoc)
{ return Perform (theFileName.ToCString(), theDoc); }
//! Translate IGES file given by filename into the document
//! Empty constructor.
- Standard_EXPORT IntPatch_Point();
+ IntPatch_Point();
//! Sets the values of a point which is on no domain,
//! when both surfaces are implicit ones.
Standard_EXPORT void Remplit (const Standard_Integer a, const Standard_Integer b, const Standard_Integer c, IntPatch_PrmPrmIntersection_T3Bits& Map) const;
- Standard_EXPORT Standard_Integer CodeReject (const Standard_Real x1, const Standard_Real y1, const Standard_Real z1, const Standard_Real x2, const Standard_Real y2, const Standard_Real z2, const Standard_Real x3, const Standard_Real y3, const Standard_Real z3) const;
+ Standard_Integer CodeReject (const Standard_Real x1, const Standard_Real y1, const Standard_Real z1, const Standard_Real x2, const Standard_Real y2, const Standard_Real z2, const Standard_Real x3, const Standard_Real y3, const Standard_Real z3) const;
Standard_EXPORT void PointDepart (Handle(IntSurf_LineOn2S)& LineOn2S, const Handle(Adaptor3d_HSurface)& S1, const Standard_Integer SU1, const Standard_Integer SV1, const Handle(Adaptor3d_HSurface)& S2, const Standard_Integer SU2, const Standard_Integer SV2) const;
Standard_EXPORT void ComputeVertexParameters (const Standard_Real Tol);
//! Returns set of intersection points
- Standard_EXPORT virtual Handle(IntSurf_LineOn2S) Curve() const Standard_OVERRIDE;
+ virtual Handle(IntSurf_LineOn2S) Curve() const Standard_OVERRIDE;
//! Removes vertices from the line (i.e. cleans svtx member)
virtual void ClearVertexes() Standard_OVERRIDE
//! Removes single vertex from the line
virtual void RemoveVertex (const Standard_Integer theIndex) Standard_OVERRIDE;
- Standard_EXPORT void InsertVertexBefore (const Standard_Integer theIndex, const IntPatch_Point& thePnt);
+ void InsertVertexBefore (const Standard_Integer theIndex, const IntPatch_Point& thePnt);
//! if (theMode == 0) then prints the information about WLine
//! if (theMode == 1) then prints the list of 3d-points
{ return (LDOM_Element&) LDOM_Node::operator = (anOther); }
// Assignment
- Standard_EXPORT LDOM_Element&
- operator = (const LDOM_NullPtr * aNull)
+ LDOM_Element& operator = (const LDOM_NullPtr * aNull)
{ return (LDOM_Element&) LDOM_Node::operator = (aNull); }
// Nullify
LocOpe_Pipe.hxx
LocOpe_Pipe.lxx
LocOpe_PntFace.hxx
-LocOpe_PntFace.lxx
LocOpe_Prism.cxx
LocOpe_Prism.hxx
LocOpe_Revol.cxx
const TopoDS_Shape& GluedShape() const;
- Standard_EXPORT const TopTools_ListOfShape& Edges() const;
+ const TopTools_ListOfShape& Edges() const;
- Standard_EXPORT const TopTools_ListOfShape& TgtEdges() const;
+ const TopTools_ListOfShape& TgtEdges() const;
//! Empty constructor. Useful only for the list.
- Standard_EXPORT LocOpe_PntFace();
+ LocOpe_PntFace() {}
- LocOpe_PntFace(const gp_Pnt& P, const TopoDS_Face& F, const TopAbs_Orientation Or, const Standard_Real Param, const Standard_Real UPar, const Standard_Real VPar);
+ LocOpe_PntFace (const gp_Pnt& P, const TopoDS_Face& F, const TopAbs_Orientation Or, const Standard_Real Param, const Standard_Real UPar, const Standard_Real VPar)
+ : myPnt (P), myFace (F), myOri (Or), myPar (Param), myUPar (UPar), myVPar (VPar)
+ {
+ }
- const gp_Pnt& Pnt() const;
+ const gp_Pnt& Pnt () const { return myPnt; }
- const TopoDS_Face& Face() const;
+ const TopoDS_Face& Face () const { return myFace; }
- TopAbs_Orientation Orientation() const;
+ TopAbs_Orientation Orientation () const { return myOri; }
- TopAbs_Orientation& ChangeOrientation();
+ TopAbs_Orientation& ChangeOrientation () { return myOri; }
- Standard_Real Parameter() const;
+ Standard_Real Parameter () const { return myPar; }
- Standard_Real UParameter() const;
-
- Standard_Real VParameter() const;
-
-
-
-
-protected:
-
-
-
+ Standard_Real UParameter () const { return myUPar; }
+ Standard_Real VParameter () const { return myVPar; }
private:
-
-
-
gp_Pnt myPnt;
TopoDS_Face myFace;
TopAbs_Orientation myOri;
Standard_Real myPar;
Standard_Real myUPar;
Standard_Real myVPar;
-
-
};
-
-#include <LocOpe_PntFace.lxx>
-
-
-
-
-
#endif // _LocOpe_PntFace_HeaderFile
+++ /dev/null
-// Created on: 1995-05-29
-// Created by: Jacques GOUSSARD
-// 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.
-
-//=======================================================================
-//function : LocOpe_PntFace
-//purpose :
-//=======================================================================
-inline LocOpe_PntFace::LocOpe_PntFace()
-{}
-
-
-//=======================================================================
-//function : LocOpe_PntFace
-//purpose :
-//=======================================================================
-inline LocOpe_PntFace::LocOpe_PntFace(const gp_Pnt& P,
- const TopoDS_Face& F,
- const TopAbs_Orientation Or,
- const Standard_Real Par,
- const Standard_Real UPar,
- const Standard_Real VPar):
- myPnt(P), myFace(F), myOri(Or), myPar(Par), myUPar(UPar), myVPar(VPar)
-{}
-
-
-//=======================================================================
-//function : Pnt
-//purpose :
-//=======================================================================
-
-inline const gp_Pnt& LocOpe_PntFace::Pnt() const
-{
- return myPnt;
-}
-
-
-//=======================================================================
-//function : Face
-//purpose :
-//=======================================================================
-
-inline const TopoDS_Face& LocOpe_PntFace::Face() const
-{
- return myFace;
-}
-
-
-//=======================================================================
-//function : Orientation
-//purpose :
-//=======================================================================
-
-inline TopAbs_Orientation LocOpe_PntFace::Orientation() const
-{
- return myOri;
-}
-
-//=======================================================================
-//function : ChangeOrientation
-//purpose :
-//=======================================================================
-
-inline TopAbs_Orientation& LocOpe_PntFace::ChangeOrientation()
-{
- return myOri;
-}
-
-//=======================================================================
-//function : Parameter
-//purpose :
-//=======================================================================
-
-inline Standard_Real LocOpe_PntFace::Parameter() const
-{
- return myPar;
-}
-
-//=======================================================================
-//function : UParameter
-//purpose :
-//=======================================================================
-
-inline Standard_Real LocOpe_PntFace::UParameter() const
-{
- return myUPar;
-}
-
-//=======================================================================
-//function : VParameter
-//purpose :
-//=======================================================================
-
-inline Standard_Real LocOpe_PntFace::VParameter() const
-{
- return myVPar;
-}
-
Standard_EXPORT void Loop() const;
- Standard_EXPORT Standard_Boolean IsEmpty() const;
+ Standard_Boolean IsEmpty() const;
Standard_EXPORT void Dump (const Standard_Integer ashift, const Standard_Integer alevel);
Standard_EXPORT void Loop() const;
- Standard_EXPORT Standard_Boolean IsEmpty() const;
+ Standard_Boolean IsEmpty() const;
Standard_EXPORT void Dump (const Standard_Integer ashift, const Standard_Integer alevel);
const gp_Pnt& thePnt4);
//! Returns the amount of sub-entities in sensitive
- Standard_EXPORT virtual Standard_Integer NbSubElements() Standard_OVERRIDE
+ virtual Standard_Integer NbSubElements() Standard_OVERRIDE
{
return 1;
};
Standard_EXPORT void Next ();
//! Returns current index
- Standard_EXPORT Standard_Size Index () const
+ Standard_Size Index () const
{
return myIBlock * myArr->myBlockSize + myInd;
}
* @return
* always True
*/
- Standard_EXPORT virtual Standard_Boolean Add (const TheObjType& theObj,
- const TheBndType& theBnd);
+ virtual Standard_Boolean Add (const TheObjType& theObj, const TheBndType& theBnd);
/**
* Searches in the tree all objects conforming to the given selector.
* @return
* the number of objects accepted
*/
- Standard_EXPORT Standard_Integer Select (const TreeNode& theBranch,
- Selector& theSelector) const;
+ Standard_Integer Select (const TreeNode& theBranch, Selector& theSelector) const;
private:
// ---------- PRIVATE METHODS ----------
Standard_EXPORT virtual void SetGradientBackground (const Aspect_GradientBackground& theBackground) Standard_OVERRIDE;
//! Returns background image texture file path.
- Standard_EXPORT virtual TCollection_AsciiString BackgroundImage() Standard_OVERRIDE { return myBackgroundImagePath; }
+ virtual TCollection_AsciiString BackgroundImage() Standard_OVERRIDE { return myBackgroundImagePath; }
//! Sets background image texture file path.
Standard_EXPORT virtual void SetBackgroundImage (const TCollection_AsciiString& theFilePath) Standard_OVERRIDE;
Standard_EXPORT virtual void SetBackgroundImageStyle (const Aspect_FillMethod theFillStyle) Standard_OVERRIDE;
//! Returns environment texture set for the view.
- Standard_EXPORT virtual Handle(Graphic3d_TextureEnv) TextureEnv() const Standard_OVERRIDE { return myTextureEnvData; }
+ virtual Handle(Graphic3d_TextureEnv) TextureEnv() const Standard_OVERRIDE { return myTextureEnvData; }
//! Sets environment texture for the view.
Standard_EXPORT virtual void SetTextureEnv (const Handle(Graphic3d_TextureEnv)& theTextureEnv) Standard_OVERRIDE;
const Handle(Prs3d_Presentation)& thePrs);
//! Returns the id of the parent presentation
- Standard_EXPORT inline Standard_Integer ParentId() const { return myParentStructId; }
+ inline Standard_Integer ParentId() const { return myParentStructId; }
//! Returns view affinity of the parent presentation
- Standard_EXPORT inline const Handle(Graphic3d_ViewAffinity)& ParentAffinity() const { return myParentAffinity; }
+ inline const Handle(Graphic3d_ViewAffinity)& ParentAffinity() const { return myParentAffinity; }
//! Do nothing - axis-aligned bounding box should be initialized from parent structure.
Standard_EXPORT virtual void CalculateBoundBox() Standard_OVERRIDE;
}
//! Returns the center point of the sensitive triangle created at construction time.
- Standard_EXPORT gp_Pnt Center3D() const { return myCentroid; }
+ gp_Pnt Center3D() const { return myCentroid; }
//! Returns the copy of this
Standard_EXPORT virtual Handle(Select3D_SensitiveEntity) GetConnected() Standard_OVERRIDE;
//! There are no default parameters, but in case if:
//! - transformation only is needed: @theScaleFactor must be initialized as any negative value;
//! - scale only is needed: @theTrsf must be set to gp_Identity.
- Standard_EXPORT virtual Handle(SelectMgr_BaseFrustum) ScaleAndTransform (const Standard_Integer /*theScaleFactor*/,
- const gp_GTrsf& /*theTrsf*/) const { return NULL; }
+ virtual Handle(SelectMgr_BaseFrustum) ScaleAndTransform (const Standard_Integer /*theScaleFactor*/,
+ const gp_GTrsf& /*theTrsf*/) const
+ {
+ return NULL;
+ }
//! SAT intersection test between defined volume and given axis-aligned box
Standard_EXPORT virtual Standard_Boolean Overlaps (const SelectMgr_Vec3& theBoxMin,
//! Continues the interation scanning for the owners detected at a position in the view,
//! or continues the iteration scanning for the owner closest to the position in the view.
Standard_DEPRECATED("Deprecated method More()")
- Standard_EXPORT Standard_Boolean More() { return morePicked(); }
+ Standard_Boolean More() { return morePicked(); }
//! Returns the next owner found in the iteration. This is
//! a scan for the owners detected at a position in the view.
TopoDS_Wire WireAPIMake() const;
//! returns field Analyzer (working tool)
- Standard_EXPORT Handle(ShapeAnalysis_Wire) Analyzer() const;
+ Handle(ShapeAnalysis_Wire) Analyzer() const;
//! returns working wire
const Handle(ShapeExtend_WireData)& WireData() const;
// commercial license or contractual agreement.
#include <ShapePersistent.hxx>
+#include <ShapePersistent_Geom.hxx>
+#include <ShapePersistent_Geom2d.hxx>
#include <StdObjMgt_MapOfInstantiators.hxx>
#include <StdLPersistent_HArray1.hxx>
//! Gets persistent objects
Standard_EXPORT virtual void PChildren(SequenceOfPersistent& theChildren) const;
//! Returns persistent type name
- Standard_EXPORT virtual Standard_CString PName() const { return "PGeom_Geometry"; }
+ virtual Standard_CString PName() const { return "PGeom_Geometry"; }
};
protected:
struct geometryBase : public DelayedBase<Geometry, Transient>
{
//! Write persistent data to a file.
- Standard_EXPORT virtual void Write (StdObjMgt_WriteData&) const
+ virtual void Write (StdObjMgt_WriteData&) const
{
Standard_NotImplemented::Raise("ShapePersistent_Geom::geometryBase::Write - not implemented");
}
//! Gets persistent child objects
- Standard_EXPORT virtual void PChildren (StdObjMgt_Persistent::SequenceOfPersistent&) const { }
+ virtual void PChildren (StdObjMgt_Persistent::SequenceOfPersistent&) const { }
//! Returns persistent type name
- Standard_EXPORT virtual Standard_CString PName() const
+ virtual Standard_CString PName() const
{
Standard_NotImplemented::Raise("ShapePersistent_Geom::geometryBase::PName - not implemented");
return "";
{
public:
//! Read persistent data from a file.
- Standard_EXPORT virtual void Read (StdObjMgt_ReadData& theReadData)
+ virtual void Read (StdObjMgt_ReadData& theReadData)
{ PData().Read (theReadData); }
//! Write persistent data to a file.
- Standard_EXPORT virtual void Write (StdObjMgt_WriteData& theWriteData) const
+ virtual void Write (StdObjMgt_WriteData& theWriteData) const
{ PData().Write(theWriteData); }
//! Gets persistent child objects
- Standard_EXPORT virtual void PChildren (StdObjMgt_Persistent::SequenceOfPersistent&) const
+ virtual void PChildren (StdObjMgt_Persistent::SequenceOfPersistent&) const
{
Standard_NotImplemented::Raise("ShapePersistent_Geom::subBase::PChildren - not implemented");
}
//! Returns persistent type name
- Standard_EXPORT virtual Standard_CString PName() const
+ virtual Standard_CString PName() const
{
Standard_NotImplemented::Raise("ShapePersistent_Geom::subBase::PName - not implemented");
return "";
{
public:
//! Read persistent data from a file.
- Standard_EXPORT virtual void Read (StdObjMgt_ReadData&) { }
+ virtual void Read (StdObjMgt_ReadData&) { }
//! Write persistent data to a file.
- Standard_EXPORT virtual void Write (StdObjMgt_WriteData&) const { }
+ virtual void Write (StdObjMgt_WriteData&) const { }
//! Gets persistent child objects
- Standard_EXPORT virtual void PChildren (StdObjMgt_Persistent::SequenceOfPersistent&) const { }
+ virtual void PChildren (StdObjMgt_Persistent::SequenceOfPersistent&) const { }
//! Returns persistent type name
- Standard_EXPORT virtual Standard_CString PName() const
+ virtual Standard_CString PName() const
{
Standard_NotImplemented::Raise("ShapePersistent_Geom::subBase_gp::PName - not implemented");
return "";
struct subBase_empty : Base
{
//! Returns persistent type name
- Standard_EXPORT virtual Standard_CString PName() const
+ virtual Standard_CString PName() const
{
Standard_NotImplemented::Raise("ShapePersistent_Geom::subBase_empty::PName - not implemented");
return "";
{
public:
//! Read persistent data from a file.
- Standard_EXPORT virtual void Read (StdObjMgt_ReadData& theReadData)
+ virtual void Read (StdObjMgt_ReadData& theReadData)
{
Data aData;
theReadData >> aData;
this->myTransient = new Target(aData);
}
//! Gets persistent child objects
- Standard_EXPORT virtual void PChildren(StdObjMgt_Persistent::SequenceOfPersistent&) const { }
+ virtual void PChildren(StdObjMgt_Persistent::SequenceOfPersistent&) const { }
//! Write persistent data to a file.
- Standard_EXPORT virtual void Write(StdObjMgt_WriteData&) const
+ virtual void Write(StdObjMgt_WriteData&) const
{
Standard_NotImplemented::Raise("ShapePersistent_Geom::instance::Write - not implemented");
}
//! Returns persistent type name
- Standard_EXPORT virtual Standard_CString PName() const
+ virtual Standard_CString PName() const
{
Standard_NotImplemented::Raise("ShapePersistent_Geom::instance::PName - not implemented");
return "";
#include <Geom2d_TrimmedCurve.hxx>
#include <Geom2d_OffsetCurve.hxx>
-//=======================================================================
-// Geometry
-//=======================================================================
-template<>
-Standard_CString ShapePersistent_Geom::geometryBase<Geom2d_Geometry>
- ::PName() const { return "PGeom2d_Geometry"; }
-
-//=======================================================================
-// Point
-//=======================================================================
-template<>
-Standard_CString ShapePersistent_Geom::subBase_empty<ShapePersistent_Geom2d::geometryBase<Geom2d_Geometry> >
- ::PName() const { return "PGeom2d_Point"; }
-
-//=======================================================================
-// CartesianPoint
-//=======================================================================
-template<>
-Standard_CString ShapePersistent_Geom::instance<ShapePersistent_Geom2d::Point,
- Geom2d_CartesianPoint,
- gp_Pnt2d>
- ::PName() const { return "PGeom2d_CartesianPoint"; }
-
-template<>
-void ShapePersistent_Geom::instance<ShapePersistent_Geom2d::Point,
- Geom2d_CartesianPoint,
- gp_Pnt2d>
-::Write(StdObjMgt_WriteData& theWriteData) const
-{
- Handle(Geom2d_CartesianPoint) aMyGeom =
- Handle(Geom2d_CartesianPoint)::DownCast(myTransient);
- theWriteData << aMyGeom->Pnt2d();
-}
-
//=======================================================================
// Direction
//=======================================================================
//=======================================================================
// Curve
//=======================================================================
-template<>
-Standard_CString ShapePersistent_Geom::geometryBase<Geom2d_Curve>
- ::PName() const { return "PGeom2d_Curve"; }
Handle(ShapePersistent_Geom2d::Curve)
ShapePersistent_Geom2d::Translate(const Handle(Geom2d_Curve)& theCurve,
// Geometry
//=======================================================================
template<>
-Standard_CString ShapePersistent_Geom::geometryBase<Geom2d_Geometry>
- ::PName() const;
+inline Standard_CString ShapePersistent_Geom::geometryBase<Geom2d_Geometry>
+ ::PName() const { return "PGeom2d_Geometry"; }
//=======================================================================
// Point
//=======================================================================
template<>
-Standard_CString ShapePersistent_Geom::subBase_empty<
- ShapePersistent_Geom2d::geometryBase<Geom2d_Geometry> >
- ::PName() const;
+inline Standard_CString ShapePersistent_Geom::subBase_empty<ShapePersistent_Geom2d::geometryBase<Geom2d_Geometry> >
+ ::PName() const { return "PGeom2d_Point"; }
//=======================================================================
// CartesianPoint
//=======================================================================
template<>
-Standard_CString ShapePersistent_Geom::instance<ShapePersistent_Geom2d::Point,
+inline Standard_CString ShapePersistent_Geom::instance<ShapePersistent_Geom2d::Point,
Geom2d_CartesianPoint,
gp_Pnt2d>
- ::PName() const;
+ ::PName() const { return "PGeom2d_CartesianPoint"; }
template<>
-void ShapePersistent_Geom::instance<ShapePersistent_Geom2d::Point,
+inline void ShapePersistent_Geom::instance<ShapePersistent_Geom2d::Point,
Geom2d_CartesianPoint,
gp_Pnt2d>
- ::Write(StdObjMgt_WriteData& theWriteData) const;
+ ::Write(StdObjMgt_WriteData& theWriteData) const
+{
+ Handle(Geom2d_CartesianPoint) aMyGeom =
+ Handle(Geom2d_CartesianPoint)::DownCast(myTransient);
+ theWriteData << aMyGeom->Pnt2d();
+}
//=======================================================================
// Direction
// Curve
//=======================================================================
template<>
-Standard_CString ShapePersistent_Geom2d::geometryBase<Geom2d_Curve>
- ::PName() const;
+inline Standard_CString ShapePersistent_Geom::geometryBase<Geom2d_Curve>
+ ::PName() const { return "PGeom2d_Curve"; }
#endif
#include <Standard_NullObject.hxx>
+#include <ShapePersistent_Geom.hxx>
#include <ShapePersistent_Geom_Curve.hxx>
#include <Geom_BezierCurve.hxx>
Standard_EXPORT virtual void Write (StdObjMgt_WriteData& theWriteData) const;
//! Gets persistent objects
- Standard_EXPORT virtual void PChildren (SequenceOfPersistent& theChildren) const
+ virtual void PChildren (SequenceOfPersistent& theChildren) const
{
theChildren.Append(this->myPreviuos);
theChildren.Append(this->myNext);
}
//! Returns persistent type name
- Standard_EXPORT virtual Standard_CString PName() const
+ virtual Standard_CString PName() const
{
Standard_NotImplemented::Raise("ShapePersistent_HSequence::node::PName - not implemented");
return "";
Standard_EXPORT virtual void Write (StdObjMgt_WriteData& theWriteData) const;
//! Gets persistent objects
- Standard_EXPORT virtual void PChildren(SequenceOfPersistent& theChildren) const
+ virtual void PChildren(SequenceOfPersistent& theChildren) const
{
theChildren.Append(this->myFirst);
theChildren.Append(this->myLast);
}
//! Returns persistent type name
- Standard_EXPORT virtual Standard_CString PName() const
+ virtual Standard_CString PName() const
{
Standard_NotImplemented::Raise("ShapePersistent_HSequence::instance::PName - not implemented");
return "";
//! Gets persistent child objects
Standard_EXPORT virtual void PChildren(SequenceOfPersistent& theChildren) const;
//! Returns persistent type name
- Standard_EXPORT virtual Standard_CString PName() const { return "PTopoDS_HShape"; }
+ virtual Standard_CString PName() const { return "PTopoDS_HShape"; }
private:
Handle(StdObjMgt_Persistent) myEntry;
Standard_EXPORT void PrintStatistics() const;
//! Set NonManifold flag
- Standard_EXPORT void SetNonManifold(Standard_Boolean theNonManifold)
+ void SetNonManifold(Standard_Boolean theNonManifold)
{
myNonManifold = theNonManifold;
}
//! Get NonManifold flag
- Standard_EXPORT Standard_Boolean IsNonManifold()
+ Standard_Boolean IsNonManifold()
{
return myNonManifold;
}
//! Write persistent data to a file.
Standard_EXPORT virtual void Write (StdObjMgt_WriteData& theWriteData) const;
//! Gets persistent child objects
- Standard_EXPORT virtual void PChildren(StdObjMgt_Persistent::SequenceOfPersistent& theChildren) const
+ virtual void PChildren(StdObjMgt_Persistent::SequenceOfPersistent& theChildren) const
{
theChildren.Append(myLabels);
theChildren.Append(myAttributes);
}
//! Returns persistent type name
- Standard_EXPORT virtual Standard_CString PName() const
+ virtual Standard_CString PName() const
{ return "PDF_Data"; }
//! Import transient data from the persistent data.
//! Gets persistent child objects
Standard_EXPORT virtual void PChildren(StdObjMgt_Persistent::SequenceOfPersistent&) const;
//! Returns persistent type name
- Standard_EXPORT virtual Standard_CString PName() const
+ virtual Standard_CString PName() const
{ return "PDocStd_Document"; }
//! Import transient document from the persistent data.
Standard_EXPORT virtual void Read (StdObjMgt_ReadData& theReadData);
//! Write persistent data to a file.
Standard_EXPORT virtual void Write (StdObjMgt_WriteData& theWriteData) const;
- Standard_EXPORT virtual void PChildren(StdObjMgt_Persistent::SequenceOfPersistent&) const { }
+ virtual void PChildren(StdObjMgt_Persistent::SequenceOfPersistent&) const { }
//! Get/create a label defined by referenced string.
Standard_EXPORT virtual TDF_Label Label (const Handle(TDF_Data)& theDF) const;
Standard_EXPORT virtual void PChildren(StdObjMgt_Persistent::SequenceOfPersistent&) const;
//! Returns persistent type name
- Standard_EXPORT virtual Standard_CString PName() const
+ virtual Standard_CString PName() const
{ return "PDataStd_TreeNode"; }
//! Create an empty transient attribuite
{
public:
//! Read persistent data from a file.
- Standard_EXPORT virtual void Read (StdObjMgt_ReadData&) {}
+ virtual void Read (StdObjMgt_ReadData&) {}
//! Write persistent data to a file.
- Standard_EXPORT virtual void Write (StdObjMgt_WriteData&) const {}
+ virtual void Write (StdObjMgt_WriteData&) const {}
//! Gets persistent child objects
inline void PChildren(StdObjMgt_Persistent::SequenceOfPersistent&) const {}
//! Returns persistent type name
Standard_CString PName() const;
//! Import transient attribuite from the persistent data
- Standard_EXPORT virtual void ImportAttribute() {}
+ virtual void ImportAttribute() {}
};
public:
{
public:
//! Create an empty transient attribuite
- Standard_EXPORT virtual Handle(TDF_Attribute) CreateAttribute()
+ virtual Handle(TDF_Attribute) CreateAttribute()
{ return myTransient = new Transient; }
//! Get transient attribuite for the persistent data
- Standard_EXPORT virtual Handle(TDF_Attribute) GetAttribute() const
+ virtual Handle(TDF_Attribute) GetAttribute() const
{ return Handle(TDF_Attribute)(myTransient); }
protected:
{
public:
//! Read persistent data from a file.
- Standard_EXPORT virtual void Read (StdObjMgt_ReadData& theReadData)
+ virtual void Read (StdObjMgt_ReadData& theReadData)
{ theReadData >> myData; }
//! Write persistent data to a file.
- Standard_EXPORT virtual void Write (StdObjMgt_WriteData& theWriteData) const
+ virtual void Write (StdObjMgt_WriteData& theWriteData) const
{ theWriteData << myData; }
- Standard_EXPORT virtual void PChildren(StdObjMgt_Persistent::SequenceOfPersistent&) const { }
- Standard_EXPORT virtual Standard_CString PName() const { return "StdObjMgt_Attribute::undefined"; }
+ virtual void PChildren(StdObjMgt_Persistent::SequenceOfPersistent&) const { }
+ virtual Standard_CString PName() const { return "StdObjMgt_Attribute::undefined"; }
protected:
DataType myData;
{
public:
//! Read persistent data from a file.
- Standard_EXPORT virtual void Read (StdObjMgt_ReadData& theReadData)
+ virtual void Read (StdObjMgt_ReadData& theReadData)
{
myPersistent = new Persistent;
myPersistent->Read (theReadData);
}
//! Write persistent data to a file.
- Standard_EXPORT virtual void Write(StdObjMgt_WriteData& theWriteData) const
+ virtual void Write(StdObjMgt_WriteData& theWriteData) const
{ myPersistent->Write(theWriteData); }
- Standard_EXPORT virtual void PChildren(StdObjMgt_Persistent::SequenceOfPersistent&) const { }
- Standard_EXPORT virtual Standard_CString PName() const
+ virtual void PChildren(StdObjMgt_Persistent::SequenceOfPersistent&) const { }
+ virtual Standard_CString PName() const
{ return myPersistent->PName(); }
//! Import transient attribuite from the persistent data
- Standard_EXPORT virtual void ImportAttribute()
+ virtual void ImportAttribute()
{
if (myPersistent && this->myTransient)
{
{ return new Persistent; }
//! Read persistent data from a file.
- Standard_EXPORT virtual void Read (StdObjMgt_ReadData& theReadData) = 0;
+ virtual void Read (StdObjMgt_ReadData& theReadData) = 0;
//! Write persistent data to a file.
- Standard_EXPORT virtual void Write (StdObjMgt_WriteData& theWriteData) const = 0;
+ virtual void Write (StdObjMgt_WriteData& theWriteData) const = 0;
typedef NCollection_Sequence<Handle(StdObjMgt_Persistent)> SequenceOfPersistent;
//! Gets persistent child objects
- Standard_EXPORT virtual void PChildren (SequenceOfPersistent&) const = 0;
+ virtual void PChildren (SequenceOfPersistent&) const = 0;
//! Returns persistent type name
- Standard_EXPORT virtual Standard_CString PName() const = 0;
+ virtual Standard_CString PName() const = 0;
//! Import transient document from the persistent data
//! (to be overriden by document class;
typedef Persistent PersistentBase;
//! Import transient object from the persistent data.
- Standard_EXPORT virtual Handle(Transient) Import()
+ virtual Handle(Transient) Import()
{ return myTransient; }
public:
{
public:
//! Read persistent data from a file.
- Standard_EXPORT virtual void Read (StdObjMgt_ReadData& theReadData)
+ virtual void Read (StdObjMgt_ReadData& theReadData)
{ PersistentData().Read (theReadData); }
//! Write persistent data to a file.
- Standard_EXPORT virtual void Write (StdObjMgt_WriteData& theWriteData) const
+ virtual void Write (StdObjMgt_WriteData& theWriteData) const
{ PersistentData().Write (theWriteData); }
//! Gets persistent child objects
- Standard_EXPORT virtual void PChildren(StdObjMgt_Persistent::SequenceOfPersistent& theChildren) const
+ virtual void PChildren(StdObjMgt_Persistent::SequenceOfPersistent& theChildren) const
{ PersistentData().PChildren(theChildren); }
//! Returns persistent type name
- Standard_EXPORT virtual Standard_CString PName() const
+ virtual Standard_CString PName() const
{ return PersistentData().PName(); }
//! Import transient object from the persistent data.
- Standard_EXPORT virtual Handle(Transient) Import()
+ virtual Handle(Transient) Import()
{ return NULL; }
};
{
public:
//! Import transient object from the persistent data.
- Standard_EXPORT virtual Handle(typename Base::TransientBase) Import()
+ virtual Handle(typename Base::TransientBase) Import()
{
if (Base::myTransient.IsNull() && !myPersistent.IsNull())
{
public:
//! Read persistent data from a file.
- Standard_EXPORT virtual void Read (StdObjMgt_ReadData& theReadData)
+ virtual void Read (StdObjMgt_ReadData& theReadData)
{
Handle(Persistent) aPersistent = new Persistent;
aPersistent->Read (theReadData);
this->myPersistent = aPersistent;
}
//! Write persistent data to a file.
- Standard_EXPORT virtual void Write(StdObjMgt_WriteData& theWriteData) const
+ virtual void Write(StdObjMgt_WriteData& theWriteData) const
{
Handle(Persistent) aPersistent =
DownCast<Persistent, typename Base::PersistentBase>::make(this->myPersistent);
aPersistent->Write(theWriteData);
}
//! Gets persistent child objects
- Standard_EXPORT virtual void PChildren(StdObjMgt_Persistent::SequenceOfPersistent& theChildren) const
+ virtual void PChildren(StdObjMgt_Persistent::SequenceOfPersistent& theChildren) const
{
Handle(Persistent) aPersistent =
DownCast<Persistent, typename Base::PersistentBase>::make(this->myPersistent);
aPersistent->PChildren(theChildren);
}
//! Returns persistent type name
- Standard_EXPORT virtual Standard_CString PName() const
+ virtual Standard_CString PName() const
{
Handle(Persistent) aPersistent =
DownCast<Persistent, typename Base::PersistentBase>::make(this->myPersistent);
//! Write persistent data to a file.
void Write (StdObjMgt_WriteData& theWriteData) const;
//! Gets persistent child objects
- Standard_EXPORT virtual void PChildren(SequenceOfPersistent&) const { }
+ virtual void PChildren(SequenceOfPersistent&) const { }
//! Returns persistent type name
- Standard_EXPORT virtual Standard_CString PName () const
+ virtual Standard_CString PName () const
{ return "PTopLoc_Datum3D"; }
};
//! Gets persistent child objects
Standard_EXPORT virtual void PChildren(SequenceOfPersistent& theChildren) const;
//! Returns persistent type name
- Standard_EXPORT virtual Standard_CString PName () const
+ virtual Standard_CString PName () const
{ return "PTopLoc_ItemLocation"; }
//! Import transient object from the persistent data.
myToleranceType = theType;
}
- Standard_EXPORT StepDimTol_GeometricToleranceType GetToleranceType() const {
+ StepDimTol_GeometricToleranceType GetToleranceType() const {
return myToleranceType;
}
myToleranceType = theType;
}
- Standard_EXPORT StepDimTol_GeometricToleranceType GetToleranceType() const {
+ StepDimTol_GeometricToleranceType GetToleranceType() const {
return myToleranceType;
}
myToleranceType = theType;
}
- Standard_EXPORT StepDimTol_GeometricToleranceType GetToleranceType() const {
+ StepDimTol_GeometricToleranceType GetToleranceType() const {
return myToleranceType;
}
const Handle(StepRepr_HArray1OfRepresentationItem)& theItems,
const Handle(StepRepr_RepresentationContext)& theContextOfItems);
- Standard_EXPORT void SetDescription (const Handle(TCollection_HAsciiString)& theDescription) {
+ void SetDescription (const Handle(TCollection_HAsciiString)& theDescription) {
myDescription = theDescription;
}
- Standard_EXPORT Handle(TCollection_HAsciiString) Description() const {
+ Handle(TCollection_HAsciiString) Description() const {
return myDescription;
}
const Handle(StepGeom_GeometricRepresentationItem)& theFillStyleTarget);
//! Returns field fill_style_target
- Standard_EXPORT Handle(StepGeom_GeometricRepresentationItem) FillStyleTarget() const
+ Handle(StepGeom_GeometricRepresentationItem) FillStyleTarget() const
{
return myFillStyleTarget;
}
//! Set field fill_style_target
- Standard_EXPORT void SetFillStyleTarget (const Handle(StepGeom_GeometricRepresentationItem)& theTarget)
+ void SetFillStyleTarget (const Handle(StepGeom_GeometricRepresentationItem)& theTarget)
{
myFillStyleTarget = theTarget;
}
const Handle(StepVisual_ViewVolume)& thePerspectiveOfVolume,
const Handle(StepVisual_HArray1OfCameraModelD3MultiClippingInterectionSelect)& theShapeClipping);
- Standard_EXPORT void SetShapeClipping(const Handle(StepVisual_HArray1OfCameraModelD3MultiClippingInterectionSelect)& theShapeClipping)
+ void SetShapeClipping(const Handle(StepVisual_HArray1OfCameraModelD3MultiClippingInterectionSelect)& theShapeClipping)
{
myShapeClipping = theShapeClipping;
}
- Standard_EXPORT const Handle(StepVisual_HArray1OfCameraModelD3MultiClippingInterectionSelect) ShapeClipping()
+ const Handle(StepVisual_HArray1OfCameraModelD3MultiClippingInterectionSelect) ShapeClipping()
{
return myShapeClipping;
}
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& theName,
const Handle(StepVisual_HArray1OfCameraModelD3MultiClippingInterectionSelect)& theShapeClipping);
- Standard_EXPORT void SetShapeClipping(const Handle(StepVisual_HArray1OfCameraModelD3MultiClippingInterectionSelect)& theShapeClipping)
+ void SetShapeClipping(const Handle(StepVisual_HArray1OfCameraModelD3MultiClippingInterectionSelect)& theShapeClipping)
{
myShapeClipping = theShapeClipping;
}
- Standard_EXPORT const Handle(StepVisual_HArray1OfCameraModelD3MultiClippingInterectionSelect) ShapeClipping()
+ const Handle(StepVisual_HArray1OfCameraModelD3MultiClippingInterectionSelect) ShapeClipping()
{
return myShapeClipping;
}
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& theName,
const Handle(StepVisual_HArray1OfCameraModelD3MultiClippingUnionSelect)& theShapeClipping);
- Standard_EXPORT void SetShapeClipping(const Handle(StepVisual_HArray1OfCameraModelD3MultiClippingUnionSelect)& theShapeClipping)
+ void SetShapeClipping(const Handle(StepVisual_HArray1OfCameraModelD3MultiClippingUnionSelect)& theShapeClipping)
{
myShapeClipping = theShapeClipping;
}
- Standard_EXPORT const Handle(StepVisual_HArray1OfCameraModelD3MultiClippingUnionSelect) ShapeClipping()
+ const Handle(StepVisual_HArray1OfCameraModelD3MultiClippingUnionSelect) ShapeClipping()
{
return myShapeClipping;
}
public:
- Standard_EXPORT Handle(Storage_HPArray) ReadArray() {return myReadArray;}
+ Handle(Storage_HPArray) ReadArray() { return myReadArray; }
Standard_EXPORT Storage_InternalData();
#ifndef OCCT_NO_RVALUE_REFERENCE
//! Move constructor
- Standard_EXPORT TCollection_AsciiString (TCollection_AsciiString&& theOther)
+ TCollection_AsciiString (TCollection_AsciiString&& theOther)
: mystring (theOther.mystring),
mylength (theOther.mylength)
{
#ifndef OCCT_NO_RVALUE_REFERENCE
//! Move constructor
- Standard_EXPORT TCollection_ExtendedString (TCollection_ExtendedString&& theOther)
+ TCollection_ExtendedString (TCollection_ExtendedString&& theOther)
: mystring (theOther.mystring),
mylength (theOther.mylength)
{
//! Sets specific ID of the attribute (supports several attributes
//! of one type at the same label feature).
- Standard_EXPORT virtual void SetID(const Standard_GUID& theGuid);
+ virtual void SetID (const Standard_GUID& /*theGuid*/) {}
//! Sets default ID defined in nested class (to be used for attributes having User ID feature).
- Standard_EXPORT virtual void SetID();
+ virtual void SetID() {}
//! Returns the label to which the attribute is
//! attached. If the label is not included in a DF,
inline Standard_OStream& operator << (Standard_OStream& anOS,
const Handle(TDF_Attribute)& anAtt)
{ return anAtt->Dump(anOS); }
-
-//=======================================================================
-inline void TDF_Attribute::SetID(const Standard_GUID& )
-{}
-
-//=======================================================================
-inline void TDF_Attribute::SetID()
-{}
\ No newline at end of file
private:
//! Replaces Attribute Delta List
- Standard_EXPORT void ReplaceDeltaList(const TDF_AttributeDeltaList& theList);
+ void ReplaceDeltaList(const TDF_AttributeDeltaList& theList);
- Standard_EXPORT void BeforeOrAfterApply (const Standard_Boolean before) const;
+ void BeforeOrAfterApply (const Standard_Boolean before) const;
- Standard_EXPORT void Apply();
+ void Apply();
Standard_Integer myBeginTime;
Standard_Integer myEndTime;
Standard_EXPORT virtual TCollection_ExtendedString StorageFormat() const Standard_OVERRIDE;
//! Sets saving mode for empty labels. If Standard_True, empty labels will be saved.
- Standard_EXPORT void SetEmptyLabelsSavingMode (const Standard_Boolean isAllowed);
+ void SetEmptyLabelsSavingMode (const Standard_Boolean isAllowed);
//! Returns saving mode for empty labels.
- Standard_EXPORT Standard_Boolean EmptyLabelsSavingMode() const;
+ Standard_Boolean EmptyLabelsSavingMode() const;
//! methods for the nested transaction mode
Standard_EXPORT virtual void ChangeStorageFormat (const TCollection_ExtendedString& newStorageFormat);
//! Sets the label L as a touched label in this logbook.
//! In other words, L is understood to have been modified by the end user.
- Standard_EXPORT void SetTouched (const TDF_Label& L);
+ void SetTouched (const TDF_Label& L);
//! Sets the label L as an impacted label in this logbook.
//! This method is called by execution of the function driver.
//! Returns the map of touched labels in this logbook.
//! A touched label is the one modified by the end user.
- Standard_EXPORT const TDF_LabelMap& GetTouched() const;
+ const TDF_LabelMap& GetTouched() const;
//! Returns the map of impacted labels contained in this logbook.
- Standard_EXPORT const TDF_LabelMap& GetImpacted() const;
+ const TDF_LabelMap& GetImpacted() const;
//! Returns the map of valid labels in this logbook.
- Standard_EXPORT const TDF_LabelMap& GetValid() const;
+ const TDF_LabelMap& GetValid() const;
Standard_EXPORT void GetValid(TDF_LabelMap& Ls) const;
//! Sets status of execution.
- Standard_EXPORT void Done (const Standard_Boolean status);
+ void Done (const Standard_Boolean status);
//! Returns status of execution.
- Standard_EXPORT Standard_Boolean IsDone() const;
+ Standard_Boolean IsDone() const;
//! The methods inherited from TDF_Attribute
//! Move to the next Item
void Next();
- Standard_EXPORT const TopoDS_Shape& Value() const;
+ const TopoDS_Shape& Value() const;
Standard_EXPORT static Handle(TObj_Application) GetInstance();
//! Returns reference to associated messenger handle
- Standard_EXPORT Handle(Message_Messenger) &Messenger() { return myMessenger; }
+ Handle(Message_Messenger) &Messenger() { return myMessenger; }
public:
/**
//! Signal error during Load or Save
//! Default imiplementation invoke previous declaration with 0
- virtual Standard_EXPORT void ErrorMessage
+ virtual void ErrorMessage
(const TCollection_ExtendedString &theMsg)
{ ErrorMessage( theMsg, Message_Alarm ); }
*/
//! Returns True if there is a current Item in the iteration.
- virtual Standard_EXPORT Standard_Boolean More () const Standard_OVERRIDE
+ virtual Standard_Boolean More () const Standard_OVERRIDE
{ return !myNode.IsNull(); }
//! Move to the next Item
virtual Standard_EXPORT void Next () Standard_OVERRIDE;
//! Returns the current item
- virtual Standard_EXPORT Handle(TObj_Object) Value () const Standard_OVERRIDE
+ virtual Handle(TObj_Object) Value () const Standard_OVERRIDE
{ return myObject; }
//! Returns the label of the current item
*/
//! Shifts iterator to the next object
- virtual Standard_EXPORT void MakeStep() = 0;
+ virtual void MakeStep() = 0;
protected:
/**
*/
//! Initialize Iterator by the theLabel
- Standard_EXPORT void Init(const TDF_Label& theLabel,
+ void Init(const TDF_Label& theLabel,
const Standard_Boolean isRecursive = Standard_False)
{ myIterator.Initialize(theLabel,isRecursive); }
//! Returns boolean value is to check model in Init new model
//! The check could be useful if version of model changed
//! Default implementation returns FALSE (check turned OFF)
- virtual Standard_EXPORT Standard_Boolean isToCheck() const
+ virtual Standard_Boolean isToCheck() const
{ return Standard_True; }
public:
//! If the flag theSetName is true (default) the object is assign the default name
//! that is generated using the father partition object if any.
Standard_EXPORT TObj_Object (const TDF_Label& theLabel,
- const Standard_Boolean theSetName = Standard_True);
+ const Standard_Boolean theSetName = Standard_True);
//! The special constructor intended for implementation of persistence
//! mechanism. See class TObj_Persistence for more details.
//! The first argument is used only to avoid confusion with
//! other constructors.
- Standard_EXPORT TObj_Object (const TObj_Persistence *,
- const TDF_Label& theLabel)
- : myLabel(theLabel) {}
+ TObj_Object (const TObj_Persistence *, const TDF_Label& theLabel) : myLabel(theLabel) {}
//! This method is called from persistence to initialize the object fields,
//! so successors that have transient fields must initialize them in initFields(),
//! Methods for access to data
//! Returns the number of stored values in the set
- Standard_EXPORT Standard_Size Size() const
+ Standard_Size Size() const
{ return myVector.Size(); }
typedef TObj_TIntSparseArray_VecOfData::ConstIterator Iterator;
Standard_EXPORT Handle(TObj_Object) Get() const;
//! Returns the Label of master object.
- Standard_EXPORT TDF_Label GetMasterLabel() const {return myMasterLabel;}
+ TDF_Label GetMasterLabel() const {return myMasterLabel;}
//! Returns the referred label.
- Standard_EXPORT TDF_Label GetLabel() const {return myLabel;}
+ TDF_Label GetLabel() const {return myLabel;}
public:
//! Redefined OCAF abstract methods
Standard_Boolean IsModified() const;
- Standard_EXPORT const TopTools_ListOfShape& LFuseFace() const;
+ const TopTools_ListOfShape& LFuseFace() const;
- Standard_EXPORT const TopTools_ListOfShape& LInternEdge() const;
+ const TopTools_ListOfShape& LInternEdge() const;
- Standard_EXPORT const TopTools_ListOfShape& LExternEdge() const;
+ const TopTools_ListOfShape& LExternEdge() const;
- Standard_EXPORT const TopTools_ListOfShape& LModifEdge() const;
+ const TopTools_ListOfShape& LModifEdge() const;
- Standard_EXPORT const TopTools_ListOfShape& LInternVertex() const;
+ const TopTools_ListOfShape& LInternVertex() const;
- Standard_EXPORT const TopTools_ListOfShape& LExternVertex() const;
+ const TopTools_ListOfShape& LExternVertex() const;
- Standard_EXPORT const TopTools_ListOfShape& LModifVertex() const;
+ const TopTools_ListOfShape& LModifVertex() const;
Standard_EXPORT void SetDatumTargetNumber (const Standard_Integer theNumber);
//! Sets annotation plane.
- Standard_EXPORT void SetPlane (const gp_Ax2& thePlane)
+ void SetPlane (const gp_Ax2& thePlane)
{
myPlane = thePlane;
myHasPlane = Standard_True;
}
//! Returns annotation plane.
- Standard_EXPORT const gp_Ax2& GetPlane() const { return myPlane; }
+ const gp_Ax2& GetPlane() const { return myPlane; }
//! Sets a point on the datum target shape.
- Standard_EXPORT void SetPoint (const gp_Pnt& thePnt)
+ void SetPoint (const gp_Pnt& thePnt)
{
myPnt = thePnt;
myHasPnt = Standard_True;
}
//! Gets point on the datum shape.
- Standard_EXPORT const gp_Pnt& GetPoint() const
+ const gp_Pnt& GetPoint() const
{
return myPnt;
}
//! Sets a position of the datum text.
- Standard_EXPORT void SetPointTextAttach (const gp_Pnt& thePntText)
+ void SetPointTextAttach (const gp_Pnt& thePntText)
{
myPntText = thePntText;
myHasPntText = Standard_True;
}
//! Gets datum text position.
- Standard_EXPORT const gp_Pnt& GetPointTextAttach() const
+ const gp_Pnt& GetPointTextAttach() const
{
return myPntText;
}
Standard_Boolean HasPoint() const { return myHasPnt; }
//! Returns True if the datum text position is specified.
- Standard_EXPORT Standard_Boolean HasPointText() const
+ Standard_Boolean HasPointText() const
{
return myHasPntText;
}
//! Set graphical presentation for object.
- Standard_EXPORT void SetPresentation(const TopoDS_Shape& thePresentation,
+ void SetPresentation(const TopoDS_Shape& thePresentation,
const Handle(TCollection_HAsciiString)& thePresentationName)
{
myPresentation = thePresentation;
}
//! Returns graphical presentation of the object.
- Standard_EXPORT TopoDS_Shape GetPresentation() const
+ TopoDS_Shape GetPresentation() const
{
return myPresentation;
}
- //! Returns graphical presentation of the object.
- Standard_EXPORT Handle(TCollection_HAsciiString) GetPresentationName() const
+ //! Returns graphical presentation of the object.
+ Handle(TCollection_HAsciiString) GetPresentationName() const
{
return myPresentationName;
}
//! Returns True if the datum has valid parameters for datum target (width, length, circle radius etc)
- Standard_EXPORT Standard_Boolean HasDatumTargetParams()
+ Standard_Boolean HasDatumTargetParams()
{
return myIsValidDT;
}
Standard_EXPORT Standard_Boolean SetDirection (const gp_Dir& theDir);
//! Sets position of the dimension text.
- Standard_EXPORT void SetPointTextAttach (const gp_Pnt& thePntText)
+ void SetPointTextAttach (const gp_Pnt& thePntText)
{
myPntText = thePntText;
myHasPntText = Standard_True;
}
//! Returns position of the dimension text.
- Standard_EXPORT const gp_Pnt& GetPointTextAttach() const { return myPntText; }
+ const gp_Pnt& GetPointTextAttach() const { return myPntText; }
//! Returns True if the position of dimension text is specified.
- Standard_EXPORT Standard_Boolean HasTextPoint() const
+ Standard_Boolean HasTextPoint() const
{
return myHasPntText;
}
//! Sets annotation plane.
- Standard_EXPORT void SetPlane (const gp_Ax2& thePlane)
+ void SetPlane (const gp_Ax2& thePlane)
{
myPlane = thePlane;
myHasPlane = Standard_True;
}
//! Returns annotation plane.
- Standard_EXPORT const gp_Ax2& GetPlane() const { return myPlane; }
+ const gp_Ax2& GetPlane() const { return myPlane; }
//! Returns True if the object has annotation plane.
- Standard_EXPORT Standard_Boolean HasPlane() const { return myHasPlane; }
+ Standard_Boolean HasPlane() const { return myHasPlane; }
//! Returns true, if connection point exists (for dimesional_size),
//! if connection point for the first shape exists (for dimensional_location).
- Standard_EXPORT Standard_Boolean HasPoint() const { return myHasPoint1; }
+ Standard_Boolean HasPoint() const { return myHasPoint1; }
// Returns true, if connection point for the second shape exists (for dimensional_location only).
- Standard_EXPORT Standard_Boolean HasPoint2() const { return myHasPoint2; }
+ Standard_Boolean HasPoint2() const { return myHasPoint2; }
//! Set connection point (for dimesional_size),
//! Set connection point for the first shape (for dimensional_location).
- Standard_EXPORT void SetPoint(const gp_Pnt thePnt) {
+ void SetPoint(const gp_Pnt thePnt) {
myPnt1 = thePnt;
myHasPoint1 = Standard_True;
}
// Set connection point for the second shape (for dimensional_location only).
- Standard_EXPORT void SetPoint2(const gp_Pnt thePnt) {
+ void SetPoint2(const gp_Pnt thePnt) {
myPnt2 = thePnt;
myHasPoint2 = Standard_True;
}
//! Get connection point (for dimesional_size),
//! Get connection point for the first shape (for dimensional_location).
- Standard_EXPORT gp_Pnt GetPoint() const {
+ gp_Pnt GetPoint() const {
return myPnt1;
}
// Get connection point for the second shape (for dimensional_location only).
- Standard_EXPORT gp_Pnt GetPoint2() const {
+ gp_Pnt GetPoint2() const {
return myPnt2;
}
//! Set graphical presentation for the object.
- Standard_EXPORT void SetPresentation(const TopoDS_Shape& thePresentation,
+ void SetPresentation(const TopoDS_Shape& thePresentation,
const Handle(TCollection_HAsciiString)& thePresentationName)
{
myPresentation = thePresentation;
}
//! Returns graphical presentation of the object.
- Standard_EXPORT TopoDS_Shape GetPresentation() const
+ TopoDS_Shape GetPresentation() const
{
return myPresentation;
}
- //! Returns graphical presentation name of the object.
- Standard_EXPORT Handle(TCollection_HAsciiString) GetPresentationName() const
+ //! Returns graphical presentation name of the object.
+ Handle(TCollection_HAsciiString) GetPresentationName() const
{
return myPresentationName;
}
//! Returns true, if the object has descriptions.
- Standard_EXPORT Standard_Boolean HasDescriptions() const
+ Standard_Boolean HasDescriptions() const
{
return (myDescriptions.Length() > 0);
}
//! Returns number of descriptions.
- Standard_EXPORT Standard_Integer NbDescriptions() const
+ Standard_Integer NbDescriptions() const
{
return myDescriptions.Length();
}
//! Returns description with the given number.
- Standard_EXPORT Handle(TCollection_HAsciiString) GetDescription(const Standard_Integer theNumber) const
+ Handle(TCollection_HAsciiString) GetDescription(const Standard_Integer theNumber) const
{
if (theNumber < myDescriptions.Lower() || theNumber > myDescriptions.Upper())
return new TCollection_HAsciiString();
}
//! Returns name of description with the given number.
- Standard_EXPORT Handle(TCollection_HAsciiString) GetDescriptionName(const Standard_Integer theNumber) const
+ Handle(TCollection_HAsciiString) GetDescriptionName(const Standard_Integer theNumber) const
{
if (theNumber < myDescriptions.Lower() || theNumber > myDescriptions.Upper())
return new TCollection_HAsciiString();
Standard_EXPORT void RemoveDescription(const Standard_Integer theNumber);
//! Add new description.
- Standard_EXPORT void AddDescription(const Handle(TCollection_HAsciiString) theDescription, const Handle(TCollection_HAsciiString) theName)
+ void AddDescription(const Handle(TCollection_HAsciiString) theDescription, const Handle(TCollection_HAsciiString) theName)
{
myDescriptions.Append(theDescription);
myDescriptionNames.Append(theName);
}
//! Set graphical presentation for object.
- Standard_EXPORT void SetPresentation(const TopoDS_Shape& thePresentation,
+ void SetPresentation(const TopoDS_Shape& thePresentation,
const Handle(TCollection_HAsciiString)& thePresentationName)
{
myPresentation = thePresentation;
}
//! Returns graphical presentation of the object.
- Standard_EXPORT TopoDS_Shape GetPresentation() const
+ TopoDS_Shape GetPresentation() const
{
return myPresentation;
}
//! Returns graphical presentation of the object.
- Standard_EXPORT Handle(TCollection_HAsciiString) GetPresentationName() const
+ Handle(TCollection_HAsciiString) GetPresentationName() const
{
return myPresentationName;
}
// Returns true, if affected plane is specified.
- Standard_EXPORT bool HasAffectedPlane() const
+ bool HasAffectedPlane() const
{
return (myAffectedPlaneType != XCAFDimTolObjects_ToleranceZoneAffectedPlane_None);
}
// Returns type of affected plane.
- Standard_EXPORT XCAFDimTolObjects_ToleranceZoneAffectedPlane GetAffectedPlaneType() const
+ XCAFDimTolObjects_ToleranceZoneAffectedPlane GetAffectedPlaneType() const
{
return myAffectedPlaneType;
}
// Sets affected plane type.
- Standard_EXPORT void SetAffectedPlaneType(const XCAFDimTolObjects_ToleranceZoneAffectedPlane theType)
+ void SetAffectedPlaneType(const XCAFDimTolObjects_ToleranceZoneAffectedPlane theType)
{
myAffectedPlaneType = theType;
}
Standard_EXPORT XCAFView_Object(const Handle(XCAFView_Object)& theObj);
- Standard_EXPORT void SetName(Handle(TCollection_HAsciiString) theName)
+ void SetName(Handle(TCollection_HAsciiString) theName)
{
myName = theName;
}
- Standard_EXPORT Handle(TCollection_HAsciiString) Name()
+ Handle(TCollection_HAsciiString) Name()
{
return myName;
}
- Standard_EXPORT void SetType(XCAFView_ProjectionType theType)
+ void SetType(XCAFView_ProjectionType theType)
{
myType = theType;
}
- Standard_EXPORT XCAFView_ProjectionType Type()
+ XCAFView_ProjectionType Type()
{
return myType;
}
- Standard_EXPORT void SetProjectionPoint(gp_Pnt thePoint)
+ void SetProjectionPoint(gp_Pnt thePoint)
{
myProjectionPoint = thePoint;
}
- Standard_EXPORT gp_Pnt ProjectionPoint()
+ gp_Pnt ProjectionPoint()
{
return myProjectionPoint;
}
- Standard_EXPORT void SetViewDirection(gp_Dir theDirection)
+ void SetViewDirection(gp_Dir theDirection)
{
myViewDirection = theDirection;
}
- Standard_EXPORT gp_Dir ViewDirection()
+ gp_Dir ViewDirection()
{
return myViewDirection;
}
- Standard_EXPORT void SetUpDirection(gp_Dir theDirection)
+ void SetUpDirection(gp_Dir theDirection)
{
myUpDirection = theDirection;
}
- Standard_EXPORT gp_Dir UpDirection()
+ gp_Dir UpDirection()
{
return myUpDirection;
}
- Standard_EXPORT void SetZoomFactor(Standard_Real theZoomFactor)
+ void SetZoomFactor(Standard_Real theZoomFactor)
{
myZoomFactor = theZoomFactor;
}
- Standard_EXPORT Standard_Real ZoomFactor()
+ Standard_Real ZoomFactor()
{
return myZoomFactor;
}
- Standard_EXPORT void SetWindowHorizontalSize(Standard_Real theSize)
+ void SetWindowHorizontalSize(Standard_Real theSize)
{
myWindowHorizontalSize = theSize;
}
- Standard_EXPORT Standard_Real WindowHorizontalSize()
+ Standard_Real WindowHorizontalSize()
{
return myWindowHorizontalSize;
}
- Standard_EXPORT void SetWindowVerticalSize(Standard_Real theSize)
+ void SetWindowVerticalSize(Standard_Real theSize)
{
myWindowVerticalSize = theSize;
}
- Standard_EXPORT Standard_Real WindowVerticalSize()
+ Standard_Real WindowVerticalSize()
{
return myWindowVerticalSize;
}
- Standard_EXPORT void SetClippingExpression(Handle(TCollection_HAsciiString) theExpression)
+ void SetClippingExpression(Handle(TCollection_HAsciiString) theExpression)
{
myClippingExpression = theExpression;
}
- Standard_EXPORT Handle(TCollection_HAsciiString) ClippingExpression()
+ Handle(TCollection_HAsciiString) ClippingExpression()
{
return myClippingExpression;
}
- Standard_EXPORT void UnsetFrontPlaneClipping()
+ void UnsetFrontPlaneClipping()
{
myFrontPlaneClipping = Standard_False;
}
- Standard_EXPORT Standard_Boolean HasFrontPlaneClipping()
+ Standard_Boolean HasFrontPlaneClipping()
{
return myFrontPlaneClipping;
}
- Standard_EXPORT void SetFrontPlaneDistance(Standard_Real theDistance)
+ void SetFrontPlaneDistance(Standard_Real theDistance)
{
myFrontPlaneDistance = theDistance;
myFrontPlaneClipping = Standard_True;
}
- Standard_EXPORT Standard_Real FrontPlaneDistance()
+ Standard_Real FrontPlaneDistance()
{
return myFrontPlaneDistance;
}
- Standard_EXPORT void UnsetBackPlaneClipping()
+ void UnsetBackPlaneClipping()
{
myBackPlaneClipping = Standard_False;
}
- Standard_EXPORT Standard_Boolean HasBackPlaneClipping()
+ Standard_Boolean HasBackPlaneClipping()
{
return myBackPlaneClipping;
}
- Standard_EXPORT void SetBackPlaneDistance(Standard_Real theDistance)
+ void SetBackPlaneDistance(Standard_Real theDistance)
{
myBackPlaneDistance = theDistance;
myBackPlaneClipping = Standard_True;
}
- Standard_EXPORT Standard_Real BackPlaneDistance()
+ Standard_Real BackPlaneDistance()
{
return myBackPlaneDistance;
}
- Standard_EXPORT void SetViewVolumeSidesClipping(Standard_Boolean theViewVolumeSidesClipping)
+ void SetViewVolumeSidesClipping(Standard_Boolean theViewVolumeSidesClipping)
{
myViewVolumeSidesClipping = theViewVolumeSidesClipping;
}
- Standard_EXPORT Standard_Boolean HasViewVolumeSidesClipping()
+ Standard_Boolean HasViewVolumeSidesClipping()
{
return myViewVolumeSidesClipping;
}
- Standard_EXPORT void CreateGDTPoints(const Standard_Integer theLenght)
+ void CreateGDTPoints(const Standard_Integer theLenght)
{
if (theLenght > 0)
myGDTPoints = new TColgp_HArray1OfPnt(1, theLenght);
}
- Standard_EXPORT Standard_Boolean HasGDTPoints()
+ Standard_Boolean HasGDTPoints()
{
return (!myGDTPoints.IsNull());
}
- Standard_EXPORT Standard_Integer NbGDTPoints()
+ Standard_Integer NbGDTPoints()
{
if (myGDTPoints.IsNull())
return 0;
return myGDTPoints->Length();
}
- Standard_EXPORT void SetGDTPoint(const Standard_Integer theIndex, const gp_Pnt thePoint)
+ void SetGDTPoint(const Standard_Integer theIndex, const gp_Pnt thePoint)
{
if (myGDTPoints.IsNull())
return;
myGDTPoints->SetValue(theIndex, thePoint);
}
- Standard_EXPORT gp_Pnt GDTPoint(const Standard_Integer theIndex)
+ gp_Pnt GDTPoint(const Standard_Integer theIndex)
{
if (myGDTPoints.IsNull())
return gp_Pnt();
//! Controller already set
//! Virtual destructor
Standard_EXPORT XSControl_Reader(const Handle(XSControl_WorkSession)& WS, const Standard_Boolean scratch = Standard_True);
-Standard_EXPORT virtual ~XSControl_Reader() {}
+
+ //! Empty virtual destructor
+ virtual ~XSControl_Reader() {}
//! Sets a specific norm to <me>
//! Returns True if done, False if <norm> is not available
{ return myController; }
//! Sets a new Controller, also sets a new FinderProcess
- Standard_EXPORT void SetController (const Handle(XSControl_Controller)& theCtl)
+ void SetController (const Handle(XSControl_Controller)& theCtl)
{
myController = theCtl;
Clear(-1);
DEFINE_STANDARD_ALLOC
//! Constructor preparing A and B parameters only. It does not perform the job.
- Standard_EXPORT math_BracketMinimum(const Standard_Real A, const Standard_Real B);
+ math_BracketMinimum(const Standard_Real A, const Standard_Real B);
//! Given two initial values this class computes a
//! bracketing triplet of abscissae Ax, Bx, Cx
//! Is used to redefine the operator <<.
Standard_EXPORT void Dump (Standard_OStream& o) const;
- Standard_EXPORT Standard_Boolean IsDivergent() const;
+ Standard_Boolean IsDivergent() const;
return Array(theNum);
}
- Standard_EXPORT Standard_Integer& operator()(const Standard_Integer theNum) const
+ Standard_Integer& operator()(const Standard_Integer theNum) const
{
return Value(theNum);
}