00001 // This file is part of ff3d - http://www.freefem.org/ff3d 00002 // Copyright (C) 2001, 2002, 2003 Stéphane Del Pino 00003 00004 // This program is free software; you can redistribute it and/or modify 00005 // it under the terms of the GNU General Public License as published by 00006 // the Free Software Foundation; either version 2, or (at your option) 00007 // any later version. 00008 00009 // This program is distributed in the hope that it will be useful, 00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 // GNU General Public License for more details. 00013 00014 // You should have received a copy of the GNU General Public License 00015 // along with this program; if not, write to the Free Software Foundation, 00016 // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 00018 // $Id: DomainExpressionSet.cpp,v 1.1 2006/09/28 19:05:34 delpinux Exp $ 00019 00020 #include <DomainExpressionSet.hpp> 00021 00022 #include <Scene.hpp> 00023 00024 #include <SceneExpression.hpp> 00025 #include <InsideListExpression.hpp> 00026 00027 #include <Domain.hpp> 00028 00029 std::ostream& DomainExpressionSet::put(std::ostream& os) const 00030 { 00031 os << __FILE__ << ':' << __LINE__ << ": NOT IMPLEMENTED\n"; 00032 return os; 00033 } 00034 00035 ReferenceCounting<SceneExpression> 00036 DomainExpressionSet::scene() 00037 { 00038 return __scene; 00039 } 00040 00041 void DomainExpressionSet::execute() 00042 { 00043 ffout(2) << "Building Domain ...\n"; 00044 00045 __scene->execute(); 00046 __domain = new Domain(__scene->scene()); 00047 00048 if(__definition != 0) { 00049 __definition->execute(); 00050 ffout(2) << "\tDomain is: " << *__definition << '\n'; 00051 const Scene& S = *__scene->scene(); 00052 __domain->setObjects(__definition->objects(S)); 00053 } 00054 ffout(2) << "Done\n"; 00055 } 00056 00057 DomainExpressionSet:: 00058 DomainExpressionSet(ReferenceCounting<SceneExpression> S, 00059 ReferenceCounting<InsideListExpression> def) 00060 : DomainExpression(DomainExpression::set), 00061 __scene(S), 00062 __definition(def) 00063 { 00064 ; 00065 } 00066 00067 00068 DomainExpressionSet:: 00069 DomainExpressionSet(const DomainExpressionSet& m) 00070 : DomainExpression(m), 00071 __scene(m.__scene) 00072 { 00073 ; 00074 } 00075 00076 DomainExpressionSet:: 00077 ~DomainExpressionSet() 00078 { 00079 ; 00080 } 00081
1.5.6