a2dCanvasObject::a2dFeedbackId Class Reference

provide visual feedback by other objects that might participate in an editing More...

#include <canobj.h>

Inheritance diagram for a2dCanvasObject::a2dFeedbackId:

Inheritance graph
[legend]
Collaboration diagram for a2dCanvasObject::a2dFeedbackId:

Collaboration graph
[legend]

List of all members.


Detailed Description

provide visual feedback by other objects that might participate in an editing

In some situations, e.g. when drawing wires or when draging objects in hierarchies, it is helpfull if other objects provide visual feedback, that they e.g. would accept the currently edited objects. If e.g. a wire is drawn, all pins that can accept the wire can turn green and all other pins can turn red. This function is usually called for the show object of a a2dCanvasView and goes down recursively. The id paramater identifies the editing situation. This is a a2dIdBase derived ID object, that is usually stored as a static member in a class. Objects that don't know a specific ID simply ignore it. Generally this function is called at least twice, once when the visual feedback should start, and once when it should end.

Pins are tested for possible connection to pins on other objects. If some pin can connect the EditFeedback() with the feedback id a2dPin::sm_feedbackCanConnect is called on it.

Definition at line 2187 of file canobj.h.


The documentation for this class was generated from the following file:
a2dCanvasObject::a2dFeedbackId Class Reference -- Tue Aug 31 18:13:09 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . -- Main Page Reference Documentation