From: Pablo d'A. <da...@us...> - 2006-12-22 12:31:44
|
Update of /cvsroot/hugin/hugin/src/include/PT In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv24749/src/include/PT Modified Files: PanoCommand.h Log Message: created crop panel, removed some obselete stuff Index: PanoCommand.h =================================================================== RCS file: /cvsroot/hugin/hugin/src/include/PT/PanoCommand.h,v retrieving revision 1.32 retrieving revision 1.33 diff -u -d -r1.32 -r1.33 --- PanoCommand.h 20 Dec 2006 00:42:16 -0000 1.32 +++ PanoCommand.h 22 Dec 2006 12:31:38 -0000 1.33 @@ -875,6 +875,43 @@ UIntSet imgNrs; }; + + //========================================================================= + //========================================================================= + + /** set image options for a set of images. + * just sets the @p options given for all images in @p imgs + */ + class UpdateImageOptionsCmd : public PanoCommand + { + public: + UpdateImageOptionsCmd(Panorama & p, std::vector<ImageOptions> opts, UIntSet imgs) + : PanoCommand(p), options(opts), imgNrs(imgs) + { + assert(opts.size() == imgs.size()); + }; + + virtual void execute() + { + PanoCommand::execute(); + int i=0; + for (UIntSet::iterator it = imgNrs.begin(); + it != imgNrs.end(); ++it) + { + pano.setImageOptions(*it, options[i]); + i++; + } + pano.changeFinished(); + } + virtual std::string getName() const + { + return "set image options"; + } + private: + std::vector<ImageOptions> options; + UIntSet imgNrs; + }; + //========================================================================= //========================================================================= |