#ifndef ATS_MBOIDGLOBAL_H #define ATS_MBOIDGLOBAL_H #include #include #include #include #include #include #include #include "ats_BoidGroup.h" #include "ats_MException.h" namespace ats { /* 引数解析用パッケージ */ struct StructArg { StructArg(char* s, int n) : str(s), num(n) { val = new double[num]; for(int i=0; i T rad(T deg){ return deg * 3.1415926535897932384626433832795 / 180; } void GetFirstSelection(MDagPath* path, MObject* obj) throw (MException); void MakeMayaBoid(BoidGroup* group, int copy_number, const StructArg& weight, const StructArg& ball, const StructArg& speed) throw (MException); void ParseArg(const MArgList& args, std::vector* arg_pack) throw (MException); } std::ostream& operator<<(std::ostream& out, const MString& a); std::ostream& operator<<(std::ostream& out, const MStringArray& a); std::ostream& operator<<(std::ostream& out, const ats::StructArg& a); // vectorにStructArgのポインタを喰わせたため定義。 bool operator==(const ats::StructArg* a, const MString& b); #endif