drawAreaComponent.cpp

00001 /*
00002   基本描画領域を提供するコンポーネント
00003   Satofumi KAMIMURA
00004   $Id$
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 

Generated on Mon Apr 13 22:52:02 2009 by  doxygen 1.5.7.1