- Timestamp:
- Nov 14, 2011, 5:43:07 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/nobjmgr.cc
r3572 r4037 1492 1492 return; 1493 1493 } 1494 //Vector * vx = dynamic_cast<Vector *>(obj);1495 1494 BaseArray* bax = dynamic_cast<BaseArray *>(obj); 1496 1495 if (bax == NULL) { … … 1510 1509 } 1511 1510 1512 Vector vx = *bax; 1513 Vector vy = *bay; 1514 Vector * cvx, * cvy; 1515 1516 if (vx.Size() != vy.Size()) { 1517 cout << "NamedObjMgr::DisplayVector() Warning / Vx.Size() != Vy.Size() " << endl; 1518 if (vx.Size() < vy.Size()) { 1519 cvx = new Vector(vx); 1520 cvy = new Vector(vy.SubVector(Range(0, 0, vx.Size()-1))); 1521 } 1522 else { 1523 cvx = new Vector(vx.SubVector(Range(0, 0, vy.Size()-1))); 1524 cvy = new Vector(vy); 1525 } 1526 } 1527 else { 1528 cvx = new Vector(vx); 1529 cvy = new Vector(vy); 1530 } 1531 1532 POVectorAdapter * avx = new POVectorAdapter(cvx, true); 1533 POVectorAdapter * avy = new POVectorAdapter(cvy, true); 1511 Vector* pvx = new Vector(*bax); 1512 Vector* pvy = new Vector(*bay); 1513 POVectorAdapter * avx = new POVectorAdapter(pvx, true); 1514 POVectorAdapter * avy = new POVectorAdapter(pvy, true); 1534 1515 PIYfXDrawer * vxydrw = new PIYfXDrawer(avx, avy, true); 1535 1516
Note:
See TracChangeset
for help on using the changeset viewer.