ADBLib  0.5
A simple library for rapid robot code development
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Pages
ADBLib::Camera Class Reference

#include <Camera.h>

Collaboration diagram for ADBLib::Camera:

Public Member Functions

 Camera (string newName)
 Creates a new camera with a name ID'd by the roboRIO. More...
 
bool start ()
 Starts the camera. More...
 
bool stop ()
 Stops the camera. More...
 
bool getEnabled ()
 Gets the status of the camera. More...
 
Image * getImage ()
 Gets an image from the camera. More...
 

Protected Attributes

string name
 
Image * frame
 
bool enabled
 
IMAQdxSession camSession
 

Constructor & Destructor Documentation

ADBLib::Camera::Camera ( string  newName)

Creates a new camera with a name ID'd by the roboRIO.

Parameters
newNameThe name of the camera, found through the roboRIO.

Member Function Documentation

bool ADBLib::Camera::getEnabled ( )

Gets the status of the camera.

Returns
True if enabled, false otherwise.

Here is the caller graph for this function:

Image * ADBLib::Camera::getImage ( )

Gets an image from the camera.

Returns
An IMAQ_IMAGE_RGB image object thingy.
Note
Camera MUST be enabled for this to work!

Here is the caller graph for this function:

bool ADBLib::Camera::start ( )

Starts the camera.

Returns
True if successful, false otherwise.
Note
This function MUST be called before the camera can be used!

Here is the call graph for this function:

Here is the caller graph for this function:

bool ADBLib::Camera::stop ( )

Stops the camera.

Returns
True if successful, false otherwise.
Note
Camera must be started again before it can be used after this function is called!

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

IMAQdxSession ADBLib::Camera::camSession
protected
bool ADBLib::Camera::enabled
protected
Image* ADBLib::Camera::frame
protected
string ADBLib::Camera::name
protected

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