An Element Handler defines the behavior of the elements that it controls, including how they display, transform, respond to snaps, and other user interactions. More...
Modules | |
Displayable Elements | |
Non-Graphic Elements | |
Pointclouds | |
Handler for a Point Cloud element. | |
Classes | |
struct | DisplayHandler |
Base class for handlers that control the display of graphic (visible) elements. More... | |
class | Handler |
Handler defines the standard queries and operations available on all elements, whether graphical or non-graphical, internal or application defined. More... | |
Enumerations | |
enum | SupportOperation { Selection = 0, CellGroup = 1, CellUnGroup = 2, TransientManipulators = 3, CacheCutGraphics = 4, LineStyle = 5, CustomHilite = 6 } |
An Element Handler defines the behavior of the elements that it controls, including how they display, transform, respond to snaps, and other user interactions.
An element handler is C++ singleton object that is an instance of a class that is derived from Handler.
A Handler's methods normally take an ElementHandle or an EditElementHandle reference as an argument, which identifies the element that the Handler should process. A Handler has no state of its own. A Handler is expected to apply its logic to the element that it is asked to process, based on the state of the element. The Handler design is based on the Flyweight Pattern.