cCanvas Class Reference

EXPERIMENTAL CLASS, NOT PART OF THE OFFICIAL OMNeT++ API! ALL DETAILS ARE SUBJECT TO CHANGE. More...

#include <ccanvas.h>

Inheritance diagram for cCanvas:
cOwnedObject cNamedObject cObject

List of all members.

Public Member Functions

virtual cCanvasdup () const
virtual void forEachChild (cVisitor *v)
virtual std::string info () const

Detailed Description

EXPERIMENTAL CLASS, NOT PART OF THE OFFICIAL OMNeT++ API! ALL DETAILS ARE SUBJECT TO CHANGE.

Provides a scene graph based 2D drawing API for modules.

Notes:


Member Function Documentation

virtual cCanvas* cCanvas::dup (  )  const [inline, virtual]

Should be redefined in subclasses to create an exact copy of this object.

The default implementation just throws an error, to indicate that the method was not redefined.

Reimplemented from cObject.

virtual void cCanvas::forEachChild ( cVisitor v  )  [virtual]

Enables traversing the object tree, performing some operation on each object.

The operation is encapsulated in the particular subclass of cVisitor.

This method should be redefined in every subclass to call v->visit(obj) for every obj object contained.

Reimplemented from cObject.

virtual std::string cCanvas::info (  )  const [virtual]

Can be redefined to produce a one-line description of object.

The string appears in the graphical user interface (Tkenv) e.g. when the object is displayed in a listbox. The returned string should possibly be at most 80-100 characters long, and must not contain newline.

See also:
detailedInfo()

Reimplemented from cObject.


The documentation for this class was generated from the following file:
Generated on Tue Dec 2 11:16:28 2014 for OMNeT++ Simulation Library by  doxygen 1.6.3