// Created by: Peter KURNEV // Copyright (c) 2010-2014 OPEN CASCADE SAS // Copyright (c) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE // Copyright (c) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, // EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS // // 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 _BOPDS_FaceInfo_HeaderFile #define _BOPDS_FaceInfo_HeaderFile #include "Standard.hxx" #include "Standard_DefineAlloc.hxx" #include "Standard_Handle.hxx" #include "NCollection_IndexedMap.hxx" #include "BOPDS_PaveBlock.hxx" #include "NCollection_BaseAllocator.hxx" #include "Standard_Integer.hxx" #include "NCollection_Map.hxx" //! The class BOPDS_FaceInfo is to store //! handy information about state of face class BOPDS_FaceInfo { public: DEFINE_STANDARD_ALLOC //! Empty constructor BOPDS_FaceInfo(); virtual ~BOPDS_FaceInfo(); //! Constructor //! @param theAllocator the allocator to manage the memory BOPDS_FaceInfo(const occ::handle& theAllocator); //! Clears the contents void Clear(); //! Modifier //! Sets the index of the face void SetIndex(const int theI); //! Selector //! Returns the index of the face //! //! In int Index() const; //! Selector //! Returns the pave blocks of the face //! that have state In const NCollection_IndexedMap>& PaveBlocksIn() const; //! Selector/Modifier //! Returns the pave blocks //! of the face //! that have state In NCollection_IndexedMap>& ChangePaveBlocksIn(); //! Selector //! Returns the list of indices for vertices //! of the face //! that have state In const NCollection_Map& VerticesIn() const; //! Selector/Modifier //! Returns the list of indices for vertices //! of the face //! that have state In //! //! On NCollection_Map& ChangeVerticesIn(); //! Selector //! Returns the pave blocks of the face //! that have state On const NCollection_IndexedMap>& PaveBlocksOn() const; //! Selector/Modifier //! Returns the pave blocks //! of the face //! that have state On NCollection_IndexedMap>& ChangePaveBlocksOn(); //! Selector //! Returns the list of indices for vertices //! of the face //! that have state On const NCollection_Map& VerticesOn() const; //! Selector/Modifier //! Returns the list of indices for vertices //! of the face //! that have state On //! //! Sections NCollection_Map& ChangeVerticesOn(); //! Selector //! Returns the pave blocks of the face //! that are pave blocks of section edges const NCollection_IndexedMap>& PaveBlocksSc() const; NCollection_IndexedMap>& ChangePaveBlocksSc(); //! Selector //! Returns the list of indices for section vertices //! of the face const NCollection_Map& VerticesSc() const; //! Selector/Modifier //! Returns the list of indices for section vertices //! of the face //! //! Others NCollection_Map& ChangeVerticesSc(); protected: occ::handle myAllocator; int myIndex; NCollection_IndexedMap> myPaveBlocksIn; NCollection_Map myVerticesIn; NCollection_IndexedMap> myPaveBlocksOn; NCollection_Map myVerticesOn; NCollection_IndexedMap> myPaveBlocksSc; NCollection_Map myVerticesSc; }; #include "BOPDS_FaceInfo.lxx" #endif // _BOPDS_FaceInfo_HeaderFile