Protected Member Functions

H3D::PaintableTexture::PainterField Class Reference

#include <PaintableTexture.h>

List of all members.

Protected Member Functions

virtual void onNewValue (const Vec3f &v)
 Performs the drawing operation whenever the PainterField receives a new value.
void loadPenOptions (PaintableTexture *pt)

Detailed Description

The PainterField class performs the update to the texture each time an event is sent to the field.


Member Function Documentation

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.

Parameters:
v A Vec3f representing the new point that is touched.
Todo:
Change the coordinate system from hard-coded to variable.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines