diff src/EyePoint.h @ 10:5727d511a13a

add src in Martial Project Xcode.
author tokumoritaichirou@nw0743.st.ie.u-ryukyu.ac.jp
date Wed, 03 Feb 2010 03:39:04 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/EyePoint.h	Wed Feb 03 03:39:04 2010 +0900
@@ -0,0 +1,32 @@
+/*
+ *  eyePoint.h
+ *  carRace
+ *
+ *  Created by ryoma on 09/05/20.
+ *  Copyright 2009 __MyCompanyName__. All rights reserved.
+ *
+ */
+
+/** 視点を表すクラス.
+ *  指定したMovableオブジェクトの視点を描画する
+ *  @see Car
+ */
+#ifndef EYE_POINT_H
+#define EYE_POINT_H
+
+#include "Martial.h"
+#include "MovableObject.h"
+#include <osg/MatrixTransform>
+
+class EyePoint : public MovableObject {
+	protected:
+		osgGA::TrackballManipulator* Tman;
+		osg::Vec3 offset;
+	public:
+		EyePoint(char* name = "EyePoint");
+		virtual void frame() = 0;
+		virtual void setTarget(MovableObject* _target) = 0;
+		osgGA::TrackballManipulator* getManpulator();
+}; 
+
+#endif
\ No newline at end of file