r3cpsmod
real/code/r3cpsmod.h
r3code
Compass Model Class. This model contains Compass specific options that need to be saved.
r3Model
R3CLID_MODEL
r3Compassmodel
R3CLID_COMPASSMODEL - 1262
ADDCOMPASS, DELETECOMPASS, ENUMCOMPASSES, SETCOMPASSMACR, GETCOMPASSMACR, FINDCOMPASS, SETCOMPASSLABE, GETCOMPASSLABE, MAKECOMPASSNAM, ALLOCLABELS, FREELABELS, FREELABELS, FINDCTCOMPASS,
int R3RegisterCompassModelClass(R3APP *app);
#include <oops/r3compas.h>
/R3COMPASSMODM_ADDCOMPASS
ADDCOMPASS
R3COMPASSMODM_ADDCOMPASS
char*, name for the new compass.
obj.ADDCOMPASS(p3);
Adds a compass.
R3COMPASSMODM_DELETECOMPASS
DELETECOMPASS
R3COMPASSMODM_DELETECOMPASS
char*, name of the compass to be deleted.
obj.DELETECOMPASS(p3);
Deletes a compass.
R3COMPASSMODM_ENUMCOMPASSES
ENUMCOMPASSES
R3COMPASSMODM_ENUMCOMPASSES
R3OBJ*, callback object
R3INT, callback method
void*, user context
obj.ENUMCOMPASSES(p1, p2, p3);
Enumerates compasses.
R3COMPASSMODM_SETCOMPASSMACR
SETCOMPASSMACR
R3COMPASSMODM_SETCOMPASSMACR
char*, name of the compass
R3INT*, array of two values: direction and distance
char*, macro name
obj.SETCOMPASSMACR(p1, p2, p3);
Sets a named macro for a given compass and position
R3COMPASSMODM_GETCOMPASSMACR
GETCOMPASSMACR
R3COMPASSMODM_GETCOMPASSMACR
char*, name of the compass
R3INT*, array of two values: direction and distance
char*, buffer for macro name
obj.GETCOMPASSMACR(p1, p2, p3);
Gets a named macro for a given compass and position
R3COMPASSMODM_FINDCOMPASS
FINDCOMPASS
R3COMPASSMODM_FINDCOMPASS
R3BOOL, TRUE if compass is found, FALSE otherwise
char*, compass name
rc = obj.FINDCOMPASS(p3);
Finds a compass by name.
R3COMPASSMODM_SETCOMPASSLABE
SETCOMPASSLABE
R3COMPASSMODM_SETCOMPASSLABE
char*, name of the compass
R3INT*, array of two values: direction and distance
char*, label
obj.SETCOMPASSLABE(p1, p2, p3);
Sets a label for a given compass and position
R3COMPASSMODM_GETCOMPASSLABE
GETCOMPASSLABE
R3COMPASSMODM_GETCOMPASSLABE
char*, name of the compass
R3INT*, array of two values: direction and distance
char*, buffer for label
obj.GETCOMPASSLABE(p1, p2, p3);
Gets a label for a given compass and position
R3COMPASSMODM_MAKECOMPASSNAM
MAKECOMPASSNAM
R3COMPASSMODM_MAKECOMPASSNAM
char*, name of the compass
R3TAG*, R3COMPASSMODA_CompassName, R3COMPASSMODA_ToolName, R3COMPASSMODA_KeyString, R3COMPASSMODA_ClassName, R3COMPASSMODA_EditString
obj.MAKECOMPASSNAM(p1, p3);
Make compass name
R3COMPASSMODM_ALLOCLABELS
ALLOCLABELS
R3COMPASSMODM_ALLOCLABELS
R3BOOL, true if succeeded
char*, compass name
rc = obj.ALLOCLABELS(p1, 0);
Given compass name, allocate the labels for the compass menu
R3COMPASSMODM_FREELABELS
FREELABELS
R3COMPASSMODM_FREELABELS
obj.FREELABELS();
free compass labels
R3COMPASSMODCM_FREELABELS
FREELABELS
R3COMPASSMODCM_FREELABELS
R3INT, number of circles
obj.FREELABELS(p1, 0);
Class method, free compass labels
R3COMPASSMODM_FINDCTCOMPASS
FINDCTCOMPASS
R3COMPASSMODM_FINDCTCOMPASS
R3BOOL, true if compass found
char*, best compass name
R3TAG*, R3COMPASSMODA_CompassName, R3COMPASSMODA_ToolName, R3COMPASSMODA_KeyString, R3COMPASSMODA_ClassName, R3COMPASSMODA_EditString
rc = obj.FINDCTCOMPASS(p1, p3);
Find compass that best matches the given context sensitive conditions. If found, * the method returns with TRUE and the p1 holds the name of the compass.