The QTPlgCoreDisplayParams class provides a convenient, general purpose, container to deal with parameters that define a series of graphical transformations to apply to some visual data; using instances of this class allows to implement a simple and unique interface to provide and/or retrieve parameters that affect how data will be displayed or drawed somewhere by other plugin classes.
Since version 6.7 of the plugin this class can be used in Console Applications
The QTPlgCoreDisplayParams class constructors are called when you create a new instance of the class, while the ˜QTPlgCoreDisplayParams class destructor, is called automatically when the class is no more in use. Also, you can invoke the class destructor by setting the instance of the class to nil.
Once a new class instance is returned, it is good practice to check the class property to be sure that the new object can be used. A QTPlgGraphicsContext object is always valid.
The class implements the following initializer methods:
()
This is the default constructor. All of the class properties are initialized in such a way to define no
tranformation at all.
(other as QTPlgCoreDisplayParams)
This is the copy constructor. The properties of the object to be copied will be used to initialize the new class instance
properties
identifies the destination rectangle
specifies the color for use in blending and transparent operations and the graphics mode to associate with the
current drawing operation
specifies a mask region to apply to the resulting image
specifies a set of graphical transformations such as rotation, scaling, translation and so on
()
using this function clears at one go all of the changes previously done, restoring the default values of the class properties