00001 /* 00002 * DisplayElement.cpp 00003 * 00004 * Created on: Dec 7, 2011 00005 * Author: martin 00006 */ 00007 00008 #include "DisplayElement.h" 00009 00010 namespace display 00011 { 00012 00013 00014 00015 DisplayElement::DisplayElement(std::unique_ptr<DisplayStyle> && disp): 00016 disp(std::move(disp)) 00017 { 00018 } 00019 00020 DisplayElement::~DisplayElement() 00021 { 00022 } 00023 00024 void DisplayElement::draw(Cairo::RefPtr<Cairo::Context> cr, proj::MapProjection& pr) const 00025 { 00026 disp->prepare(cr); 00027 draw_internal(cr, pr); 00028 disp->exec(cr); 00029 } 00030 00031 } /* namespace display */ 00032 00033