Source
2373
2373
// affecting the suitibility of the current vis_ which is not
2374
2374
// determined by the DD or its 'Adjust' input. It may vary with the
2375
2375
// world canvas, which is an input parameter to this
2376
2376
// draw_ routine. Recall that this DD may draw on more than one canvas.
2377
2377
// Animator position is essentially a WorldCanvas property (unlike the
2378
2378
// positions on the axis sliders, e.g.).
2379
2379
// Presumably, conformsTo() was checked before entering this routine,
2380
2380
// so that we could just use activeZIndex_ instead of retrieving it
2381
2381
// here explicitly..
2382
2382
2383
-
Int zIndex;
2383
+
Int zIndex = 0;
2384
2384
Bool zIndexExists;
2385
2385
const AttributeBuffer *wchRestrs = wch.restrictionBuffer();
2386
2386
zIndexExists = wchRestrs->getValue("zIndex",zIndex);
2387
2387
if(zIndexExists) {
2388
2388
pos_[axZ] = zIndex;
2389
2389
if ( axZ == SP_W ) {
2390
2390
mspos_.sets(pos_[SP_W]);
2391
2391
DisplayCoordinateSystem newcs = setCS_( );
2392
2392
wc.setCoordinateSystem(newcs);
2393
2393
}
3375
3375
// Add the edit request that came in from the rectangle or crosshair
3376
3376
// mouse tool to the flagEdits_ List.
3377
3377
// Then cause the necessary display matrices to be updated and displayed.
3378
3378
3379
3379
3380
3380
// Fetch position on animator axis for the wc of the event (could have
3381
3381
// used activeZIndex_, instead of getting it from the wch again).
3382
3382
3383
3383
WorldCanvasHolder *wch = findHolder(wc);
3384
3384
if(wch==0) return; //shouldn't happen.
3385
-
Int zStart;
3385
+
Int zStart = 0;
3386
3386
Bool zStartExists;
3387
3387
const AttributeBuffer *wchRestrs = wch->restrictionBuffer();
3388
3388
zStartExists = wchRestrs->getValue("zIndex",zStart);
3389
3389
3390
3390
if(!zStartExists || zStart<0 || zStart>=msShape_[axisOn_[Z]]) {
3391
3391
PixelCanvas *pc = wc->pixelCanvas();
3392
3392
pc->copyBackBufferToFrontBuffer();
3393
3393
pc->setDrawBuffer(Display::FrontBuffer);
3394
3394
pc->callRefreshEventHandlers(Display::BackCopiedToFront);
3395
3395
return;