#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 |
effect * | E = 0 |
ImageRGBA * | original = 0 |
|
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(). |
|
Definition at line 455 of file painter.cpp. References changeEffect(), imageRgbaWriteTIFF(), effect::img, effect::LB(), logfile, effect::mode, effect::myColor, resetImage(), and effect::value1. |
|
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(). |
|
Idle callback-function.
Definition at line 114 of file painter.cpp. References fwkPostRedisplay(), effect::idle(), and effect::inAction. |
|
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(). |
|
Definition at line 252 of file painter.cpp. References logfile. Referenced by cutout::LBAction(). |
|
Definition at line 249 of file painter.cpp. |
|
Definition at line 246 of file painter.cpp. |
|
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. |
|
Mouse motion callback-function.
Definition at line 107 of file painter.cpp. References effect::inAction, effect::move(), and effect::setXY(). Referenced by fwkMotionCB(). |
|
Mouse button callback-function.
Definition at line 97 of file painter.cpp. References effect::LB(), effect::RB(), and effect::setXY(). Referenced by fwkMouseCB(). |
|
Definition at line 132 of file painter.cpp. References imageRgbaCopy(), and effect::img. Referenced by batch(), keyboardCB(), and effect::useMenu(). |
|
Special-key keyboard callback-function.
Definition at line 90 of file painter.cpp. References effect::inAction, effect::setXY(), and effect::specialKey(). Referenced by fwkSpecialCB(). |
|
Definition at line 34 of file painter.cpp. |
|
Definition at line 33 of file painter.cpp. |
|
Definition at line 35 of file painter.cpp. |