
|
|
This file was automatically generated from diguyCharacterGroup.h. Do not edit this file directly; the changes will be lost.Includes: stdio.h | declspec_diguy.h
Contents:
Alphabetical Index
class diguyCharacterGroup
|
class BDI_DECLSPEC_diguy diguyCharacterGroup { public: const char* get_name(); int set_name(const char* name); int add_member(diguyCharacter* character); int add_all_characters_as_members(); int remove_member(diguyCharacter* character); int remove_all_members(); int is_member(diguyCharacter* character); int get_num_members(); diguyCharacter* get_member_at_index(int index); int get_index_of_member(diguyCharacter* character); int get_subgroup_number(diguyFormation* formation, int index); int get_index_in_subgroup(diguyFormation* formation, int index); int set_all_members_enabled(int enabled); int update_all_members(float t); #ifdef CPLUSPLUS_ONLY int draw_all_members(); int draw_pass1_all_members(); int draw_pass2_all_members(); #endif int set_all_members_current_tin(float tin); int set_all_members_current_tout(float tout); diguyViewLabel* get_label(); void set_label_offset_above_centroid(float offset); float get_label_offset_above_centroid(); int get_num_variables(); diguyVariable* get_variable_at_index(int index); diguyVariable* find_variable(const char* name); diguyVariable* find_or_create_variable(const char* name); int destroy_variable(diguyVariable* variable); int translate_all_paths(float tx, float ty, float tz); int rotate_all_paths_about_point(float rz, float rx, float ry, float rotation_pt_x, float rotation_pt_y, float rotation_pt_z); int rotate_all_paths_about_current_waypoint(float rz, float rx, float ry); diguyCharacter* get_nearest_character_to_point(float x, float y, float z); diguyCharacter* get_farthest_character_to_point(float x, float y, float z); int get_group_centroid(float* x, float* y, float* z); int get_group_min_circle(float* x, float* y, float* z, float* radius); int send_message_to_all_members(const char* sender, const char* message_type, const char* message, const char* message_params = NULL); int apply_formation_to_group_with_dir(diguyCharacter* leader, diguyFormation* formation, float dir_x, float dir_y, float desired_radius = -1.0f, int require_sort = 1); int apply_formation_to_group_with_goal(diguyCharacter* leader, diguyFormation* formation, float goal_x, float goal_y, float desired_radius = -1.0f, int require_sort = 1); int apply_formation_to_group(diguyCharacter* leader, diguyFormation* formation, float desired_radius = -1.0f, int require_sort = 1); diguyFormation* get_current_formation(); int sort_group_based_on_pos(float x, float y, float z, diguyFormation* formation = NULL, diguyCharacter* leader = NULL); diguyCharacter* get_sorted_member_at_index(int index); int get_num_active_members();
function diguyCharacterGroup::get_name |
Prototype:
Returns:const char* get_name();
name of the group; this value will never be NULLCallable From:
- C++
- Script
function diguyCharacterGroup::set_name |
Prototype:
Description:int set_name(const char* name);
This function sets the name of this object.Returns:
0 on success, -1 on failureCallable From:
- C++
- Script
function diguyCharacterGroup::add_member |
Prototype:
Description:int add_member(diguyCharacter* character);
Adds the passed character to the group if not already in it.Returns:
0 if the character is now a part of the group, -1 if notCallable From:
- C++
- Script
function diguyCharacterGroup::add_all_characters_as_members |
Prototype:
Description:int add_all_characters_as_members();
Adds all characters of the scenario as members of the group.Returns:
Always return 0.Callable From:
- C++
- Script
function diguyCharacterGroup::remove_member |
Prototype:
Description:int remove_member(diguyCharacter* character);
Removes the passed character from the group if it is a member.Returns:
0 if the character was part of the group and removed; -1 if notCallable From:
- C++
- Script
function diguyCharacterGroup::remove_all_members |
Prototype:
Description:int remove_all_members();
Removes all members of the group.Returns:
Always return 0.Callable From:
- C++
- Script
function diguyCharacterGroup::is_member |
Prototype:
Description:int is_member(diguyCharacter* character);
The function can be used to check if a specific character is in this group.
Also see diguyCharacter::is_group_member().Returns:
1 if the passed character is a member of the group; 0 if notCallable From:
- C++
- Script
function diguyCharacterGroup::get_num_members |
Prototype:
Returns:int get_num_members();
number of member characters in groupCallable From:
- C++
- Script
function diguyCharacterGroup::get_member_at_index |
Prototype:
Returns:diguyCharacter* get_member_at_index(int index);
group member at specified index; NULL if no character at specified indexCallable From:
- C++
- Script
function diguyCharacterGroup::get_index_of_member |
Prototype:
Returns:int get_index_of_member(diguyCharacter* character);
index of member, or -1 if not foundCallable From:
- C++
- Script
function diguyCharacterGroup::get_subgroup_number |
Prototype:
Description:int get_subgroup_number(diguyFormation* formation, int index);
See diguyFormation for a description of subgroups.Returns:
subgroup number within formation of character at index, or -1Callable From:
- C++
- Script
function diguyCharacterGroup::get_index_in_subgroup |
Prototype:
Description:int get_index_in_subgroup(diguyFormation* formation, int index);
See diguyFormation for a description of subgroups.Returns:
index within subgroup, or 0Callable From:
- C++
- Script
function diguyCharacterGroup::set_all_members_enabled |
Prototype:
Description:int set_all_members_enabled(int enabled);
Sets whether all characters in group are enabled. Equivalent to calling diguyCharacter::set_enabled() for group members.Returns:
Always return 0.Callable From:
- C++
- Script
function diguyCharacterGroup::update_all_members |
Prototype:
Description:int update_all_members(float t);
Updates all characters in the group. Equivalent to calling diguyCharacter::update() for all group members.Returns:
0 on success, -1 on failureCallable From:
- C++
- Script
function diguyCharacterGroup::draw_all_members |
Prototype:
Description:int draw_all_members();
This function draws all members of the group. See diguyCharacter::draw().Returns:
0 on success, -1 on failureCallable From:
- C++
function diguyCharacterGroup::draw_pass1_all_members |
Prototype:
Description:int draw_pass1_all_members();
This function draws pass 1 of all members of the group. See diguyCharacter::draw_pass1().Returns:
0 on success, -1 on failureCallable From:
- C++
function diguyCharacterGroup::draw_pass2_all_members |
Prototype:
Description:int draw_pass2_all_members();
This function draws pass 2 all members of the group. See diguyCharacter::draw_pass2().Returns:
0 on success, -1 on failureCallable From:
- C++
function diguyCharacterGroup::set_all_members_current_tin |
Prototype:
Description:int set_all_members_current_tin(float tin);
This function sets the current tin time of all characters in the group. See diguyCharacter::set_current_tin().Arguments:
Returns:
tin new value of current tin in seconds
0 on success, -1 on failureCallable From:
- C++
- Script
function diguyCharacterGroup::set_all_members_current_tout |
Prototype:
Description:int set_all_members_current_tout(float tout);
This function sets the current tout time of all characters in the group. See diguyCharacter::set_current_tout().Arguments:
Returns:
tout new value of current tout in seconds
0 on success, -1 on failureCallable From:
- C++
- Script
| Label Functions |
The functions in this section control the text, visibility, and colors of group labels.
Currently group labels are only enabled in DI-Guy Scenario.
function diguyCharacterGroup::get_label |
Prototype:
Description:diguyViewLabel* get_label();
This function returns a pointer to the label object of the group.
Currently group labels are only enabled in DI-Guy Scenario.Returns:
pointer to the group's labelCallable From:
- C++
- Script
function diguyCharacterGroup::set_label_offset_above_centroid |
Prototype:
Description:void set_label_offset_above_centroid(float offset);
This function sets how high the label of the group will float above the group's centroid.Arguments:
Callable From:
offset offset, in meters, of label above group
- C++
- Script
function diguyCharacterGroup::get_label_offset_above_centroid |
Prototype:
Returns:float get_label_offset_above_centroid();
how high the label of the group will float above the group centroidCallable From:
- C++
- Script
| Variable Functions |
function diguyCharacterGroup::get_num_variables |
Prototype:
Returns:int get_num_variables();
number of variables the group hasCallable From:
- C++
- Script
function diguyCharacterGroup::get_variable_at_index |
Prototype:
Returns:diguyVariable* get_variable_at_index(int index);
pointer of type diguyVariable; NULL if no variable at the specified indexArguments:
Callable From:
index index of the variable; indices start at 0
- C++
- Script
function diguyCharacterGroup::find_variable |
Prototype:
Description:diguyVariable* find_variable(const char* name);
This function returns a pointer to the specified variable.Arguments:
Returns:
name name of variable to be found
pointer of type diguyVariable; NULL if not foundCallable From:
- C++
- Script
function diguyCharacterGroup::find_or_create_variable |
Prototype:
Description:diguyVariable* find_or_create_variable(const char* name);
This function finds the variable with the given name or creates it if it doesn't exist.Arguments:
Returns:
name name of the variable to find or create
pointer of type diguyVariable; should never be NULLCallable From:
- C++
- Script
function diguyCharacterGroup::destroy_variable |
Prototype:
Description:int destroy_variable(diguyVariable* variable);
This function destroys the passed variable.Arguments:
Returns:
variable pointer to a diguyVariable
0 on success, -1 on failureCallable From:
- C++
- Script
| Experimental Functions |
function diguyCharacterGroup::translate_all_paths |
Prototype:
int translate_all_paths(float tx, float ty, float tz);
function diguyCharacterGroup::rotate_all_paths_about_point |
Prototype:
int rotate_all_paths_about_point(float rz, float rx, float ry, float rotation_pt_x, float rotation_pt_y, float rotation_pt_z);
function diguyCharacterGroup::rotate_all_paths_about_current_waypoint |
Prototype:
int rotate_all_paths_about_current_waypoint(float rz, float rx, float ry);
function diguyCharacterGroup::get_nearest_character_to_point |
Prototype:
Description:diguyCharacter* get_nearest_character_to_point(float x, float y, float z);
Get the character closest to the specified point.Arguments:
Returns:
x, y, z position in meters from the origin
pointer to diguyCharacter, or NULL in none foundCallable From:
- C++
- Script
function diguyCharacterGroup::get_farthest_character_to_point |
Prototype:
Description:diguyCharacter* get_farthest_character_to_point(float x, float y, float z);
Get the character furthest from the specified point.Arguments:
Returns:
x, y, z position in meters from the origin
pointer to diguyCharacter, or NULL if none foundCallable From:
- C++
- Script
function diguyCharacterGroup::get_group_centroid |
Prototype:
Description:int get_group_centroid(float* x, float* y, float* z);
Get centroid of group (average of character positions).Arguments:
Returns:
x, y, z position in meters from the origin
0 on success, -1 on failureCallable From:
- C++
- Script
function diguyCharacterGroup::get_group_min_circle |
Prototype:
Description:int get_group_min_circle(float* x, float* y, float* z, float* radius);
Get minimum enclosing circle of group. Note that this is slower than getting the centroid.Arguments:
Returns:
x, y, z center of circle of group in meters from the origin radius radius of circle
0 on success, -1 on failureCallable From:
- C++
- Script
function diguyCharacterGroup::send_message_to_all_members |
Prototype:
Description:int send_message_to_all_members(const char* sender, const char* message_type, const char* message, const char* message_params = NULL);
Send a message to all characters in group. See diguyCharacter::agent_accept_message().Arguments:
Returns:
sender who is sending the message message_type what type of message is being sent message the message string message_params optional parameter string
0 on success, -1 on failureCallable From:
- C++
- Script
function diguyCharacterGroup::apply_formation_to_group_with_dir |
Prototype:
Description:int apply_formation_to_group_with_dir(diguyCharacter* leader, diguyFormation* formation, float dir_x, float dir_y, float desired_radius = -1.0f, int require_sort = 1);
Puts the group into the specified formation, applying agent_pursue_character_with_offset() to each character except the leader.Arguments:
Returns:
leader leader; can be NULL formation name of formation dir_x x component of the formation's heading dir_y y component of the formation's heading desired_radius if not given (-1.0), get radius from formation require_sort if 1, group must be resorted; if 0, it may still be
0 on success, -1 on failureCallable From:
- C++
- Script
function diguyCharacterGroup::apply_formation_to_group_with_goal |
Prototype:
Description:int apply_formation_to_group_with_goal(diguyCharacter* leader, diguyFormation* formation, float goal_x, float goal_y, float desired_radius = -1.0f, int require_sort = 1);
Puts the group into the specified formation, applying agent_pursue_character_with_offset() to each character except the leader.Arguments:
Returns:
leader leader; can be NULL formation name of formation goal_x x component of the formation's goal point goal_y y component of the formation's goal point desired_radius if not given (-1.0), get radius from formation require_sort if 1, group must be resorted; if 0, it may still be
0 on success, -1 on failureCallable From:
- C++
- Script
function diguyCharacterGroup::apply_formation_to_group |
Prototype:
Description:int apply_formation_to_group(diguyCharacter* leader, diguyFormation* formation, float desired_radius = -1.0f, int require_sort = 1);
Puts the group into the specified formation, applying agent_pursue_character_with_offset() to each character except the leader.Arguments:
Returns:
leader leader; can be NULL formation name of formation desired_radius if not given (-1.0), get radius from formation require_sort if 1, group must be resorted; if 0, it may still be
0 on success, -1 on failureCallable From:
- C++
- Script
function diguyCharacterGroup::get_current_formation |
Prototype:
Description:diguyFormation* get_current_formation();
Returns the last-set formationReturns:
The formation or NULLCallable From:
- C++
- Script
function diguyCharacterGroup::sort_group_based_on_pos |
Prototype:
Description:int sort_group_based_on_pos(float x, float y, float z, diguyFormation* formation = NULL, diguyCharacter* leader = NULL);
Sorts group relative to the point given. The point should be on the left or in the front, depending on what order the formation is in. This updates an internal list of sorted group members.Arguments:
Returns:
x x component of point y y component of point z z component of point formation the formation; pass NULL for no formation leader the leader; pass NULL for no formation leader
0 on success, -1 on failureCallable From:
- C++
- Script
function diguyCharacterGroup::get_sorted_member_at_index |
Prototype:
Returns:diguyCharacter* get_sorted_member_at_index(int index);
member of formation-sorted group; NULL if no character at indexCallable From:
- C++
- Script
function diguyCharacterGroup::get_num_active_members |
Prototype:
Returns:int get_num_active_members();
number of active membersCallable From:
- C++
- Script
ALL RIGHTS RESERVED.
These coded instructions, statements, and computer programs contain unpublished proprietary information of Boston Dynamics and are protected by Copyright Laws of the United States. They may not be used, duplicated, or disclosed in any form, in whole or in part, without the prior written consent from Boston Dynamics.
RESTRICTED RIGHTS LEGEND
Use, duplication, or disclosure by the government is subject to restrictions as set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii) of the Rights in Technical Data and Computer Sofware clause at DFARS 252.227-7013 and/or in similar or successor clauses in the FAR, or the DOD or NASA FAR Supplement, or to subparagraphs (c)(1) and (c)(2) of the Commercial Computer Software--Restricted Rights at 48 CFR 52.227-19, as applicable. Unpublished-rights reserved under the Copyright Laws of the United States.
Contractor/Manufacturer is:
Boston Dynamics/78 Fourth Avenue/Waltham MA 02451.