Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

RobotFlow::Bt848 Class Reference

#include <Bt848.h>

Inheritance diagram for RobotFlow::Bt848:

Inheritance graph
Collaboration diagram for RobotFlow::Bt848:

Collaboration graph

Public Member Functions

void newframe (int sig)
 Bt848 (std::string nodeName, FD::ParameterSet params)
virtual ~Bt848 ()
virtual void calculate (int output_id, int count, FD::Buffer &out)
void lock_grab ()
void unlock_grab ()
virtual ObjectRef getOutput (int output_id, int count)
virtual void request (int outputID, const ParameterSet &req)
virtual void initialize ()
virtual void reset ()
virtual int addOutput (const std::string &outputName)
virtual int addInput (const std::string &inputName)
virtual void initializeBuffers ()
virtual void performRequests ()
virtual ObjectRef getOutputNamed (const std::string &outputName, int count)
virtual void connectToNode (std::string in, Node *inputNode, std::string out)
virtual bool hasOutput (int output_id) const
ObjectRef getInput (int inputID, int count)
virtual void stop ()
virtual void cleanupNotify ()
std::string getName ()
virtual void verifyConnect ()
void printOn (std::ostream &out=std::cout) const
void setUINode (UINode *_uinode)
void ref ()
void unref ()
int unique ()
virtual void destroy ()
virtual void serialize (std::ostream &out) const
virtual void unserialize (std::istream &in)
virtual void doesNotUnderstand (std::string method)
virtual bool isNil () const
virtual void prettyPrint (std::ostream &out=std::cout) const
virtual void readFrom (std::istream &in=std::cin)
virtual ObjectRef clone ()
virtual std::string className () const

Static Public Member Functions

static int addFactory (const std::string &factoryName, _NodeFactory *const factory)
static int addXPM (const std::string &nodeName, char **XPMData)
static char ** getXPM (const std::string &nodeName)
static _NodeFactory * getFactoryNamed (const std::string &name)
static std::map< std::string,
_NodeFactory * > & 
factoryDictionary ()
static std::vector< std::string > & nodeInfo ()
static std::map< std::string,
char ** > & 
XPMDictionary ()
static int addNodeInfo (const std::string &info)
static ObjectRef newObject (const std::string &objType)
static int addObjectType (const std::string &objType, _ObjectFactory *factory)
static std::map< std::string,
_ObjectFactory * > & 
ObjectFactoryDictionary ()
static TypeMap< _ObjectFactory * > & TypeidDictionary ()

Static Public Attributes

static const int MODE_16BITS = 0
static Bt848m_instance = NULL

Protected Member Functions

virtual void connectToNode (unsigned int in, Node *inputNode, unsigned int out)
virtual std::vector< NodeInput > & getInputs ()
virtual int translateInput (std::string inputName)
virtual int translateOutput (std::string inputName)
virtual void rt_assert (bool cond, std::string message="", char *_file="unknown", int _line=0)
virtual void construct_assert (bool cond, std::string message="", char *_file="unknown", int _line=0)
virtual void throw_error (bool send_ptr, std::string message, char *_file, int _line)

Protected Attributes

int processCount
std::vector< OutputCacheInfo > outputs
std::vector< InputCacheInfo > inputsCache
bool inOrder
std::string name
std::vector< NodeInput > inputs
std::vector< std::string > outputNames
ParameterSet parameters
UINode * uinode
AtomicCounter ref_count

Private Member Functions

void initialize (int mode, int width, int height)
void single_grab ()

Private Attributes

int m_brightness
int m_contrast
int m_size
int m_width
int m_height
int m_mode
int m_device_descriptor
int m_frame_count
bool m_ready
std::string m_device_name
unsigned char * m_grab_data
pthread_mutex_t m_mutex
pthread_t m_driver_thread
sigaction m_sigact
sigaction m_oldact
void * mmbuf
FD::ObjectRef m_image
int outputID
bool m_thread_running
bool m_continuous


void * grabber_driver_thread (void *bt848)
friend std::ostream & operator<< (std::ostream &out, const Object &obj)

Constructor & Destructor Documentation

RobotFlow::Bt848::Bt848 std::string  nodeName,
FD::ParameterSet  params

RobotFlow::Bt848::~Bt848  )  [virtual]

Member Function Documentation

void RobotFlow::Bt848::calculate int  output_id,
int  count,
FD::Buffer out

Implements FD::BufferedNode.

void RobotFlow::Bt848::initialize int  mode,
int  width,
int  height

void RobotFlow::Bt848::lock_grab  ) 

void RobotFlow::Bt848::newframe int  sig  ) 

void RobotFlow::Bt848::single_grab  )  [private]

void RobotFlow::Bt848::unlock_grab  ) 

Friends And Related Function Documentation

void* grabber_driver_thread void *  bt848  )  [friend]

Field Documentation

int RobotFlow::Bt848::m_brightness [private]

bool RobotFlow::Bt848::m_continuous [private]

int RobotFlow::Bt848::m_contrast [private]

int RobotFlow::Bt848::m_device_descriptor [private]

std::string RobotFlow::Bt848::m_device_name [private]

pthread_t RobotFlow::Bt848::m_driver_thread [private]

int RobotFlow::Bt848::m_frame_count [private]

unsigned char* RobotFlow::Bt848::m_grab_data [private]

int RobotFlow::Bt848::m_height [private]

FD::ObjectRef RobotFlow::Bt848::m_image [private]

Bt848 * RobotFlow::Bt848::m_instance = NULL [static]

int RobotFlow::Bt848::m_mode [private]

pthread_mutex_t RobotFlow::Bt848::m_mutex [private]

struct sigaction RobotFlow::Bt848::m_oldact [private]

bool RobotFlow::Bt848::m_ready [private]

struct sigaction RobotFlow::Bt848::m_sigact [private]

int RobotFlow::Bt848::m_size [private]

bool RobotFlow::Bt848::m_thread_running [private]

int RobotFlow::Bt848::m_width [private]

void* RobotFlow::Bt848::mmbuf [private]

const int RobotFlow::Bt848::MODE_16BITS = 0 [static]

int RobotFlow::Bt848::outputID [private]

The documentation for this class was generated from the following files:
Generated on Wed Oct 5 14:36:33 2005 for RobotFlow by  doxygen 1.4.4