Overview

Programming Guide

API Reference

Bit Field for Behavior on Graphics
Version
2.0

This bit field defines the behavior of a given entity, regarding its visibility, color, transparency, layer, line pattern and line width, given its position in the tree of entities. The inheritance works as follows:

Following the path of a leaf in the tree of entities:

To determine the value of a son regarding his father, the following rules can be applied:

Following are different configurations that can be found:

graphicsbits_image001.png
This tree has no flag; each node defines its own color. This is the reference. Each following diagram is the same than this one, but with different flags on some nodes. The 'S' means that the node has a SonHerit flag, the 'F'; that the node has a FatherHerit flag.
graphicsbits_image002.png
The second leaf does not have a SonHerit flag. It takes the pattern of its father.
graphicsbits_image003.png
The second leaf does not have a SonHerit flag, and also its father. So it takes its own value of pattern.
graphicsbits_image004.png
The second node has a FatherHerit flag. Its sons don't have any flag. They take the pattern of their father.
graphicsbits_image005.png
The second node has a FatherHerit flag. The first leaf has a SonHerit flag. It takes its own pattern. But the second leaf doesn't have a SonHerit flag, so it takes the pattern of its father.
graphicsbits_image006.png
The root node has a FatherHerit flag. The entire tree takes its pattern.
graphicsbits_image007.png
The root node has a FatherHerit flag. The second node too, so it takes the pattern of its father. The first leaf has a SonHerit flag, so it takes its own pattern. But the second leaf has no flag, so it takes the pattern of its father.

NB1: The SonHerit flag overrides the FatherHerit flag.
NB2: If a SonHeritShow or a FatherHeritShow flag is set, the Show flag is ignored.