Lines Matching refs:index

362 	int32 index = fPointCount;
365 _SetPoint(index, point);
366 _NotifyPointAdded(index);
378 int32 index = fPointCount;
381 _SetPoint(index, point, pointIn, pointOut, connected);
382 _NotifyPointAdded(index);
391 VectorPath::AddPoint(BPoint point, int32 index)
393 if (index < 0)
394 index = 0;
395 if (index > fPointCount)
396 index = fPointCount;
400 if (index < fPointCount - 1) {
401 for (int32 i = fPointCount; i > index; i--) {
408 _SetPoint(index, point);
409 _NotifyPointAdded(index);
417 VectorPath::RemovePoint(int32 index)
419 if (index >= 0 && index < fPointCount) {
420 if (index < fPointCount - 1) {
422 for (int32 i = index; i < fPointCount - 1; i++) {
433 _NotifyPointRemoved(index);
441 VectorPath::SetPoint(int32 index, BPoint point)
443 if (index == fPointCount)
444 index = 0;
445 if (index >= 0 && index < fPointCount) {
446 BPoint offset = point - fPath[index].point;
447 fPath[index].point = point;
448 fPath[index].point_in += offset;
449 fPath[index].point_out += offset;
453 _NotifyPointChanged(index);
461 VectorPath::SetPoint(int32 index, BPoint point, BPoint pointIn, BPoint pointOut,
464 if (index == fPointCount)
465 index = 0;
466 if (index >= 0 && index < fPointCount) {
467 fPath[index].point = point;
468 fPath[index].point_in = pointIn;
469 fPath[index].point_out = pointOut;
470 fPath[index].connected = connected;
474 _NotifyPointChanged(index);
552 VectorPath::SetInOutConnected(int32 index, bool connected)
554 if (index >= 0 && index < fPointCount) {
555 fPath[index].connected = connected;
556 _NotifyPointChanged(index);
567 VectorPath::GetPointAt(int32 index, BPoint& point) const
569 if (index == fPointCount)
570 index = 0;
571 if (index >= 0 && index < fPointCount) {
572 point = fPath[index].point;
580 VectorPath::GetPointInAt(int32 index, BPoint& point) const
582 if (index == fPointCount)
583 index = 0;
584 if (index >= 0 && index < fPointCount) {
585 point = fPath[index].point_in;
593 VectorPath::GetPointOutAt(int32 index, BPoint& point) const
595 if (index == fPointCount)
596 index = 0;
597 if (index >= 0 && index < fPointCount) {
598 point = fPath[index].point_out;
606 VectorPath::GetPointsAt(int32 index, BPoint& point, BPoint& pointIn,
609 if (index >= 0 && index < fPointCount) {
610 point = fPath[index].point;
611 pointIn = fPath[index].point_in;
612 pointOut = fPath[index].point_out;
615 *connected = fPath[index].connected;
675 VectorPath::GetDistance(BPoint p, float* distance, int32* index) const
687 *index = i + 1;
696 *index = fPointCount;
706 VectorPath::FindBezierScale(int32 index, BPoint point, double* scale) const
708 if (index >= 0 && index < fPointCount && scale) {
721 GetPoint(index, t, curvePoint);
737 VectorPath::GetPoint(int32 index, double t, BPoint& point) const
739 if (index >= 0 && index < fPointCount) {
745 if (index < fPointCount - 1) {
746 point.x = fPath[index].point.x * t1 + fPath[index].point_out.x * t2
747 + fPath[index + 1].point_in.x * t3
748 + fPath[index + 1].point.x * t4;
750 point.y = fPath[index].point.y * t1 + fPath[index].point_out.y * t2
751 + fPath[index + 1].point_in.y * t3
752 + fPath[index + 1].point.y * t4;
948 int32 index = 0;
950 temp.SetPoint(index, fPath[i].point, fPath[i].point_out,
952 index++;
1024 VectorPath::ListenerAtFast(int32 index) const
1026 return (PathListener*)fListeners.ItemAtFast(index);
1036 VectorPath::_SetPoint(int32 index, BPoint point)
1038 fPath[index].point = point;
1039 fPath[index].point_in = point;
1040 fPath[index].point_out = point;
1042 fPath[index].connected = true;
1049 VectorPath::_SetPoint(int32 index, const BPoint& point, const BPoint& pointIn,
1052 fPath[index].point = point;
1053 fPath[index].point_in = pointIn;
1054 fPath[index].point_out = pointOut;
1056 fPath[index].connected = connected;
1105 VectorPath::_NotifyPointAdded(int32 index) const
1111 listener->PointAdded(index);
1117 VectorPath::_NotifyPointChanged(int32 index) const
1123 listener->PointChanged(index);
1129 VectorPath::_NotifyPointRemoved(int32 index) const
1135 listener->PointRemoved(index);