Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

scale.cc

Go to the documentation of this file.
00001 #include "scale.hh"
00002 #include "register.hh"
00003 #include <stdlib.h>
00004 #include "element.hh"
00005 #include "abstractworld.hh"
00006 
00007 namespace anoid {
00008     namespace plugin {
00009 
00010         using namespace simple;
00011         using namespace config;
00012 
00013         void Scale::init(Configuration &c) {
00014             scale = c.getVector("scale");
00015             Ability::init(c);
00016             registerName("Scale");
00017         }
00018 
00019         Vector Scale::getScale() {
00020             return scale;
00021         }
00022 
00023         Scale::Scale(): scale(I) {
00024         }
00025 
00026         void Scale::redraw() {
00027             getWorld()->getContext()->scale(scale);
00028             Ability::redraw();
00029         }
00030 
00031         Register(Scale)
00032 
00033     };
00034 };

Anoid NG © Michael Westergaard, Martin Stig Stissing, Ronni Michael Laursen, and Kristian Bisgaard Lassen