Back to index

kdeartwork  4.3.2
Classes | Defines | Functions | Variables
lorenz.cpp File Reference
#include <math.h>
#include <stdlib.h>
#include <qpainter.h>
#include <qslider.h>
#include <qlayout.h>
#include <qcolor.h>
#include <qcolormap.h>
#include <qlabel.h>
#include <kapplication.h>
#include <klocale.h>
#include <kglobal.h>
#include <kconfig.h>
#include <kmessagebox.h>
#include <krandom.h>
#include "lorenz.h"
#include "lorenz.moc"

Go to the source code of this file.

Classes

class  KLorenzSaverInterface
class  Matrix3D

Defines

#define MINSPEED   1
#define MAXSPEED   1500
#define DEFSPEED   150
#define MINZROT   -180
#define MAXZROT   180
#define DEFZROT   104
#define MINYROT   -180
#define MAXYROT   180
#define DEFYROT   -19
#define MINXROT   -180
#define MAXXROT   180
#define DEFXROT   25
#define MINEPOCH   1
#define MAXEPOCH   30000
#define DEFEPOCH   5800
#define MINCOLOR   1
#define MAXCOLOR   100
#define DEFCOLOR   20
#define M_PI   3.14159265358979323846

Functions

int main (int argc, char *argv[])
static void lorenz (double x, double y, double z, double &dx, double &dy, double &dz)

Variables

const double pi = M_PI

Define Documentation

#define DEFCOLOR   20

Definition at line 76 of file lorenz.cpp.

#define DEFEPOCH   5800

Definition at line 73 of file lorenz.cpp.

#define DEFSPEED   150

Definition at line 61 of file lorenz.cpp.

#define DEFXROT   25

Definition at line 70 of file lorenz.cpp.

#define DEFYROT   -19

Definition at line 67 of file lorenz.cpp.

#define DEFZROT   104

Definition at line 64 of file lorenz.cpp.

#define M_PI   3.14159265358979323846

Definition at line 333 of file lorenz.cpp.

#define MAXCOLOR   100

Definition at line 75 of file lorenz.cpp.

#define MAXEPOCH   30000

Definition at line 72 of file lorenz.cpp.

#define MAXSPEED   1500

Definition at line 60 of file lorenz.cpp.

#define MAXXROT   180

Definition at line 69 of file lorenz.cpp.

#define MAXYROT   180

Definition at line 66 of file lorenz.cpp.

#define MAXZROT   180

Definition at line 63 of file lorenz.cpp.

#define MINCOLOR   1

Definition at line 74 of file lorenz.cpp.

#define MINEPOCH   1

Definition at line 71 of file lorenz.cpp.

#define MINSPEED   1

Definition at line 59 of file lorenz.cpp.

#define MINXROT   -180

Definition at line 68 of file lorenz.cpp.

#define MINYROT   -180

Definition at line 65 of file lorenz.cpp.

#define MINZROT   -180

Definition at line 62 of file lorenz.cpp.


Function Documentation

static void lorenz ( double  x,
double  y,
double  z,
double &  dx,
double &  dy,
double &  dz 
) [static]

Definition at line 581 of file lorenz.cpp.

{
    dx = 10*(y-x);
    dy = 28*x - y - x*z;
    dz = x*y - z*8.0/3.0;
}

Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 
)

Definition at line 53 of file lorenz.cpp.

{
    KLorenzSaverInterface kss;
    return kScreenSaverMain( argc, argv, kss );
}

Variable Documentation

const double pi = M_PI

Definition at line 335 of file lorenz.cpp.