Sdílet prostřednictvím


The Cascaded RealTimeStylus Model

The Cascaded RealTimeStylus Model

Overview of the cascaded model for the RealTimeStylus class.

The cascaded RealTimeStylus model allows you to use two RealTimeStylus objects, each running on its own thread. With this model, you attach a secondary RealTimeStylus object to a primary RealTimeStylus object. The secondary RealTimeStylus object is attached as the only asynchronous plug-in in the primary RealTimeStylus object's asynchronous plug-in collection.

The cascaded RealTimeStylus model may be useful in the following scenarios.

  • You can add certain tasks that may be computationally demanding yet still require real-time access to the tablet pen's data stream—such as multistroke gesture recognition—to the secondary RealTimeStylus object's synchronous plug-in collection.
  • You can spread the computational load of your synchronous plug-ins over two threads, reducing delays in ink collection on some Tablet PCs.

Constraints

If you use the default RealTimeStylus constructor, you create a RealTimeStylus object that can only accept input from another RealTimeStylus object.

The following list describes the constraints associated with using the cascaded RealTimeStylus model.