VEXcode IQ C++ Unofficial documentation for version 3.0.4.1
Loading...
Searching...
No Matches
vex::vision::object Class Reference

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.
 
objectoperator= (const object &obj)
 
objectoperator= (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.
 

Detailed Description

The object class represents an object that the vision sensor detects.

Definition at line 92 of file vex_vision.h.

Member Function Documentation

◆ set()

void vex::vision::object::set ( IQ_VisionDetectionObj obj)

Copies all properties of the passed in object into this object.

Parameters
objThe object whose properties are to be copied.

Member Data Documentation

◆ angle

const float& vex::vision::object::angle

The angle of the object.

Definition at line 161 of file vex_vision.h.

◆ centerX

const int16_t& vex::vision::object::centerX

The center x position of the object.

Definition at line 145 of file vex_vision.h.

◆ centerY

const int16_t& vex::vision::object::centerY

The center y position of the object.

Definition at line 149 of file vex_vision.h.

◆ exists

const bool& vex::vision::object::exists

If the vision sensor detects the object or not.

Definition at line 165 of file vex_vision.h.

◆ height

const int16_t& vex::vision::object::height

The height of the object.

Definition at line 157 of file vex_vision.h.

◆ id

const int16_t& vex::vision::object::id

The unique ID of the object.

Definition at line 133 of file vex_vision.h.

◆ originX

const int16_t& vex::vision::object::originX

The top left x position of the object.

Definition at line 137 of file vex_vision.h.

◆ originY

const int16_t& vex::vision::object::originY

The top left y position of the object.

Definition at line 141 of file vex_vision.h.

◆ width

const int16_t& vex::vision::object::width

The width of the object.

Definition at line 153 of file vex_vision.h.


The documentation for this class was generated from the following file: