|
|
| FormationDT () |
| | just call the base class constructor to initialize formation method name
|
| |
| const std::vector< FormationData::Data > & | points () const |
| | get the sample data array More...
|
| |
| const DelaunayTriangulation & | triangulation () const |
| | get the delaunay triangulation More...
|
| |
| virtual std::string | methodName () const override |
| | get the method name of the formation model More...
|
| |
| virtual Vector2D | getPosition (const int num, const Vector2D &focus_point) const override |
| | get position for the current focus point More...
|
| |
| virtual void | getPositions (const Vector2D &focus_point, std::vector< Vector2D > &positions) const override |
| | get all positions for the current focus point More...
|
| |
| virtual bool | train (const FormationData &data) override |
| | update formation paramter using training data set More...
|
| |
| virtual FormationData::Ptr | toData () const override |
| | create data for the editor More...
|
| |
|
virtual | ~Formation () |
| | destructor.
|
| |
| const std::string & | version () const |
| | get the version string More...
|
| |
| const std::array< std::string, 11 > & | roleNames () const |
| | get the role name array More...
|
| |
| const std::array< RoleType, 11 > & | roleTypes () const |
| | get the role type array More...
|
| |
| const std::array< int, 11 > & | positionPairs () const |
| | get the position pair array More...
|
| |
| std::string | roleName (const int num) const |
| | get role name value More...
|
| |
| RoleType | roleType (const int num) const |
| | get role type value More...
|
| |
| int | pairedNumber (const int num) const |
| | get paired position number More...
|
| |
| bool | setVersion (const std::string &ver) |
| | set the version string More...
|
| |
| bool | setRoleName (const int num, const std::string &name) |
| | set the role name More...
|
| |
| bool | setRoleType (const int num, const RoleType &type) |
| | set the role type More...
|
| |
| bool | setPositionPair (const int num, const int paired_num) |
| | set the position pair More...
|
| |
| bool | setRole (const int num, const std::string &name, const RoleType &type, const int paired_num) |
| | set role data More...
|
| |
| virtual std::string | methodName () const =0 |
| | get the method name of the formation model More...
|
| |
| virtual Vector2D | getPosition (const int num, const Vector2D &focus_point) const =0 |
| | get position for the current focus point More...
|
| |
| virtual void | getPositions (const Vector2D &focus_point, std::vector< Vector2D > &positions) const =0 |
| | get all positions for the current focus point More...
|
| |
| virtual bool | train (const FormationData &data)=0 |
| | update formation paramter using training data set More...
|
| |
| virtual FormationData::Ptr | toData () const =0 |
| | create data for the editor More...
|
| |
| bool | print (std::ostream &os) const |
| | print formation model to the output stream More...
|
| |