From 70e4d283e0503c62689071e2ac82123fd5493dac Mon Sep 17 00:00:00 2001 From: Joshua Moerman Date: Thu, 19 May 2011 19:19:45 +0200 Subject: [PATCH] new attractor --- AttractorKernel.cpp | 8 +++++++ AwesomeAttractor.cbp | 55 ++++++++++++++++++++++---------------------- kernels/Ikeda3D.hpp | 41 +++++++++++++++++++++++++++++++++ 3 files changed, 77 insertions(+), 27 deletions(-) create mode 100644 kernels/Ikeda3D.hpp diff --git a/AttractorKernel.cpp b/AttractorKernel.cpp index dbd79d5..986c4da 100644 --- a/AttractorKernel.cpp +++ b/AttractorKernel.cpp @@ -13,6 +13,7 @@ #include "kernels/Polynomial.hpp" #include "kernels/PolynomialA3D.hpp" #include "kernels/Unravel3D.hpp" +#include "kernels/Ikeda3D.hpp" AttractorKernel* AttractorKernel::createAttractorKernel(stfu::node& attractor) { @@ -61,6 +62,13 @@ AttractorKernel* AttractorKernel::createAttractorKernel(stfu::node& attractor) { LogError("something wrong\n"); exit(37); } + } else if(attractorType == "ikeda") { + if(dimension == 3) { + myAttractor = new Ikeda3D(); + } else { + LogError("something wrong\n"); + exit(37); + } } else { LogError("'%s' not recognized\n", attractorType.c_str()); exit(37); diff --git a/AwesomeAttractor.cbp b/AwesomeAttractor.cbp index 2003465..bd486d9 100644 --- a/AwesomeAttractor.cbp +++ b/AwesomeAttractor.cbp @@ -7,8 +7,8 @@