1 /***********************************************************************/ 2 /* Open Visualization Data Explorer */ 3 /* (C) Copyright IBM Corp. 1989,1999 */ 4 /* ALL RIGHTS RESERVED */ 5 /* This code licensed under the */ 6 /* "IBM PUBLIC LICENSE - Open Visualization Data Explorer" */ 7 /***********************************************************************/ 8 9 #include <dxconfig.h> 10 #include "../base/defines.h" 11 12 13 14 15 #include "ImageResetCommand.h" 16 #include "ImageWindow.h" 17 ImageResetCommand(const char * name,CommandScope * scope,boolean active,ImageWindow * w)18ImageResetCommand::ImageResetCommand(const char *name, 19 CommandScope *scope, 20 boolean active, 21 ImageWindow *w): 22 NoUndoCommand(name, scope, active) 23 { 24 this->imageWindow = w; 25 } 26 doIt(CommandInterface * ci)27boolean ImageResetCommand::doIt(CommandInterface *ci) 28 { 29 this->imageWindow->resetCamera(); 30 return TRUE; 31 } 32