Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

/home/landauf/painter/miniproject/painter.cpp File Reference

#include <stdlib.h>
#include <iostream.h>
#include <math.h>
#include <fstream.h>
#include <framewk.h>
#include "painter.h"
#include "effects/classes.h"
#include "effects/effects.h"
#include "effects/color.h"
#include "effects/geometric.h"
#include "effects/distort.h"
#include "effects/matrices.h"
#include "effects/artistic.h"

Go to the source code of this file.

Defines

#define M_PI   3.14159265358979323846

Functions

void keyboardCB (unsigned char key, float x, float y)
 Keyboard callback-function.

void specialCB (int key, float x, float y)
 Special-key keyboard callback-function.

void mouseCB (int button, int state, float x, float y)
 Mouse button callback-function.

void motionCB (float x, float y)
 Mouse motion callback-function.

void idleCB (void)
 Idle callback-function.

void resetImage ()
void changeEffect (int number)
void log (float output)
void log (int output)
void log (ImageRGBA *output)
int main (int argc, const char *argv[], const char *arg1[], const char *arg2[], const char *arg3[], const char *arg4[])
void batch ()

Variables

fstream logfile
effectE = 0
ImageRGBAoriginal = 0


Define Documentation

#define M_PI   3.14159265358979323846
 

Definition at line 15 of file painter.cpp.

Referenced by glass::drawLightningMenu(), glass::glass(), twirl::idleAction(), lens::idleAction(), blur::LBAction(), glass::LBAction(), strokes::LBAction(), motion_blur(), and glass::specialKey().


Function Documentation

void batch  
 

Definition at line 455 of file painter.cpp.

References changeEffect(), imageRgbaWriteTIFF(), effect::img, effect::LB(), logfile, effect::mode, effect::myColor, resetImage(), and effect::value1.

void changeEffect int    number
 

Definition at line 138 of file painter.cpp.

References effect::bArea, effect::highArea, effect::hud, effect::img, effect::lowArea, effect::menu, effect::temp, and effect::temp2.

Referenced by batch(), and effect::useMenu().

void idleCB void   
 

Idle callback-function.

Definition at line 114 of file painter.cpp.

References fwkPostRedisplay(), effect::idle(), and effect::inAction.

void keyboardCB unsigned char    key,
float    x,
float    y
 

Keyboard callback-function.

Definition at line 41 of file painter.cpp.

References fwkGetDisplayZoom(), fwkSetDisplayZoom(), imageRgbaCopy(), imageRgbaWriteTIFF(), effect::img, effect::inAction, effect::key(), resetImage(), effect::setXY(), effect::temp, and effect::temp2.

Referenced by fwkKeyboardCB().

void log ImageRGBA   output
 

Definition at line 252 of file painter.cpp.

References logfile.

Referenced by cutout::LBAction().

void log int    output
 

Definition at line 249 of file painter.cpp.

void log float    output
 

Definition at line 246 of file painter.cpp.

int main int    argc,
const char *    argv[],
const char *    arg1[],
const char *    arg2[],
const char *    arg3[],
const char *    arg4[]
 

Definition at line 259 of file painter.cpp.

References ImageRGBA::data, effect::display, fwkInit(), fwkMainLoop(), fwkSetDisplayImage(), ImageRGBA::height, imageRgbaClone(), imageRgbaFree(), imageRgbaNew(), imageRgbaReadTIFF(), imageRgbaSet(), logfile, and ImageRGBA::width.

void motionCB float    x,
float    y
 

Mouse motion callback-function.

Definition at line 107 of file painter.cpp.

References effect::inAction, effect::move(), and effect::setXY().

Referenced by fwkMotionCB().

void mouseCB int    button,
int    state,
float    x,
float    y
 

Mouse button callback-function.

Definition at line 97 of file painter.cpp.

References effect::LB(), effect::RB(), and effect::setXY().

Referenced by fwkMouseCB().

void resetImage  
 

Definition at line 132 of file painter.cpp.

References imageRgbaCopy(), and effect::img.

Referenced by batch(), keyboardCB(), and effect::useMenu().

void specialCB int    key,
float    x,
float    y
 

Special-key keyboard callback-function.

Definition at line 90 of file painter.cpp.

References effect::inAction, effect::setXY(), and effect::specialKey().

Referenced by fwkSpecialCB().


Variable Documentation

effect* E = 0
 

Definition at line 34 of file painter.cpp.

fstream logfile
 

Definition at line 33 of file painter.cpp.

Referenced by batch(), log(), and main().

ImageRGBA* original = 0
 

Definition at line 35 of file painter.cpp.


Generated on Mon Jan 30 09:13:03 2006 for Painter Framework by doxygen1.2.18