User Documentation
RAVL, Recognition And Vision Library
DEVELOP HOME PAGE CLASS LIST CONTENTS
Ravl - GUI - Control - CanvasBodyC
 

  PUBLIC
CanvasBodyC::CanvasBodyC(int,int,bool)
CanvasBodyC::~CanvasBodyC(void)
CanvasBodyC::DDrawArea(void)
CanvasBodyC::Pixmap(void)
CanvasBodyC::DrawArea(void)
CanvasBodyC::GetColour(int)
CanvasBodyC::Resize(int,int)
CanvasBodyC::GUIResize(int &,int &)
CanvasBodyC::ConfigDone(void)
CanvasBodyC::DrawGC(void)
CanvasBodyC::DoSomeSetup(void)
CanvasBodyC::DrawImage(const ImageC &,Index2dC)
CanvasBodyC::DrawImage(const ImageC &,Index2dC)
CanvasBodyC::DrawLine(IntT,IntT,IntT,IntT,IntT)
CanvasBodyC::DrawText(IntT,IntT,StringC,IntT)
CanvasBodyC::GUIDrawImage(ImageC &,Index2dC &)
CanvasBodyC::GUIDrawRGBImage(ImageC &,Index2dC &)
CanvasBodyC::GUIDrawLine(IntT &,IntT &,IntT &,IntT &,IntT &)
CanvasBodyC::GUIDrawText(IntT &,IntT &,StringC &,IntT &)
CanvasBodyC::IsReady(void) const
CanvasBodyC::ToDo(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)
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)

   CanvasBodyC   
 
Widget in which graphics can be rendered.
 
include "Ravl/GUI/Canvas.hh"
Created:17/03/1999 
User Level:Develop
Library:RavlGUI2D
Example:exCanvas.cc
In Scope:RavlGUIN

Parent Classes: Variables:
Methods:
CanvasBodyC(int sx,int sy,bool direct = false)
Constructor.

~CanvasBodyC()
Destructor.

GtkWidget * DDrawArea()
Direct draw area.

GdkPixmap *& Pixmap()
Pixmap.

GdkDrawable * DrawArea()
Get draw area.

GdkColor & GetColour(int n)
Access colour.
GUI thread only.

bool Resize(int nsx,int nsy)
Resize canvas.
The canvas will be resized on the next render event.

bool GUIResize(int & nsx,int & nsy)
Resize canvas.
GUI Thread only

bool & ConfigDone()
Flag configure as done.

GdkGC * DrawGC()
Drawing context.

void DoSomeSetup()
Don't call directly!!!!!!!!!!

void DrawImage(const ImageC<ByteT> & img,Index2dC offset = Index2dC (0))
Draw an image on the canvas.

void DrawImage(const ImageC<ByteRGBValueC> & img,Index2dC offset = Index2dC (0))
Draw an rgb image on the canvas.

void DrawLine(IntT x1,IntT y1,IntT x2,IntT y2,IntT colId = 0)
Draw a line.

void DrawText(IntT x1,IntT y1,StringC text,IntT colId = 0)
Draw some text

bool GUIDrawImage(ImageC<ByteT> & img,Index2dC & offset)
Draw an image on the canvas.
Call with GUI thread only!

bool GUIDrawRGBImage(ImageC<ByteRGBValueC> & img,Index2dC & offset)
Draw an rgb image on the canvas.
Call with GUI thread only!

bool GUIDrawLine(IntT & x1,IntT & y1,IntT & x2,IntT & y2,IntT & colId)
Draw a line.
Call with GUI thread only!

bool GUIDrawText(IntT & x1,IntT & y1,StringC & text,IntT & colId)
Draw some text
Call with GUI thread only!

bool IsReady() const
Is Canvas ready for drawing.

DListC<TriggerC> & ToDo()
Get todo list.

#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


#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: 17/03/1999, Documentation by CxxDoc: Tue Aug 13 09:59:02 2002