GEOS SDK TechDocs
|
|
5.5 Using Model
You may also extend or modify the hierarchies to add other objects that are not active nodes by default. If custom objects wish to use the hierarchies, you will need to add instance data and message handlers for their classes. The following steps must be taken to add a new node in a hierarchy:
HierarchicalGrab
.
MSG_META_MUP_ALTER_FTVMC_EXCL
. This method alters the custom instance field for the grab and release messages for all hierarchies. You must call the superclass in your handler.
FlowUpdateHierarchicalGrab()
. You can also add behavior exhibited when the object gains or loses the exclusive. Depending on what you are subclassing, your default behavior may already take care of this. For instance subclasses of
VisClass
automatically handle losing and gaining the target exclusive.
MSG_META_SEND_CLASSED_EVENT
with the
TravelOption
of the particular hierarchy you are extending. The way you handle this message depends on the hierarchy affected, as discussed below.TO_FOCUS and TO_TARGET requests should only travel down hierarchies of the same name. If no further travel is possible, the method should pass the event on to the superclass for handling. TO_MODEL requests should only travel down the Model hierarchy if it exists and the next optr is non-null.
GEOS SDK TechDocs
|
|
5.5 Using Model