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: BoundaryExpressionPOVRay.cpp,v 1.1 2006/08/27 21:33:53 delpinux Exp $ 00019 00020 #include <BoundaryExpressionPOVRay.hpp> 00021 #include <BoundaryPOVRay.hpp> 00022 00023 std::ostream& 00024 BoundaryExpressionPOVRay:: 00025 put(std::ostream& os) const 00026 { 00027 os << (*__povrayReference); 00028 return os; 00029 } 00030 00031 void 00032 BoundaryExpressionPOVRay:: 00033 execute() 00034 { 00035 (*__povrayReference).execute(); 00036 00037 BoundaryPOVRay* b = new BoundaryPOVRay(); 00038 00039 TinyVector<3> ref; 00040 for (size_t i=0; i<3; ++i) 00041 ref[i] = (*__povrayReference).value(i); 00042 00043 (*b).addPOVReference(ref); 00044 __boundary = b; 00045 } 00046 00047 BoundaryExpressionPOVRay:: 00048 BoundaryExpressionPOVRay(ReferenceCounting<Vector3Expression> r) 00049 : BoundaryExpression(BoundaryExpression::povray), 00050 __povrayReference(r) 00051 { 00052 ; 00053 } 00054 00055 BoundaryExpressionPOVRay:: 00056 BoundaryExpressionPOVRay(const BoundaryExpressionPOVRay& r) 00057 : BoundaryExpression(r), 00058 __povrayReference(r.__povrayReference) 00059 { 00060 ; 00061 } 00062 00063 BoundaryExpressionPOVRay:: 00064 ~BoundaryExpressionPOVRay() 00065 { 00066 ; 00067 }
1.5.6