diff options
author | joye <joye> | 2014-03-28 14:33:16 (GMT) |
---|---|---|
committer | joye <joye> | 2014-03-28 14:33:16 (GMT) |
commit | e8752647d6547dfbbe39ec22f1643e4782c6358b (patch) | |
tree | 0a3730a8771c6a3d606203a8e71a8e832a1ce2ce /src/bltGrMarker.C | |
parent | bb72885d88f69002a911d7ffdc54ad2f86430671 (diff) | |
download | blt-e8752647d6547dfbbe39ec22f1643e4782c6358b.zip blt-e8752647d6547dfbbe39ec22f1643e4782c6358b.tar.gz blt-e8752647d6547dfbbe39ec22f1643e4782c6358b.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src/bltGrMarker.C')
-rw-r--r-- | src/bltGrMarker.C | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/bltGrMarker.C b/src/bltGrMarker.C index a7596ca..b527f48 100644 --- a/src/bltGrMarker.C +++ b/src/bltGrMarker.C @@ -42,7 +42,6 @@ extern "C" { #include "bltGrMarkerLine.h" #include "bltGrMarkerPolygon.h" #include "bltGrMarkerText.h" -#include "bltGrMarkerWindow.h" using namespace Blt; @@ -306,8 +305,6 @@ static int CreateMarker(Graph* graphPtr, Tcl_Interp* interp, markerPtr = new PolygonMarker(graphPtr, name); else if (!strcmp(type, "text")) markerPtr = new TextMarker(graphPtr, name); - else if (!strcmp(type, "window")) - markerPtr = new WindowMarker(graphPtr, name); else { Tcl_AppendResult(interp, "unknown marker type ", type, NULL); return TCL_ERROR; @@ -531,7 +528,7 @@ static int FindOp(Graph* graphPtr, Tcl_Interp* interp, if (IsElementHidden(markerPtr)) continue; - if ((*markerPtr->classPtr->regionProc)(markerPtr, &extents, enclosed)) { + if (markerPtr->regionIn(&extents, enclosed)) { Tcl_Obj* objPtr = Tcl_GetObjResult(interp); Tcl_SetStringObj(objPtr, markerPtr->obj.name, -1); return TCL_OK; @@ -782,9 +779,6 @@ void Blt_MarkersToPostScript(Graph* graphPtr, Blt_Ps ps, int under) link; link = Blt_Chain_PrevLink(link)) { Marker* markerPtr = (Marker*)Blt_Chain_GetValue(link); MarkerOptions* ops = (MarkerOptions*)markerPtr->ops; - if (markerPtr->classPtr->postscriptProc == NULL) - continue; - if (ops->drawUnder != under) continue; @@ -796,7 +790,7 @@ void Blt_MarkersToPostScript(Graph* graphPtr, Blt_Ps ps, int under) Blt_Ps_VarAppend(ps, "\n% Marker \"", markerPtr->obj.name, "\" is a ", markerPtr->obj.className, ".\n", (char*)NULL); - (*markerPtr->classPtr->postscriptProc) (markerPtr, ps); + markerPtr->postscript(ps); } } @@ -840,7 +834,7 @@ void Blt_MapMarkers(Graph* graphPtr) continue; if ((graphPtr->flags & MAP_ALL) || (markerPtr->flags & MAP_ITEM)) { - (*markerPtr->classPtr->mapProc) (markerPtr); + markerPtr->map(); markerPtr->flags &= ~MAP_ITEM; } } @@ -881,7 +875,7 @@ void* Blt_NearestMarker(Graph* graphPtr, int x, int y, int under) continue; if ((ops->drawUnder == under) && (ops->state == BLT_STATE_NORMAL)) - if ((*markerPtr->classPtr->pointProc) (markerPtr, &point)) + if (markerPtr->pointIn(&point)) return markerPtr; } return NULL; |