Document::ChangeLightingDelta Class Reference

A DocumentDelta to change a Track::Track's Track::Lighting object to another one. More...

#include <ChangeLightingDelta.h>

Inheritance diagram for Document::ChangeLightingDelta:

Document::DocumentDelta List of all members.

Public Member Functions

 ChangeLightingDelta (Track::Lighting new_lighting)
 Construct using specified replacement lighting.
virtual void apply (Track::Track &track)
 Change the lighting to the one specified in the constructor.
virtual void unapply (Track::Track &track)
 Revert to the original lighting.

Protected Attributes

Track::Lighting m_new_lighting
Track::Lighting m_old_lighting

Detailed Description

A DocumentDelta to change a Track::Track's Track::Lighting object to another one.

Definition at line 23 of file ChangeLightingDelta.h.


Constructor & Destructor Documentation

Document::ChangeLightingDelta::ChangeLightingDelta ( Track::Lighting  new_lighting  ) 

Construct using specified replacement lighting.

Parameters:
new_lighting The Track::Lighting that will replace the current track's lighting when the delta is applied.

Definition at line 18 of file ChangeLightingDelta.cpp.


Member Function Documentation

void Document::ChangeLightingDelta::apply ( Track::Track track  )  [virtual]

Change the lighting to the one specified in the constructor.

Parameters:
track The track to apply the changes to.

Implements Document::DocumentDelta.

Definition at line 23 of file ChangeLightingDelta.cpp.

void Document::ChangeLightingDelta::unapply ( Track::Track track  )  [virtual]

Revert to the original lighting.

Parameters:
track The track to apply the changes to.

Implements Document::DocumentDelta.

Definition at line 29 of file ChangeLightingDelta.cpp.


Member Data Documentation

Track::Lighting Document::ChangeLightingDelta::m_new_lighting [protected]

Definition at line 42 of file ChangeLightingDelta.h.

Track::Lighting Document::ChangeLightingDelta::m_old_lighting [protected]

Definition at line 43 of file ChangeLightingDelta.h.


The documentation for this class was generated from the following files:
Get Racer at SourceForge.net. Fast, secure and Free Open Source software downloads

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