#include <PaintableTexture.h>
Protected Member Functions | |
| virtual void | onNewValue (const Vec3f &v) |
| Performs the drawing operation whenever the PainterField receives a new value. | |
| void | loadPenOptions (PaintableTexture *pt) |
The PainterField class performs the update to the texture each time an event is sent to the field.
| void PaintableTexture::PainterField::loadPenOptions | ( | PaintableTexture * | pt | ) | [protected] |
| void PaintableTexture::PainterField::onNewValue | ( | const Vec3f & | v | ) | [protected, virtual] |
Performs the drawing operation whenever the PainterField receives a new value.
When there is a new value in the PainterField, the function converts the value to pixel-referenced coordinates. What happens next depends on whether the texture is in drawing mode and the kind of texture that is being drawn on.
If it is in painting mode, with a visible texture, the points are drawn. If the texture is haptic, then the points are sent to a buffer and old points are drawn. If it is not in painting mode, the start point is moved.
| v | A Vec3f representing the new point that is touched. |
1.7.1