#pragma once #include "Mandelbrot.interface.cpp" class CMandelbrotSimple: public IMandelbrot { void calc(CParams& params){ int x_pos = 0; //Realteil int y_pos; //Imaginärteil for(double startR = params.m_minRe; startR < params.m_maxRe; startR += params.m_step){ //minRe + step + step + ... y_pos = params.m_y_height -1; for(double startI = params.m_minIm; startI < params.m_maxIm; startI += params.m_step){ //minIm + step + step + ... checkNumber(params, startR, startI, x_pos, y_pos); //Iteriert über aktuel zu untersuchende komplexe Zahl und schreibt in ASCII-MAP y_pos--; } x_pos++; } } public: CMandelbrotSimple(int x_width, int y_height, int iterations, unsigned int threads, bool sse){ Init(x_width,y_height,iterations,threads,sse); } ~CMandelbrotSimple(){ Exit(); } };