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

RobotFlow::Components Class Reference

#include <Components.h>

Inheritance diagram for RobotFlow::Components:

Inheritance graph
Collaboration diagram for RobotFlow::Components:

Collaboration graph

Public Member Functions

 Components ()
 Components (std::string nodeName, FD::ParameterSet params)
 ~Components ()
void get_components (Image &image)
void initialize (int width, int height, int num_colors)
int get_component_count ()
std::list< CRect * > & get_color_components (int color)
void draw_rectangles (int color, unsigned short *image_16bits, unsigned short value)
void calculate (int output_id, int count, FD::Buffer &out)
void reset ()
virtual ObjectRef getOutput (int output_id, int count)
virtual void request (int outputID, const ParameterSet &req)
virtual void initialize ()
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 ()

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 get_components (unsigned short *image_16bits)
void get_components (unsigned char *image_8bits)
void find_runs (unsigned short *image)
void find_runs (unsigned char *image)
void recursive_compute (int line_number)
void sort (int color)

Private Attributes

std::vector< std::list< ImageCell * > > m_cell_list [32]
int m_width
int m_height
int m_color_number
int m_cell_count
int m_rect_count
int m_x_gap
int m_y_gap
int m_minArea
int m_imageID
int m_lookupID
int m_blobsID
unsigned int * m_color_table
int m_num_colors
FD::ObjectRef m_components_data


friend std::ostream & operator<< (std::ostream &out, const Object &obj)

Constructor & Destructor Documentation

RobotFlow::Components::Components  ) 

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

RobotFlow::Components::~Components  ) 

Member Function Documentation

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

Implements FD::BufferedNode.

void RobotFlow::Components::draw_rectangles int  color,
unsigned short *  image_16bits,
unsigned short  value

void RobotFlow::Components::find_runs unsigned char *  image  )  [private]

void RobotFlow::Components::find_runs unsigned short *  image  )  [private]

list< CRect * > & RobotFlow::Components::get_color_components int  color  ) 

int RobotFlow::Components::get_component_count  )  [inline]

void RobotFlow::Components::get_components unsigned char *  image_8bits  )  [private]

void RobotFlow::Components::get_components unsigned short *  image_16bits  )  [private]

void RobotFlow::Components::get_components Image image  ) 

void RobotFlow::Components::initialize int  width,
int  height,
int  num_colors

void RobotFlow::Components::recursive_compute int  line_number  )  [private]

void RobotFlow::Components::reset  )  [virtual]

Reimplemented from FD::BufferedNode.

void RobotFlow::Components::sort int  color  )  [private]

Field Documentation

int RobotFlow::Components::m_blobsID [private]

ImageCell* RobotFlow::Components::m_cell_array [private]

int RobotFlow::Components::m_cell_count [private]

std::vector<std::list<ImageCell *> > RobotFlow::Components::m_cell_list[32] [private]

int RobotFlow::Components::m_color_number [private]

unsigned int* RobotFlow::Components::m_color_table [private]

FD::ObjectRef RobotFlow::Components::m_components_data [private]

CRect* RobotFlow::Components::m_current_rect [private]

int RobotFlow::Components::m_height [private]

int RobotFlow::Components::m_imageID [private]

int RobotFlow::Components::m_lookupID [private]

int RobotFlow::Components::m_minArea [private]

int RobotFlow::Components::m_num_colors [private]

CRect* RobotFlow::Components::m_rect_array [private]

int RobotFlow::Components::m_rect_count [private]

int RobotFlow::Components::m_width [private]

int RobotFlow::Components::m_x_gap [private]

int RobotFlow::Components::m_y_gap [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