Core Plot (iOS and tvOS)
Cocoa plotting framework for macOS, iOS, and tvOS
CPTAnimation.h
Go to the documentation of this file.
1 #import <QuartzCore/QuartzCore.h>
2 
4 @class CPTAnimationPeriod;
5 
9 typedef NS_ENUM (NSInteger, CPTAnimationCurve) {
42 };
43 
44 #pragma mark -
45 
49 #if ((TARGET_OS_SIMULATOR || TARGET_OS_IPHONE || TARGET_OS_TV) && (__IPHONE_OS_VERSION_MAX_ALLOWED >= 100000)) \
50  || (TARGET_OS_MAC && (MAC_OS_X_VERSION_MAX_ALLOWED >= 101200))
51 // CAAnimationDelegate is defined by Core Animation in iOS 10.0+, macOS 10.12+, and tvOS 10.0+
53 #else
55 #endif
56 
57 @optional
58 
61 
65 -(void)animationDidStart:(nonnull CPTAnimationOperation *)operation;
66 
70 -(void)animationDidFinish:(nonnull CPTAnimationOperation *)operation;
71 
75 -(void)animationCancelled:(nonnull CPTAnimationOperation *)operation;
76 
80 -(void)animationWillUpdate:(nonnull CPTAnimationOperation *)operation;
81 
85 -(void)animationDidUpdate:(nonnull CPTAnimationOperation *)operation;
86 
88 
89 @end
90 
91 #pragma mark -
92 
93 @interface CPTAnimation : NSObject
94 
97 @property (nonatomic, readonly) CGFloat timeOffset;
99 
102 @property (nonatomic, assign) CPTAnimationCurve defaultAnimationCurve;
104 
107 +(nonnull instancetype)sharedInstance;
109 
112 +(nonnull CPTAnimationOperation *)animate:(nonnull id)object property:(nonnull NSString *)property period:(nonnull CPTAnimationPeriod *)period animationCurve:(CPTAnimationCurve)animationCurve delegate:(nullable id<CPTAnimationDelegate>)delegate;
114 
117 -(nonnull CPTAnimationOperation *)addAnimationOperation:(nonnull CPTAnimationOperation *)animationOperation;
118 -(void)removeAnimationOperation:(nullable CPTAnimationOperation *)animationOperation;
121 
124 -(nullable CPTAnimationOperation *)operationWithIdentifier:(nullable id<NSCopying, NSObject>)identifier;
126 
127 @end
CPTAnimationCurveElasticOut
@ CPTAnimationCurveElasticOut
Elastic out animation curve.
Definition: CPTAnimation.h:22
NSObject
CPTAnimationCurveCircularOut
@ CPTAnimationCurveCircularOut
Circular out animation curve.
Definition: CPTAnimation.h:19
CPTAnimationCurveQuinticOut
@ CPTAnimationCurveQuinticOut
Quintic out animation curve.
Definition: CPTAnimation.h:40
+[CPTAnimation sharedInstance]
nonnull instancetype sharedInstance()
A shared CPTAnimation instance responsible for scheduling and executing animations.
Definition: CPTAnimation.m:144
CPTAnimationCurveCircularIn
@ CPTAnimationCurveCircularIn
Circular in animation curve.
Definition: CPTAnimation.h:18
CPTAnimationCurveQuarticInOut
@ CPTAnimationCurveQuarticInOut
Quartic in and out animation curve.
Definition: CPTAnimation.h:38
CPTAnimationCurveCubicOut
@ CPTAnimationCurveCubicOut
Cubic out animation curve.
Definition: CPTAnimation.h:31
CPTAnimationCurveExponentialOut
@ CPTAnimationCurveExponentialOut
Exponential out animation curve.
Definition: CPTAnimation.h:25
CPTAnimationCurveLinear
@ CPTAnimationCurveLinear
Linear animation curve.
Definition: CPTAnimation.h:11
CPTAnimationCurveQuadraticIn
@ CPTAnimationCurveQuadraticIn
Quadratic in animation curve.
Definition: CPTAnimation.h:33
CPTAnimationCurveExponentialIn
@ CPTAnimationCurveExponentialIn
Exponential in animation curve.
Definition: CPTAnimation.h:24
CPTAnimationCurve
CPTAnimationCurve
Enumeration of animation curves.
Definition: CPTAnimation.h:9
CPTAnimation::defaultAnimationCurve
CPTAnimationCurve defaultAnimationCurve
The animation curve used when an animation operation specifies the CPTAnimationCurveDefault animation...
Definition: CPTAnimation.h:102
CPTAnimationCurveDefault
@ CPTAnimationCurveDefault
Use the default animation curve.
Definition: CPTAnimation.h:10
CPTAnimationCurveSinusoidalIn
@ CPTAnimationCurveSinusoidalIn
Sinusoidal in animation curve.
Definition: CPTAnimation.h:27
CPTAnimationCurveQuadraticOut
@ CPTAnimationCurveQuadraticOut
Quadratic out animation curve.
Definition: CPTAnimation.h:34
CPTAnimationCurveSinusoidalInOut
@ CPTAnimationCurveSinusoidalInOut
Sinusoidal in and out animation curve.
Definition: CPTAnimation.h:29
CPTAnimationCurveBounceInOut
@ CPTAnimationCurveBounceInOut
Bounce in and out animation curve.
Definition: CPTAnimation.h:17
CPTAnimationCurveBounceOut
@ CPTAnimationCurveBounceOut
Bounce out animation curve.
Definition: CPTAnimation.h:16
CPTAnimationPeriod
Animation timing information and animated values.
Definition: CPTAnimationPeriod.h:7
CPTAnimationCurveElasticIn
@ CPTAnimationCurveElasticIn
Elastic in animation curve.
Definition: CPTAnimation.h:21
CPTAnimationCurveBackIn
@ CPTAnimationCurveBackIn
Backing in animation curve.
Definition: CPTAnimation.h:12
CGFloat
typedef CGFloat
CPTAnimationCurveExponentialInOut
@ CPTAnimationCurveExponentialInOut
Exponential in and out animation curve.
Definition: CPTAnimation.h:26
CPTAnimation
The controller for Core Plot animations.
Definition: CPTAnimation.h:94
-[CPTAnimation removeAllAnimationOperations]
void removeAllAnimationOperations()
Removes all animation operations from the animation queue.
Definition: CPTAnimation.m:229
CPTAnimationCurveQuarticIn
@ CPTAnimationCurveQuarticIn
Quartic in animation curve.
Definition: CPTAnimation.h:36
CPTAnimationCurveCubicIn
@ CPTAnimationCurveCubicIn
Cubic in animation curve.
Definition: CPTAnimation.h:30
CPTAnimationOperation
Describes all aspects of an animation operation, including the value range, duration,...
Definition: CPTAnimationOperation.h:7
CPTAnimation::timeOffset
CGFloat timeOffset
The animation clock. This value is incremented for each frame while animations are running.
Definition: CPTAnimation.h:97
CPTAnimationDelegate-p
Animation delegate.
Definition: CPTAnimation.h:54
NSString
CPTAnimationCurveBackInOut
@ CPTAnimationCurveBackInOut
Backing in and out animation curve.
Definition: CPTAnimation.h:14
CPTAnimationCurveQuadraticInOut
@ CPTAnimationCurveQuadraticInOut
Quadratic in and out animation curve.
Definition: CPTAnimation.h:35
CPTAnimationCurveBounceIn
@ CPTAnimationCurveBounceIn
Bounce in animation curve.
Definition: CPTAnimation.h:15
CPTAnimationCurveCubicInOut
@ CPTAnimationCurveCubicInOut
Cubic in and out animation curve.
Definition: CPTAnimation.h:32
CPTAnimationCurveQuinticInOut
@ CPTAnimationCurveQuinticInOut
Quintic in and out animation curve.
Definition: CPTAnimation.h:41
CPTAnimationCurveQuinticIn
@ CPTAnimationCurveQuinticIn
Quintic in animation curve.
Definition: CPTAnimation.h:39
CPTAnimationCurveElasticInOut
@ CPTAnimationCurveElasticInOut
Elastic in and out animation curve.
Definition: CPTAnimation.h:23
CPTAnimationCurveCircularInOut
@ CPTAnimationCurveCircularInOut
Circular in and out animation curve.
Definition: CPTAnimation.h:20
CPTAnimationCurveBackOut
@ CPTAnimationCurveBackOut
Backing out animation curve.
Definition: CPTAnimation.h:13
CPTAnimationCurveQuarticOut
@ CPTAnimationCurveQuarticOut
Quartic out animation curve.
Definition: CPTAnimation.h:37
CAAnimationDelegate-p
CPTAnimationCurveSinusoidalOut
@ CPTAnimationCurveSinusoidalOut
Sinusoidal out animation curve.
Definition: CPTAnimation.h:28