Click or drag to resize
Ab4d.SharpEngine logo

PixelsNode Class

Inheritance Hierarchy

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public class PixelsNode : RenderedNode

The PixelsNode type exposes the following members.

Constructors
Properties
 NameDescription
Public propertyHasTransparentPixelColors Gets or sets a nullable Boolean that specifies if PixelColors define colors that have alpha value less than 1 (has any transparent pixels). When there are any transparent pixels, then alpha blending must be used to render the pixels correctly. When this property is not set (is null by default), then the colors in PixelColors array are checked for any transparent pixels.
Public propertyPixelColor Gets or sets the Color4 of pixels. When PixelColors array is set, the value of this property is used as a mask that is multiplied with each color defined in the array. If this property is not set and when PixelColors property is set, then the default value of this property is Color.White (no color mask). When PixelColors is not set, then the default value of this property is Colors.Black.
Public propertyPixelColors Gets or sets a Color4 array that specifies the colors for each pixel. When color's alpha is 0, then the pixel is not rendered. When PixelColors array is set, the PixelColor is used as a mask that is multiplied with each color defined in the array (set PixelColor to White to use the values specified in this array). When null, the color of all the pixels is set by the color defined by the PixelColor property. When individual values of PixelColors are changed, you need to call UpdatePixelColors(NullableBoolean) method for the changes to take effect.
Public propertyPixelSize Gets or sets the width and height of the pixel in screen space units. This value is scaled with DPI scale factor. Default value is 1.
Public propertyPixelSizes Gets or sets a float array that specifies the sizes for each pixel. When size is less of equal to 0, then the pixel is not rendered. When PixelSizes array is set, the PixelSize value is multiplied with each size defined in the array (set PixelSize to 1 to use the values specified in this array). When null, the size of all the pixels is set by the value defined by the PixelSize property. When individual values of PixelSizes are changed, you need to call UpdatePixelSizes method for the changes to take effect.
Public propertyPositions Positions array that form 3D lines.
Top
Methods
 NameDescription
Public methodCollectRenderingItems CollectRenderingItems
(Overrides SceneNodeCollectRenderingItems(RenderingContext))
Protected methodDisconnectMaterial DisconnectMaterial
Protected methodDisconnectMesh DisconnectMesh
Protected methodDispose Dispose
(Overrides SceneNodeDispose(Boolean))
Public methodDisposeRenderingItems DisposeRenderingItems
(Overrides SceneNodeDisposeRenderingItems)
Public methodGetCenterPosition Returns center position of this ModelNode. Center position is calculated from the center position of the Positions that are transformed by the Transform (when applyTransformation is true).
(Overrides RenderedNodeGetCenterPosition(Boolean, Boolean))
Public methodGetLocalBoundingBox Gets the BoundingBox of this SceneNode in local coordinates. The BoundingBox is transformed by transformation on this SceneNode but not by parent's transformations. When updateIfDirty parameter is true (by default), then this method will also call UpdateLocalBoundingBox method. When updateIfDirty parameter is false then the current value of protected localBoundingBox field is returned.
(Overrides SceneNodeGetLocalBoundingBox(Boolean))
Public methodGetMaterial Returns the PixelMaterial that is used by this PixelsNode.
Public methodGetMesh Returns the PositionsMesh that is used by this PixelsNode.
Public methodGetOverviewText GetOverviewText adds string that writes details about this SceneNode into the specified StringBuilder.
(Overrides SceneNodeGetOverviewText(StringBuilder, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean))
Protected methodOnInitializeSceneResources Initializes resources with the specified Scene and GpuDevice. This method can be override and is called from InitializeSceneResources(Scene) method.
(Overrides InitializedSceneComponentOnInitializeSceneResources(Scene, VulkanDevice))
Protected methodOnIsVisibleChanged OnIsVisibleChanged is called when the value of IsVisible property is changed. Overridden implementations should update the IsVisible property of the RenderingItem objects that were already added to RenderingLayers.
(Overrides SceneNodeOnIsVisibleChanged(Boolean))
Protected methodOnUpdate OnUpdate
(Overrides SceneNodeOnUpdate)
Protected methodOnWorldMatrixChanged OnWorldMatrixChanged
(Overrides SceneNodeOnWorldMatrixChanged)
Protected methodUpdateLocalBoundingBox UpdateLocalBoundingBox
(Overrides SceneNodeUpdateLocalBoundingBox)
Public methodUpdatePixelColors UpdatePixelColors must be called when the values in the PixelColors array is changed. The method recreates the GpuBuffer that defined the pixel color data for the graphics card.
Public methodUpdatePixelSizes UpdatePixelSizes must be called when the values in the PixelSizes array is changed. The method recreates the GpuBuffer that defined the pixel sizes data for the graphics card.
Public methodUpdatePositions UpdatePositions must be called when the values in the Positions array is changed. The method recreates the GpuBuffer that defined the positions data for the graphics card.
Public methodUpdatePositions(BoundingBox) UpdatePositions must be called when the values in the Positions array is changed. The method recreates the GpuBuffer that defined the positions data for the graphics card.
Protected methodUpdateWorldBoundingBox UpdateWorldBoundingBox
(Overrides SceneNodeUpdateWorldBoundingBox)
Top
Fields
See Also