![]() |
WhirlyGlobe
1.2
A 3D interactive globe toolkit for iOS
|
00001 /* 00002 * DrawGenerator.h 00003 * WhirlyGlobeLib 00004 * 00005 * Created by Steve Gifford on 10/10/11. 00006 * Copyright 2011 mousebird consulting. All rights reserved. 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 <map> 00023 #import <list> 00024 #import "Texture.h" 00025 #import "Drawable.h" 00026 #import "GlobeView.h" 00027 00029 @class RendererFrameInfo; 00031 00032 namespace WhirlyGlobe 00033 { 00034 00039 class Generator : public Identifiable 00040 { 00041 public: 00042 Generator() { } 00043 virtual ~Generator() { } 00044 00047 virtual void generateDrawables(RendererFrameInfo *frameInfo,std::vector<Drawable *> &drawables) { }; 00048 }; 00049 00054 class GeneratorChangeRequest : public ChangeRequest 00055 { 00056 public: 00058 GeneratorChangeRequest(SimpleIdentity genId) : genId(genId) { } 00059 GeneratorChangeRequest() { } 00060 00062 void execute(GlobeScene *scene,WhirlyGlobeView *view); 00063 00065 virtual void execute2(GlobeScene *scene,Generator *drawGen) = 0; 00066 00067 protected: 00069 SimpleIdentity genId; 00070 }; 00071 00072 00073 }