MeVisLabToolboxReference
|
Module encapsulation the SoView2D extension for rendering labels for CSOs. More...
#include <CSOLabelRenderer.h>
Public Member Functions | |
CSOLabelRenderer () | |
Protected Member Functions | |
~CSOLabelRenderer () | |
virtual void | handleNotification (Field *field) |
Called when any field data in the field container of this module is modified. | |
virtual void | activateAttachments () |
Reactivates notification handling, i.e., all fields of this module will send notifications again to attached sensors and fields if their value is set or changed. | |
Friends | |
class | ::SoCSOLabelRenderer |
Module encapsulation the SoView2D extension for rendering labels for CSOs.
Definition at line 23 of file CSOLabelRenderer.h.
ml::CSOLabelRenderer::CSOLabelRenderer | ( | ) |
ml::CSOLabelRenderer::~CSOLabelRenderer | ( | ) | [protected] |
virtual void ml::CSOLabelRenderer::activateAttachments | ( | ) | [protected, virtual] |
Reactivates notification handling, i.e., all fields of this module will send notifications again to attached sensors and fields if their value is set or changed.
Overload this method to be notified when e.g., a module load or clone process has finished. During module load and clone processes the field values are restored but handleNotification calls are blocked so that the module cannot update itself to those field changes (see deactivateAttachments()). When activateAttachment is called, the module can have a look at its new field settings and update its internal state to the new field states. Note that the overloaded method has to be called; otherwise notification handling is not activated correctly.
Reimplemented from ml::FieldContainer.
virtual void ml::CSOLabelRenderer::handleNotification | ( | Field * | ) | [protected, virtual] |
Called when any field data in the field container of this module is modified.
The pointer to the changed field is passed in field
. Notes:
Reimplemented from ml::Module.
friend class ::SoCSOLabelRenderer [friend] |
Definition at line 87 of file CSOLabelRenderer.h.