drawAreaComponent.cpp
00001
00002
00003
00004
00005
00006
00007 #include "drawAreaComponent.h"
00008
00009
00010 DrawAreaComponent::DrawAreaComponent(const VXV::Rect& center, double magnify)
00011 : view_center(center), view_offset(VXV::Grid(0,0)),
00012 view_rotate(VXV::Direction()), view_magnify(magnify) {
00013 }
00014
00015
00016 DrawAreaComponent::~DrawAreaComponent(void) {
00017 }
00018
00019
00020 bool DrawAreaComponent::draw(unsigned long ticks, const UserInput& ui) {
00021 return true;
00022 }
00023
00024
00025 void DrawAreaComponent::setViewCenter(const VXV::Grid& center) {
00026 view_center = center;
00027 }
00028
00029
00030 void DrawAreaComponent::setViewCenterOffset(const VXV::Grid& offset) {
00031 view_offset = offset;
00032 }
00033
00034
00035 void DrawAreaComponent::setViewRotateAngle(const VXV::Direction& angle) {
00036 view_rotate = angle;
00037 }
00038
00039
00040 void DrawAreaComponent::setViewMagnify(double magnify) {
00041 view_magnify = magnify;
00042 }
00043
00044
00045 void DrawAreaComponent::add(DrawAreaCtrlInterface* obj) {
00046 }
00047
00048
00049 void DrawAreaComponent::del(DrawAreaCtrlInterface* obj) {
00050 }
00051
00052
00053 void DrawAreaComponent::clear(void) {
00054 }
00055