| Modifier and Type | Field and Description |
|---|---|
| private Blend. | blendMode
The blend mode to use with this group. |
| private List | |
| private static final int | REGION_INTERSECTS_MASK
This mask has all bits that mark that a region intersects this group. |
| private List | |
| private List | |
| private final List | viewOrderChildren
The viewOrderChildren is a list children sorted in decreasing viewOrder order if it is not empty. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| protected NGNode. | computeRenderRoot(NodePath path, RectBounds dirtyRegion, int cullingIndex, BaseTransform tx, GeneralTransform3D pvTx)
Overrides com. * Culling Related Methods * * |
| public void | drawDirtyOpts(final BaseTransform tx, final GeneralTransform3D pvTx, Rectangle clipBounds, int[] countBuffer, int dirtyRegionIndex)
Overrides com. Helper method draws rectangles indicating the overdraw rectangles. |
| public List | |
| private List | |
| public List | |
| protected boolean | |
| protected boolean | hasVisuals()
Overrides com. Marks if the node has some visuals and that the bounds change should be taken into account when using the dirty region. |
| public boolean | |
| protected void | markCullRegions(DirtyRegionContainer drc, int cullingRegionsBitsOfParent, BaseTransform tx, GeneralTransform3D pvTx)
Overrides com. Marks placement of the node in dirty region encoded into 2 bit flag: 00 - node outside dirty region 01 - node intersecting dirty region 11 - node completely within dirty region 32 bits = 15 regions max. |
| protected boolean | needsBlending()
Overrides com. Return true if this node has a blend mode that requires special processing. |
| public void | |
| public void | |
| protected void | |
| public void | renderForcedContent(Graphics gOptional)
Overrides com. Called on every render pulse for all nodes in case they have render-time operations that must be completed on a pulse, but were not otherwise rendered by the ordinary damage management logic. |
| public void | |
| public void |
| blendMode | back to summary |
|---|---|
| private Blend. The blend mode to use with this group. | |
| children | back to summary |
|---|---|
| private List<NGNode> children | |
| REGION_INTERSECTS_MASK | back to summary |
|---|---|
| private static final int REGION_INTERSECTS_MASK This mask has all bits that mark that a region intersects this group. Which means it looks like this: 00010101010101010101010101010101 (first bit for sign) | |
| removed | back to summary |
|---|---|
| private List<NGNode> removed | |
| unmod | back to summary |
|---|---|
| private List<NGNode> unmod | |
| viewOrderChildren | back to summary |
|---|---|
| private final List<NGNode> viewOrderChildren The viewOrderChildren is a list children sorted in decreasing viewOrder order if it is not empty. Its size should always be equal to children.size(). If viewOrderChildren is empty it implies that the rendering order of the children is the same as the order in the children list. | |
| NGGroup | back to summary |
|---|---|
| public NGGroup() | |
| add | back to summary |
|---|---|
| public void add(int index, NGNode node) Adds a node to the given index. An index of -1 means "append", for legacy reasons (it was easier than asking for the number of children, iirc).
| |
| addToRemoved | back to summary |
|---|---|
| public void addToRemoved(NGNode n) | |
| clear | back to summary |
|---|---|
| public void clear() | |
| clearDirty | back to summary |
|---|---|
| public void clearDirty() Overrides com. Doc from com. Clears the dirty flag. This should only happen during rendering.
| |
| clearFrom | back to summary |
|---|---|
| public void clearFrom(int fromIndex) | |
| computeRenderRoot | back to summary |
|---|---|
| protected NGNode. Overrides com. * Culling Related Methods * *
| |
| drawDirtyOpts | back to summary |
|---|---|
| public void drawDirtyOpts(final BaseTransform tx, final GeneralTransform3D pvTx, Rectangle clipBounds, int[] countBuffer, int dirtyRegionIndex) Overrides com. Doc from com. Helper method draws rectangles indicating the overdraw rectangles.
| |
| getChildren | back to summary |
|---|---|
| public List Gets an unmodifiable list of the current children on this group | |
| getOrderedChildren | back to summary |
|---|---|
| private List | |
| getRemovedChildren | back to summary |
|---|---|
| public List | |
| hasOverlappingContents | back to summary |
|---|---|
| protected boolean hasOverlappingContents() Implements abstract com.
| |
| hasVisuals | back to summary |
|---|---|
| protected boolean hasVisuals() Overrides com. Doc from com. Marks if the node has some visuals and that the bounds change should be taken into account when using the dirty region. This will be false for NGGroup (but not for NGRegion)
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() | |
| markCullRegions | back to summary |
|---|---|
| protected void markCullRegions(DirtyRegionContainer drc, int cullingRegionsBitsOfParent, BaseTransform tx, GeneralTransform3D pvTx) Overrides com. Doc from com. Marks placement of the node in dirty region encoded into 2 bit flag: 00 - node outside dirty region 01 - node intersecting dirty region 11 - node completely within dirty region 32 bits = 15 regions max. * 2 bit each. The first two bits are not used because we have a special use case for -1, so they should only be set if in that case.
| |
| needsBlending | back to summary |
|---|---|
| protected boolean needsBlending() Overrides com. Doc from com. Return true if this node has a blend mode that requires special processing. Regular nodes can handle null or SRC_OVER just by rendering into the existing buffer. Groups override this since they must collect their children into a single rendering pass if their mode is explicitly SRC_OVER.
| |
| remove | back to summary |
|---|---|
| public void remove(NGNode node) | |
| remove | back to summary |
|---|---|
| public void remove(int index) | |
| renderContent | back to summary |
|---|---|
| protected void renderContent(Graphics g) Implements abstract com.
| |
| renderForcedContent | back to summary |
|---|---|
| public void renderForcedContent(Graphics gOptional) Overrides com. Doc from com. Called on every render pulse for all nodes in case they have render-time operations that must be completed on a pulse, but were not otherwise rendered by the ordinary damage management logic. The graphics argument will be the graphics that was used to render the scene if it is available, but may be null for cases when the scene required no visible updates and thus no back buffer graphics was actually obtained. Implementors must have a backup plan for that case when the Graphics object is null.
| |
| setBlendMode | back to summary |
|---|---|
| public void setBlendMode(Object blendMode) Set by the FX scene graph.
| |
| setViewOrderChildren | back to summary |
|---|---|
| public void setViewOrderChildren(List<Node> sortedChildren) | |