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

RobotFlow::ColorTrain Class Reference

Inheritance diagram for RobotFlow::ColorTrain:

Inheritance graph
Collaboration diagram for RobotFlow::ColorTrain:

Collaboration graph

Public Member Functions

 ColorTrain (string nodeName, ParameterSet params)
virtual ~ColorTrain ()
void initialize ()
void display_pixbuf ()
void calculate (int output_id, int count, Buffer &out)
void to_hsv (unsigned short rgb15, float &h, float &s, float &v)
void update_table (unsigned short rgb15, float h_delta, float s_delta, float v_delta)
virtual ObjectRef getOutput (int output_id, int count)
virtual void request (int outputID, const ParameterSet &req)
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 REMOVE_MODE = 1
static const int SELECT_MODE = 0

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 Attributes

int m_inputID
int m_outputID
int m_lookupID
int m_saveID
int m_colorID
int m_break_at
bool m_show
int m_skip
int m_width
int m_height
int m_mode
int m_current_color
bool m_saving
bool m_HSVTrain
float m_hDelta
float m_sDelta
float m_vDelta
GtkWidget * window1
GtkWidget * vbox1
GtkWidget * vbox2
GtkWidget * scrolledwindow2
GtkWidget * canvas1
GtkWidget * hbox1
GtkWidget * load_button
GtkWidget * save_button
GtkWidget * select_button
GtkWidget * remove_button
GtkWidget * show_button
GtkWidget * combo1
GList * combo1_items
GtkWidget * combo_entry1
GtkWidget * m_file_selection
GnomeCanvasItem * m_pixbuf_item
GdkPixbuf * m_pixbuf
ObjectRef m_inputValue
int m_last_count
ColorLookup m_color_lookup


void on_load_button_clicked (GtkButton *button, ColorTrain *cTrain)
void on_load_button_clicked_ok (GtkButton *button, ColorTrain *cTrain)
void on_load_button_clicked_cancel (GtkButton *button, ColorTrain *cTrain)
void on_save_button_clicked (GtkButton *button, ColorTrain *cTrain)
void on_select_button_clicked (GtkButton *button, ColorTrain *cTrain)
void on_remove_button_clicked (GtkButton *button, ColorTrain *cTrain)
void on_show_button_clicked (GtkButton *button, ColorTrain *cTrain)
void on_combo_entry1_changed (GtkEditable *editable, ColorTrain *cTrain)
gboolean pixbuf_event_function (GnomeCanvasItem *canvasitem, GdkEvent *event, ColorTrain *cTrain)
friend std::ostream & operator<< (std::ostream &out, const Object &obj)

Constructor & Destructor Documentation

RobotFlow::ColorTrain::ColorTrain string  nodeName,
ParameterSet  params

virtual RobotFlow::ColorTrain::~ColorTrain  )  [inline, virtual]

Member Function Documentation

void RobotFlow::ColorTrain::calculate int  output_id,
int  count,
Buffer out
[inline, virtual]

Implements FD::BufferedNode.

void RobotFlow::ColorTrain::display_pixbuf  )  [inline]

void RobotFlow::ColorTrain::initialize  )  [inline, virtual]

Reimplemented from FD::BufferedNode.

void RobotFlow::ColorTrain::to_hsv unsigned short  rgb15,
float &  h,
float &  s,
float &  v

void RobotFlow::ColorTrain::update_table unsigned short  rgb15,
float  h_delta,
float  s_delta,
float  v_delta

Friends And Related Function Documentation

void on_combo_entry1_changed GtkEditable *  editable,
ColorTrain cTrain

void on_load_button_clicked GtkButton *  button,
ColorTrain cTrain

void on_load_button_clicked_cancel GtkButton *  button,
ColorTrain cTrain

void on_load_button_clicked_ok GtkButton *  button,
ColorTrain cTrain

void on_remove_button_clicked GtkButton *  button,
ColorTrain cTrain

void on_save_button_clicked GtkButton *  button,
ColorTrain cTrain

void on_select_button_clicked GtkButton *  button,
ColorTrain cTrain

void on_show_button_clicked GtkButton *  button,
ColorTrain cTrain

gboolean pixbuf_event_function GnomeCanvasItem *  canvasitem,
GdkEvent *  event,
ColorTrain cTrain

Field Documentation

GtkWidget* RobotFlow::ColorTrain::canvas1 [private]

GtkWidget* RobotFlow::ColorTrain::combo1 [private]

GList* RobotFlow::ColorTrain::combo1_items [private]

GtkWidget* RobotFlow::ColorTrain::combo_entry1 [private]

GtkWidget* RobotFlow::ColorTrain::hbox1 [private]

GtkWidget* RobotFlow::ColorTrain::load_button [private]

int RobotFlow::ColorTrain::m_break_at [private]

ColorLookup RobotFlow::ColorTrain::m_color_lookup [private]

int RobotFlow::ColorTrain::m_colorID [private]

int RobotFlow::ColorTrain::m_current_color [private]

GtkWidget* RobotFlow::ColorTrain::m_file_selection [private]

float RobotFlow::ColorTrain::m_hDelta [private]

int RobotFlow::ColorTrain::m_height [private]

bool RobotFlow::ColorTrain::m_HSVTrain [private]

int RobotFlow::ColorTrain::m_inputID [private]

ObjectRef RobotFlow::ColorTrain::m_inputValue [private]

int RobotFlow::ColorTrain::m_last_count [private]

int RobotFlow::ColorTrain::m_lookupID [private]

int RobotFlow::ColorTrain::m_mode [private]

int RobotFlow::ColorTrain::m_outputID [private]

GdkPixbuf* RobotFlow::ColorTrain::m_pixbuf [private]

GnomeCanvasItem* RobotFlow::ColorTrain::m_pixbuf_item [private]

int RobotFlow::ColorTrain::m_saveID [private]

bool RobotFlow::ColorTrain::m_saving [private]

float RobotFlow::ColorTrain::m_sDelta [private]

bool RobotFlow::ColorTrain::m_show [private]

int RobotFlow::ColorTrain::m_skip [private]

float RobotFlow::ColorTrain::m_vDelta [private]

int RobotFlow::ColorTrain::m_width [private]

GtkWidget* RobotFlow::ColorTrain::remove_button [private]

const int RobotFlow::ColorTrain::REMOVE_MODE = 1 [static]

GtkWidget* RobotFlow::ColorTrain::save_button [private]

GtkWidget* RobotFlow::ColorTrain::scrolledwindow2 [private]

GtkWidget* RobotFlow::ColorTrain::select_button [private]

const int RobotFlow::ColorTrain::SELECT_MODE = 0 [static]

GtkWidget* RobotFlow::ColorTrain::show_button [private]

GtkWidget* RobotFlow::ColorTrain::vbox1 [private]

GtkWidget* RobotFlow::ColorTrain::vbox2 [private]

GtkWidget* RobotFlow::ColorTrain::window1 [private]

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