
The Fortran name of this function is NhlFAddAnnotation.
This function adds an arbitrary View object to a plot object as an external annotation, and returns an AnnoManager object to manage it.
#include <ncarg/hlu/hlu.h> #include <hfile for Plot Object> int NhlAddAnnotation( int plot_id, int view_id )
subroutine NhlFAddAnnotation(plot_id, view_id, anno_manager_id)
integer plot_id, view_id, anno_manager_id
Type name: NhlTErrorTypes
Definition:
typedef enum _NhlErrType{
NhlFATAL = -4, /* "FATAL" */
NhlWARNING = -3, /* "WARNING" */
NhlINFO = -2, /* "INFO" */
NhlNOERROR = -1 /* "NOERROR" */
} NhlErrorTypes;
The view id is appended to an array of user-created annotations accessible through the PlotManager resource pmAnnoViews. The id of its controlling AnnoManager object is in like manner appended to the resource pmAnnoManagers.
You can remove the annotation from the plot object using the NhlRemoveAnnotation function. You can retrieve the id of the view's controlling AnnoManager at any time by getting the value of the View resource vpAnnoManagerId. Note that you are responsible for destroying the view when you are through using it.
Value | Meaning --------+------------------------------------------------- NOERROR | not possible --------+------------------------------------------------- INFO | not possible --------+------------------------------------------------- WARNING | not possible --------+------------------------------------------------- FATAL | An invalid object id passed in, or internal error.
NG4.1 Home, Index, Examples, Glossary, Feedback, Ref Contents, Ref WhereAmI?