![]() |
VEXcode IQ C++ Unofficial documentation for version 3.0.4.1
|
The object class represents an object that the vision sensor detects. More...
#include <vex_vision.h>
Public Member Functions | |
object () | |
Creates a new vision object with all properties set to default values. | |
void | set (IQ_VisionDetectionObj obj) |
Copies all properties of the passed in object into this object. | |
void | flipAngle () |
Inverts the angle for this object. | |
void | clear () |
Sets all properties for this object to default values. | |
object & | operator= (const object &obj) |
object & | operator= (int32_t signatureId) |
Public Attributes | |
const int16_t & | id |
The unique ID of the object. | |
const int16_t & | originX |
The top left x position of the object. | |
const int16_t & | originY |
The top left y position of the object. | |
const int16_t & | centerX |
The center x position of the object. | |
const int16_t & | centerY |
The center y position of the object. | |
const int16_t & | width |
The width of the object. | |
const int16_t & | height |
The height of the object. | |
const float & | angle |
The angle of the object. | |
const bool & | exists |
If the vision sensor detects the object or not. | |
The object class represents an object that the vision sensor detects.
Definition at line 92 of file vex_vision.h.
void vex::vision::object::set | ( | IQ_VisionDetectionObj | obj | ) |
Copies all properties of the passed in object into this object.
obj | The object whose properties are to be copied. |
const float& vex::vision::object::angle |
The angle of the object.
Definition at line 161 of file vex_vision.h.
const int16_t& vex::vision::object::centerX |
The center x position of the object.
Definition at line 145 of file vex_vision.h.
const int16_t& vex::vision::object::centerY |
The center y position of the object.
Definition at line 149 of file vex_vision.h.
const bool& vex::vision::object::exists |
If the vision sensor detects the object or not.
Definition at line 165 of file vex_vision.h.
const int16_t& vex::vision::object::height |
The height of the object.
Definition at line 157 of file vex_vision.h.
const int16_t& vex::vision::object::id |
The unique ID of the object.
Definition at line 133 of file vex_vision.h.
const int16_t& vex::vision::object::originX |
The top left x position of the object.
Definition at line 137 of file vex_vision.h.
const int16_t& vex::vision::object::originY |
The top left y position of the object.
Definition at line 141 of file vex_vision.h.
const int16_t& vex::vision::object::width |
The width of the object.
Definition at line 153 of file vex_vision.h.