WhirlyGlobe  1.2
A 3D interactive globe toolkit for iOS
/Users/sjg/iPhone/WhirlyGlobe/WhirlyGlobeSrc/WhirlyGlobeLib/include/AnimateRotation.h
00001 /*
00002  *  AnimateRotation.h
00003  *  WhirlyGlobeLib
00004  *
00005  *  Created by Steve Gifford on 5/23/11.
00006  *  Copyright 2011 mousebird consulting
00007  *
00008  *  Licensed under the Apache License, Version 2.0 (the "License");
00009  *  you may not use this file except in compliance with the License.
00010  *  You may obtain a copy of the License at
00011  *  http://www.apache.org/licenses/LICENSE-2.0
00012  *
00013  *  Unless required by applicable law or agreed to in writing, software
00014  *  distributed under the License is distributed on an "AS IS" BASIS,
00015  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00016  *  See the License for the specific language governing permissions and
00017  *  limitations under the License.
00018  *
00019  */
00020 
00021 #import <UIKit/UIKit.h>
00022 #import "WhirlyVector.h"
00023 #import "WhirlyGeometry.h"
00024 #import "GlobeView.h"
00025 
00030 @interface AnimateViewRotation : NSObject<WhirlyGlobeAnimationDelegate>
00031 {
00032     NSDate *startDate,*endDate;
00033     Eigen::Quaternion<float> startRot,endRot;
00034 }
00035 
00037 @property (nonatomic,retain) NSDate *startDate;
00039 @property (nonatomic,retain) NSDate *endDate;
00041 @property (nonatomic,assign) Eigen::Quaternion<float> startRot;
00043 @property (nonatomic,assign) Eigen::Quaternion<float> endRot;
00044 
00047 - (id)initWithView:(WhirlyGlobeView *)globeView rot:(Eigen::Quaternion<float> &)newRot howLong:(float)howLong;
00048 
00049 @end