fractgen-2.0.17/ 0000775 0001750 0001750 00000000000 12474605316 012660 5 ustar dreibh dreibh fractgen-2.0.17/src/ 0000775 0001750 0001750 00000000000 12474605316 013447 5 ustar dreibh dreibh fractgen-2.0.17/src/src.pro 0000664 0001750 0001750 00000001511 12474605316 014756 0 ustar dreibh dreibh TEMPLATE = app
TARGET = fractgen
INCLUDEPATH += .
target.path += /usr/bin/
INSTALLS += target
SOURCES += \
colorschemeinterface.cpp \
doubleconfigentry.cpp \
dreibholz1.cpp \
fractalalgorithminterface.cpp \
fractalbuffer.cpp \
fractalcalculationthread.cpp \
fractgen.cpp \
imagedisplay.cpp \
fractalgenerator.cpp \
fractalgeneratordoc.cpp \
fractalgeneratorview.cpp \
mandelbrot.cpp \
mandelbrotn.cpp \
optionsdialog.cpp \
simplehsv.cpp \
simplergb.cpp \
uintconfigentry.cpp
HEADERS += \
colorschemeinterface.h \
configentry.h \
doubleconfigentry.h \
dreibholz1.h \
fractalalgorithminterface.h \
fractalbuffer.h \
fractalcalculationthread.h \
imagedisplay.h \
fractalgenerator.h \
fractalgeneratordoc.h \
fractalgeneratorview.h \
mandelbrot.h \
mandelbrotn.h \
optionsdialog.h \
simplehsv.h \
simplergb.h \
uintconfigentry.h
QT += xml
fractgen-2.0.17/src/colorschemeinterface.cpp 0000664 0001750 0001750 00000005762 12474605316 020351 0 ustar dreibh dreibh /* $Id: colorschemeinterface.cpp 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#include "colorschemeinterface.h"
#include
QList* ColorSchemeInterface::ColorSchemeList = NULL;
bool ColorSchemeInterface::Updated = false;
// ###### Constructor #######################################################
ColorSchemeInterface::ColorSchemeInterface(const char* identifier, const char* name)
{
Updated = true;
Identifier = identifier;
Name = name;
if(ColorSchemeInterface::ColorSchemeList == NULL) {
ColorSchemeInterface::ColorSchemeList = new QList;
}
ColorSchemeList->append(this);
}
// ###### Constructor #######################################################
ColorSchemeInterface::~ColorSchemeInterface()
{
ColorSchemeList->removeAll(this);
}
// ###### Destructor ########################################################
void ColorSchemeInterface::configure(unsigned int* maxIterations)
{
MaxIterations = maxIterations;
}
// ###### Comparison function for names #####################################
static bool lessThan(const ColorSchemeInterface* c1,
const ColorSchemeInterface* c2)
{
return(strcmp(c1->getName(), c2->getName()) < 0);
}
// ###### Get color scheme by number ########################################
ColorSchemeInterface* ColorSchemeInterface::getColorScheme(const unsigned int index)
{
if(Updated) {
qSort(ColorSchemeList->begin(), ColorSchemeList->end(), lessThan);
Updated = false;
}
return(ColorSchemeList->value(index, NULL));
}
// ###### Get color scheme by ID ############################################
ColorSchemeInterface* ColorSchemeInterface::getColorSchemeByIdentifier(const char* identifier)
{
QListIterator iterator(*ColorSchemeList);
while(iterator.hasNext()) {
ColorSchemeInterface* colorScheme = iterator.next();
if(strcmp(identifier, colorScheme->getIdentifier()) == 0) {
return(colorScheme);
}
}
return(NULL);
}
fractgen-2.0.17/src/doubleconfigentry.cpp 0000664 0001750 0001750 00000003644 12474605316 017704 0 ustar dreibh dreibh /* $Id: doubleconfigentry.cpp 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#include "doubleconfigentry.h"
// ###### Constructor #######################################################
DoubleConfigEntry::DoubleConfigEntry(double* valuePtr, const char* name)
{
EntryName = name;
ValuePtr = valuePtr;
}
// ###### Destructor ########################################################
DoubleConfigEntry::~DoubleConfigEntry()
{
}
// ###### Get name ##########################################################
QString DoubleConfigEntry::getName() const
{
return(EntryName);
}
// ###### Get value as string ###############################################
QString DoubleConfigEntry::getValueAsString() const
{
QString valueString;
valueString.setNum(*ValuePtr);
return(valueString);
}
// ###### Set value from string #############################################
void DoubleConfigEntry::setValueFromString(const QString& valueString)
{
*ValuePtr = valueString.toDouble();
}
fractgen-2.0.17/src/dreibholz1.cpp 0000664 0001750 0001750 00000013032 12474605316 016215 0 ustar dreibh dreibh /* $Id: dreibholz1.cpp 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#include "dreibholz1.h"
// #include
Dreibholz1* Dreibholz1::Registration = new Dreibholz1();
/*
---- Tests ----
Start: z = c
01. z = z*z - pow(z, c) - c;
02. z = z*z - pow(c, (double)i);
03. z = pow(z, (double)i) - c;
04. z = pow(z, 2.0) - exp(c);
05. z = pow(z, 2.0) - log(d*c);
06. z = pow(z, 2.0) - log(c);
07. z = pow(z, 2.0) - sin(c);
08. z = sin(pow(z, 2.0)) - c;
09. z = cos(pow(z, 2.0)) - c;
10. z = z*z*z + z*z + (pow(z, log(z))) - c;
11. z = pow(z, 3) - pow(z, 5) + pow(z, 7) - pow(z, 11) + pow(z, 13) - c;
12. z = cos(pow(z, 3.0)) - c;
13. z = c;
z2 = (z.real(), -z.imag());
for(i = 0;i < MaxIterations;i++) {
z = z2*z2 - c;
z2 = z*z*z - c;
14. z = 0.5*z*z + 0.333*z*z*z + 0.25*z*z*z*z - c;
15. for(int j = 2;j <= 7;j++) {
if((j % 2) == 0)
z += pow(z, (double)j) / (double)j;
else
z -= pow(z, (double)j) / (double)j;
}
z -= c;
16. z2 = z;
for(int j = 2;j <= 7;j++) {
if((j % 2) == 0)
z += pow(z2, (double)j) / (double)j;
else
z -= pow(z2, (double)j) / (double)j;
}
z -= c;
17. z2 = z;
for(int j = 2;j <= 23;j++) {
if((j % 2) == 0)
z += pow(z2, (double)j) / (double)j;
else
z -= pow(z2, (double)j) / (double)j;
}
z -= c;
18. z2 = z;
for(int j = 2;j <= 5;j++) {
if((j % 2) == 0)
z += sin(pow(z2, (double)j) / (double)j);
else
z -= cos(pow(z2, (double)j) / (double)j);
}
z -= c;
19. z = pow(z, 2.5) - std::complex(0.75, -0.34);
20. z = pow(z, 2.5 + c) - c;
21. z = z + pow(z, 2.0) + pow(z, 3.0) - c - c*c - c*c*c;
22. z2 = z;
c2 = c;
z3 = 0.0;
for(int j = 2;j <= 11;j++) {
z3 += z2 - c2;
z2 *= z;
c2 *= c;
}
z = z3;
23. z2 = z;
c2 = c;
z3 = 0.0;
for(int j = 1;j <= 4;j++) {
z3 += (z2 - c2) / (double)j;
z2 *= z;
c2 *= c;
}
z = z3;
24. z2 = z;
c2 = c;
z3 = 0.0;
for(int j = 2;j <= 11;j++) {
z3 += (z2 - c2);
z2 *= z;
c2 *= c;
}
z = z3;
25. z2 = z;
c2 = c;
z3 = 0.0;
for(int j = 2;j <= 5;j++) {
z3 += (z2 - c2);
z2 *= z;
c2 *= c/(double)j;
}
z = z3;
26. z2 = 1.0;
c2 = 1.0;
z3 = 0.0;
for(int j = 1;j <= 4;j++) {
z2 *= z;
c2 *= c / (double)j;
z3 += (z2 - c2);
}
z = z3;
27. z2 = 1.0;
c2 = 1.0;
z3 = 0.0;
for(int j = 1;j <= 4;j++) {
z2 *= z;
c2 *= c / (double)j;
z3 += (z2 - c2);
}
z = sin(z3);
28. ...
z = tan(z3);
29. ...
z = cos(exp(z3));
30. ...
z = sin(exp(z3));
*/
// ###### Constructor #######################################################
Dreibholz1::Dreibholz1(const char* identifier, const char* name)
: FractalAlgorithmInterface(identifier, name)
{
// ConfigEntries.append(new DoubleConfigEntry(&N, "N"));
}
// ###### Destructor ########################################################
Dreibholz1::~Dreibholz1()
{
}
// ###### Get default for C1 ################################################
std::complex Dreibholz1::defaultC1() const
{
return(std::complex(-3.5, 3.5));
}
// ###### Get default for C2 ################################################
std::complex Dreibholz1::defaultC2() const
{
return(std::complex(3.5, -3.5));
}
// ###### Calculate graphics point (x,y) ####################################
unsigned int Dreibholz1::calculatePoint(const unsigned int x,
const unsigned int y)
{
const std::complex c = std::complex(C1.real() + ((double)x * StepX),
C1.imag() + ((double)y * StepY));
std::complex z(0.0, 0.0);
std::complex z2(0.0, 0.0);
std::complex z3(0.0, 0.0);
std::complex c2;
unsigned int i;
// const double d = abs(c);
z = c;
z2 = (z.real(), -z.imag());
for(i = 0;i < MaxIterations;i++) {
/*
z2 = 1.0;
c2 = 1.0;
z3 = 0.0;
for(int j = 1;j <= 4;j++) {
z2 *= z;
c2 *= c / (double)j;
z3 += (z2 - c2);
}
*/
z3 = z*z-c;
z = cos(exp(z3));
if(z.real() * z.real() + z.imag() * z.imag() >= 2.0) {
return(i);
}
}
return(i);
}
fractgen-2.0.17/src/fractalalgorithminterface.cpp 0000664 0001750 0001750 00000010274 12474605316 021363 0 ustar dreibh dreibh /* $Id: fractalalgorithminterface.cpp 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#include "fractalalgorithminterface.h"
#include "uintconfigentry.h"
QList* FractalAlgorithmInterface::AlgorithmList = NULL;
bool FractalAlgorithmInterface::Updated = false;
// ###### Constructor #######################################################
FractalAlgorithmInterface::FractalAlgorithmInterface(const char* identifier, const char* name)
{
Updated = true;
Identifier = identifier;
Name = name;
if(AlgorithmList == NULL) {
AlgorithmList = new QList;
}
AlgorithmList->append(this);
// When using this mechanism to allow configuration of own variables
// in derived classes you need to make sure the string could be used in
// well-formed xml as a tag (i.e. no whitespaces)
ConfigEntries.append(new UIntConfigEntry(&MaxIterations, "MaxIterations"));
}
// ###### Destructor ########################################################
FractalAlgorithmInterface::~FractalAlgorithmInterface()
{
AlgorithmList->removeAll(this);
}
// ###### Get default number of iterations ##################################
int FractalAlgorithmInterface::defaultMaxIterations() const
{
return(250);
}
// ###### Configure algorithm ###############################################
void FractalAlgorithmInterface::configure(unsigned int width,
unsigned int height,
std::complex c1,
std::complex c2,
unsigned int maxIterations)
{
Width = width;
Height = height;
MaxIterations = maxIterations;
C1 = c1;
C2 = c2;
StepX = (c2.real() - c1.real()) / Width;
StepY = (c2.imag() - c1.imag()) / Height;
}
// ###### Change image size ##################################################
void FractalAlgorithmInterface::changeSize(int X, int Y)
{
Width = X;
Height = Y;
StepX = (C2.real() - C1.real()) / Width;
StepY = (C2.imag() - C1.imag()) / Height;
}
// ###### Comparison function for names ######################################
static bool lessThan(const FractalAlgorithmInterface* f1,
const FractalAlgorithmInterface* f2)
{
return(strcmp(f1->getName(), f2->getName()) < 0);
}
// ###### Get algorithm by number #############################################
FractalAlgorithmInterface* FractalAlgorithmInterface::getAlgorithm(const unsigned int index)
{
if(Updated) {
qSort(AlgorithmList->begin(), AlgorithmList->end(), lessThan);
Updated = false;
}
return(AlgorithmList->value(index, NULL));
}
// ###### Get algorithm by identifier #######################################
FractalAlgorithmInterface* FractalAlgorithmInterface::getAlgorithmByIdentifier(const char* identifier)
{
QListIterator iterator(*AlgorithmList);
while(iterator.hasNext()) {
FractalAlgorithmInterface* algorithm = iterator.next();
if(strcmp(identifier, algorithm->getIdentifier()) == 0) {
return(algorithm);
}
}
return(NULL);
}
fractgen-2.0.17/src/fractalbuffer.cpp 0000664 0001750 0001750 00000004102 12474605316 016756 0 ustar dreibh dreibh /* $Id: fractalbuffer.cpp 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#include "fractalbuffer.h"
#include
// ###### Constructor #######################################################
FractalBuffer::FractalBuffer()
{
Buffer = NULL;
BufferSize = 0;
Width = 0;
Height = 0;
}
// ###### Desstructor ########################################################
FractalBuffer::~FractalBuffer()
{
reset(0,0);
}
// ###### Reset FractalBuffer ###############################################
bool FractalBuffer::reset(const unsigned int width, const unsigned int height)
{
if(Buffer) {
delete Buffer;
}
Width = width;
Height = height;
BufferSize = width * height;
if(BufferSize > 0) {
Buffer = new unsigned int[BufferSize];
if(Buffer == NULL) {
reset(0,0);
return(false);
}
clear();
}
else {
Buffer = NULL;
}
return(true);
}
// ###### Clear FractalBuffer ###############################################
void FractalBuffer::clear()
{
for(unsigned int i = 0;i < BufferSize;i++) {
Buffer[i] = (unsigned int)~0;
}
}
fractgen-2.0.17/src/fractalcalculationthread.cpp 0000664 0001750 0001750 00000006611 12474605316 021202 0 ustar dreibh dreibh /* $Id: fractalcalculationthread.cpp 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#include "fractalcalculationthread.h"
#include
#include
// ###### Constructor #######################################################
FractalCalculationThread::FractalCalculationThread(QObject* parent,
FractalAlgorithmInterface* algorithm,
ColorSchemeInterface* colorScheme,
FractalBuffer* buffer,
QImage* image,
unsigned int progStep)
{
Parent = parent;
Algorithm = algorithm;
ColorScheme = colorScheme;
Buffer = buffer;
Image = image;
ProgStep = progStep;
MaxIterations = *Algorithm->getMaxIterations();
Stop = false;
}
// ###### Destructor ########################################################
FractalCalculationThread::~FractalCalculationThread()
{
wait();
}
// ###### Thread main function ##############################################
void FractalCalculationThread::run()
{
const unsigned int width = Image->width();
const unsigned int height = Image->height();
for(unsigned int step = ProgStep;step >= 1;step /= 2) {
for(unsigned int y = 0;y < height;y += step) {
for(unsigned int x = 0;x < width;x += step) {
if(Buffer->getPoint(x, y) == (unsigned int)~0) {
const unsigned int value = Algorithm->calculatePoint(x, y);
Buffer->setPoint(x, y, value);
const unsigned int rgb = ColorScheme->getColor(value);
for(unsigned int vy = y;vy < std::min(y + step, height);vy++) {
for(unsigned int vx = x;vx < std::min(x + step, width);vx++) {
Image->setPixel(vx, vy, rgb);
}
}
if(Stop) {
goto finished;
}
}
}
}
QCoreApplication::postEvent(Parent, new QEvent(QEvent::User));
}
finished:
QCoreApplication::postEvent(Parent, new QEvent((QEvent::Type)(QEvent::User + 1)));
}
// ###### Stop thread and wait until it has really finished #################
void FractalCalculationThread::stop()
{
Stop = true;
wait();
Stop = false;
}
fractgen-2.0.17/src/fractalgenerator.cpp 0000664 0001750 0001750 00000033050 12474605316 017477 0 ustar dreibh dreibh /* $Id: fractalgenerator.cpp 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#include "fractalgenerator.h"
#include "fractalgeneratorview.h"
#include "fractalgeneratordoc.h"
#include "fractalalgorithminterface.h"
#include "colorschemeinterface.h"
#include "optionsdialog.h"
#include
#include
#include
#include
#include
#include
#include
#include
#include
// ###### Constructor #######################################################
FractalGeneratorApp::FractalGeneratorApp(QWidget* parent, const QString& fileName)
: QMainWindow(parent)
{
View = new FractalGeneratorView(this);
Q_CHECK_PTR(View);
setCentralWidget(View);
connect(View, SIGNAL(updateFractalAlgorithm()), this, SLOT(slotUpdateFractalAlgorithm()));
connect(View, SIGNAL(updateColorScheme()), this, SLOT(slotUpdateColorScheme()));
connect(View, SIGNAL(updateZoomBackPossible()), this, SLOT(slotUpdateZoomBackPossible()));
connect(View, SIGNAL(updateZoomInPossible()), this, SLOT(slotUpdateZoomInPossible()));
Document = new FractalGeneratorDoc(this, View);
Q_CHECK_PTR(Document);
connect(Document, SIGNAL(updateFileName(const QString&)), this, SLOT(slotUpdateFileName(const QString&)));
Document->newDocument();
QMenu* fileMenu = menuBar()->addMenu(tr("&File"));
Q_CHECK_PTR(fileMenu);
fileMenu->addAction(tr("&Open"), this, SLOT(slotFileOpen()), QKeySequence(QKeySequence::Open));
fileMenu->addAction(tr("&Save"), this, SLOT(slotFileSave()), QKeySequence(QKeySequence::Save));
fileMenu->addAction(tr("Save As"), this, SLOT(slotFileSaveAs()));
fileMenu->addSeparator();
fileMenu->addAction(tr("&Export Image"), this, SLOT(slotFileExportImage()), QKeySequence(Qt::CTRL + Qt::Key_X));
fileMenu->addAction(tr("Print &Image"), this, SLOT(slotFilePrint()), QKeySequence(QKeySequence::Print));
fileMenu->addSeparator();
fileMenu->addAction(tr("&Close"), this, SLOT(slotFileClose()), QKeySequence(QKeySequence::Close));
fileMenu->addAction(tr("&Quit"), this, SLOT(slotFileQuit()), QKeySequence(Qt::CTRL + Qt::Key_Q));
QMenu* viewMenu = menuBar()->addMenu(tr("&View"));
Q_CHECK_PTR(viewMenu);
ViewZoomIn = viewMenu->addAction(tr("Zoom &In"), View, SLOT(zoomIn()), QKeySequence(Qt::CTRL + Qt::Key_I));
ViewZoomIn->setEnabled(false);
ViewZoomBack = viewMenu->addAction(tr("Zoom &Back"), View, SLOT(zoomBack()), QKeySequence(QKeySequence::Undo));
ViewZoomBack->setEnabled(false);
viewMenu->addAction(tr("&Reset Zoom"), View, SLOT(zoomReset()), QKeySequence(Qt::CTRL + Qt::Key_R));
viewMenu->addSeparator();
viewMenu->addAction(tr("Image Size"), this, SLOT(slotViewSetImageSize()), QKeySequence(Qt::Key_F3));
QMenu* fractalAlgorithmMenu = menuBar()->addMenu(tr("&Algorithm"));
Q_CHECK_PTR(fractalAlgorithmMenu);
QAction* configureAlgorithmAction = fractalAlgorithmMenu->addAction(tr("Configure Algorithm"), this, SLOT(slotViewConfigureAlgorithm()), QKeySequence(Qt::Key_F2));
configureAlgorithmAction->setData(1000000);
fractalAlgorithmMenu->addSeparator();
QActionGroup* fractalAlgorithmGroup = new QActionGroup(this);
Q_CHECK_PTR(fractalAlgorithmGroup);
FractalAlgorithmInterface* fractalAlgorithm;
QStringList fractalAlgorithmList;
unsigned int fractalAlgorithmID = 0;
while((fractalAlgorithm = FractalAlgorithmInterface::getAlgorithm(fractalAlgorithmID))) {
QAction* item = fractalAlgorithmMenu->addAction(fractalAlgorithm->getName());
Q_CHECK_PTR(item);
fractalAlgorithmGroup->addAction(item);
item->setData(fractalAlgorithmID);
item->setCheckable(true);
item->setChecked((fractalAlgorithmID == 0));
FractalAlgorithmActionList.append(item);
fractalAlgorithmID++;
}
connect(fractalAlgorithmMenu, SIGNAL(triggered(QAction*)), this, SLOT(slotViewSetFractalAlgorithm(QAction*)));
QMenu* colorSchemeMenu = menuBar()->addMenu(tr("&Color Scheme"));
Q_CHECK_PTR(colorSchemeMenu);
QActionGroup* colorSchemeGroup = new QActionGroup(this);
ColorSchemeInterface* colorScheme;
QStringList colorSchemeList;
unsigned int colorSchemeID = 0;
while((colorScheme = ColorSchemeInterface::getColorScheme(colorSchemeID))) {
QAction* item = colorSchemeMenu->addAction(colorScheme->getName());
Q_CHECK_PTR(item);
colorSchemeGroup->addAction(item);
item->setData(colorSchemeID);
item->setCheckable(true);
item->setChecked((colorSchemeID == 0));
ColorSchemeActionList.append(item);
colorSchemeID++;
}
connect(colorSchemeMenu, SIGNAL(triggered(QAction*)), this, SLOT(slotViewSetColorScheme(QAction*)));
QMenu* helpMenu = menuBar()->addMenu(tr("&Help"));
Q_CHECK_PTR(helpMenu);
helpMenu->addAction(tr("&About"), this, SLOT(slotHelpAbout()));
Printer.setColorMode(QPrinter::Color);
Printer.setOrientation(QPrinter::Landscape);
Printer.setOutputFileName(tr("Fractal.pdf"));
statusBar()->showMessage("Welcome to Fractal Generator!", 3000);
if(fileName != "") {
Document->openDocument(fileName);
}
show();
}
// ###### Destructor ########################################################
FractalGeneratorApp::~FractalGeneratorApp()
{
}
// ###### Open ##############################################################
void FractalGeneratorApp::slotFileOpen()
{
statusBar()->showMessage(tr("Opening file..."));
const QString fileName = QFileDialog::getOpenFileName(
this, tr("Open File ..."),
QDir::currentPath(),
tr("Fractal Settings File (*.fsf)"));
if(!fileName.isEmpty()) {
Document->openDocument(fileName);
}
statusBar()->showMessage(tr("Ready."));
}
// ###### Save ##############################################################
void FractalGeneratorApp::slotFileSaveAs()
{
statusBar()->showMessage(tr("Saving file as ..."));
const QString fileName = QFileDialog::getSaveFileName(
this, tr("Save File ..."),
QDir::currentPath(),
tr("Fractal Settings File (*.fsf)"));
if(!fileName.isEmpty()) {
Document->saveDocument(fileName);
}
statusBar()->showMessage(tr("Ready."));
}
// ###### Save as ###########################################################
void FractalGeneratorApp::slotFileSave()
{
statusBar()->showMessage(tr("Saving file..."));
bool overwrite = true;
if(QFile::exists(Document->getFileName())) {
if(QMessageBox::warning(this, tr("Fractal Generator II"),
tr("Overwrite existing file") + " " + Document->getFileName() + "?",
QMessageBox::Save|QMessageBox::Cancel, QMessageBox::Save) == QMessageBox::Cancel) {
overwrite = false;
}
}
if(overwrite) {
Document->saveDocument(Document->getFileName());
}
statusBar()->showMessage(tr("Ready."));
}
// ###### Export ############################################################
void FractalGeneratorApp::slotFileExportImage()
{
statusBar()->showMessage(tr("Exporting Image ..."));
QString name = QFileDialog::getSaveFileName(this, tr("Export Image"),
QDir::currentPath(),
tr("*.png"));
if(!name.isEmpty()) {
if(name.right(4).toLower() != tr(".png"))
name += tr(".png");
View->getDisplay()->saveImage(name, "PNG");
}
statusBar()->showMessage(tr("Ready."));
}
// ###### Close #############################################################
void FractalGeneratorApp::slotFileClose()
{
close();
}
// ###### Print #############################################################
void FractalGeneratorApp::slotFilePrint()
{
statusBar()->showMessage(tr("Printing..."));
QPrintDialog printDialog(&Printer, this);
if(printDialog.exec() == QDialog::Accepted) {
View->print(&Printer);
}
statusBar()->showMessage(tr("Ready."));
}
// ###### Quit ##############################################################
void FractalGeneratorApp::slotFileQuit()
{
exit(0);
}
// ###### About #############################################################
void FractalGeneratorApp::slotHelpAbout()
{
QMessageBox::information(this,
tr("FractalGenerator II"),
tr("FractalGenerator II\n") +
"Copyright (C) 2003-2011 by Thomas Dreibholz",
tr("Okay"));
}
// ###### Set picture size ##################################################
void FractalGeneratorApp::slotViewSetImageSize()
{
statusBar()->showMessage(tr("Changing Image Size ..."));
QString CurrentSize;
CurrentSize += QString().setNum(View->getSizeX());
CurrentSize += tr("*");
CurrentSize += QString().setNum(View->getSizeY());
bool ok;
QString text = QInputDialog::getText(
this,
tr("Image Size"),
tr("Please enter new size in the format x*y:"),
QLineEdit::Normal, CurrentSize, &ok);
if((ok) || (!text.isEmpty())) {
const unsigned int newX = text.section("*", 0, 0).toUInt();
const unsigned int newY = text.section("*", 1, 1).toUInt();
if((0 < newX) && (0 < newY)) {
View->changeSize(newX, newY);
View->configChanged();
}
else {
QMessageBox::information( this, tr("Image Size"),
"Change to "
+ QString().setNum(newX)
+ "*"
+ QString().setNum(newY)
+ " failed!");
}
ViewZoomBack->setEnabled(View->isZoomBackPossible());
}
statusBar()->showMessage(tr("Ready."));
}
// ###### Configure algorithm ###############################################
void FractalGeneratorApp::slotViewConfigureAlgorithm()
{
statusBar()->showMessage(tr("Changing Options ..."));
OptionsDialog dialog(this, View->getAlgorithm()->getConfigEntries());
dialog.exec();
View->configChanged();
statusBar()->showMessage(tr("Ready."));
}
// ###### Update algorithm ##################################################
void FractalGeneratorApp::slotUpdateFractalAlgorithm()
{
const FractalAlgorithmInterface* currentAlgorithm = View->getAlgorithm();
unsigned int i = 0;
QListIterator iterator(FractalAlgorithmActionList);
while(iterator.hasNext()) {
QAction* item = iterator.next();
const FractalAlgorithmInterface* algorithm = FractalAlgorithmInterface::getAlgorithm(i);
Q_CHECK_PTR(algorithm);
item->setChecked( (algorithm == currentAlgorithm) );
i++;
}
}
// ###### Update color scheme ###############################################
void FractalGeneratorApp::slotUpdateColorScheme()
{
const ColorSchemeInterface* currentColorScheme = View->getColorScheme();
unsigned int i = 0;
QListIterator iterator(ColorSchemeActionList);
while(iterator.hasNext()) {
QAction* item = iterator.next();
const ColorSchemeInterface* colorScheme = ColorSchemeInterface::getColorScheme(i);
Q_CHECK_PTR(colorScheme);
item->setChecked( (colorScheme == currentColorScheme) );
i++;
}
}
// ###### Update file name ##################################################
void FractalGeneratorApp::slotUpdateFileName(const QString& fileName)
{
setWindowTitle(fileName + " - " + tr("Fractal Generator II"));
}
// ###### Update Zoon In menu item ##########################################
void FractalGeneratorApp::slotUpdateZoomInPossible()
{
const bool zoomInPossible = View->isZoomInPossible();
ViewZoomIn->setEnabled(zoomInPossible);
if(zoomInPossible) {
statusBar()->showMessage(tr("Click middle mount button or choose \"View -> Zoom In\" to magnify selected area!"));
}
else {
statusBar()->showMessage(tr("Ready."));
}
}
// ###### Update Zoon Back menu item ########################################
void FractalGeneratorApp::slotUpdateZoomBackPossible()
{
ViewZoomBack->setEnabled(View->isZoomBackPossible());
}
// ###### Set algorithm #####################################################
void FractalGeneratorApp::slotViewSetFractalAlgorithm(QAction* action)
{
const int algorithmID = action->data().toInt();
if(algorithmID < 1000000) {
View->changeAlgorithm(algorithmID);
View->configChanged();
ViewZoomBack->setEnabled(View->isZoomBackPossible());
}
}
// ###### Set color scheme ##################################################
void FractalGeneratorApp::slotViewSetColorScheme(QAction* action)
{
const int colorSchemeID = action->data().toInt();
if(colorSchemeID < 1000000) {
View->changeColorScheme(colorSchemeID);
View->configChanged();
ViewZoomBack->setEnabled(View->isZoomBackPossible());
}
}
fractgen-2.0.17/src/fractalgeneratordoc.cpp 0000664 0001750 0001750 00000023203 12474605316 020164 0 ustar dreibh dreibh /* $Id: fractalgeneratordoc.cpp 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#include "fractalgeneratordoc.h"
#include "fractalgenerator.h"
#include "fractalgenerator.h"
#include "fractalgeneratorview.h"
#include
#include
#include
#include
#include
// ###### Constructor #######################################################
FractalGeneratorDoc::FractalGeneratorDoc(QWidget* parent, FractalGeneratorView* view)
: QObject(parent)
{
View = view;
Application = static_cast(parent);
}
// ###### Destructor ########################################################
FractalGeneratorDoc::~FractalGeneratorDoc()
{
closeDocument();
}
// ###### Close document ####################################################
void FractalGeneratorDoc::closeDocument()
{
}
// ###### New document ######################################################
void FractalGeneratorDoc::newDocument()
{
Modified = false;
setFileName(tr("Unnamed.fsf"));
}
// ###### Open document #####################################################
bool FractalGeneratorDoc::openDocument(const QString& fileName)
{
// ====== Open file ======================================================
QFile file(fileName);
if(!file.open(QIODevice::ReadOnly)) {
return(false);
}
// ====== Parse XML document =============================================
QDomDocument doc("XMLFractalSave");
QString errorText;
int line, column;
if(!doc.setContent(&file, false, &errorText, &line, &column)) {
QMessageBox::warning(Application, tr("Open File Failure"),
errorText + " in line " + QString().setNum(line) + ", column " + QString().setNum(column));
return(false);
}
// ====== Get fractal configuration ======================================
// ------ Get algorithm --------------------------------------------------
const QDomElement algorithmNameField = doc.elementsByTagName("AlgorithmName").item(0).toElement();
const QString algorithmName = algorithmNameField.firstChild().toText().data();
unsigned int algorithmID = 0;
FractalAlgorithmInterface* fractalAlgorithm;
while( (fractalAlgorithm = FractalAlgorithmInterface::getAlgorithm(algorithmID)) != NULL ) {
if(QString(fractalAlgorithm->getIdentifier()) == algorithmName) {
break;
}
algorithmID++;
}
if(fractalAlgorithm == NULL) {
QMessageBox::warning(Application, tr("Open File Failure"),
tr("Invalid AlgorithmName entry:") + algorithmName);
return(false);
}
// ------ Get color scheme -----------------------------------------------
const QDomElement colorSchemeField = doc.elementsByTagName("ColorSchemeName").item(0).toElement();
const QString colorSchemeName = colorSchemeField.firstChild().toText().data();
unsigned int colorSchemeID = 0;
ColorSchemeInterface* colorScheme;
while((colorScheme = ColorSchemeInterface::getColorScheme(colorSchemeID))) {
if(QString(colorScheme->getIdentifier()) == colorSchemeName) {
break;
}
colorSchemeID++;
}
if(colorScheme == NULL) {
QMessageBox::warning(Application, tr("Open File Failure"),
tr("Invalid ColorSchemeName entry:") + colorSchemeName);
return(false);
}
// ------ Get resolution -------------------------------------------------
/*
QString resolution = doc.elementsByTagName("Resolution").item(0).firstChild().toText().data();
unsigned int newX = resolution.section("*",0,0).toUInt();
unsigned int newY = resolution.section("*",1,1).toUInt();
View->changeSize(newX, newY);
*/
// ------ Get C1 and C2 --------------------------------------------------
const double c1real = doc.elementsByTagName("C1Real").item(0).firstChild().toText().data().toDouble();
const double c1imag = doc.elementsByTagName("C1Imag").item(0).firstChild().toText().data().toDouble();
const double c2real = doc.elementsByTagName("C2Real").item(0).firstChild().toText().data().toDouble();
const double c2imag = doc.elementsByTagName("C2Imag").item(0).firstChild().toText().data().toDouble();
const std::complex C1(c1real, c1imag);
const std::complex C2(c2real, c2imag);
View->changeC1C2(C1, C2);
// ------ Activate settings ----------------------------------------------
View->changeAlgorithm(algorithmID);
View->changeColorScheme(colorSchemeID);
View->getAlgorithm()->configure(View->getSizeX(), View->getSizeY(),
C1, C2,*(View->getAlgorithm()->getMaxIterations()));
// ------ Set user options -----------------------------------------------
QDomElement userOptionsBranch = doc.elementsByTagName("Useroptions").item(0).toElement();
QDomNode userOptionsChild = userOptionsBranch.firstChild();
while(!userOptionsChild.isNull()) {
QListIterator iterator(*(View->getAlgorithm()->getConfigEntries()));
const QString name = userOptionsChild.nodeName();
const QString value = userOptionsChild.firstChild().toText().data();
bool found = false;
while(iterator.hasNext()) {
ConfigEntry* configEntry = iterator.next();
if(configEntry->getName() == name) {
configEntry->setValueFromString(value);
found = true;
break;
}
}
if(!found) {
QMessageBox::warning(Application, tr("Open File Warning"),
tr("Skipping unknown entry:") + name);
}
userOptionsChild = userOptionsChild.nextSibling();
}
// ------ Show new configuration -----------------------------------------
setFileName(fileName);
View->configChanged();
Modified = false;
return(true);
}
// ###### Save document #####################################################
bool FractalGeneratorDoc::saveDocument(const QString& fileName)
{
QDomDocument doc("XMLFractalSave");
QDomElement root = doc.createElement("FractalV1");
doc.appendChild(root);
// Create Algorithm branch
QDomElement algorithm = doc.createElement("Algorithm");
root.appendChild(algorithm);
// Algorithm Name
QDomElement tag = doc.createElement("AlgorithmName");
algorithm.appendChild(tag);
QDomText text = doc.createTextNode(View->getAlgorithm()->getIdentifier());
tag.appendChild(text);
// Algorithm C1Real
QDomElement C = doc.createElement("C1Real");
algorithm.appendChild(C);
text = doc.createTextNode(QString().setNum(View->getAlgorithm()->getC1().real(), 'e', 64));
C.appendChild(text);
// Algorithm C1Imag
C = doc.createElement("C1Imag");
algorithm.appendChild(C);
text = doc.createTextNode(QString().setNum(View->getAlgorithm()->getC1().imag(), 'e', 64));
C.appendChild(text);
// Algorithm C2Real
C = doc.createElement("C2Real");
algorithm.appendChild(C);
text = doc.createTextNode(QString().setNum(View->getAlgorithm()->getC2().real(), 'e', 64));
C.appendChild(text);
// Algorithm C2Imag
C = doc.createElement("C2Imag");
algorithm.appendChild(C);
text = doc.createTextNode(QString().setNum(View->getAlgorithm()->getC2().imag(), 'e', 64));
C.appendChild(text);
// Create UserOptions branch
QDomElement optionRoot = doc.createElement("Useroptions");
algorithm.appendChild(optionRoot);
QDomElement option;
QListIterator iterator(*View->getAlgorithm()->getConfigEntries());
while(iterator.hasNext()) {
ConfigEntry* configEntry = iterator.next();
option = doc.createElement(configEntry->getName());
optionRoot.appendChild(option);
text = doc.createTextNode(configEntry->getValueAsString());
option.appendChild(text);
}
// Create ColorScheme branch
QDomElement colorScheme = doc.createElement("ColorScheme");
root.appendChild(colorScheme);
tag = doc.createElement("ColorSchemeName");
colorScheme.appendChild(tag);
text = doc.createTextNode(View->getColorScheme()->getIdentifier());
tag.appendChild(text);
// Resolution
QDomElement resolution = doc.createElement("Resolution");
root.appendChild( resolution );
QString CurrentSize;
CurrentSize += QString().setNum(View->getSizeX());
CurrentSize += tr("*");
CurrentSize += QString().setNum(View->getSizeY());
text = doc.createTextNode( CurrentSize );
resolution.appendChild(text);
// Write XML document to file
QString newFileName = fileName;
if(newFileName.right(4) != ".fsf") {
newFileName += ".fsf";
}
QFile file(newFileName);
file.open(QIODevice::WriteOnly);
file.write(doc.toString().toLocal8Bit());
setFileName(newFileName);
Modified = false;
return(true);
}
fractgen-2.0.17/src/fractalgeneratorview.cpp 0000664 0001750 0001750 00000033221 12474605316 020372 0 ustar dreibh dreibh /* $Id: fractalgeneratorview.cpp 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#include "fractalgeneratorview.h"
#include "fractalgeneratordoc.h"
#include "fractalgenerator.h"
#include
#include
#include
#include
#include
#include
#include
#define INITIAL_WIDTH 640
#define INITIAL_HEIGHT 480
// ###### Constructor #######################################################
FractalGeneratorView::FractalGeneratorView(QWidget* parent)
: QWidget(parent)
{
Thread = NULL;
installEventFilter(this);
Buffer = new FractalBuffer();
Q_CHECK_PTR(Buffer);
Display = new ImageDisplay(this);
Q_CHECK_PTR(Display);
connect(Display, SIGNAL(offsetUpdate(int, int)), this, SLOT(slotOffsetUpdate(int, int)));
connect(Display, SIGNAL(zoom()), this, SLOT(zoomIn()));
connect(Display, SIGNAL(selection(unsigned int, unsigned int, unsigned int, unsigned int)),
this, SLOT(slotSelectionUpdate(unsigned int, unsigned int, unsigned int, unsigned int)));
XScrollBar = new QScrollBar(Qt::Horizontal, this);
Q_CHECK_PTR(XScrollBar);
connect(XScrollBar, SIGNAL(valueChanged(int)), this, SLOT(slotXScrollBarChange(int)));
YScrollBar = new QScrollBar(Qt::Vertical, this);
Q_CHECK_PTR(YScrollBar);
connect(YScrollBar, SIGNAL(valueChanged(int)), this, SLOT(slotYScrollBarChange(int)));
ControlLED = new QLabel(this);
Q_CHECK_PTR(ControlLED);
ControlLED->setFrameStyle(QFrame::Panel|QFrame::Sunken);
QGridLayout* layout = new QGridLayout(this);
Q_CHECK_PTR(layout);
layout->addWidget(Display, 0, 0);
layout->addWidget(XScrollBar, 1, 0);
layout->addWidget(YScrollBar, 0, 1);
layout->addWidget(ControlLED, 1, 1);
SizeX = INITIAL_WIDTH;
SizeY = INITIAL_HEIGHT;
Display->reset(SizeX, SizeY);
Display->setMinimumSize(SizeX, SizeY);
Buffer->reset(Display->imageWidth(), Display->imageHeight());
Algorithm = FractalAlgorithmInterface::getAlgorithmByIdentifier("Mandelbrot");
Q_CHECK_PTR(Algorithm);
ColorScheme = ColorSchemeInterface::getColorSchemeByIdentifier("SimpleHSV");
Q_CHECK_PTR(ColorScheme);
C1 = Algorithm->defaultC1();
C2 = Algorithm->defaultC2();
Selection = false;
ProgStep = 8;
Algorithm->configure(Display->imageWidth(),
Display->imageHeight(),
C1, C2,
Algorithm->defaultMaxIterations());
ColorScheme->configure(Algorithm->getMaxIterations());
startCalculation();
updateScrollBars();
}
// ###### Destructor ########################################################
FractalGeneratorView::~FractalGeneratorView()
{
delete Buffer;
Buffer = NULL;
delete GreenLED;
GreenLED = NULL;
delete RedLED;
RedLED = NULL;
}
// ###### Resize ############################################################
void FractalGeneratorView::resizeEvent(QResizeEvent*)
{
updateScrollBars();
}
// ###### Vertical scollbar update ##########################################
void FractalGeneratorView::slotXScrollBarChange(int value)
{
int newOffset = value;
if(newOffset + Display->width() >= (int)Display->imageWidth()) {
newOffset = Display->imageWidth() - Display->width();
}
if(newOffset < 0) {
newOffset = 0;
}
if(Display->offsetX() != (unsigned int)newOffset) {
Display->setOffsetX((unsigned int)newOffset);
Display->update();
}
}
// ###### Horizontal scollbar update ########################################
void FractalGeneratorView::slotYScrollBarChange(int value)
{
int newOffset = value;
if(newOffset + Display->height() >= (int)Display->imageHeight()) {
newOffset = Display->imageHeight() - Display->height();
}
if(newOffset < 0) {
newOffset = 0;
}
if(Display->offsetY() != (unsigned int)newOffset) {
Display->setOffsetY((unsigned int)newOffset);
Display->update();
}
}
// ###### Offset update #####################################################
void FractalGeneratorView::slotOffsetUpdate(int newOffsetX, int newOffsetY)
{
XScrollBar->setValue(newOffsetX);
YScrollBar->setValue(newOffsetY);
}
// ###### Selection update ###################################################
void FractalGeneratorView::slotSelectionUpdate(unsigned int x1, unsigned int y1, unsigned int x2, unsigned int y2)
{
SelectionC1 = std::complex(C1.real() + x1 * ((C2.real() - C1.real()) / Display->imageWidth()),
C1.imag() + y1 * ((C2.imag() - C1.imag()) / Display->imageHeight()));
SelectionC2 = std::complex(C1.real() + x2 * ((C2.real() - C1.real()) / Display->imageWidth()),
C1.imag() + y2 * ((C2.imag() - C1.imag()) / Display->imageHeight()));
// printf("Selected: %d %d - %d %d\n",x1,y1,x2,y2);
if((x1 != x2) && (y1 != y2)) {
Selection = true;
}
else {
Selection = false;
}
emit updateZoomInPossible();
}
// ###### Change image size #################################################
void FractalGeneratorView::changeSize(int X, int Y)
{
if(Thread != NULL) {
stopCalculation();
}
SizeX = X;
SizeY = Y;
Display->reset(SizeX, SizeY);
Buffer->reset(Display->imageWidth(), Display->imageHeight());
Selection = false;
Algorithm->changeSize(Display->imageWidth(),
Display->imageHeight());
updateScrollBars();
}
// ###### Change C1 and C2 ##################################################
void FractalGeneratorView::changeC1C2(std::complex NewC1, std::complex NewC2)
{
if(Thread != NULL) {
stopCalculation();
}
C1 = NewC1;
C2 = NewC2;
}
// ###### Update scroll bars ################################################
void FractalGeneratorView::updateScrollBars()
{
XScrollBar->setMaximum(std::max(0, Display->imageWidth() - Display->width()));
XScrollBar->setPageStep(std::min(Display->width(), Display->imageWidth()) / 4);
YScrollBar->setMaximum(std::max(0, Display->imageHeight() - Display->height()));
YScrollBar->setPageStep(std::min(Display->height(), Display->imageHeight()) / 4);
}
// ###### Update status LED #################################################
void FractalGeneratorView::updateLED(const bool busy)
{
QPixmap pixmap(16, 16);
pixmap.fill((busy == true) ? Qt::red : Qt::green);
ControlLED->setPixmap(pixmap);
}
// ###### Print image #######################################################
void FractalGeneratorView::print(QPrinter* printer)
{
int width = Display->imageWidth();
int height = Display->imageHeight();
char title[512];
snprintf((char*)&title, sizeof(title), "%s - c1=%f - %fi; c2=%f - %fi; %d iterations",
Algorithm->getName(),
C1.real(), C1.imag(), C2.real(), C2.imag(), *Algorithm->getMaxIterations());
QFont font("Times", 9);
font.setBold(true);
QFontMetrics fontMetrics(font);
QRect boundingRect = fontMetrics.boundingRect(title);
const int textwidth = boundingRect.width();
const int textheight = boundingRect.height();
printer->setDocName(title);
printer->setCreator("Thomas Dreibholz's Fractal Generator II");
int pagesx = 1;
int pagesy = 1;
QPainter p;
p.begin(printer);
const int xstep = width / pagesx;
const int ystep = height / pagesy;
for(int y = 0;y < pagesy;y++) {
for(int x = 0;x < pagesx;x++) {
p.setWindow(0, 0, xstep, ystep);
p.drawImage(0, 0, *(Display->image()), x * xstep, y * ystep, xstep, ystep);
if((x == pagesx - 1) && (y == pagesy - 1)) {
p.setWindow(0, 0, (int)(1.1 * textwidth), textheight * 50);
p.setPen(Qt::black);
p.setFont(font);
p.drawText(0, textheight * 48, (int)(1.1 * textwidth), textheight, Qt::AlignHCenter|Qt::AlignVCenter, title);
}
else {
printer->newPage();
}
/*
p.setWindow(0, 0, width, height);
p.setPen(Qt::red);
p.drawLine(0, 0, Display->imageWidth() - 1, Display->imageHeight() - 1);
p.drawLine(0, Display->imageHeight() - 1, Display->imageWidth() - 1, 0);
p.setPen(Qt::black);
char str[16];
snprintf((char*)&str,sizeof(str),"x=%d y=%d\n",x,y);
p.drawText(0, 0, str);
p.drawRect(0, 0, Display->imageWidth() - 1, Display->imageHeight() - 1);
*/
}
}
p.end();
}
// ###### Start calculation #################################################
void FractalGeneratorView::startCalculation()
{
if(Thread == NULL) {
Thread = new FractalCalculationThread(this, Algorithm, ColorScheme, Buffer, Display->image(), ProgStep);
Q_CHECK_PTR(Thread);
Thread->start();
updateLED(true);
}
}
// ###### Stop calculation ##################################################
void FractalGeneratorView::stopCalculation()
{
if(Thread != NULL) {
Thread->stop();
while(Thread != NULL) {
qApp->processEvents();
}
}
}
// ###### Handle events #####################################################
bool FractalGeneratorView::eventFilter(QObject*, QEvent* event)
{
if(Thread) {
if(event->type() == QEvent::User) {
Display->update();
}
else if(event->type() == (QEvent::Type)(QEvent::User + 1)) {
Display->update();
Thread->stop();
delete Thread;
Thread = NULL;
updateLED(false);
}
}
return(false);
}
// ###### Change fractal algorithm ##########################################
void FractalGeneratorView::changeAlgorithm(int index)
{
if(Thread != NULL) {
stopCalculation();
}
Algorithm = FractalAlgorithmInterface::getAlgorithm(index);
C1 = Algorithm->defaultC1();
C2 = Algorithm->defaultC2();
Selection = false;
Algorithm->configure(Display->imageWidth(), Display->imageHeight(),
C1, C2,
Algorithm->defaultMaxIterations());
ColorScheme->configure(Algorithm->getMaxIterations());
zoomList.clear();
emit updateFractalAlgorithm();
}
// ###### Change color scheme ###############################################
void FractalGeneratorView::changeColorScheme(int index)
{
if(Thread != NULL) {
stopCalculation();
}
ColorScheme = ColorSchemeInterface::getColorScheme(index);
ColorScheme->configure(Algorithm->getMaxIterations());
emit updateColorScheme();
}
// ###### Configuration update -> restart calculation #######################
void FractalGeneratorView::configChanged()
{
if(Thread != NULL) {
stopCalculation();
}
Buffer->clear();
Display->reset(Display->imageWidth(), Display->imageHeight());
emit updateZoomInPossible();
emit updateZoomBackPossible();
startCalculation();
}
// ###### Reset zoom ########################################################
void FractalGeneratorView::zoomReset()
{
if(Thread != NULL) {
stopCalculation();
}
C1 = Algorithm->defaultC1();
C2 = Algorithm->defaultC2();
Algorithm->configure(Display->imageWidth(),
Display->imageHeight(),
C1, C2,
*Algorithm->getMaxIterations());
zoomList.clear();
configChanged();
}
// ###### Zoom in ###########################################################
void FractalGeneratorView::zoomIn()
{
if(Selection) {
if(Thread != NULL) {
stopCalculation();
}
zoomList.push_back(std::pair, std::complex >(C1, C2));
const double halfWidth = (SelectionC2.real() - SelectionC1.real()) / 2.0;
const double halfHeight = (SelectionC2.imag() - SelectionC1.imag()) / 2.0;
const std::complex center = std::complex(SelectionC1.real() + halfWidth,
SelectionC1.imag() + halfHeight);
const double newHalfHeight = halfWidth * ((double)Display->imageHeight() / (double)Display->imageWidth());
C1 = std::complex(center.real() - halfWidth, center.imag() + newHalfHeight);
C2 = std::complex(center.real() + halfWidth, center.imag() - newHalfHeight);
Selection = false;
Buffer->clear();
Display->reset(Display->imageWidth(), Display->imageHeight());
Algorithm->configure(Display->imageWidth(), Display->imageHeight(),
C1, C2,
*Algorithm->getMaxIterations());
configChanged();
}
}
// ###### Zoom back #########################################################
void FractalGeneratorView::zoomBack()
{
if(Thread != NULL) {
stopCalculation();
}
if(zoomList.size() > 0) {
C1 = zoomList.back().first;
C2 = zoomList.back().second;
zoomList.pop_back();
Algorithm->configure(Display->imageWidth(), Display->imageHeight(),
C1, C2,
*Algorithm->getMaxIterations());
configChanged();
}
}
fractgen-2.0.17/src/fractgen.cpp 0000664 0001750 0001750 00000003556 12474605316 015755 0 ustar dreibh dreibh /* $Id: fractgen.cpp 1034 2011-05-04 06:40:35Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#include "fractalgenerator.h"
#include
#include
// ###### Main program ######################################################
int main(int argc, char *argv[])
{
QApplication application(argc, argv);
FractalGeneratorApp* fractalGeneratorApp = NULL;
for(int i = 1;i < argc;i++) {
const QString fileName = argv[i];
if( (fractalGeneratorApp == NULL) &&
(fileName.right(4) == ".fsf") &&
(QFile::exists(fileName)) ) {
// Open file provided by argument ...
fractalGeneratorApp = new FractalGeneratorApp(NULL, fileName);
fractalGeneratorApp->show();
}
}
if(fractalGeneratorApp == NULL) {
// Start new image, if no file has been opened.
fractalGeneratorApp = new FractalGeneratorApp(NULL);
fractalGeneratorApp->show();
}
return application.exec();
}
fractgen-2.0.17/src/imagedisplay.cpp 0000664 0001750 0001750 00000014623 12474605316 016631 0 ustar dreibh dreibh /* $Id: imagedisplay.cpp 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#include "imagedisplay.h"
#include
#include
#include
// ###### Constructor #######################################################
ImageDisplay::ImageDisplay(QWidget* parent)
: QWidget(parent)
{
Image = new QImage();
Q_CHECK_PTR(Image);
OffsetX = 0;
OffsetY = 0;
MarkX1 = 0;
MarkY1 = 0;
MarkX2 = 0;
MarkY2 = 0;
Marking = false;
}
// ###### Destructor #######################################################
ImageDisplay::~ImageDisplay()
{
delete Image;
}
// ###### Reset image #######################################################
bool ImageDisplay::reset(const unsigned int width, const unsigned int height)
{
if(Image) {
delete Image;
}
Image = new QImage(width, height, QImage::Format_RGB32);
Q_CHECK_PTR(Image);
for(int y = 0;y < Image->height();y++) {
for(int x = 0;x < Image->width();x++) {
Image->setPixel(x, y, qRgb(255, 255, 255));
}
}
OffsetX = 0;
OffsetY = 0;
MarkX1 = 0;
MarkY1 = 0;
MarkX2 = 0;
MarkY2 = 0;
Marking = false;
return(true);
}
// ###### Draw marking rect #################################################
void ImageDisplay::drawMarkerRect(QPainter* painter, int x1, int y1, int x2, int y2, bool draw)
{
const int x = std::min(x1, x2) - OffsetX;
const int y = std::min(y1, y2) - OffsetY;
const int w = (std::max(x1, x2) - OffsetX) - x;
const int h = (std::max(y1, y2) - OffsetY) - y;
const int bw = std::min(w / 2, 5);
const int bh = std::min(h / 2, 5);
if(draw) {
painter->fillRect(x - bw, y - bh, w + 2 * bw, bh, Qt::blue);
painter->fillRect(x - bw, y + h + 1, w + 2 * bw, bh, Qt::blue);
painter->fillRect(x - bw, y, bw, h + 1, Qt::blue);
painter->fillRect(x + w, y, bw, h + 1, Qt::blue);
}
else {
painter->drawImage(x - bw, y - bh, *Image, x - bw + (int)OffsetX, y - bh + (int)OffsetY, w + 2 * bw, bh);
painter->drawImage(x - bw, y + h + 1, *Image, x - bw + (int)OffsetX, y + h + 1 + (int)OffsetY, w + 2 * bw, bh);
painter->drawImage(x - bw, y, *Image, x - bw + (int)OffsetX, y + (int)OffsetY, bw, h + 1);
painter->drawImage(x + w, y, *Image, x + w + (int)OffsetX, y + (int)OffsetY, bw, h + 1);
}
}
// ###### Resize ############################################################
void ImageDisplay::resizeEvent(QResizeEvent*)
{
update();
}
// ###### Repaint ###########################################################
void ImageDisplay::paintEvent(QPaintEvent* paintEvent)
{
QPainter p;
p.begin(this);
p.drawImage(paintEvent->rect().left(), paintEvent->rect().top(),
*Image,
paintEvent->rect().left() + OffsetX,
paintEvent->rect().top() + OffsetY,
paintEvent->rect().width(),
paintEvent->rect().height());
if(Marking) {
drawMarkerRect(&p, MarkX1, MarkY1, MarkX2, MarkY2);
}
p.end();
}
// ###### Handle mouse press for marking ####################################
void ImageDisplay::mousePressEvent(QMouseEvent* mouseEvent)
{
if(mouseEvent->button() & Qt::LeftButton) {
selection(0, 0, 0, 0); // Unmark
getMarkPosition(mouseEvent, MarkX1, MarkY1);
MarkX2 = MarkX1;
MarkY2 = MarkY1;
Marking = true;
update();
}
}
// ###### Handle mouse release for marking ##################################
void ImageDisplay::mouseReleaseEvent(QMouseEvent* mouseEvent)
{
LastOffsetUpdate = QTime();
mouseMoveEvent(mouseEvent);
if((mouseEvent->button() & Qt::LeftButton) && (Marking)) {
getMarkPosition(mouseEvent, MarkX2, MarkY2);
if((MarkX1 != MarkX2) && (MarkY1 != MarkY2)) {
selection(MarkX1, MarkY1, MarkX2, MarkY2);
}
update();
}
else if((mouseEvent->button() & Qt::RightButton) && (Marking)) {
Marking = false;
selection(0, 0, 0, 0); // Unmark
update();
}
if(mouseEvent->button() & Qt::MidButton) {
zoom();
}
}
// ###### Handle mouse movement for marking #################################
void ImageDisplay::mouseMoveEvent(QMouseEvent* mouseEvent)
{
if((Marking) && (LastOffsetUpdate.elapsed() >= 50)) {
int movex = 0;
int movey = 0;
if(mouseEvent->x() < 0) {
movex = std::max(mouseEvent->x(), -((int)OffsetX));
}
else if(mouseEvent->x() >= width()) {
movex = std::min(mouseEvent->x() - width(), Image->width() - width() - (int)OffsetX);
}
if(mouseEvent->y() < 0) {
movey = std::max(mouseEvent->y(), -((int)OffsetY));
}
else if(mouseEvent->y() >= height()) {
movey = std::min(mouseEvent->y() - height(), Image->height() - height() - (int)OffsetY);
}
if((movex != 0) || (movey != 0)) {
offsetUpdate((int)OffsetX + movex, (int)OffsetY + movey);
LastOffsetUpdate = QTime::currentTime();
}
getMarkPosition(mouseEvent, MarkX2, MarkY2);
update();
}
}
// ###### Get (x,y)-position for marking rect ###############################
void ImageDisplay::getMarkPosition(QMouseEvent* mouseEvent, int& x, int& y)
{
x = mouseEvent->x() + (int)OffsetX;
if(x < 0) {
x = 0;
}
if(x >= Image->width()) {
x = Image->width() - 1;
}
y = mouseEvent->y() + (int)OffsetY;
if(y < 0) {
y = 0;
}
if(y >= Image->height()) {
y = Image->height() - 1;
}
}
fractgen-2.0.17/src/mandelbrot.cpp 0000664 0001750 0001750 00000004533 12474605316 016307 0 ustar dreibh dreibh /* $Id: mandelbrot.cpp 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#include "mandelbrot.h"
Mandelbrot* Mandelbrot::Registration = new Mandelbrot();
// ###### Constructor #######################################################
Mandelbrot::Mandelbrot(const char* identifier, const char* name)
: FractalAlgorithmInterface(identifier, name)
{
}
// ###### Destructor ########################################################
Mandelbrot::~Mandelbrot()
{
}
// ###### Get default for C1 ################################################
std::complex Mandelbrot::defaultC1() const
{
return(std::complex(-1.5, 1.5));
}
// ###### Get default for C2 ################################################
std::complex Mandelbrot::defaultC2() const
{
return(std::complex(1.5, -1.5));
}
// ###### Calculate graphics point (x,y) ####################################
unsigned int Mandelbrot::calculatePoint(const unsigned int x,
const unsigned int y)
{
const std::complex c = std::complex(C1.real() + ((double)x * StepX),
C1.imag() + ((double)y * StepY));
std::complex z(0.0, 0.0);
unsigned int i;
for(i = 0;i < MaxIterations;i++) {
z = z*z - c;
if(z.real() * z.real() + z.imag() * z.imag() >= 2.0) {
return(i);
}
}
return(i);
}
fractgen-2.0.17/src/mandelbrotn.cpp 0000664 0001750 0001750 00000004170 12474605316 016462 0 ustar dreibh dreibh /* $Id: mandelbrotn.cpp 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#include "mandelbrotn.h"
#include "doubleconfigentry.h"
#include
MandelbrotN* MandelbrotN::Registration = new MandelbrotN();
// ###### Constructor #######################################################
MandelbrotN::MandelbrotN(const char* identifier, const char* name)
: Mandelbrot(identifier, name)
{
N = 4.0;
ConfigEntries.append(new DoubleConfigEntry(&N, "N"));
}
// ###### Destructor ########################################################
MandelbrotN::~MandelbrotN()
{
}
// ###### Calculate graphics point (x,y) ####################################
unsigned int MandelbrotN::calculatePoint(const unsigned int x,
const unsigned int y)
{
const std::complex c = std::complex(C1.real() + ((double)x * StepX),
C1.imag() + ((double)y * StepY));
std::complex z(0.0, 0.0);
unsigned int i;
for(i = 0;i < MaxIterations;i++) {
z = pow(z, (int)rint(N)) - c;
if(z.real() * z.real() + z.imag() * z.imag() >= 2.0) {
return(i);
}
}
return(i);
}
fractgen-2.0.17/src/optionsdialog.cpp 0000664 0001750 0001750 00000007420 12474605316 017031 0 ustar dreibh dreibh /* $Id: optionsdialog.cpp 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#include "optionsdialog.h"
#include
#include
#include
// ###### Constructor #######################################################
OptionsDialog::OptionsDialog(QWidget* parent, QList* configEntries)
: QDialog(parent)
{
setWindowTitle(tr("Fractal Algorithm Options"));
ConfigEntries = configEntries;
QVBoxLayout* layout = new QVBoxLayout(this);
Q_CHECK_PTR(layout);
TableWidget = new QTableWidget(configEntries->size(), 2, this);
Q_CHECK_PTR(TableWidget);
QTableWidgetItem* parameterName = new QTableWidgetItem(tr("Parameter Name"));
Q_CHECK_PTR(parameterName);
parameterName->setTextAlignment(Qt::AlignLeft);
TableWidget->setHorizontalHeaderItem(0, parameterName);
QTableWidgetItem* parameterValue = new QTableWidgetItem(tr("Parameter Value"));
Q_CHECK_PTR(parameterValue);
parameterValue->setTextAlignment(Qt::AlignLeft);
TableWidget->setHorizontalHeaderItem(1, parameterValue);
QListIterator iterator(*configEntries);
int row = 0;
while(iterator.hasNext()) {
ConfigEntry* configEntry = iterator.next();
QTableWidgetItem* parameterName = new QTableWidgetItem(configEntry->getName());
Q_CHECK_PTR(parameterName);
parameterName->setFlags(Qt::ItemIsEnabled);
QTableWidgetItem* parameterValue = new QTableWidgetItem(configEntry->getValueAsString());
Q_CHECK_PTR(parameterValue);
TableWidget->setItem(row, 0, parameterName);
TableWidget->setItem(row, 1, parameterValue);
row++;
}
connect(TableWidget, SIGNAL(itemChanged(QTableWidgetItem*)), SLOT(slotItemChanged(QTableWidgetItem*)));
TableWidget->horizontalHeader()->setResizeMode(QHeaderView::Stretch);
TableWidget->setMinimumSize(560,420);
layout->addWidget(TableWidget);
QPushButton* button = new QPushButton("&Okay");
connect(button, SIGNAL(clicked()), SLOT(accept()));
layout->addWidget(button);
}
// ###### Destructor ########################################################
OptionsDialog::~OptionsDialog()
{
}
// ###### Update value ######################################################
void OptionsDialog::slotItemChanged(QTableWidgetItem* item)
{
const int row = item->row();
const int column = item->column();
const QTableWidgetItem* parameterName = item->tableWidget()->item(row, column - 1);
Q_CHECK_PTR(parameterName);
const QString parameterNameString = parameterName->text();
const QString parameterValueString = item->text();
QListIterator iterator(*ConfigEntries);
while(iterator.hasNext()) {
ConfigEntry* configEntry = iterator.next();
if(configEntry->getName() == parameterNameString) {
configEntry->setValueFromString(parameterValueString);
break;
}
}
}
fractgen-2.0.17/src/simplehsv.cpp 0000664 0001750 0001750 00000002617 12474605316 016173 0 ustar dreibh dreibh /* $Id: simplehsv.cpp 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#include "simplehsv.h"
#include
SimpleHSV* SimpleHSV::Registration = new SimpleHSV();
SimpleHSV::SimpleHSV(const char* identifier, const char* name)
: ColorSchemeInterface(identifier, name)
{
}
SimpleHSV::~SimpleHSV()
{
}
unsigned int SimpleHSV::getColor(const unsigned int value)
{
QColor color;
color.setHsv((value % 72) * 5, 255, 255);
return(color.rgb());
}
fractgen-2.0.17/src/simplergb.cpp 0000664 0001750 0001750 00000005345 12474605316 016146 0 ustar dreibh dreibh /* $Id: simplergb.cpp 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#include "simplergb.h"
#include
#include
SimpleRGB* SimpleRGB::Registration = new SimpleRGB();
#define INITAL_COLORMAP_SIZE 256
SimpleRGB::SimpleRGB(const char* identifier, const char* name)
: ColorSchemeInterface(identifier, name)
{
ColorMapSize = INITAL_COLORMAP_SIZE;
ColorMap = new unsigned int[ColorMapSize];
Q_CHECK_PTR(ColorMap);
for(unsigned int i = 0;i < ColorMapSize;i++) {
ColorMap[i] = rgbFromWaveLength(380.0 + (i * 400.0 / ColorMapSize));
}
}
SimpleRGB::~SimpleRGB()
{
delete [] ColorMap;
ColorMap = NULL;
}
unsigned int SimpleRGB::rgbFromWaveLength(const double wave)
{
double r = 0.0;
double g = 0.0;
double b = 0.0;
if (wave >= 380.0 && wave <= 440.0) {
r = -1.0 * (wave - 440.0) / (440.0 - 380.0);
b = 1.0;
} else if (wave >= 440.0 && wave <= 490.0) {
g = (wave - 440.0) / (490.0 - 440.0);
b = 1.0;
} else if (wave >= 490.0 && wave <= 510.0) {
g = 1.0;
b = -1.0 * (wave - 510.0) / (510.0 - 490.0);
} else if (wave >= 510.0 && wave <= 580.0) {
r = (wave - 510.0) / (580.0 - 510.0);
g = 1.0;
} else if (wave >= 580.0 && wave <= 645.0) {
r = 1.0;
g = -1.0 * (wave - 645.0) / (645.0 - 580.0);
} else if (wave >= 645.0 && wave <= 780.0) {
r = 1.0;
}
double s = 1.0;
if (wave > 700.0) {
s = 0.3 + 0.7 * (780.0 - wave) / (780.0 - 700.0);
}
else if (wave < 420.0) {
s = 0.3 + 0.7 * (wave - 380.0) / (420.0 - 380.0);
}
r = pow(r * s, 0.8);
g = pow(g * s, 0.8);
b = pow(b * s, 0.8);
return qRgb(int(r * 255), int(g * 255), int(b * 255));
}
unsigned int SimpleRGB::getColor(const unsigned int value)
{
return(ColorMap[value % ColorMapSize]);
}
fractgen-2.0.17/src/uintconfigentry.cpp 0000664 0001750 0001750 00000003626 12474605316 017411 0 ustar dreibh dreibh /* $Id: uintconfigentry.cpp 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#include "uintconfigentry.h"
// ###### Constructor #######################################################
UIntConfigEntry::UIntConfigEntry(unsigned int* valuePtr, const char* name)
{
EntryName = name;
ValuePtr = valuePtr;
}
// ###### Destructor ########################################################
UIntConfigEntry::~UIntConfigEntry()
{
}
// ###### Get name ##########################################################
QString UIntConfigEntry::getName() const
{
return(EntryName);
}
// ###### Get value as string ###############################################
QString UIntConfigEntry::getValueAsString() const
{
QString valueString;
valueString.setNum(*ValuePtr);
return(valueString);
}
// ###### Set value from string #############################################
void UIntConfigEntry::setValueFromString(const QString& valueString)
{
*ValuePtr = valueString.toUInt();
}
fractgen-2.0.17/src/colorschemeinterface.h 0000664 0001750 0001750 00000003611 12474605316 020005 0 ustar dreibh dreibh /* $Id: colorschemeinterface.h 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#ifndef COLORSCHEMEINTERFACE_H
#define COLORSCHEMEINTERFACE_H
#include
/**
*@author Thomas Dreibholz
*/
class ColorSchemeInterface {
public:
ColorSchemeInterface(const char* identifier, const char* name);
virtual ~ColorSchemeInterface();
inline const char* getIdentifier() { return(Identifier); }
inline const char* getName() const { return(Name); }
virtual void configure(unsigned int* maxIterations);
virtual unsigned int getColor(const unsigned int value) = 0;
static ColorSchemeInterface* getColorScheme(const unsigned int index);
static ColorSchemeInterface* getColorSchemeByIdentifier(const char* identifier);
protected:
const char* Name;
const char* Identifier;
unsigned int* MaxIterations;
private:
static QList* ColorSchemeList;
static bool Updated;
};
#endif
fractgen-2.0.17/src/configentry.h 0000664 0001750 0001750 00000002534 12474605316 016153 0 ustar dreibh dreibh /* $Id: configentry.h 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#ifndef CONFIGENTRY_H
#define CONFIGENTRY_H
#include
class ConfigEntry
{
public:
virtual ~ConfigEntry() {};
virtual QString getName() const = 0;
virtual QString getValueAsString() const = 0;
virtual void setValueFromString(const QString& valueString) = 0;
};
#endif
fractgen-2.0.17/src/doubleconfigentry.h 0000664 0001750 0001750 00000002750 12474605316 017346 0 ustar dreibh dreibh /* $Id: doubleconfigentry.h 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#ifndef DOUBLECONFIGENTRY_H
#define DOUBLECONFIGENTRY_H
#include
/**
* @author Thomas Dreibholz
*/
class DoubleConfigEntry : public ConfigEntry {
public:
DoubleConfigEntry(double* valuePtr, const char* name);
~DoubleConfigEntry();
virtual QString getName() const;
virtual QString getValueAsString() const;
virtual void setValueFromString(const QString& valueString);
private:
QString EntryName;
double* ValuePtr;
};
#endif
fractgen-2.0.17/src/dreibholz1.h 0000664 0001750 0001750 00000003162 12474605316 015665 0 ustar dreibh dreibh /* $Id: dreibholz1.h 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#ifndef DREIBHOLZ1_H
#define DREIBHOLZ1_H
#include
#include
/**
*@author Thomas Dreibholz
*/
class Dreibholz1 : public FractalAlgorithmInterface
{
public:
Dreibholz1(const char* identifier = "Dreibholz1",
const char* name = "Dreibholz1 Test");
~Dreibholz1();
virtual std::complex defaultC1() const;
virtual std::complex defaultC2() const;
virtual unsigned int calculatePoint(const unsigned int x,
const unsigned int y);
private:
static Dreibholz1* Registration;
};
#endif
fractgen-2.0.17/src/fractalalgorithminterface.h 0000664 0001750 0001750 00000005671 12474605316 021035 0 ustar dreibh dreibh /* $Id: fractalalgorithminterface.h 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#ifndef FRACTALALGORITHMINTERFACE_H
#define FRACTALALGORITHMINTERFACE_H
#include "configentry.h"
#include
#include
/**
*@author Thomas Dreibholz
*/
class FractalAlgorithmInterface {
public:
FractalAlgorithmInterface(const char* identifier, const char* name);
virtual ~FractalAlgorithmInterface();
inline const char* getIdentifier() { return(Identifier); }
inline const char* getName() const { return(Name); }
virtual std::complex defaultC1() const = 0;
virtual std::complex defaultC2() const = 0;
virtual int defaultMaxIterations() const;
inline const std::complex getC1() { return(C1); }
inline const std::complex getC2() { return(C2); }
virtual void configure(unsigned int width,
unsigned int height,
std::complex c1,
std::complex c2,
unsigned int maxIterations);
inline unsigned int* getMaxIterations() { return(&MaxIterations); }
inline QList* getConfigEntries() { return(&ConfigEntries); }
virtual void changeSize(int X, int Y);
virtual unsigned int calculatePoint(const unsigned int x,
const unsigned int y) = 0;
static FractalAlgorithmInterface* getAlgorithm(const unsigned int index);
static FractalAlgorithmInterface* getAlgorithmByIdentifier(const char* name);
protected:
const char* Name;
const char* Identifier;
unsigned int Width;
unsigned int Height;
unsigned int MaxIterations;
std::complex C1;
std::complex C2;
double StepX;
double StepY;
QList ConfigEntries;
private:
static QList* AlgorithmList;
static bool Updated;
};
#endif
fractgen-2.0.17/src/fractalbuffer.h 0000664 0001750 0001750 00000004172 12474605316 016432 0 ustar dreibh dreibh /* $Id: fractalbuffer.h 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#ifndef FRACTALBUFFER_H
#define FRACTALBUFFER_H
// #include
// #include
/**
*@author Thomas Dreibholz
*/
class FractalBuffer
{
public:
FractalBuffer();
~FractalBuffer();
bool reset(const unsigned int width, const unsigned int height);
void clear();
inline unsigned int getPoint(const unsigned int x, const unsigned int y) {
unsigned int pos = y * Width + x;
if(pos < BufferSize) {
return(Buffer[pos]);
}
// printf("ERROR: FractalBuffer::getPoint() - Illegal position: x=%d y=%d in w=%d h=%d\n", x, y, Width, Height);
// abort();
return(~0);
}
inline void setPoint(const unsigned int x, const unsigned int y, const unsigned int value) {
unsigned int pos = y * Width + x;
if(pos < BufferSize) {
Buffer[pos] = value;
}
// else {
// printf("ERROR: FractalBuffer::setPoint() - Illegal position: x=%d y=%d in w=%d h=%d\n",x,y,Width,Height);
// abort();
// }
}
private:
unsigned int* Buffer;
unsigned int BufferSize;
unsigned int Width;
unsigned int Height;
};
#endif
fractgen-2.0.17/src/fractalcalculationthread.h 0000664 0001750 0001750 00000004201 12474605316 020640 0 ustar dreibh dreibh /* $Id: fractalcalculationthread.h 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#ifndef FRACTALCALCULATIONTHREAD_H
#define FRACTALCALCULATIONTHREAD_H
#include "fractalalgorithminterface.h"
#include "colorschemeinterface.h"
#include "fractalbuffer.h"
#include
#include
#include
/**
* @author Thomas Dreibholz
*/
class FractalCalculationThread : public QThread {
public:
FractalCalculationThread(QObject* parent,
FractalAlgorithmInterface* algorithm,
ColorSchemeInterface* colorScheme,
FractalBuffer* buffer,
QImage* image,
unsigned int progStep);
~FractalCalculationThread();
void stop();
private:
void run();
private:
QObject* Parent;
FractalAlgorithmInterface* Algorithm;
ColorSchemeInterface* ColorScheme;
FractalBuffer* Buffer;
QImage* Image;
unsigned int MaxIterations;
unsigned int ProgStep;
bool Stop;
};
#endif
fractgen-2.0.17/src/fractalgeneratordoc.h 0000664 0001750 0001750 00000004147 12474605316 017637 0 ustar dreibh dreibh /* $Id: fractalgeneratordoc.h 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#ifndef FRACTALGENERATORDOC_H
#define FRACTALGENERATORDOC_H
#ifdef HAVE_CONFIG_H
#include
#endif
#include
#include
#include
class FractalGeneratorView;
class FractalGeneratorApp;
class FractalGeneratorDoc : public QObject
{
Q_OBJECT
public:
FractalGeneratorDoc(QWidget* parent, FractalGeneratorView* view);
~FractalGeneratorDoc();
inline const QString& getFileName() const { return(FileName); }
inline void setFileName(const QString& fileName) {
FileName = fileName;
emit updateFileName(FileName);
}
inline void setModified(bool modified) { Modified = modified; };
inline bool isModified() { return Modified; };
void newDocument();
bool openDocument(const QString& fileName);
bool saveDocument(const QString& fileName);
bool saveModified();
void closeDocument();
signals:
void updateFileName(const QString& fileName);
private:
bool Modified;
QString FileName;
FractalGeneratorApp* Application;
FractalGeneratorView* View;
};
#endif // FRACTALGENERATORDOC_H
fractgen-2.0.17/src/fractalgenerator.h 0000664 0001750 0001750 00000004727 12474605316 017155 0 ustar dreibh dreibh /* $Id: fractalgenerator.h 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#ifndef FRACTALGENERATOR_H
#define FRACTALGENERATOR_H
#ifdef HAVE_CONFIG_H
#include
#endif
#include
#include
#include
#include
class FractalGeneratorDoc;
class FractalGeneratorView;
class FractalGeneratorApp : public QMainWindow
{
Q_OBJECT
friend class FractalGeneratorView;
public:
FractalGeneratorApp(QWidget* parent, const QString& fileName = "");
~FractalGeneratorApp();
protected:
void initActions();
void initStatusBar();
void initDocument();
void initView();
public slots:
void slotFileOpen();
void slotFileSave();
void slotFileExportImage();
void slotFileSaveAs();
void slotFileClose();
void slotFilePrint();
void slotFileQuit();
void slotHelpAbout();
void slotViewSetImageSize();
void slotViewConfigureAlgorithm();
void slotViewSetFractalAlgorithm(QAction* action);
void slotViewSetColorScheme(QAction* action);
void slotUpdateFileName(const QString& fileName);
void slotUpdateFractalAlgorithm();
void slotUpdateColorScheme();
void slotUpdateZoomBackPossible();
void slotUpdateZoomInPossible();
private:
FractalGeneratorView* View;
FractalGeneratorDoc* Document;
QAction* ViewZoomIn;
QAction* ViewZoomBack;
QList FractalAlgorithmActionList;
QList ColorSchemeActionList;
QPrinter Printer;
};
#endif // FRACTALGENERATOR_H
fractgen-2.0.17/src/fractalgeneratorview.h 0000664 0001750 0001750 00000007470 12474605316 020046 0 ustar dreibh dreibh /* $Id: fractalgeneratorview.h 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#ifndef FRACTALGENERATORVIEW_H
#define FRACTALGENERATORVIEW_H
#ifdef HAVE_CONFIG_H
#include
#endif
#include "imagedisplay.h"
#include "fractalbuffer.h"
#include "fractalalgorithminterface.h"
#include "fractalcalculationthread.h"
#include "colorschemeinterface.h"
#include
#include
#include
#include
#include
#include
#include
class FractalGeneratorDoc;
class FractalGeneratorApp;
class FractalGeneratorView : public QWidget
{
Q_OBJECT
public:
FractalGeneratorView(QWidget* parent);
~FractalGeneratorView();
inline ImageDisplay* getDisplay() const { return(Display); }
inline FractalAlgorithmInterface* getAlgorithm() const { return(Algorithm); }
inline ColorSchemeInterface* getColorScheme() const { return(ColorScheme); }
inline int getSizeX() { return(SizeX); }
inline int getSizeY() { return(SizeY); }
inline bool isZoomInPossible() { return(Selection); }
inline bool isZoomBackPossible() { return(zoomList.size() > 0); }
void print(QPrinter *printer);
void configChanged();
void changeSize(int X, int Y);
void changeAlgorithm(int index);
void changeColorScheme(int index);
void changeC1C2(std::complex newC1, std::complex newC2);
public slots:
void slotXScrollBarChange(int value);
void slotYScrollBarChange(int value);
void slotOffsetUpdate(int newOffsetX, int newOffsetY);
void slotSelectionUpdate(unsigned int x1, unsigned int y1, unsigned int x2, unsigned int y2);
void zoomIn();
void zoomBack();
void zoomReset();
signals:
void updateZoomInPossible();
void updateZoomBackPossible();
void updateFractalAlgorithm();
void updateColorScheme();
protected:
void resizeEvent(QResizeEvent* resizeEvent);
bool eventFilter(QObject* object, QEvent* event);
private:
void updateScrollBars();
void updateLED(const bool busy);
void updateView();
void startCalculation();
void stopCalculation();
QScrollBar* XScrollBar;
QScrollBar* YScrollBar;
QLabel* ControlLED;
QPixmap* GreenLED;
QPixmap* RedLED;
ImageDisplay* Display;
FractalBuffer* Buffer;
FractalCalculationThread* Thread;
FractalAlgorithmInterface* Algorithm;
ColorSchemeInterface* ColorScheme;
unsigned int ProgStep;
std::complex C1;
std::complex C2;
std::complex SelectionC1;
std::complex SelectionC2;
bool Selection;
int SizeX;
int SizeY;
std::list, std::complex > > zoomList;
};
#endif // FRACTALGENERATORVIEW_H
fractgen-2.0.17/src/imagedisplay.h 0000664 0001750 0001750 00000005630 12474605316 016274 0 ustar dreibh dreibh /* $Id: imagedisplay.h 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#ifndef IMAGEDISPLAY_H
#define IMAGEDISPLAY_H
#include
#include
#include
#include
#include
#include
#include
class ImageDisplay : public QWidget {
Q_OBJECT
public:
ImageDisplay(QWidget* parent);
~ImageDisplay();
bool reset(const unsigned int width, const unsigned int height);
inline void setPoint(const unsigned int x, const unsigned int y, const QRgb color) {
Image->setPixel(x, y, color);
}
inline QImage* image() {
return(Image);
}
inline int imageWidth() {
return(Image->width());
}
inline int imageHeight() {
return(Image->height());
}
inline unsigned int offsetX() {
return(OffsetX);
}
inline unsigned int offsetY() {
return(OffsetY);
}
inline void setOffsetX(const unsigned int offsetX) {
OffsetX = offsetX;
}
inline void setOffsetY(const unsigned int offsetY) {
OffsetY = offsetY;
}
inline bool saveImage(QString &path, const char *format) {
return Image->save(path, format); }
signals:
void offsetUpdate(int newOffsetX, int newOffsetY);
void selection(unsigned int x1, unsigned int y1, unsigned int x2, unsigned int y2);
void zoom();
protected:
void resizeEvent(QResizeEvent* resizeEvent);
void paintEvent(QPaintEvent* paintEvent);
void mousePressEvent(QMouseEvent* mouseEvent);
void mouseReleaseEvent(QMouseEvent* mouseEvent);
void mouseMoveEvent(QMouseEvent* mouseEvent);
private:
void getMarkPosition(QMouseEvent* mouseEvent, int& x, int& y);
void drawMarkerRect(QPainter* painter, int x1, int y1, int x2, int y2, bool draw = true);
QImage* Image;
unsigned int OffsetX;
unsigned int OffsetY;
QTime LastOffsetUpdate;
int MarkX1;
int MarkY1;
int MarkX2;
int MarkY2;
bool Marking;
};
#endif
fractgen-2.0.17/src/mandelbrot.h 0000664 0001750 0001750 00000003152 12474605316 015750 0 ustar dreibh dreibh /* $Id: mandelbrot.h 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#ifndef MANDELBROT_H
#define MANDELBROT_H
#include
/**
*@author Thomas Dreibholz
*/
class Mandelbrot : public FractalAlgorithmInterface {
public:
Mandelbrot(const char* identifier = "Mandelbrot",
const char* name = "Mandelbrot z[i+1]=z[i]^2-c");
~Mandelbrot();
virtual std::complex defaultC1() const;
virtual std::complex defaultC2() const;
virtual unsigned int calculatePoint(const unsigned int x,
const unsigned int y);
private:
static Mandelbrot* Registration;
};
#endif
fractgen-2.0.17/src/mandelbrotn.h 0000664 0001750 0001750 00000003012 12474605316 016121 0 ustar dreibh dreibh /* $Id: mandelbrotn.h 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#ifndef MANDELBROTN_H
#define MANDELBROTN_H
#include
/**
*@author Thomas Dreibholz
*/
class MandelbrotN : public Mandelbrot {
public:
MandelbrotN(const char* identifier = "MandelbrotN",
const char* name = "MandelbrotN z[i+1]=z[i]^N-c");
~MandelbrotN();
virtual unsigned int calculatePoint(const unsigned int x,
const unsigned int y);
private:
static MandelbrotN* Registration;
double N;
};
#endif
fractgen-2.0.17/src/optionsdialog.h 0000664 0001750 0001750 00000002743 12474605316 016501 0 ustar dreibh dreibh /* $Id: optionsdialog.h 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#ifndef OPTIONSDIALOG_H
#define OPTIONSDIALOG_H
#include
#include
#include
#include "configentry.h"
class OptionsDialog : public QDialog {
Q_OBJECT
public:
OptionsDialog(QWidget* parent = NULL, QList* configEntries = NULL);
~OptionsDialog();
private:
QTableWidget* TableWidget;
QList* ConfigEntries;
public slots:
void slotItemChanged(QTableWidgetItem* item);
};
#endif
fractgen-2.0.17/src/simplehsv.h 0000664 0001750 0001750 00000002641 12474605316 015635 0 ustar dreibh dreibh /* $Id: simplehsv.h 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#ifndef SIMPLEHSV_H
#define SIMPLEHSV_H
#include
/**
*@author Thomas Dreibholz
*/
class SimpleHSV : public ColorSchemeInterface {
public:
SimpleHSV(const char* identifier = "SimpleHSV",
const char* name = "Simple HSV");
~SimpleHSV();
virtual unsigned int getColor(const unsigned int value);
private:
static SimpleHSV* Registration;
};
#endif
fractgen-2.0.17/src/simplergb.h 0000664 0001750 0001750 00000003040 12474605316 015601 0 ustar dreibh dreibh /* $Id: simplergb.h 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#ifndef SIMPLERGB_H
#define SIMPLERGB_H
#include
/**
*@author Thomas Dreibholz
*/
class SimpleRGB : public ColorSchemeInterface {
public:
SimpleRGB(const char* identifier = "SimpleRGB",
const char* name = "Simple RGB");
~SimpleRGB();
virtual unsigned int getColor(const unsigned int value);
private:
static unsigned int rgbFromWaveLength(const double wave);
static SimpleRGB* Registration;
unsigned int* ColorMap;
unsigned int ColorMapSize;
};
#endif
fractgen-2.0.17/src/uintconfigentry.h 0000664 0001750 0001750 00000002756 12474605316 017061 0 ustar dreibh dreibh /* $Id: uintconfigentry.h 930 2011-01-22 14:56:22Z dreibh $
* ==========================================================================
* ==== FRACTAL GRAPHICS GENERATOR ====
* ==========================================================================
*
* Copyright (C) 2003-2011 by Thomas Dreibholz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact: dreibh@iem.uni-due.de
*/
#ifndef UINTCONFIGENTRY_H
#define UINTCONFIGENTRY_H
#include
/**
* @author Thomas Dreibholz
*/
class UIntConfigEntry : public ConfigEntry {
public:
UIntConfigEntry(unsigned int* valuePtr, const char* name);
~UIntConfigEntry();
virtual QString getName() const;
virtual QString getValueAsString() const;
virtual void setValueFromString(const QString& valueString);
private:
QString EntryName;
unsigned int* ValuePtr;
};
#endif
fractgen-2.0.17/NEWS 0000664 0001750 0001750 00000000000 12474605316 013345 0 ustar dreibh dreibh fractgen-2.0.17/README 0000664 0001750 0001750 00000000000 12474605316 013526 0 ustar dreibh dreibh fractgen-2.0.17/BUGS 0000664 0001750 0001750 00000000000 12474605316 013331 0 ustar dreibh dreibh fractgen-2.0.17/COPYING 0000664 0001750 0001750 00000104513 12474605316 013717 0 ustar dreibh dreibh GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
Copyright (C)
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
.
fractgen-2.0.17/ChangeLog 0000664 0001750 0001750 00000106424 12474605316 014441 0 ustar dreibh dreibh ------------------------------------------------------------------------
r1980 | dreibh | 2015-03-01 13:31:41 +0100 | 2 lines
Changed paths:
M /trunk/fractgen2/ChangeLog
M /trunk/fractgen2/debian/copyright
M /trunk/fractgen2/make-dist
M /trunk/fractgen2/rpm/fractgen.spec
Packaging updates.
------------------------------------------------------------------------
r1978 | dreibh | 2015-03-01 13:13:24 +0100 | 2 lines
Changed paths:
M /trunk/fractgen2/debian/changelog
M /trunk/fractgen2/debian/control
A /trunk/fractgen2/debian/upstream
A /trunk/fractgen2/debian/upstream/signing-key.asc
M /trunk/fractgen2/debian/watch
M /trunk/fractgen2/fractgen.lsm
M /trunk/fractgen2/make-dist
M /trunk/fractgen2/make-ppa
Packaging updates.
------------------------------------------------------------------------
r1867 | dreibh | 2014-07-04 18:38:55 +0200 (fr., 04 juli 2014) | 2 lines
Changed paths:
A /trunk/fractgen2/rpm.conf
M /trunk/netperfmeter/rpm/netperfmeter.spec
M /trunk/subnetcalc/rpm/subnetcalc.spec
A /trunk/tsctp/rpm.conf
F20 build script updates.
------------------------------------------------------------------------
r1849 | dreibh | 2014-06-24 11:54:13 +0200 (ti., 24 juni 2014) | 2 lines
Changed paths:
M /trunk/bibtexconv/make-rpm
M /trunk/fractgen2/make-rpm
M /trunk/mptcp-kernel/make-rpm
M /trunk/netperfmeter/make-rpm
M /trunk/subnetcalc/make-rpm
M /trunk/tsctp/make-rpm
Removed debug output.
------------------------------------------------------------------------
r1747 | dreibh | 2013-11-15 20:47:33 +0100 (fr., 15 nov. 2013) | 2 lines
Changed paths:
M /trunk/bibtexconv/make-rpm
M /trunk/fractgen2/make-rpm
M /trunk/netperfmeter/make-rpm
Build script updates.
------------------------------------------------------------------------
r1743 | dreibh | 2013-11-11 09:44:44 +0100 (ma., 11 nov. 2013) | 2 lines
Changed paths:
M /trunk/bibtexconv/make-rpm
M /trunk/fractgen2/make-rpm
M /trunk/netperfmeter/make-rpm
M /trunk/subnetcalc/make-rpm
M /trunk/tsctp/make-rpm
Updated make-rpm.
------------------------------------------------------------------------
r1735 | dreibh | 2013-11-05 16:42:50 +0100 (ti., 05 nov. 2013) | 1 line
Changed paths:
A /trunk/bibtexconv/make-rpm (from /trunk/subnetcalc/make-rpm:1734)
M /trunk/bibtexconv/rpm/bibtexconv.spec
A /trunk/fractgen2/make-rpm (from /trunk/subnetcalc/make-rpm:1734)
M /trunk/fractgen2/rpm/fractgen.spec
A /trunk/netperfmeter/make-rpm (from /trunk/subnetcalc/make-rpm:1734)
M /trunk/netperfmeter/rpm/netperfmeter.spec
M /trunk/progtest/loglevel.h
M /trunk/progtest/progclient.cc
M /trunk/progtest/progpacket.h
M /trunk/progtest/progserver.cc
M /trunk/progtest/progviewer.cc
M /trunk/progtest/progviewer.h
M /trunk/progtest/progviewer.moc
M /trunk/progtest/tools.cc
M /trunk/progtest/tools.h
M /trunk/subnetcalc/make-rpm
Improved RPM packaging.
------------------------------------------------------------------------
r1729 | dreibh | 2013-11-05 13:18:43 +0100 (ti., 05 nov. 2013) | 1 line
Changed paths:
M /trunk/fractgen2/rpm/fractgen.spec
Updated spec file.
------------------------------------------------------------------------
r1728 | dreibh | 2013-11-05 12:17:51 +0100 (ti., 05 nov. 2013) | 2 lines
Changed paths:
A /trunk/fractgen2/rpm
A /trunk/fractgen2/rpm/fractgen.spec
Added RPM spec file. Not working yet.
------------------------------------------------------------------------
r1702 | dreibh | 2013-10-24 22:43:05 +0200 (to., 24 okt. 2013) | 2 lines
Changed paths:
M /trunk/fractgen2/debian/changelog
Packaging file update.
------------------------------------------------------------------------
r1700 | dreibh | 2013-10-24 22:29:08 +0200 (to., 24 okt. 2013) | 2 lines
Changed paths:
M /trunk/fractgen2/fractgen.lsm
Updated LSM entry.
------------------------------------------------------------------------
r1699 | dreibh | 2013-10-24 22:11:03 +0200 (to., 24 okt. 2013) | 2 lines
Changed paths:
M /trunk/fractgen2/make-ppa
Updated make-ppa.
------------------------------------------------------------------------
r1695 | dreibh | 2013-10-24 21:56:20 +0200 (to., 24 okt. 2013) | 2 lines
Changed paths:
M /trunk/fractgen2/ChangeLog
M /trunk/fractgen2/debian/changelog
M /trunk/fractgen2/make-dist
Version update.
------------------------------------------------------------------------
r1684 | dreibh | 2013-10-23 13:32:30 +0200 (on., 23 okt. 2013) | 1 line
Changed paths:
M /trunk/fractgen2/ChangeLog
Updated ChangeLog.
------------------------------------------------------------------------
r1683 | dreibh | 2013-10-23 13:31:08 +0200 (on., 23 okt. 2013) | 1 line
Changed paths:
M /trunk/fractgen2/debian/changelog
M /trunk/fractgen2/make-dist
A /trunk/fractgen2/update-changelog (from /trunk/subnetcalc/update-changelog:1679)
Packaging file updates.
------------------------------------------------------------------------
r1671 | dreibh | 2013-10-18 23:52:07 +0200 (fr., 18 okt. 2013) | 2 lines
Changed paths:
M /trunk/bibtexconv/make-ppa
M /trunk/dia-experimental/make-ppa
M /trunk/fractgen2/make-ppa
M /trunk/netperfmeter/make-ppa
M /trunk/rtpaudio2/make-ppa
M /trunk/slideshow/make-ppa
M /trunk/subnetcalc/make-ppa
M /trunk/tsctp/make-ppa
M /trunk/wireshark-experimental/make-ppa
Updated make-ppa.
------------------------------------------------------------------------
r1651 | dreibh | 2013-05-30 14:34:44 +0200 (to., 30 mai 2013) | 1 line
Changed paths:
M /trunk/fractgen2/build-deb
M /trunk/fractgen2/clean-deb
M /trunk/fractgen2/debian/changelog
M /trunk/fractgen2/debian/control
M /trunk/fractgen2/make-deb
M /trunk/fractgen2/make-dist
M /trunk/fractgen2/make-ppa
Build script updates.
------------------------------------------------------------------------
r1525 | dreibh | 2012-10-20 23:50:30 +0200 | 1 line
Changed paths:
M /trunk/bibtexconv/make-ppa
M /trunk/dia-experimental/make-ppa
M /trunk/fractgen2/make-ppa
M /trunk/netperfmeter/configure.in
M /trunk/netperfmeter/debian/changelog
M /trunk/netperfmeter/make-ppa
M /trunk/slideshow/make-ppa
M /trunk/subnetcalc/make-ppa
M /trunk/wireshark-experimental/make-ppa
Build script updates.
------------------------------------------------------------------------
r1500 | dreibh | 2012-08-25 21:45:17 +0200 | 2 lines
Changed paths:
A /trunk/fractgen2/build-deb (from /trunk/bibtexconv/build-deb:1498)
M /trunk/fractgen2/debian/changelog
M /trunk/fractgen2/debian.conf
M /trunk/fractgen2/make-deb
M /trunk/fractgen2/make-dist
M /trunk/fractgen2/make-ppa
Updated build scripts.
------------------------------------------------------------------------
r1365 | dreibh | 2012-04-21 21:21:13 +0200 | 2 lines
Changed paths:
M /trunk/fractgen2/clean-deb
M /trunk/fractgen2/debian/changelog
M /trunk/fractgen2/debian/control
M /trunk/fractgen2/debian/fractgen.1
M /trunk/fractgen2/debian/rules
M /trunk/fractgen2/debian.conf
A /trunk/fractgen2/filter-empty-entries
A /trunk/fractgen2/fractgen.lsm (from /trunk/subnetcalc/subnetcalc.lsm:1360)
M /trunk/fractgen2/make-deb
M /trunk/fractgen2/make-dist
M /trunk/fractgen2/make-ppa
Packaging update.
------------------------------------------------------------------------
r1363 | dreibh | 2012-04-21 20:26:51 +0200 | 2 lines
Changed paths:
M /trunk/fractgen2/debian/control
M /trunk/fractgen2/debian/copyright
M /trunk/fractgen2/make-dist
Version updates.
------------------------------------------------------------------------
r1046 | dreibh | 2011-05-13 17:58:52 +0200 (fr., 13 mai 2011) | 2 lines
Changed paths:
M /trunk/fractgen2/make-ppa
Script fix.
------------------------------------------------------------------------
r1034 | dreibh | 2011-05-04 08:40:35 +0200 (on., 04 mai 2011) | 3 lines
Changed paths:
M /trunk/fractgen2/debian/changelog
M /trunk/fractgen2/debian/compat
M /trunk/fractgen2/debian/fractgen.1
M /trunk/fractgen2/make-dist
M /trunk/fractgen2/make-ppa
M /trunk/fractgen2/src/fractgen.cpp
- Version update.
- Updated manpage, added some code comments.
------------------------------------------------------------------------
r1032 | dreibh | 2011-05-04 07:50:40 +0200 (on., 04 mai 2011) | 2 lines
Changed paths:
M /trunk/fractgen2/debian/changelog
M /trunk/fractgen2/debian/control
Version update.
------------------------------------------------------------------------
r1029 | dreibh | 2011-05-03 19:47:13 +0200 (ti., 03 mai 2011) | 2 lines
Changed paths:
M /trunk/fractgen2/make-ppa
M /trunk/netperfmeter/configure.in
M /trunk/netperfmeter/debian/changelog
M /trunk/netperfmeter/make-ppa
M /trunk/slideshow/make-ppa
Updated packaging scripts.
------------------------------------------------------------------------
r1013 | dreibh | 2011-03-23 05:21:29 +0100 (on., 23 mars 2011) | 2 lines
Changed paths:
M /trunk/fractgen2/debian/changelog
M /trunk/fractgen2/debian/copyright
Updated packaging files.
------------------------------------------------------------------------
r1012 | dreibh | 2011-03-23 05:08:50 +0100 (on., 23 mars 2011) | 2 lines
Changed paths:
M /trunk/fractgen2/debian/changelog
M /trunk/fractgen2/debian/control
M /trunk/fractgen2/debian/copyright
Updated Ubuntu packaging files.
------------------------------------------------------------------------
r989 | dreibh | 2011-02-11 23:34:41 +0100 (fr., 11 feb. 2011) | 2 lines
Changed paths:
M /trunk/bibtexconv/debian/changelog
M /trunk/bibtexconv/make-deb
M /trunk/dia-experimental/make-deb
M /trunk/fractgen2/make-deb
M /trunk/slideshow/make-deb
M /trunk/subnetcalc/make-deb
M /trunk/wireshark-experimental/make-deb
Updated packaging files.
------------------------------------------------------------------------
r985 | dreibh | 2011-02-02 15:19:25 +0100 (on., 02 feb. 2011) | 1 line
Changed paths:
M /trunk/fractgen2/debian/changelog
------------------------------------------------------------------------
r982 | dreibh | 2011-02-02 15:18:50 +0100 (on., 02 feb. 2011) | 1 line
Changed paths:
M /trunk/fractgen2/make-deb
make-deb update.
------------------------------------------------------------------------
r977 | dreibh | 2011-02-01 15:24:59 +0100 (ti., 01 feb. 2011) | 1 line
Changed paths:
M /trunk/fractgen2/debian/changelog
M /trunk/fractgen2/make-deb
Packaging update.
------------------------------------------------------------------------
r968 | dreibh | 2011-02-01 13:07:15 +0100 (ti., 01 feb. 2011) | 2 lines
Changed paths:
M /trunk/fractgen2/debian/control
Updated Debian control file.
------------------------------------------------------------------------
r962 | dreibh | 2011-02-01 08:46:46 +0100 (ti., 01 feb. 2011) | 1 line
Changed paths:
M /trunk/fractgen2/debian/changelog
Debian packaging update.
------------------------------------------------------------------------
r957 | dreibh | 2011-02-01 08:27:03 +0100 (ti., 01 feb. 2011) | 1 line
Changed paths:
M /trunk/fractgen2/make-deb
Updated make-deb script.
------------------------------------------------------------------------
r932 | dreibh | 2011-01-22 16:13:14 +0100 | 1 line
Changed paths:
M /trunk/fractgen2/debian/changelog
------------------------------------------------------------------------
r930 | dreibh | 2011-01-22 15:56:22 +0100 | 2 lines
Changed paths:
M /trunk/fractgen2/debian/changelog
M /trunk/fractgen2/debian/fractgen.1
M /trunk/fractgen2/src/colorschemeinterface.cpp
M /trunk/fractgen2/src/colorschemeinterface.h
M /trunk/fractgen2/src/configentry.h
M /trunk/fractgen2/src/doubleconfigentry.cpp
M /trunk/fractgen2/src/doubleconfigentry.h
M /trunk/fractgen2/src/dreibholz1.cpp
M /trunk/fractgen2/src/dreibholz1.h
M /trunk/fractgen2/src/fractalalgorithminterface.cpp
M /trunk/fractgen2/src/fractalalgorithminterface.h
M /trunk/fractgen2/src/fractalbuffer.cpp
M /trunk/fractgen2/src/fractalbuffer.h
M /trunk/fractgen2/src/fractalcalculationthread.cpp
M /trunk/fractgen2/src/fractalcalculationthread.h
M /trunk/fractgen2/src/fractalgenerator.cpp
M /trunk/fractgen2/src/fractalgenerator.h
M /trunk/fractgen2/src/fractalgeneratordoc.cpp
M /trunk/fractgen2/src/fractalgeneratordoc.h
M /trunk/fractgen2/src/fractalgeneratorview.cpp
M /trunk/fractgen2/src/fractalgeneratorview.h
M /trunk/fractgen2/src/fractgen.cpp
M /trunk/fractgen2/src/imagedisplay.cpp
M /trunk/fractgen2/src/imagedisplay.h
M /trunk/fractgen2/src/mandelbrot.cpp
M /trunk/fractgen2/src/mandelbrot.h
M /trunk/fractgen2/src/mandelbrotn.cpp
M /trunk/fractgen2/src/mandelbrotn.h
M /trunk/fractgen2/src/optionsdialog.cpp
M /trunk/fractgen2/src/optionsdialog.h
D /trunk/fractgen2/src/portinglog.txt
M /trunk/fractgen2/src/simplehsv.cpp
M /trunk/fractgen2/src/simplehsv.h
M /trunk/fractgen2/src/simplergb.cpp
M /trunk/fractgen2/src/simplergb.h
M /trunk/fractgen2/src/uintconfigentry.cpp
M /trunk/fractgen2/src/uintconfigentry.h
Header updates.
------------------------------------------------------------------------
r929 | dreibh | 2011-01-22 15:53:31 +0100 | 2 lines
Changed paths:
M /trunk/fractgen2/make-dist
Updated packaging script to include GPL file.
------------------------------------------------------------------------
r928 | dreibh | 2011-01-22 15:30:12 +0100 | 2 lines
Changed paths:
M /trunk/bibtexconv/debian/changelog
M /trunk/bibtexconv/make-deb
M /trunk/fractgen2/debian/changelog
M /trunk/fractgen2/make-deb
M /trunk/netperfmeter/debian/changelog
M /trunk/netperfmeter/make-deb
M /trunk/slideshow/debian/changelog
M /trunk/slideshow/make-deb
M /trunk/subnetcalc/debian/changelog
M /trunk/subnetcalc/make-deb
M /trunk/wireshark-experimental/copy-to-wireshark-directory
make-deb updates.
------------------------------------------------------------------------
r922 | dreibh | 2011-01-22 11:40:19 +0100 | 1 line
Changed paths:
M /trunk/fractgen2/make-deb
Packaging script update.
------------------------------------------------------------------------
r915 | dreibh | 2011-01-22 00:40:28 +0100 | 1 line
Changed paths:
M /trunk/fractgen2/clean-deb
Updated clean-deb.
------------------------------------------------------------------------
r908 | dreibh | 2011-01-22 00:06:51 +0100 | 1 line
Changed paths:
M /trunk/fractgen2/make-deb
Fix for building unstable/default distribution packages.
------------------------------------------------------------------------
r899 | dreibh | 2011-01-21 22:26:09 +0100 (fr., 21 jan. 2011) | 2 lines
Changed paths:
M /trunk/fractgen2/ChangeLog
M /trunk/fractgen2/clean-deb
M /trunk/fractgen2/debian/changelog
M /trunk/fractgen2/debian/control
A /trunk/fractgen2/debian/source
A /trunk/fractgen2/debian/source/format
M /trunk/fractgen2/debian.conf
M /trunk/fractgen2/make-deb
M /trunk/fractgen2/make-dist
Made Debian packaging compatible to format "3.0 (quilt)".
------------------------------------------------------------------------
r881 | dreibh | 2011-01-12 11:29:02 +0100 (on., 12 jan. 2011) | 1 line
Changed paths:
D /trunk/fractgen2/debian/source
D /trunk/netperfmeter/debian/source
------------------------------------------------------------------------
r579 | dreibh | 2010-06-19 13:37:22 +0200 | 1 line
Changed paths:
M /trunk/fractgen2/debian/changelog
------------------------------------------------------------------------
r578 | dreibh | 2010-06-19 13:19:40 +0200 | 2 lines
Changed paths:
M /trunk/fractgen2/ChangeLog
M /trunk/fractgen2/debian/changelog
M /trunk/fractgen2/debian/control
A /trunk/fractgen2/debian/source
A /trunk/fractgen2/debian/source/format
M /trunk/fractgen2/debian.conf
M /trunk/fractgen2/make-deb
M /trunk/fractgen2/make-dist
M /trunk/fractgen2/make-ppa
Scripts updates.
------------------------------------------------------------------------
r561 | dreibh | 2010-05-31 11:53:52 +0200 (ma., 31 mai 2010) | 1 line
Changed paths:
M /trunk/fractgen2/ChangeLog
------------------------------------------------------------------------
r557 | dreibh | 2010-05-31 11:49:24 +0200 (ma., 31 mai 2010) | 2 lines
Changed paths:
M /trunk/fractgen2/debian/changelog
M /trunk/fractgen2/make-dist
M /trunk/fractgen2/make-ppa
M /trunk/fractgen2/src/colorschemeinterface.cpp
M /trunk/fractgen2/src/colorschemeinterface.h
M /trunk/fractgen2/src/configentry.h
M /trunk/fractgen2/src/doubleconfigentry.cpp
M /trunk/fractgen2/src/doubleconfigentry.h
M /trunk/fractgen2/src/dreibholz1.cpp
M /trunk/fractgen2/src/dreibholz1.h
M /trunk/fractgen2/src/fractalalgorithminterface.cpp
M /trunk/fractgen2/src/fractalalgorithminterface.h
M /trunk/fractgen2/src/fractalbuffer.cpp
M /trunk/fractgen2/src/fractalbuffer.h
M /trunk/fractgen2/src/fractalcalculationthread.cpp
M /trunk/fractgen2/src/fractalcalculationthread.h
M /trunk/fractgen2/src/fractalgenerator.cpp
M /trunk/fractgen2/src/fractalgenerator.h
M /trunk/fractgen2/src/fractalgeneratordoc.cpp
M /trunk/fractgen2/src/fractalgeneratordoc.h
M /trunk/fractgen2/src/fractalgeneratorview.cpp
M /trunk/fractgen2/src/fractalgeneratorview.h
M /trunk/fractgen2/src/fractgen.cpp
M /trunk/fractgen2/src/imagedisplay.cpp
M /trunk/fractgen2/src/imagedisplay.h
M /trunk/fractgen2/src/mandelbrot.cpp
M /trunk/fractgen2/src/mandelbrot.h
M /trunk/fractgen2/src/mandelbrotn.cpp
M /trunk/fractgen2/src/mandelbrotn.h
M /trunk/fractgen2/src/optionsdialog.cpp
M /trunk/fractgen2/src/optionsdialog.h
M /trunk/fractgen2/src/simplehsv.cpp
M /trunk/fractgen2/src/simplehsv.h
M /trunk/fractgen2/src/simplergb.cpp
M /trunk/fractgen2/src/simplergb.h
M /trunk/fractgen2/src/uintconfigentry.cpp
M /trunk/fractgen2/src/uintconfigentry.h
Version update.
------------------------------------------------------------------------
r465 | dreibh | 2009-09-12 11:00:23 +0200 | 1 line
Changed paths:
M /trunk/fractgen2/ChangeLog
M /trunk/fractgen2/debian/changelog
M /trunk/fractgen2/make-dist
M /trunk/fractgen2/make-ppa
M /trunk/fractgen2/src/fractgen.cpp
------------------------------------------------------------------------
r253 | dreibh | 2009-06-03 11:47:34 +0200 (on., 03 juni 2009) | 1 line
Changed paths:
M /trunk/fractgen2/make-ppa
------------------------------------------------------------------------
r252 | dreibh | 2009-06-03 11:45:52 +0200 (on., 03 juni 2009) | 1 line
Changed paths:
M /trunk/fractgen2/ChangeLog
------------------------------------------------------------------------
r251 | dreibh | 2009-06-03 11:45:24 +0200 (on., 03 juni 2009) | 1 line
Changed paths:
M /trunk/fractgen2/debian/changelog
M /trunk/fractgen2/make-dist
A /trunk/fractgen2/make-ppa
------------------------------------------------------------------------
r182 | dreibh | 2009-05-02 10:17:45 +0200 | 2 lines
Changed paths:
M /trunk/fractgen2/debian/changelog
M /trunk/fractgen2/debian.conf
M /trunk/fractgen2/make-dist
M /trunk/fractgen2/src/fractalgeneratorview.cpp
Update to Karmic Koala.
------------------------------------------------------------------------
r174 | dreibh | 2009-04-25 12:21:03 +0200 | 1 line
Changed paths:
M /trunk/fractgen2/debian/changelog
M /trunk/fractgen2/make-dist
------------------------------------------------------------------------
r173 | dreibh | 2009-02-21 16:02:36 +0100 | 1 line
Changed paths:
M /trunk/fractgen2/debian/changelog
M /trunk/fractgen2/debian/control
------------------------------------------------------------------------
r172 | dreibh | 2009-02-21 15:38:03 +0100 | 1 line
Changed paths:
M /trunk/fractgen2/debian/changelog
------------------------------------------------------------------------
r170 | dreibh | 2009-02-18 09:38:19 +0100 (on., 18 feb. 2009) | 1 line
Changed paths:
M /trunk/fractgen2/debian/changelog
M /trunk/fractgen2/src/fractalgenerator.cpp
M /trunk/fractgen2/src/fractalgenerator.h
M /trunk/fractgen2/src/fractalgeneratorview.cpp
M /trunk/fractgen2/src/fractgen.cpp
------------------------------------------------------------------------
r169 | dreibh | 2009-02-17 10:30:35 +0100 (ti., 17 feb. 2009) | 1 line
Changed paths:
D /trunk/fractgen2/Makefile
M /trunk/fractgen2/make-deb
M /trunk/fractgen2/make-dist
------------------------------------------------------------------------
r159 | dreibh | 2009-02-06 11:26:44 +0100 (fr., 06 feb. 2009) | 1 line
Changed paths:
M /trunk/fractgen2/debian/changelog
M /trunk/fractgen2/debian/control
M /trunk/fractgen2/make-dist
------------------------------------------------------------------------
r158 | dreibh | 2009-02-06 10:30:08 +0100 (fr., 06 feb. 2009) | 1 line
Changed paths:
M /trunk/fractgen2/debian/watch
------------------------------------------------------------------------
r157 | dreibh | 2009-02-06 09:53:00 +0100 (fr., 06 feb. 2009) | 1 line
Changed paths:
M /trunk/fractgen2/Makefile
M /trunk/fractgen2/debian/changelog
M /trunk/fractgen2/make-dist
M /trunk/fractgen2/src/colorschemeinterface.cpp
M /trunk/fractgen2/src/fractalalgorithminterface.cpp
M /trunk/fractgen2/src/imagedisplay.cpp
------------------------------------------------------------------------
r155 | dreibh | 2009-02-06 09:36:57 +0100 (fr., 06 feb. 2009) | 1 line
Changed paths:
D /trunk/fractalgenerator/fg2
A /trunk/fractgen2 (from /trunk/fractalgenerator/fg2:154)
------------------------------------------------------------------------
r154 | dreibh | 2009-02-06 09:33:31 +0100 (fr., 06 feb. 2009) | 1 line
Changed paths:
A /trunk/fractalgenerator/fg2/AUTHORS
A /trunk/fractalgenerator/fg2/BUGS
A /trunk/fractalgenerator/fg2/COPYING
A /trunk/fractalgenerator/fg2/ChangeLog
A /trunk/fractalgenerator/fg2/Makefile
A /trunk/fractalgenerator/fg2/NEWS
A /trunk/fractalgenerator/fg2/README
A /trunk/fractalgenerator/fg2/clean-deb
A /trunk/fractalgenerator/fg2/debian
A /trunk/fractalgenerator/fg2/debian/changelog
A /trunk/fractalgenerator/fg2/debian/compat
A /trunk/fractalgenerator/fg2/debian/control
A /trunk/fractalgenerator/fg2/debian/copyright
A /trunk/fractalgenerator/fg2/debian/fractgen.1
A /trunk/fractalgenerator/fg2/debian/manpages
A /trunk/fractalgenerator/fg2/debian/rules
A /trunk/fractalgenerator/fg2/debian/watch
A /trunk/fractalgenerator/fg2/debian.conf
A /trunk/fractalgenerator/fg2/make-deb
A /trunk/fractalgenerator/fg2/make-dist
M /trunk/fractalgenerator/fg2/src/fractalgenerator.cpp
M /trunk/fractalgenerator/fg2/src/fractalgenerator.h
M /trunk/fractalgenerator/fg2/src/fractalgeneratordoc.cpp
M /trunk/fractalgenerator/fg2/src/fractalgeneratorview.cpp
M /trunk/fractalgenerator/fg2/src/fractalgeneratorview.h
A /trunk/fractalgenerator/fg2/src/fractgen.cpp (from /trunk/fractalgenerator/fg2/src/main.cpp:146)
M /trunk/fractalgenerator/fg2/src/imagedisplay.h
D /trunk/fractalgenerator/fg2/src/main.cpp
M /trunk/fractalgenerator/fg2/src/simplehsv.cpp
M /trunk/fractalgenerator/fg2/src/src.pro
------------------------------------------------------------------------
r147 | dreibh | 2009-01-27 22:04:08 +0100 (ti., 27 jan. 2009) | 1 line
Changed paths:
M /trunk/fractalgenerator/fg2/src/doubleconfigentry.cpp
M /trunk/fractalgenerator/fg2/src/dreibholz1.cpp
M /trunk/fractalgenerator/fg2/src/fractalbuffer.cpp
M /trunk/fractalgenerator/fg2/src/fractalbuffer.h
M /trunk/fractalgenerator/fg2/src/fractalcalculationthread.cpp
M /trunk/fractalgenerator/fg2/src/fractalcalculationthread.h
M /trunk/fractalgenerator/fg2/src/fractalgeneratordoc.cpp
D /trunk/fractalgenerator/fg2/src/fractalgeneratorui.rc
M /trunk/fractalgenerator/fg2/src/fractalgeneratorview.cpp
M /trunk/fractalgenerator/fg2/src/fractalgeneratorview.h
M /trunk/fractalgenerator/fg2/src/uintconfigentry.cpp
------------------------------------------------------------------------
r146 | dreibh | 2009-01-27 21:27:08 +0100 (ti., 27 jan. 2009) | 1 line
Changed paths:
M /trunk/fractalgenerator/fg2/src/colorschemeinterface.cpp
M /trunk/fractalgenerator/fg2/src/dreibholz1.cpp
M /trunk/fractalgenerator/fg2/src/fractalalgorithminterface.cpp
M /trunk/fractalgenerator/fg2/src/fractalgeneratordoc.cpp
M /trunk/fractalgenerator/fg2/src/imagedisplay.cpp
M /trunk/fractalgenerator/fg2/src/main.cpp
M /trunk/fractalgenerator/fg2/src/mandelbrot.cpp
M /trunk/fractalgenerator/fg2/src/mandelbrotn.cpp
M /trunk/fractalgenerator/fg2/src/optionsdialog.cpp
M /trunk/fractalgenerator/fg2/src/optionsdialog.h
------------------------------------------------------------------------
r145 | dreibh | 2009-01-27 12:43:24 +0100 (ti., 27 jan. 2009) | 1 line
Changed paths:
M /trunk/fractalgenerator/fg2/src/colorschemeinterface.cpp
M /trunk/fractalgenerator/fg2/src/fractalalgorithminterface.cpp
M /trunk/fractalgenerator/fg2/src/fractalgenerator.cpp
M /trunk/fractalgenerator/fg2/src/fractalgenerator.h
M /trunk/fractalgenerator/fg2/src/fractalgeneratordoc.cpp
M /trunk/fractalgenerator/fg2/src/fractalgeneratordoc.h
M /trunk/fractalgenerator/fg2/src/fractalgeneratorview.cpp
M /trunk/fractalgenerator/fg2/src/fractalgeneratorview.h
M /trunk/fractalgenerator/fg2/src/imagedisplay.cpp
M /trunk/fractalgenerator/fg2/src/imagedisplay.h
M /trunk/fractalgenerator/fg2/src/main.cpp
D /trunk/fractalgenerator/fg2/src/mylistviewitem.cpp
D /trunk/fractalgenerator/fg2/src/mylistviewitem.h
M /trunk/fractalgenerator/fg2/src/optionsdialog.cpp
M /trunk/fractalgenerator/fg2/src/optionsdialog.h
M /trunk/fractalgenerator/fg2/src/src.pro
------------------------------------------------------------------------
r144 | dreibh | 2009-01-24 12:36:00 +0100 | 1 line
Changed paths:
M /trunk/fractalgenerator/fg2/src/fractalgenerator.cpp
M /trunk/fractalgenerator/fg2/src/fractalgenerator.h
M /trunk/fractalgenerator/fg2/src/fractalgeneratorview.cpp
M /trunk/fractalgenerator/fg2/src/fractalgeneratorview.h
A /trunk/fractalgenerator/fg2/src/simplergb.cpp (from /trunk/fractalgenerator/fg2/src/simplehsv.cpp:142)
A /trunk/fractalgenerator/fg2/src/simplergb.h (from /trunk/fractalgenerator/fg2/src/simplehsv.h:142)
M /trunk/fractalgenerator/fg2/src/src.pro
------------------------------------------------------------------------
r143 | dreibh | 2009-01-23 08:46:32 +0100 (fr., 23 jan. 2009) | 1 line
Changed paths:
M /trunk/fractalgenerator/fg2/src/fractalcalculationthread.cpp
M /trunk/fractalgenerator/fg2/src/fractalgeneratordoc.cpp
------------------------------------------------------------------------
r142 | dreibh | 2009-01-23 08:43:40 +0100 (fr., 23 jan. 2009) | 1 line
Changed paths:
M /trunk/fractalgenerator/fg2/src/colorschemeinterface.cpp
M /trunk/fractalgenerator/fg2/src/colorschemeinterface.h
M /trunk/fractalgenerator/fg2/src/configentry.h
M /trunk/fractalgenerator/fg2/src/doubleconfigentry.cpp
M /trunk/fractalgenerator/fg2/src/doubleconfigentry.h
M /trunk/fractalgenerator/fg2/src/dreibholz1.cpp
M /trunk/fractalgenerator/fg2/src/dreibholz1.h
M /trunk/fractalgenerator/fg2/src/fractalalgorithminterface.cpp
M /trunk/fractalgenerator/fg2/src/fractalalgorithminterface.h
D /trunk/fractalgenerator/fg2/src/fractaldisplay.cpp
D /trunk/fractalgenerator/fg2/src/fractaldisplay.h
M /trunk/fractalgenerator/fg2/src/fractalgenerator.cpp
M /trunk/fractalgenerator/fg2/src/fractalgenerator.h
M /trunk/fractalgenerator/fg2/src/fractalgeneratordoc.cpp
M /trunk/fractalgenerator/fg2/src/fractalgeneratordoc.h
M /trunk/fractalgenerator/fg2/src/fractalgeneratorview.cpp
M /trunk/fractalgenerator/fg2/src/fractalgeneratorview.h
A /trunk/fractalgenerator/fg2/src/imagedisplay.cpp (from /trunk/fractalgenerator/fg2/src/fractaldisplay.cpp:141)
A /trunk/fractalgenerator/fg2/src/imagedisplay.h (from /trunk/fractalgenerator/fg2/src/fractaldisplay.h:141)
M /trunk/fractalgenerator/fg2/src/mandelbrot.cpp
M /trunk/fractalgenerator/fg2/src/mandelbrot.h
M /trunk/fractalgenerator/fg2/src/mandelbrotn.cpp
M /trunk/fractalgenerator/fg2/src/mandelbrotn.h
M /trunk/fractalgenerator/fg2/src/optionsdialog.cpp
M /trunk/fractalgenerator/fg2/src/optionsdialog.h
M /trunk/fractalgenerator/fg2/src/simplehsv.cpp
M /trunk/fractalgenerator/fg2/src/simplehsv.h
M /trunk/fractalgenerator/fg2/src/src.pro
M /trunk/fractalgenerator/fg2/src/uintconfigentry.cpp
M /trunk/fractalgenerator/fg2/src/uintconfigentry.h
------------------------------------------------------------------------
r141 | dreibh | 2009-01-21 15:56:19 +0100 (on., 21 jan. 2009) | 1 line
Changed paths:
M /trunk/fractalgenerator/fg2/src/colorschemeinterface.cpp
M /trunk/fractalgenerator/fg2/src/fractalalgorithminterface.cpp
M /trunk/fractalgenerator/fg2/src/fractalgenerator.cpp
M /trunk/fractalgenerator/fg2/src/fractalgenerator.h
M /trunk/fractalgenerator/fg2/src/fractalgeneratordoc.cpp
M /trunk/fractalgenerator/fg2/src/fractalgeneratordoc.h
------------------------------------------------------------------------
r140 | dreibh | 2009-01-20 09:44:37 +0100 (ti., 20 jan. 2009) | 1 line
Changed paths:
M /trunk/fractalgenerator/fg2/src/fractaldisplay.cpp
M /trunk/fractalgenerator/fg2/src/fractaldisplay.h
M /trunk/fractalgenerator/fg2/src/fractalgenerator.cpp
M /trunk/fractalgenerator/fg2/src/fractalgenerator.h
M /trunk/fractalgenerator/fg2/src/fractalgeneratorview.cpp
M /trunk/fractalgenerator/fg2/src/fractalgeneratorview.h
------------------------------------------------------------------------
r139 | dreibh | 2009-01-19 11:49:32 +0100 (ma., 19 jan. 2009) | 1 line
Changed paths:
M /trunk/fractalgenerator/fg2/src/colorschemeinterface.cpp
M /trunk/fractalgenerator/fg2/src/colorschemeinterface.h
M /trunk/fractalgenerator/fg2/src/dreibholz1.cpp
M /trunk/fractalgenerator/fg2/src/fractalalgorithminterface.cpp
M /trunk/fractalgenerator/fg2/src/fractalalgorithminterface.h
M /trunk/fractalgenerator/fg2/src/fractalcalculationthread.cpp
M /trunk/fractalgenerator/fg2/src/fractalcalculationthread.h
M /trunk/fractalgenerator/fg2/src/fractaldisplay.cpp
M /trunk/fractalgenerator/fg2/src/fractalgenerator.cpp
M /trunk/fractalgenerator/fg2/src/fractalgenerator.h
M /trunk/fractalgenerator/fg2/src/fractalgeneratordoc.cpp
M /trunk/fractalgenerator/fg2/src/fractalgeneratordoc.h
M /trunk/fractalgenerator/fg2/src/fractalgeneratorview.cpp
M /trunk/fractalgenerator/fg2/src/main.cpp
M /trunk/fractalgenerator/fg2/src/mylistviewitem.cpp
M /trunk/fractalgenerator/fg2/src/mylistviewitem.h
M /trunk/fractalgenerator/fg2/src/optionsdialog.cpp
M /trunk/fractalgenerator/fg2/src/optionsdialog.h
M /trunk/fractalgenerator/fg2/src/src.pro
------------------------------------------------------------------------
r138 | dreibh | 2009-01-15 13:16:30 +0100 (to., 15 jan. 2009) | 1 line
Changed paths:
M /trunk/fractalgenerator/fg2/src/dreibholz1.cpp
M /trunk/fractalgenerator/fg2/src/dreibholz1.h
------------------------------------------------------------------------
r137 | dreibh | 2009-01-15 13:13:43 +0100 (to., 15 jan. 2009) | 1 line
Changed paths:
M /trunk/fractalgenerator/fg2/src/colorschemeinterface.cpp
M /trunk/fractalgenerator/fg2/src/colorschemeinterface.h
M /trunk/fractalgenerator/fg2/src/configentry.h
M /trunk/fractalgenerator/fg2/src/doubleconfigentry.cpp
M /trunk/fractalgenerator/fg2/src/doubleconfigentry.h
A /trunk/fractalgenerator/fg2/src/dreibholz1.cpp
A /trunk/fractalgenerator/fg2/src/dreibholz1.h
M /trunk/fractalgenerator/fg2/src/fractalalgorithminterface.cpp
M /trunk/fractalgenerator/fg2/src/fractalalgorithminterface.h
M /trunk/fractalgenerator/fg2/src/fractalbuffer.cpp
M /trunk/fractalgenerator/fg2/src/fractalbuffer.h
M /trunk/fractalgenerator/fg2/src/fractalcalculationthread.cpp
M /trunk/fractalgenerator/fg2/src/fractalcalculationthread.h
M /trunk/fractalgenerator/fg2/src/fractaldisplay.cpp
M /trunk/fractalgenerator/fg2/src/fractaldisplay.h
M /trunk/fractalgenerator/fg2/src/fractalgenerator.cpp
M /trunk/fractalgenerator/fg2/src/fractalgenerator.h
M /trunk/fractalgenerator/fg2/src/fractalgeneratordoc.cpp
M /trunk/fractalgenerator/fg2/src/fractalgeneratordoc.h
A /trunk/fractalgenerator/fg2/src/fractalgeneratorui.rc
M /trunk/fractalgenerator/fg2/src/fractalgeneratorview.cpp
M /trunk/fractalgenerator/fg2/src/fractalgeneratorview.h
M /trunk/fractalgenerator/fg2/src/main.cpp
M /trunk/fractalgenerator/fg2/src/mandelbrot.cpp
M /trunk/fractalgenerator/fg2/src/mandelbrot.h
M /trunk/fractalgenerator/fg2/src/mandelbrotn.cpp
M /trunk/fractalgenerator/fg2/src/mandelbrotn.h
M /trunk/fractalgenerator/fg2/src/mylistviewitem.cpp
M /trunk/fractalgenerator/fg2/src/mylistviewitem.h
M /trunk/fractalgenerator/fg2/src/optionsdialog.cpp
M /trunk/fractalgenerator/fg2/src/optionsdialog.h
M /trunk/fractalgenerator/fg2/src/simplehsv.cpp
M /trunk/fractalgenerator/fg2/src/simplehsv.h
M /trunk/fractalgenerator/fg2/src/src.pro
M /trunk/fractalgenerator/fg2/src/uintconfigentry.cpp
M /trunk/fractalgenerator/fg2/src/uintconfigentry.h
------------------------------------------------------------------------
r136 | dreibh | 2009-01-15 12:29:57 +0100 (to., 15 jan. 2009) | 1 line
Changed paths:
M /trunk/fractalgenerator/fg2/src/fractalgenerator.h
M /trunk/fractalgenerator/fg2/src/fractalgeneratordoc.h
M /trunk/fractalgenerator/fg2/src/fractalgeneratorview.h
------------------------------------------------------------------------
r135 | dreibh | 2009-01-15 12:18:54 +0100 (to., 15 jan. 2009) | 1 line
Changed paths:
A /trunk/fractalgenerator/fg2
A /trunk/fractalgenerator/fg2/bin
A /trunk/fractalgenerator/fg2/fg2.pro
A /trunk/fractalgenerator/fg2/src
A /trunk/fractalgenerator/fg2/src/colorschemeinterface.cpp
A /trunk/fractalgenerator/fg2/src/colorschemeinterface.h
A /trunk/fractalgenerator/fg2/src/configentry.h
A /trunk/fractalgenerator/fg2/src/doubleconfigentry.cpp
A /trunk/fractalgenerator/fg2/src/doubleconfigentry.h
A /trunk/fractalgenerator/fg2/src/fractalalgorithminterface.cpp
A /trunk/fractalgenerator/fg2/src/fractalalgorithminterface.h
A /trunk/fractalgenerator/fg2/src/fractalbuffer.cpp
A /trunk/fractalgenerator/fg2/src/fractalbuffer.h
A /trunk/fractalgenerator/fg2/src/fractalcalculationthread.cpp
A /trunk/fractalgenerator/fg2/src/fractalcalculationthread.h
A /trunk/fractalgenerator/fg2/src/fractaldisplay.cpp
A /trunk/fractalgenerator/fg2/src/fractaldisplay.h
A /trunk/fractalgenerator/fg2/src/fractalgenerator.cpp
A /trunk/fractalgenerator/fg2/src/fractalgenerator.h
A /trunk/fractalgenerator/fg2/src/fractalgeneratordoc.cpp
A /trunk/fractalgenerator/fg2/src/fractalgeneratordoc.h
A /trunk/fractalgenerator/fg2/src/fractalgeneratorview.cpp
A /trunk/fractalgenerator/fg2/src/fractalgeneratorview.h
A /trunk/fractalgenerator/fg2/src/main.cpp
A /trunk/fractalgenerator/fg2/src/mandelbrot.cpp
A /trunk/fractalgenerator/fg2/src/mandelbrot.h
A /trunk/fractalgenerator/fg2/src/mandelbrotn.cpp
A /trunk/fractalgenerator/fg2/src/mandelbrotn.h
A /trunk/fractalgenerator/fg2/src/mylistviewitem.cpp
A /trunk/fractalgenerator/fg2/src/mylistviewitem.h
A /trunk/fractalgenerator/fg2/src/optionsdialog.cpp
A /trunk/fractalgenerator/fg2/src/optionsdialog.h
A /trunk/fractalgenerator/fg2/src/portinglog.txt
A /trunk/fractalgenerator/fg2/src/simplehsv.cpp
A /trunk/fractalgenerator/fg2/src/simplehsv.h
A /trunk/fractalgenerator/fg2/src/src.pro
A /trunk/fractalgenerator/fg2/src/uintconfigentry.cpp
A /trunk/fractalgenerator/fg2/src/uintconfigentry.h
------------------------------------------------------------------------
fractgen-2.0.17/fractgen.lsm 0000664 0001750 0001750 00000002116 12474605316 015166 0 ustar dreibh dreibh Begin4
Title: fractgen
Version: 2.0.17
Entered-date: 2015-03-01
Description: FractGen is a simple Qt-based fractal generator program for
Mandelbrot fractals. The image size is only limited by
virtual memory. It is possible to zoom into images. Image
parameters can be saved in XML files and loaded from XML
files. Calculated images can be exported as PNG files. The
intention of this program is to generate graphics to be
post-processed by other image tools, e.g. in order to
generate nice screen backgrounds or book covers.
Keywords: Fractal Graphics, Mandelbrot, Calculation, Mathematics
Author: dreibh@iem.uni-due.de (Thomas Dreibholz)
Maintained-by: dreibh@iem.uni-due.de (Thomas Dreibholz)
Primary-site: http://www.iem.uni-due.de/~dreibh/fractalgenerator
36 kB download/fractgen-2.0.17.tar.gz
Original-site: http://www.iem.uni-due.de/~dreibh/fractalgenerator
Platforms: Linux, FreeBSD, MacOS, Solaris
Copying-policy: GPL
End
fractgen-2.0.17/fg2.pro 0000664 0001750 0001750 00000000035 12474605316 014056 0 ustar dreibh dreibh TEMPLATE=subdirs
SUBDIRS=src