iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x

SCIPieHitTestInfo

@interface SCIPieHitTestInfo : NSObject <ISCIHitTestInfo>

Defines a hit test info class which provides information on a series hit-test operation for pie series.

  • The point where hit test is performed.

    Declaration

    Objective-C

    @property (nonatomic) CGPoint hitTestPoint;

    Swift

    var hitTestPoint: CGPoint { get set }
  • The value indicating whether the HitTest operation was a hit or not

    Declaration

    Objective-C

    @property (nonatomic) BOOL isHit;

    Swift

    var isHit: Bool { get set }
  • The index of hit test point in associated SCIPieSegmentCollection.

    Declaration

    Objective-C

    @property (nonatomic) NSInteger segmentIndex;

    Swift

    var segmentIndex: Int { get set }
  • Sets the hit test info values.

    Declaration

    Objective-C

    - (void)setPoint:(CGPoint)point segmentIndex:(NSInteger)segmentIndex;

    Swift

    func setPoint(_ point: CGPoint, segmentIndex: Int)

    Parameters

    point

    The coordinate of hit test point.

    segmentIndex

    The index of hit test point in associated SCIPieSegmentCollection