|
||||
File indexing completed on 2025-01-18 10:05:22
0001 // Created on: 2001-01-31 0002 // Created by: Pavel TELKOV 0003 // Copyright (c) 2001-2014 OPEN CASCADE SAS 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 // The original implementation Copyright: (C) RINA S.p.A 0017 0018 #ifndef TObj_ModelIterator_HeaderFile 0019 #define TObj_ModelIterator_HeaderFile 0020 0021 #include <TObj_Object.hxx> 0022 #include <TObj_SequenceOfIterator.hxx> 0023 0024 0025 /** 0026 * This class provides an iterator by all objects in the model. 0027 */ 0028 0029 class TObj_ModelIterator : public TObj_ObjectIterator 0030 { 0031 public: 0032 /** 0033 * Constructor 0034 */ 0035 //! Creates Iterator and initialize it by Model`s label 0036 Standard_EXPORT TObj_ModelIterator(const Handle(TObj_Model)& theModel); 0037 0038 public: 0039 /** 0040 * Methods to iterate on objects. 0041 */ 0042 0043 //! Returns True if iteration is not finished and method Value() 0044 //! will give the object 0045 virtual Standard_EXPORT Standard_Boolean More() const Standard_OVERRIDE; 0046 0047 //! Iterates to the next object 0048 virtual Standard_EXPORT void Next () Standard_OVERRIDE; 0049 0050 //! Returns current object (or MainObj of Model if iteration has finished) 0051 virtual Standard_EXPORT Handle(TObj_Object) Value () const Standard_OVERRIDE; 0052 0053 protected: 0054 /** 0055 * private methods 0056 */ 0057 0058 //! Add iterator on children of indicated object recursively. 0059 virtual Standard_EXPORT void addIterator(const Handle(TObj_Object)& theObj); 0060 0061 protected: 0062 /** 0063 * Fields 0064 */ 0065 Handle(TObj_Object) myObject; //!< Current object 0066 TObj_SequenceOfIterator myIterSeq; //!< Sequence of iterators in model 0067 0068 public: 0069 //! CASCADE RTTI 0070 DEFINE_STANDARD_RTTIEXT(TObj_ModelIterator,TObj_ObjectIterator) 0071 }; 0072 0073 //! Define handle class for TObj_ObjectIterator 0074 DEFINE_STANDARD_HANDLE(TObj_ModelIterator,TObj_ObjectIterator) 0075 0076 #endif 0077 0078 #ifdef _MSC_VER 0079 #pragma once 0080 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |