geom/src/GEOMAlgo/GEOMAlgo_ShapeSet.hxx
admin 1a19468ce8 This commit was generated by cvs2git to create tag 'StableState1'.
Sprout from BR_PartAlgo_V322 2006-09-07 08:59:07 UTC admin <salome-admin@opencascade.com> 'This commit was generated by cvs2git to create branch 'BR_PartAlgo_V322'.'
Cherrypick from BR_PartAlgo_V322 2006-10-20 07:23:31 UTC skl <skl@opencascade.com> 'Add new files for new version of PartitionAlgo.':
    src/GEOMAlgo/GEOMAlgo_Builder.cdl
    src/GEOMAlgo/GEOMAlgo_Builder.cxx
    src/GEOMAlgo/GEOMAlgo_Builder.hxx
    src/GEOMAlgo/GEOMAlgo_Builder.ixx
    src/GEOMAlgo/GEOMAlgo_Builder.jxx
    src/GEOMAlgo/GEOMAlgo_BuilderArea.cdl
    src/GEOMAlgo/GEOMAlgo_BuilderArea.cxx
    src/GEOMAlgo/GEOMAlgo_BuilderArea.hxx
    src/GEOMAlgo/GEOMAlgo_BuilderArea.ixx
    src/GEOMAlgo/GEOMAlgo_BuilderArea.jxx
    src/GEOMAlgo/GEOMAlgo_BuilderFace.cdl
    src/GEOMAlgo/GEOMAlgo_BuilderFace.cxx
    src/GEOMAlgo/GEOMAlgo_BuilderFace.hxx
    src/GEOMAlgo/GEOMAlgo_BuilderFace.ixx
    src/GEOMAlgo/GEOMAlgo_BuilderFace.jxx
    src/GEOMAlgo/GEOMAlgo_BuilderShape.cdl
    src/GEOMAlgo/GEOMAlgo_BuilderShape.cxx
    src/GEOMAlgo/GEOMAlgo_BuilderShape.hxx
    src/GEOMAlgo/GEOMAlgo_BuilderShape.ixx
    src/GEOMAlgo/GEOMAlgo_BuilderShape.jxx
    src/GEOMAlgo/GEOMAlgo_BuilderSolid.cdl
    src/GEOMAlgo/GEOMAlgo_BuilderSolid.cxx
    src/GEOMAlgo/GEOMAlgo_BuilderSolid.hxx
    src/GEOMAlgo/GEOMAlgo_BuilderSolid.ixx
    src/GEOMAlgo/GEOMAlgo_BuilderSolid.jxx
    src/GEOMAlgo/GEOMAlgo_BuilderTools.cdl
    src/GEOMAlgo/GEOMAlgo_BuilderTools.cxx
    src/GEOMAlgo/GEOMAlgo_BuilderTools.hxx
    src/GEOMAlgo/GEOMAlgo_BuilderTools.ixx
    src/GEOMAlgo/GEOMAlgo_BuilderTools.jxx
    src/GEOMAlgo/GEOMAlgo_Builder_0.cxx
    src/GEOMAlgo/GEOMAlgo_Builder_1.cxx
    src/GEOMAlgo/GEOMAlgo_Builder_2.cxx
    src/GEOMAlgo/GEOMAlgo_Builder_3.cxx
    src/GEOMAlgo/GEOMAlgo_Builder_4.cxx
    src/GEOMAlgo/GEOMAlgo_DataMapIteratorOfDataMapOfRealListOfShape.hxx
    src/GEOMAlgo/GEOMAlgo_DataMapIteratorOfDataMapOfRealListOfShape_0.cxx
    src/GEOMAlgo/GEOMAlgo_DataMapIteratorOfDataMapOfShapeReal.hxx
    src/GEOMAlgo/GEOMAlgo_DataMapIteratorOfDataMapOfShapeReal_0.cxx
    src/GEOMAlgo/GEOMAlgo_DataMapIteratorOfDataMapOfShapeShapeSet.hxx
    src/GEOMAlgo/GEOMAlgo_DataMapIteratorOfDataMapOfShapeShapeSet_0.cxx
    src/GEOMAlgo/GEOMAlgo_DataMapNodeOfDataMapOfRealListOfShape.hxx
    src/GEOMAlgo/GEOMAlgo_DataMapNodeOfDataMapOfRealListOfShape_0.cxx
    src/GEOMAlgo/GEOMAlgo_DataMapNodeOfDataMapOfShapeReal.hxx
    src/GEOMAlgo/GEOMAlgo_DataMapNodeOfDataMapOfShapeReal_0.cxx
    src/GEOMAlgo/GEOMAlgo_DataMapNodeOfDataMapOfShapeShapeSet.hxx
    src/GEOMAlgo/GEOMAlgo_DataMapNodeOfDataMapOfShapeShapeSet_0.cxx
    src/GEOMAlgo/GEOMAlgo_DataMapOfRealListOfShape.hxx
    src/GEOMAlgo/GEOMAlgo_DataMapOfRealListOfShape_0.cxx
    src/GEOMAlgo/GEOMAlgo_DataMapOfShapeReal.hxx
    src/GEOMAlgo/GEOMAlgo_DataMapOfShapeReal_0.cxx
    src/GEOMAlgo/GEOMAlgo_DataMapOfShapeShapeSet.hxx
    src/GEOMAlgo/GEOMAlgo_DataMapOfShapeShapeSet_0.cxx
    src/GEOMAlgo/GEOMAlgo_PWireEdgeSet.hxx
    src/GEOMAlgo/GEOMAlgo_ShapeSet.cdl
    src/GEOMAlgo/GEOMAlgo_ShapeSet.cxx
    src/GEOMAlgo/GEOMAlgo_ShapeSet.hxx
    src/GEOMAlgo/GEOMAlgo_ShapeSet.ixx
    src/GEOMAlgo/GEOMAlgo_ShapeSet.jxx
    src/GEOMAlgo/GEOMAlgo_Splitter.cdl
    src/GEOMAlgo/GEOMAlgo_Splitter.cxx
    src/GEOMAlgo/GEOMAlgo_Splitter.hxx
    src/GEOMAlgo/GEOMAlgo_Splitter.ixx
    src/GEOMAlgo/GEOMAlgo_Splitter.jxx
    src/GEOMAlgo/GEOMAlgo_Tools3D.cdl
    src/GEOMAlgo/GEOMAlgo_Tools3D.cxx
    src/GEOMAlgo/GEOMAlgo_Tools3D.hxx
    src/GEOMAlgo/GEOMAlgo_Tools3D.ixx
    src/GEOMAlgo/GEOMAlgo_Tools3D.jxx
    src/GEOMAlgo/GEOMAlgo_WESCorrector.cdl
    src/GEOMAlgo/GEOMAlgo_WESCorrector.cxx
    src/GEOMAlgo/GEOMAlgo_WESCorrector.hxx
    src/GEOMAlgo/GEOMAlgo_WESCorrector.ixx
    src/GEOMAlgo/GEOMAlgo_WESCorrector.jxx
    src/GEOMAlgo/GEOMAlgo_WireEdgeSet.cdl
    src/GEOMAlgo/GEOMAlgo_WireEdgeSet.cxx
    src/GEOMAlgo/GEOMAlgo_WireEdgeSet.hxx
    src/GEOMAlgo/GEOMAlgo_WireEdgeSet.ixx
    src/GEOMAlgo/GEOMAlgo_WireEdgeSet.jxx
    src/GEOMAlgo/GEOMAlgo_WireSplitter.cdl
    src/GEOMAlgo/GEOMAlgo_WireSplitter.cxx
    src/GEOMAlgo/GEOMAlgo_WireSplitter.hxx
    src/GEOMAlgo/GEOMAlgo_WireSplitter.ixx
    src/GEOMAlgo/GEOMAlgo_WireSplitter.jxx
    src/GEOMAlgo/Handle_GEOMAlgo_DataMapNodeOfDataMapOfRealListOfShape.hxx
    src/GEOMAlgo/Handle_GEOMAlgo_DataMapNodeOfDataMapOfShapeReal.hxx
    src/GEOMAlgo/Handle_GEOMAlgo_DataMapNodeOfDataMapOfShapeShapeSet.hxx
    src/NMTDS/Handle_NMTDS_ListNodeOfListOfPassKey.hxx
    src/NMTDS/Handle_NMTDS_ListNodeOfListOfPassKeyBoolean.hxx
    src/NMTDS/Handle_NMTDS_StdMapNodeOfMapOfPassKey.hxx
    src/NMTDS/Handle_NMTDS_StdMapNodeOfMapOfPassKeyBoolean.hxx
    src/NMTDS/NMTDS_Iterator.cdl
    src/NMTDS/NMTDS_Iterator.cxx
    src/NMTDS/NMTDS_Iterator.hxx
    src/NMTDS/NMTDS_Iterator.ixx
    src/NMTDS/NMTDS_Iterator.jxx
    src/NMTDS/NMTDS_ListIteratorOfListOfPassKey.hxx
    src/NMTDS/NMTDS_ListIteratorOfListOfPassKeyBoolean.hxx
    src/NMTDS/NMTDS_ListIteratorOfListOfPassKeyBoolean_0.cxx
    src/NMTDS/NMTDS_ListIteratorOfListOfPassKey_0.cxx
    src/NMTDS/NMTDS_ListNodeOfListOfPassKey.hxx
    src/NMTDS/NMTDS_ListNodeOfListOfPassKeyBoolean.hxx
    src/NMTDS/NMTDS_ListNodeOfListOfPassKeyBoolean_0.cxx
    src/NMTDS/NMTDS_ListNodeOfListOfPassKey_0.cxx
    src/NMTDS/NMTDS_ListOfPassKey.hxx
    src/NMTDS/NMTDS_ListOfPassKeyBoolean.hxx
    src/NMTDS/NMTDS_ListOfPassKeyBoolean_0.cxx
    src/NMTDS/NMTDS_ListOfPassKey_0.cxx
    src/NMTDS/NMTDS_MapIteratorOfMapOfPassKey.hxx
    src/NMTDS/NMTDS_MapIteratorOfMapOfPassKeyBoolean.hxx
    src/NMTDS/NMTDS_MapIteratorOfMapOfPassKeyBoolean_0.cxx
    src/NMTDS/NMTDS_MapIteratorOfMapOfPassKey_0.cxx
    src/NMTDS/NMTDS_MapOfPassKey.hxx
    src/NMTDS/NMTDS_MapOfPassKeyBoolean.hxx
    src/NMTDS/NMTDS_MapOfPassKeyBoolean_0.cxx
    src/NMTDS/NMTDS_MapOfPassKey_0.cxx
    src/NMTDS/NMTDS_PassKey.cdl
    src/NMTDS/NMTDS_PassKey.cxx
    src/NMTDS/NMTDS_PassKey.hxx
    src/NMTDS/NMTDS_PassKey.ixx
    src/NMTDS/NMTDS_PassKey.jxx
    src/NMTDS/NMTDS_PassKeyBoolean.cdl
    src/NMTDS/NMTDS_PassKeyBoolean.cxx
    src/NMTDS/NMTDS_PassKeyBoolean.hxx
    src/NMTDS/NMTDS_PassKeyBoolean.ixx
    src/NMTDS/NMTDS_PassKeyBoolean.jxx
    src/NMTDS/NMTDS_PassKeyMapHasher.cdl
    src/NMTDS/NMTDS_PassKeyMapHasher.cxx
    src/NMTDS/NMTDS_PassKeyMapHasher.hxx
    src/NMTDS/NMTDS_PassKeyMapHasher.ixx
    src/NMTDS/NMTDS_PassKeyMapHasher.jxx
    src/NMTDS/NMTDS_StdMapNodeOfMapOfPassKey.hxx
    src/NMTDS/NMTDS_StdMapNodeOfMapOfPassKeyBoolean.hxx
    src/NMTDS/NMTDS_StdMapNodeOfMapOfPassKeyBoolean_0.cxx
    src/NMTDS/NMTDS_StdMapNodeOfMapOfPassKey_0.cxx
    src/NMTTools/NMTDS_Iterator.hxx
2006-10-20 07:23:33 +00:00

130 lines
3.1 KiB
C++

// Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License.
//
// This library is distributed in the hope that it will be useful
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#ifndef _GEOMAlgo_ShapeSet_HeaderFile
#define _GEOMAlgo_ShapeSet_HeaderFile
#ifndef _TopTools_MapOfOrientedShape_HeaderFile
#include <TopTools_MapOfOrientedShape.hxx>
#endif
#ifndef _TopTools_ListOfShape_HeaderFile
#include <TopTools_ListOfShape.hxx>
#endif
#ifndef _TopAbs_ShapeEnum_HeaderFile
#include <TopAbs_ShapeEnum.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
class TopTools_ListOfShape;
class TopoDS_Shape;
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif
//! Implementation some formal <br>
//! opereations with Set of shapes <br>
class GEOMAlgo_ShapeSet {
public:
void* operator new(size_t,void* anAddress)
{
return anAddress;
}
void* operator new(size_t size)
{
return Standard::Allocate(size);
}
void operator delete(void *anAddress)
{
if (anAddress) Standard::Free((Standard_Address&)anAddress);
}
// Methods PUBLIC
//
//! Empty constructor <br>
Standard_EXPORT GEOMAlgo_ShapeSet();
//! Adds shapes from the list theLS to the Set <br>
Standard_EXPORT void Add(const TopTools_ListOfShape& theLS) ;
//! Adds shape theShape to the Set <br>
Standard_EXPORT void Add(const TopoDS_Shape& theShape) ;
//! Adds sub-shapes of shape theShape, <br>
//! that have type theType to the Set <br>
Standard_EXPORT void Add(const TopoDS_Shape& theShape,const TopAbs_ShapeEnum theType) ;
//! Removes shapes of theSet from the Set <br>
Standard_EXPORT void Subtract(const GEOMAlgo_ShapeSet& theSet) ;
//! Clears internal fields <br>
Standard_EXPORT void Clear() ;
//! Returns True if the Set contains <br>
//! all shapes of theSet <br>
Standard_EXPORT Standard_Boolean Contains(const GEOMAlgo_ShapeSet& theSet) const;
//! Returns the Set <br>
Standard_EXPORT const TopTools_ListOfShape& GetSet() const;
protected:
// Methods PROTECTED
//
// Fields PROTECTED
//
TopTools_MapOfOrientedShape myMap;
TopTools_ListOfShape myList;
private:
// Methods PRIVATE
//
// Fields PRIVATE
//
};
// other Inline functions and methods (like "C++: function call" methods)
//
#endif