# Bit Field for Behavior on Graphics

> 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:

- If there are SonHeritflags, it is the lowest node in the tree which has this flag which defines the value, except if it has a FatherHeritflag.
- If there are FatherHeritflags, it is the highest node in the tree which has this flag which defines the value.
- If there is no flag, the current value is set, if any.

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

- If the father has a SonHeritflag and the son has a SonHeritflag too, the value is the one of the son.
- If the father has a SonHeritflag but not the son, the value is the one of the father.
- If the father does not have a SonHeritflag, but the son has one, the value is the one of the son.
- If the father does not have a SonHeritflag neither a FatherHeritflag, and the son does not have a SonHeritflag too, the value is the one of the son.
- If none of those rules can match, the value is the current one.

Following are different configurations that can be found:

- | 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 SonHeritflag, the ‘F’; that the node has a FatherHeritflag.
- | The second leaf does not have a SonHeritflag. It takes the pattern of its father.
- | The second leaf does not have a SonHeritflag, and also its father. So it takes its own value of pattern.
- | The second node has a FatherHeritflag. Its sons don’t have any flag. They take the pattern of their father.
- | The second node has a FatherHeritflag. The first leaf has a SonHeritflag. It takes its own pattern. But the second leaf doesn’t have a SonHeritflag, so it takes the pattern of its father.
- | The root node has a FatherHeritflag. The entire tree takes its pattern.
- | The root node has a FatherHeritflag. The second node too, so it takes the pattern of its father. The first leaf has a SonHeritflag, so it takes its own pattern. But the second leaf has no flag, so it takes the pattern of its father.

NB1:The SonHeritflag overrides the FatherHeritflag.

## Index

Preprocessor Definitions

- `kA3DGraphicsShow`
- `kA3DGraphicsSonHeritShow`
- `kA3DGraphicsFatherHeritShow`
- `kA3DGraphicsSonHeritColor`
- `kA3DGraphicsFatherHeritColor`
- `kA3DGraphicsSonHeritLayer`
- `kA3DGraphicsFatherHeritLayer`
- `kA3DGraphicsSonHeritTransparency`
- `kA3DGraphicsFatherHeritTransparency`
- `kA3DGraphicsSonHeritLinePattern`
- `kA3DGraphicsFatherHeritLinePattern`
- `kA3DGraphicsSonHeritLineWidth`
- `kA3DGraphicsFatherHeritLineWidth`
- `kA3DGraphicsRemoved`

Preprocessor Definitions

`kA3DGraphicsShow`

  Entity is shown.

`kA3DGraphicsSonHeritShow`

  Show inheritance.

`kA3DGraphicsFatherHeritShow`

  Show inheritance.

`kA3DGraphicsSonHeritColor`

  Color / material inheritance.

`kA3DGraphicsFatherHeritColor`

  Color / material inheritance.

`kA3DGraphicsSonHeritLayer`

  Layer inheritance.

`kA3DGraphicsFatherHeritLayer`

  Layer inheritance.

`kA3DGraphicsSonHeritTransparency`

  Transparency inheritance.

`kA3DGraphicsFatherHeritTransparency`

  Transparency inheritance.

`kA3DGraphicsSonHeritLinePattern`

  Line pattern inheritance.

`kA3DGraphicsFatherHeritLinePattern`

  Line pattern inheritance.

`kA3DGraphicsSonHeritLineWidth`

  Line width inheritance.

`kA3DGraphicsFatherHeritLineWidth`

  Line width inheritance.

`kA3DGraphicsRemoved`

  Entity is removed.

  As a result, the entity no longer appears in the tree.

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Exchange in your own language, or choose a sample question below to start a conversation:

What is HOOPS Exchange?
What are the latest release notes for HOOPS Exchange?
How do I start evaluating HOOPS Exchange?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...