00001 #include "fdomaincomplement.h" 00002 00003 00004 FDomainComplement::FDomainComplement(Function3D *fValue,Function3D *fComp,bool bDelObjs) 00005 :fValue(fValue),fComp(fComp),bDelObjs(bDelObjs) 00006 { 00007 00008 } 00009 00010 double FDomainComplement::operator() (const VecDouble &p, const unsigned int component) const 00011 { 00012 return (*fValue)(p,component); 00013 } 00014 00015 bool FDomainComplement::isInDomain(const VecDouble &p,unsigned component) const 00016 { 00017 return !fComp->isInDomain(p,component); 00018 } 00019 00020 00021 FDomainComplement::~FDomainComplement() 00022 { 00023 if (bDelObjs) 00024 { 00025 delete fComp; 00026 delete fValue; 00027 00028 } 00029 } 00030 00031