VEX V5 C++ API
Public Member Functions | Public Attributes | List of all members
vex::vision::object Class Reference

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

Detailed Description

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

Constructor & Destructor Documentation

◆ object()

vex::vision::object::object ( )

Creates a new vision object with all properties set to default values.

◆ ~object()

vex::vision::object::~object ( )

Member Function Documentation

◆ set()

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

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

Parameters
objThe object whose properties are to be copied.

◆ flipAngle()

void vex::vision::object::flipAngle ( )

Inverts the angle for this object.

◆ clear()

void vex::vision::object::clear ( )

Sets all properties for this object to default values.

◆ operator=() [1/2]

object& vex::vision::object::operator= ( const object obj)

◆ operator=() [2/2]

object& vex::vision::object::operator= ( int32_t  signatureId)

Member Data Documentation

◆ id

const int& vex::vision::object::id

The unique ID of the object.

◆ originX

const int& vex::vision::object::originX

The top left x position of the object. Range 0 to 315.

◆ originY

const int& vex::vision::object::originY

The top left y position of the object. Range 0 to 211.

◆ centerX

const int& vex::vision::object::centerX

The center x position of the object. Range 0 to 315.

◆ centerY

const int& vex::vision::object::centerY

The center y position of the object. Range 0 to 211.

◆ width

const int& vex::vision::object::width

The width of the object.

◆ height

const int& vex::vision::object::height

The height of the object.

◆ angle

const double& vex::vision::object::angle

The angle of the object.

◆ exists

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

If the vision sensor detects the object or not.