Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Applications - VDF - GUIViewBodyC
 

  PUBLIC
GUIViewBodyC::GUIViewBodyC(const DFSystemC &,const FactorySetC &,int,int)
GUIViewBodyC::~GUIViewBodyC(void)
GUIViewBodyC::System(void)
GUIViewBodyC::DrawGC(void)
GUIViewBodyC::DrawFont(void)
GUIViewBodyC::DrawGCBlack(void)
GUIViewBodyC::DrawGCWhite(void)
GUIViewBodyC::DrawGCGrey(void)
GUIViewBodyC::DrawWindow(void)
GUIViewBodyC::DrawLine(GdkGC *,Index2dC,Index2dC)
GUIViewBodyC::DrawRectangle(GdkGC *,const IndexRange2dC &,bool)
GUIViewBodyC::DrawRectangle(GdkGC *,Index2dC,Index2dC,bool)
GUIViewBodyC::DrawText(GdkGC *,GdkFont *,Index2dC,const StringC &)
GUIViewBodyC::DrawCircle(GdkGC *,Index2dC,UIntT,bool)
GUIViewBodyC::DrawModeBG(DFRenderModeT)
GUIViewBodyC::DrawModeFG(DFRenderModeT)
GUIViewBodyC::TextSize(GdkFont *,const StringC &)
GUIViewBodyC::FindElement(const Index2dC &)
GUIViewBodyC::CreateLink(const ViewElementC &,const ViewElementC &)
GUIViewBodyC::LoadObject(const StringC &,Index2dC)
GUIViewBodyC::ClearSelection(void)
GUIViewBodyC::DeleteSelection(void)
GUIViewBodyC::AutoConvert(void) const
GUIViewBodyC::SetAutoConvert(bool)
GUIViewBodyC::AttachSystem(const DFSystemC &)
GUIViewBodyC::BuildAll(void)
GUIViewBodyC::AddObject(const DFObjectC &,const Index2dC &)
GUIViewBodyC::DelObject(const DFObjectC &)
GUIViewBodyC::Render(void)
GUIViewBodyC::Render(const IndexRange2dC &)
GUIViewBodyC::Render(const DFObjectC &)
GUIViewBodyC::Render(ViewElementC &)
GUIViewBodyC::Create(void)
GUIViewBodyC::EventMouseMove(MouseEventC &)
GUIViewBodyC::EventMousePress(MouseEventC &)
GUIViewBodyC::EventMouseRelease(MouseEventC &)
GUIViewBodyC::EventConfigure(GdkEvent *&)
GUIViewBodyC::EventExpose(GdkEvent *&)
GUIViewBodyC::EventKeyPress(GdkEventKey *&)
GUIViewBodyC::EventKeyRelease(GdkEventKey *&)
GUIViewBodyC::ObjectUpdate(DFObjectUpdateT &,DFObjectC &)
GUIViewBodyC::DNDMotion(GdkDragContext *&,PositionTimeC &)
GUIViewBodyC::DNDDrop(GdkDragContext *&,PositionTimeC &)
GUIViewBodyC::DNDBegin(GdkDragContext *&)
GUIViewBodyC::DNDEnd(GdkDragContext *&)
GUIViewBodyC::DNDDataRecieved(DNDDataInfoC &)
GUIViewBodyC::Destroy(void)
RawCanvasBodyC::DrawArea(void)
RawCanvasBodyC::Create(void)
RawCanvasBodyC::Destroy(void)
WidgetBodyC::Create(void)
WidgetBodyC::Widget(void)
WidgetBodyC::WidgetID(void) const
WidgetBodyC::WidgetName(void) const
WidgetBodyC::Name(void) const
WidgetBodyC::GUIShow(void)
WidgetBodyC::GUIHide(void)
WidgetBodyC::Show(void)
WidgetBodyC::Hide(void)
WidgetBodyC::Position(void) const
WidgetBodyC::Size(void) const
WidgetBodyC::GUISetUSize(IntT,IntT)
WidgetBodyC::Rectangle(void) const
WidgetBodyC::SetState(GtkStateType)
WidgetBodyC::WidgetDestroy(void)
WidgetBodyC::Signal(const char *)
WidgetBodyC::SetToolTip(const char *,const char *)
WidgetBodyC::AddEventMask(IntT)
WidgetBodyC::DelEventMask(IntT)
WidgetBodyC::ShapeCombineMask(GdkBitmap *,int,int)
WidgetBodyC::GUIGrabFocus(void)
WidgetBodyC::GUIDNDSource(ModifierTypeT,const SArray1dC &,DragActionT)
WidgetBodyC::GUIDNDSourceDisable(void)
WidgetBodyC::GUIDNDTarget(DestDefaultsT,const SArray1dC &,DragActionT)
WidgetBodyC::GUIDNDTargetDisable(void)
WidgetBodyC::CommonTargetEntries(void)
WidgetBodyC::GUISetState(GtkStateType &)
WidgetBodyC::Destroy(void)
WidgetBodyC::ConnectSignals(void)
WidgetBodyC::ConnectUp(const char *,Signal0C &)
WidgetBodyC::SigInfo(const char *)
WidgetBodyC::gtkDestroy(GtkWidget *,WidgetBodyC *)
WidgetBodyC::gtkEvent(GtkWidget *,GdkEvent *,Signal0C *)
WidgetBodyC::gtkEventMouseButton(GtkWidget *,GdkEvent *,Signal0C *)
WidgetBodyC::gtkEventMouseMotion(GtkWidget *,GdkEvent *,Signal0C *)
WidgetBodyC::gtkEventKeyboard(GtkWidget *,GdkEvent *,Signal0C *)
WidgetBodyC::gtkGeneric(GtkWidget *,Signal0C *)
WidgetBodyC::gtkString(GtkWidget *,Signal0C *)
WidgetBodyC::gtkCListSelect(GtkWidget *,IntT,IntT,GdkEventButton *,Signal0C *)
WidgetBodyC::gtkCListCol(GtkWidget *,IntT,Signal0C *)
WidgetBodyC::gtkDNDContext(GtkWidget *,GdkDragContext *,Signal0C *)
WidgetBodyC::gtkDNDContextTime(GtkWidget *,GdkDragContext *,unsigned int,Signal0C *)
WidgetBodyC::gtkDNDPosition(GtkWidget *,GdkDragContext *,int,int,unsigned int,Signal0C *)
WidgetBodyC::gtkDNDDataGet(GtkWidget *,GdkDragContext *,GtkSelectionData *,unsigned int,unsigned int,Signal0C *)
WidgetBodyC::gtkDNDDataRecieved(GtkWidget *,GdkDragContext *,int,int,GtkSelectionData *,unsigned int,unsigned int,Signal0C *)
RCBodyVC::Save(ostream &) const
RCBodyVC::Save(BinOStreamC &) const
RCBodyVC::Copy(void) const
RCBodyVC::DeepCopy(UIntT) const
RCBodyC::References(void) const
RCBodyC::Copy(void) const
RCBodyC::DeepCopy(UIntT) const
RCBodyC::IncRefCounter(void)
RCBodyC::DecRefCounter(void)

   GUIViewBodyC   
 
View of data flow system.
 
include "Ravl/DF/GUIView.hh"
Created:2/8/2002 
Source file:Ravl/Applications/VisualDataFlow/GUIView.hh
User Level:Develop
Library:RavlVDF
In Scope:RavlDFN

Parent Classes: Enumerated types:
enum ViewStateT { VS_READY, VS_DRAG, VS_LINK } ;

Variables:
DFSystemC system;

DListC elements;

bool autoConvert;

ViewElementC hold;
View element held by mouse, invalid if none.

Index2dC holdOffset;
Position on object when it was held.

Index2dC mouseAt;

HashC obj2elem;
Map object to view elements.

Signal2C sigObjChange;

FactorySetC factories;

SignalConnectionSetC connectSet;

Methods:
GUIViewBodyC(const DFSystemC & nsys,const FactorySetC & nfactories,int nsx = 400,int nsy = 400)
Construct with a system.

~GUIViewBodyC()
Destructor.

DFSystemC & System()
Access system.

GdkGC * DrawGC()
Get drawing context.

GdkFont * DrawFont()
Font to use.

GdkGC * DrawGCBlack()
Get black drawing context.

GdkGC * DrawGCWhite()
Get white drawing context.

GdkGC * DrawGCGrey()
Get grey drawing context.

GdkWindow * DrawWindow()
Get get draw area.

void DrawLine(GdkGC * gc,Index2dC p1,Index2dC p2)
Draw a line.

void DrawRectangle(GdkGC * gc,const IndexRange2dC & rect,bool fill = false)
Draw a rectangle.

void DrawRectangle(GdkGC * gc,Index2dC topLeft,Index2dC bottomRight,bool fill = false)
Draw a rectangle.

void DrawText(GdkGC * gc,GdkFont * font,Index2dC at,const StringC & txt)
Draw text.

void DrawCircle(GdkGC * gc,Index2dC cent,UIntT size,bool fill)
Draw a circle.

GdkGC * DrawModeBG(DFRenderModeT mode)
Get background for given draw mode.

GdkGC * DrawModeFG(DFRenderModeT mode)
Get forground for given draw mode.

Index2dC TextSize(GdkFont * font,const StringC & txt)
Find the size of the font.

ViewElementC FindElement(const Index2dC & at)
Find the view element containing 'at'.
Will return an invalid handle if none where found.

bool CreateLink(const ViewElementC & elm1,const ViewElementC & elm2)
Attempt to create a link between elm1 and elm2.

bool LoadObject(const StringC & fn,Index2dC at)
Load an object and put it at location 'at'.

bool ClearSelection()
Clear the selection.

bool DeleteSelection()
Delete the selected objects.

bool AutoConvert() const
Auto convertion enabled ?

bool SetAutoConvert(bool nautoConvert)
Set auto convertion

bool AttachSystem(const DFSystemC & nsys)
Attach system to this view.

void BuildAll()
build view of the complete system.

ViewElementC AddObject(const DFObjectC & obj,const Index2dC & at)
Add object to view.
Returns handle to view element

bool DelObject(const DFObjectC & obj)
Remove object from view,

void Render()
Render entire view.

void Render(const IndexRange2dC & area)
Update an area of the view.

bool Render(const DFObjectC & area)
Update rendering of an object.
This will return false if the object is not in the current view, otherwise it will return true.

bool Render(ViewElementC & ve)
Render a particular view element..

bool Create()
Create the widget.

bool EventMouseMove(MouseEventC & me)
Mouse move.

bool EventMousePress(MouseEventC & me)
Mouse press.

bool EventMouseRelease(MouseEventC & me)
Mouse release.

bool EventConfigure(GdkEvent *& event)
Configure.

bool EventExpose(GdkEvent *& event)
Expose of area.

bool EventKeyPress(GdkEventKey *& key)
Handle key press events.

bool EventKeyRelease(GdkEventKey *& key)
Handle key release events.

bool ObjectUpdate(DFObjectUpdateT & type,DFObjectC & obj)
Handle object updates.
Drag and drop

bool DNDMotion(GdkDragContext *& dc,PositionTimeC & pt)
Handle drag and drop motion.

bool DNDDrop(GdkDragContext *& dc,PositionTimeC & pt)
Drop.

bool DNDBegin(GdkDragContext *& dc)
Drag and drop begin.

bool DNDEnd(GdkDragContext *& dc)
Drag and drop end.

bool DNDDataRecieved(DNDDataInfoC & info)
Drag and drop data recieved

void Destroy()
Undo all references.
Internal data.....

#include "Ravl/GUI/RawCanvas.hh"
GdkDrawable * DrawArea()
Access draw area.

bool Create()
Create the widget.

void Destroy()
Undo all references.
Placeholder only.

#include "Ravl/GUI/Widget.hh"
bool Create()
Create the widget.

GtkWidget * Widget()
Access widget.

int WidgetID() const
Get widget id.

StringC WidgetName() const
Get widget's name.
Call only from GUI thread.

StringC Name() const
Get name of widget.
Defaults to WidgetName(), but may be differnt for Lables etc.

bool GUIShow()
Show widget to the world.
Call only from GUI thread.

bool GUIHide()
Hide widget from the world.
Call only from GUI thread.

bool Show()
Show widget to the world.
Thread safe.

bool Hide()
Hide widget from the world.
Thread safe.

Index2dC Position() const
Widget position within its parent window.

Index2dC Size() const
Access Size of wiget.

bool GUISetUSize(IntT x,IntT y)
Set size of widget.
GUI thread only.

IndexRange2dC Rectangle() const
Widget position and extent within its parent window.

void SetState(GtkStateType state)
Set state
One of: GTK_STATE_NORMAL GTK_STATE_ACTIVE GTK_STATE_PRELIGHT, GTK_STATE_SELECTED GTK_STATE_INSENSITIVE

void WidgetDestroy()
Called when the underlying widget it destroyed.
The default version of this method simpily 0's the widget ptr.

Signal0C & Signal(const char *)
Get handle for named signal.
See handle class for description.

void SetToolTip(const char * text,const char * ctxt = 0)
Set the tool tip for the widget.
NB. Not all widgets can display tooltips.

void AddEventMask(IntT event)
Add to the event mask.

void DelEventMask(IntT event)
Remove from the event mask.

void ShapeCombineMask(GdkBitmap * mask,int off_x = 0,int off_y = 0)
Make a shape mask for the widget.

void GUIGrabFocus()
Grab keyboard focus.

bool GUIDNDSource(ModifierTypeT flags,const SArray1dC<GtkTargetEntry> & entries,DragActionT actions)
Setup widget as drag and drop source.

bool GUIDNDSourceDisable()
Disable widget as a drag and drop source.

bool GUIDNDTarget(DestDefaultsT flags,const SArray1dC<GtkTargetEntry> & entries,DragActionT actions)
Setup widget as drag and drop target.

bool GUIDNDTargetDisable()
Disable widget as a drag and drop source.

static SArray1dC<GtkTargetEntry> CommonTargetEntries()
Get a list of common target entries.
name="text/plain" info=0
name="text/uri-list" info=1
name="STRING" info=2


bool GUISetState(GtkStateType & state)
Set state of widget.

void Destroy()
Undo all references.
Used to avoid problems with circluar references. This should undo all references to RAVL and GUI objects which are not in the destroy tree. The function is called by the root window in its destructor.

void ConnectSignals()
Connect the default signals to the underly widget.

void ConnectUp(const char * nm,Signal0C & sig)
Connect up a signal.

static GTKSignalInfoC & SigInfo(const char * nm)
Get information about a named signal.

static int gtkDestroy(GtkWidget * widget,WidgetBodyC * data)

static int gtkEvent(GtkWidget * widget,GdkEvent * event,Signal0C * data)

static int gtkEventMouseButton(GtkWidget * widget,GdkEvent * event,Signal0C * data)

static int gtkEventMouseMotion(GtkWidget * widget,GdkEvent * event,Signal0C * data)

static int gtkEventKeyboard(GtkWidget * widget,GdkEvent * event,Signal0C * data)

static int gtkGeneric(GtkWidget * widget,Signal0C * data)

static int gtkString(GtkWidget * widget,Signal0C * data)

static int gtkCListSelect(GtkWidget * widget,IntT row,IntT column,GdkEventButton * event,Signal0C * data)

static int gtkCListCol(GtkWidget * widget,IntT column,Signal0C * data)

static int gtkDNDContext(GtkWidget * widget,GdkDragContext * context,Signal0C * data)

static int gtkDNDContextTime(GtkWidget * widget,GdkDragContext * context,unsigned int time,Signal0C * data)

static int gtkDNDPosition(GtkWidget * widget,GdkDragContext * context,int x,int y,unsigned int time,Signal0C * data)

static int gtkDNDDataGet(GtkWidget * widget,GdkDragContext * context,GtkSelectionData * sel,unsigned int info,unsigned int time,Signal0C * data)

static int gtkDNDDataRecieved(GtkWidget * widget,GdkDragContext * context,int x,int y,GtkSelectionData * sel,unsigned int info,unsigned int time,Signal0C * data)

#include "Ravl/RCHandleV.hh"
bool Save(ostream & out) const
Save to stream 'out'.

bool Save(BinOStreamC & out) const
Save to binary stream 'out'.

RCBodyVC & Copy() const
Make copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

RCBodyC & DeepCopy(UIntT levels = ((UIntT))) const
Make a deep copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

#include "Ravl/RefCounter.hh"
UIntT References() const
Access count of handles open to this object.

RCBodyC & Copy() const
Make copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

RCBodyC & DeepCopy(UIntT levels = ((UIntT))) const
Make a deep copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

void IncRefCounter()
Increment reference counter.

bool DecRefCounter()
Decrement reference counter.


Maintainer:Charles Galambos, Created: 2/8/2002, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002