|
||||
File indexing completed on 2025-01-18 10:04:05
0001 // Created on: 2016-06-23 0002 // Copyright (c) 2016 OPEN CASCADE SAS 0003 // Created by: Oleg AGASHIN 0004 // 0005 // This file is part of Open CASCADE Technology software library. 0006 // 0007 // This library is free software; you can redistribute it and/or modify it under 0008 // the terms of the GNU Lesser General Public License version 2.1 as published 0009 // by the Free Software Foundation, with special exception defined in the file 0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0011 // distribution for complete text of the license and disclaimer of any warranty. 0012 // 0013 // Alternatively, this file may be used under the terms of Open CASCADE 0014 // commercial license or contractual agreement. 0015 0016 #ifndef _IMeshData_StatusOwner_HeaderFile 0017 #define _IMeshData_StatusOwner_HeaderFile 0018 0019 #include <IMeshData_Status.hxx> 0020 0021 //! Extension interface class providing status functionality. 0022 class IMeshData_StatusOwner 0023 { 0024 public: 0025 0026 //! Destructor. 0027 virtual ~IMeshData_StatusOwner() 0028 { 0029 } 0030 0031 //! Returns true in case if status is strictly equal to the given value. 0032 Standard_Boolean IsEqual(const IMeshData_Status theValue) const 0033 { 0034 return (myStatus == theValue); 0035 } 0036 0037 //! Returns true in case if status is set. 0038 Standard_Boolean IsSet(const IMeshData_Status theValue) const 0039 { 0040 return (myStatus & theValue) != 0; 0041 } 0042 0043 //! Adds status to status flags of a face. 0044 void SetStatus(const IMeshData_Status theValue) 0045 { 0046 myStatus |= theValue; 0047 } 0048 0049 //! Adds status to status flags of a face. 0050 void UnsetStatus(const IMeshData_Status theValue) 0051 { 0052 myStatus &= ~theValue; 0053 } 0054 0055 //! Returns complete status mask. 0056 Standard_Integer GetStatusMask() const 0057 { 0058 return myStatus; 0059 } 0060 0061 protected: 0062 0063 //! Constructor. Initializes default status. 0064 IMeshData_StatusOwner() 0065 : myStatus(IMeshData_NoError) 0066 { 0067 } 0068 0069 private: 0070 0071 Standard_Integer myStatus; 0072 }; 0073 0074 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |