diff options
author | joye <joye> | 2014-05-29 19:53:45 (GMT) |
---|---|---|
committer | joye <joye> | 2014-05-29 19:53:45 (GMT) |
commit | 366e1b4db56b4d7ba37e4c0c58bc7da33de179ed (patch) | |
tree | fa733a3ad3626ca6d9ad7e03fcd83f83972b8522 /src/bltGraph.C | |
parent | 615e5da45310fee9eed7dd02e801b726690f911c (diff) | |
download | blt-366e1b4db56b4d7ba37e4c0c58bc7da33de179ed.zip blt-366e1b4db56b4d7ba37e4c0c58bc7da33de179ed.tar.gz blt-366e1b4db56b4d7ba37e4c0c58bc7da33de179ed.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src/bltGraph.C')
-rw-r--r-- | src/bltGraph.C | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/bltGraph.C b/src/bltGraph.C index 588f606..ef5030f 100644 --- a/src/bltGraph.C +++ b/src/bltGraph.C @@ -56,7 +56,7 @@ using namespace Blt; extern int PostScriptPreamble(Graph* graphPtr, const char *fileName, Blt_Ps ps); -static Blt_BindPickProc GraphPickEntry; +static BltBindPickProc GraphPickEntry; // OptionSpecs @@ -1343,13 +1343,13 @@ const char** Graph::getTags(ClientData object, ClassId classId, int* num) // two different elements overlay each other exactly, the one that's on // top (visible) is picked. static ClientData GraphPickEntry(ClientData clientData, int x, int y, - ClientData* contextPtr) + ClassId* contextPtr) { Graph* graphPtr = (Graph*)clientData; GraphOptions* ops = (GraphOptions*)graphPtr->ops_; if (graphPtr->flags & (LAYOUT | MAP_MARKERS)) { - *contextPtr = (ClientData)NULL; + *contextPtr = CID_NONE; return NULL; } @@ -1360,7 +1360,7 @@ static ClientData GraphPickEntry(ClientData clientData, int x, int y, (y >= exts.bottom) || (y < exts.top)) { Axis* axisPtr = graphPtr->nearestAxis(x, y); if (axisPtr) { - *contextPtr = (ClientData)axisPtr->classId(); + *contextPtr = axisPtr->classId(); return axisPtr; } } @@ -1371,7 +1371,7 @@ static ClientData GraphPickEntry(ClientData clientData, int x, int y, // 3. markers drawn under element (-under true). Marker* markerPtr = graphPtr->nearestMarker(x, y, 0); if (markerPtr) { - *contextPtr = (ClientData)markerPtr->classId(); + *contextPtr = markerPtr->classId(); return markerPtr; } @@ -1392,17 +1392,17 @@ static ClientData GraphPickEntry(ClientData clientData, int x, int y, // Found an element within the minimum halo distance. if (searchPtr->dist <= (double)searchPtr->halo) { - *contextPtr = (ClientData)searchPtr->elemPtr->classId(); + *contextPtr = searchPtr->elemPtr->classId(); return searchPtr->elemPtr; } markerPtr = graphPtr->nearestMarker(x, y, 1); if (markerPtr) { - *contextPtr = (ClientData)markerPtr->classId(); + *contextPtr = markerPtr->classId(); return markerPtr; } - *contextPtr = (ClientData)NULL; + *contextPtr = CID_NONE; return NULL; } |