|
VEX V5 C++ API
|
The object class represents an object that the vision sensor detects. More...
Public Member Functions | |
| object () | |
| Creates a new vision object with all properties set to default values. More... | |
| ~object () | |
| void | set (V5_DeviceVisionObject obj) |
| Copies all properties of the passed in object into this object. More... | |
| void | flipAngle () |
| Inverts the angle for this object. More... | |
| void | clear () |
| Sets all properties for this object to default values. More... | |
| object & | operator= (const object &obj) |
| object & | operator= (int32_t signatureId) |
Public Attributes | |
| const int & | id |
| The unique ID of the object. More... | |
| const int & | originX |
| The top left x position of the object. Range 0 to 315. More... | |
| const int & | originY |
| The top left y position of the object. Range 0 to 211. More... | |
| const int & | centerX |
| The center x position of the object. Range 0 to 315. More... | |
| const int & | centerY |
| The center y position of the object. Range 0 to 211. More... | |
| const int & | width |
| The width of the object. More... | |
| const int & | height |
| The height of the object. More... | |
| const double & | angle |
| The angle of the object. More... | |
| const bool & | exists |
| If the vision sensor detects the object or not. More... | |
The object class represents an object that the vision sensor detects.
| vex::vision::object::object | ( | ) |
Creates a new vision object with all properties set to default values.
| vex::vision::object::~object | ( | ) |
| void vex::vision::object::set | ( | V5_DeviceVisionObject | obj | ) |
Copies all properties of the passed in object into this object.
| obj | The object whose properties are to be copied. |
| void vex::vision::object::flipAngle | ( | ) |
Inverts the angle for this object.
| void vex::vision::object::clear | ( | ) |
Sets all properties for this object to default values.
| object& vex::vision::object::operator= | ( | int32_t | signatureId | ) |
| const int& vex::vision::object::id |
The unique ID of the object.
| const int& vex::vision::object::originX |
The top left x position of the object. Range 0 to 315.
| const int& vex::vision::object::originY |
The top left y position of the object. Range 0 to 211.
| const int& vex::vision::object::centerX |
The center x position of the object. Range 0 to 315.
| const int& vex::vision::object::centerY |
The center y position of the object. Range 0 to 211.
| const int& vex::vision::object::width |
The width of the object.
| const int& vex::vision::object::height |
The height of the object.
| const double& vex::vision::object::angle |
The angle of the object.
| const bool& vex::vision::object::exists |
If the vision sensor detects the object or not.
1.8.15