ChangeLightingDelta.h

Go to the documentation of this file.
00001 
00005 /* Copyright © 2010 James Legg.
00006     This program is free software: you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation, either version 3 of the License, or
00009     (at your option) any later version.
00010 */
00011 
00012 #ifndef LIBTRACK_DOCUMENT_CHANGE_LIGHTING_DELTA_H_
00013 #define LIBTRACK_DOCUMENT_CHANGE_LIGHTING_DELTA_H_
00014 
00015 #include "DocumentDelta.h"
00016 #include "../Lighting.h"
00017 
00018 namespace Document
00019 {
00020 
00023 class ChangeLightingDelta
00024     :   public DocumentDelta
00025 {
00026 public:
00031     ChangeLightingDelta(Track::Lighting new_lighting);
00035     virtual void apply(Track::Track & track);
00036     
00040     virtual void unapply(Track::Track & track);
00041 protected:
00042     Track::Lighting m_new_lighting;
00043     Track::Lighting m_old_lighting;
00044 };
00045 
00046 } // namespace Document
00047 
00048 #endif // LIBTRACK_DOCUMENT_CHANGE_LIGHTING_DELTA_H_

Get Racer at SourceForge.net. Fast, secure and Free Open Source software downloads

Generated at Mon Sep 6 00:41:11 2010 by Doxygen version 1.4.7 for Racer version svn335.