|
||||
File indexing completed on 2025-01-18 10:04:07
0001 // Created on: 1992-09-23 0002 // Created by: Christian CAILLET 0003 // Copyright (c) 1992-1999 Matra Datavision 0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS 0005 // 0006 // This file is part of Open CASCADE Technology software library. 0007 // 0008 // This library is free software; you can redistribute it and/or modify it under 0009 // the terms of the GNU Lesser General Public License version 2.1 as published 0010 // by the Free Software Foundation, with special exception defined in the file 0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0012 // distribution for complete text of the license and disclaimer of any warranty. 0013 // 0014 // Alternatively, this file may be used under the terms of Open CASCADE 0015 // commercial license or contractual agreement. 0016 0017 #ifndef _Interface_GraphContent_HeaderFile 0018 #define _Interface_GraphContent_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_DefineAlloc.hxx> 0022 #include <Standard_Handle.hxx> 0023 0024 #include <Interface_EntityIterator.hxx> 0025 #include <Standard_Integer.hxx> 0026 class Interface_Graph; 0027 class Standard_Transient; 0028 0029 0030 //! Defines general form for classes of graph algorithms on 0031 //! Interfaces, this form is that of EntityIterator 0032 //! Each sub-class fills it according to its own algorithm 0033 //! This also allows to combine any graph result to others, 0034 //! all being given under one unique form 0035 class Interface_GraphContent : public Interface_EntityIterator 0036 { 0037 public: 0038 0039 DEFINE_STANDARD_ALLOC 0040 0041 0042 //! Creates an empty GraphContent, ready to be filled 0043 Standard_EXPORT Interface_GraphContent(); 0044 0045 //! Creates with all entities designated by a Graph 0046 Standard_EXPORT Interface_GraphContent(const Interface_Graph& agraph); 0047 0048 //! Creates with entities having specific Status value in a Graph 0049 Standard_EXPORT Interface_GraphContent(const Interface_Graph& agraph, const Standard_Integer stat); 0050 0051 //! Creates an Iterator with Shared entities of an entity 0052 //! (equivalente to EntityIterator but with a Graph) 0053 Standard_EXPORT Interface_GraphContent(const Interface_Graph& agraph, const Handle(Standard_Transient)& ent); 0054 0055 //! Gets all Entities designated by a Graph (once created), adds 0056 //! them to those already recorded 0057 Standard_EXPORT void GetFromGraph (const Interface_Graph& agraph); 0058 0059 //! Gets entities from a graph which have a specific Status value 0060 //! (one created), adds them to those already recorded 0061 Standard_EXPORT void GetFromGraph (const Interface_Graph& agraph, const Standard_Integer stat); 0062 0063 //! Returns Result under the exact form of an EntityIterator : 0064 //! Can be used when EntityIterator itself is required (as a 0065 //! returned value for instance), without way for a sub-class 0066 Standard_EXPORT Interface_EntityIterator Result(); 0067 0068 //! Does the Evaluation before starting the iteration itself 0069 //! (in out) 0070 Standard_EXPORT void Begin(); 0071 0072 //! Evaluates list of Entities to be iterated. Called by Start 0073 //! Default is set to doing nothing : intended to be redefined 0074 //! by each sub-class 0075 Standard_EXPORT virtual void Evaluate(); 0076 0077 0078 0079 0080 protected: 0081 0082 0083 0084 0085 0086 private: 0087 0088 0089 0090 0091 0092 }; 0093 0094 0095 0096 0097 0098 0099 0100 #endif // _Interface_GraphContent_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |