TarzaNN
TarzaNN neural network simulator
|
00001 /**************************************************************************** 00002 ** 00003 ** Copyright C 2002-2012 Laboratory for Active and Attentive Vision (LAAV), Department of Computer Science and Engineering, York University, Toronto, ON, Canada. 00004 ** All rights reserved. 00005 ** 00006 ** This file is part of the TarzaNN Neural Network Simulator. 00007 ** 00008 ** This file may be distributed and/or modified under the terms of the 00009 ** GNU General Public License version 2 as published by the Free Software 00010 ** Foundation and appearing in the file LICENSE.GPL included in the 00011 ** packaging of this file. 00012 ** 00013 ** See http://www.tarzann.org/gpl/ for GPL licensing information. 00014 ** 00015 ** Contact info@tarzann.org if any conditions of this licensing are 00016 ** not clear to you. 00017 ** 00018 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00019 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00020 ** 00021 ****************************************************************************/ 00022 00023 #ifndef FP_3DVIEW_INFO_H 00024 #define FP_3DVIEW_INFO_H 00025 00026 #include <vector> 00027 using namespace std; 00028 00029 struct FPPoint { 00030 float x, y, z; 00031 00032 FPPoint operator+(FPPoint & p) { 00033 this->x += p.x; 00034 this->y += p.y; 00035 this->z += p.z; 00036 return *this; 00037 }; 00038 }; 00039 00040 typedef vector < FPPoint > FPPoints; 00042 class FP3DViewInfo { 00043 public: 00044 FP3DViewInfo(); 00045 virtual ~ FP3DViewInfo(); 00046 00047 void clear(); 00048 void setBase(float x = 0, float y = 0, float z = 0); 00049 void addPassPoint(float x, float y, float z); 00050 void addBlockPoint(float x, float y, float z); 00051 const FPPoints getPassPoints(); 00052 const FPPoints getBlockPoints(); 00053 void clearPassPoints(); 00054 void clearBlockPoints(); 00055 FPPoint base; 00056 00057 private: 00058 FPPoints passPoints; 00059 FPPoints blockPoints; 00060 }; 00061 00062 #endif /*FP_3DVIEW_INFO_H */