#include <brush.hpp>
Public Member Functions |
| Brush () |
| ~Brush () |
void | reset () |
void | new_stroke () |
void | set_base_value (int id, float value) |
void | set_mapping_n (int id, int input, int n) |
void | set_mapping_point (int id, int input, int index, float x, float y) |
float | get_state (int i) |
void | set_state (int i, float value) |
bool | stroke_to (Surface *surface, float x, float y, float pressure, float xtilt, float ytilt, double dtime) |
Constructor & Destructor Documentation
brushlib::Brush::Brush |
( |
| ) |
|
|
inline |
brushlib::Brush::~Brush |
( |
| ) |
|
|
inline |
Member Function Documentation
void brushlib::Brush::reset |
( |
| ) |
|
|
inline |
void brushlib::Brush::new_stroke |
( |
| ) |
|
|
inline |
void brushlib::Brush::set_base_value |
( |
int |
id, |
|
|
float |
value |
|
) |
| |
|
inline |
void brushlib::Brush::set_mapping_n |
( |
int |
id, |
|
|
int |
input, |
|
|
int |
n |
|
) |
| |
|
inline |
void brushlib::Brush::set_mapping_point |
( |
int |
id, |
|
|
int |
input, |
|
|
int |
index, |
|
|
float |
x, |
|
|
float |
y |
|
) |
| |
|
inline |
float brushlib::Brush::get_state |
( |
int |
i | ) |
|
|
inline |
void brushlib::Brush::set_state |
( |
int |
i, |
|
|
float |
value |
|
) |
| |
|
inline |
bool brushlib::Brush::stroke_to |
( |
Surface * |
surface, |
|
|
float |
x, |
|
|
float |
y, |
|
|
float |
pressure, |
|
|
float |
xtilt, |
|
|
float |
ytilt, |
|
|
double |
dtime |
|
) |
| |
|
inline |
References brushlib::Mapping::base_value, BRUSH_RADIUS_LOGARITHMIC, BRUSH_SLOW_TRACKING, BRUSH_TRACKING_NOISE, brushlib::rand_gauss(), STATE_ACTUAL_X, STATE_ACTUAL_Y, STATE_ASCENSION, STATE_COUNT, STATE_DECLINATION, STATE_DIST, STATE_PRESSURE, STATE_RNG_SEED, STATE_STROKE, STATE_X, STATE_Y, stroke_current_idling_time, and stroke_total_painting_time.
Member Data Documentation
bool brushlib::Brush::print_inputs |
double brushlib::Brush::stroke_total_painting_time |
double brushlib::Brush::stroke_current_idling_time |
The documentation for this class was generated from the following file: