Change graphic attributes of an interactive object
The set of graphic attributes of an interactive object is defined in AIS_Drawer. Each interactive object can have its own visualization attributes.
By default, the interactive object takes the graphic attributes of the interactive context in which it is visualized (visualization mode, deflection, values for the calculation of presentations, number of isoparametric lines, color, type of line, material, etc.)
In the AIS_InteractiveObject abstract class, several standard attributes have been privileged. These include: color, thickness of line, material, and transparency. Consequently, a certain number virtual functions which allow us to act on these attributes have been proposed . Each new class of interactive object can use them as they are or can redefine these functions to bring about the changes it should produce in the behavior of the class.
Other attributes can be changed by acting directly on the drawer of the object. An interactive object has a specific drawer as soon as you change an attribute on it. If you do not modify any graphic attribute on it, the default drawer of the interactive context is referenced and used.
To get the AIS_Drawer of an object, call the method
Attributes from AIS_InteractiveObject.
To set the AIS_Drawer of an object, call the method
SetLocalAttributes from AIS_InteractiveObject.