WCS_callback
List of: Classes
Subjects: Callbacks, Work Coordinate Systems
Contents: Kernel

Purpose: Provides notification of changes to the WCS.

Derivation: WCS_callback : toolkit_callback : -

Filename: kern/kernel/geomhusk/wcs_cb.hxx

Description: The WCS_callback class is a base class from which classes that receive notification of changes to the active WCS are derived.


To use this class, derive a new class from WCS_callback, and overload the virtual execute method to do what is desired when the active WCS changes. To invoke the class, create an instance of the class using new, and add it to the WCS_callback_list.

Constructor: public: WCS_callback::WCS_callback ();


C++ constructor, creating a WCS_callback.




Destructor: public: virtual WCS_callback::~WCS_callback ();


C++ destructor, deleting a WCS_callback.



Methods: public: virtual void WCS_callback::execute (


wcs_change_type reason, // reason


WCS* old_wcs, // old WCS


WCS* new_wcs // new WCS


);


In this base class, the execute method does not do anything interesting. To use a WCS_callback, derive a new class from WCS_callback and implement this method.




Related Fncs: register_wcs_change_callback
PDF/KERN/39CLU.PDF
HTM/DATA/KERN/KERN/39CLU/0012.HTM