PieChart/PieChart/ChartView/RotatedView.h
//
//  RotatedView.h
//  Statements RotatedView
//
//  Created by Moncter8 on 13-5-30.
//  Copyright (c) 2013年 Moncter8. All rights reserved.
//

#import <UIKit/UIKit.h>

#import <UIKit/UIKit.h>
#import "RenderView.h"

@class RotatedView;
@protocol RotatedViewDelegate <NSObject>
@optional
- (void)selectedFinish:(RotatedView *)rotatedView index:(NSInteger)index percent:(float)per;
@end

@interface RotatedView : UIView<RenderViewDataSource,RenderViewtDelegate> {
    float               mZeroAngle;
    NSMutableArray     *mValueArray;
    NSMutableArray     *mColorArray;
    NSMutableArray     *mThetaArray;
    
    BOOL                isAnimating;
    BOOL                isTapStopped;
    BOOL                isAutoRotation;
    float               mAbsoluteTheta;
    float               mRelativeTheta;
    UITextView         *mInfoTextView;
    
    float               mDragSpeed;
    NSDate             *mDragBeforeDate;
    float               mDragBeforeTheta;
    NSTimer            *mDecelerateTimer;
}
@property(nonatomic, assign) id<RotatedViewDelegate> delegate;
@property (nonatomic)float fracValue;
@property (nonatomic)         float           mZeroAngle;
@property (nonatomic)         BOOL            isAutoRotation;
@property (nonatomic, retain) NSMutableArray *mValueArray;
@property (nonatomic, retain) NSMutableArray *mColorArray;
@property (nonatomic, retain) UITextView     *mInfoTextView;

- (void)startedAnimate;
- (void)reloadPie;
@end
