Pixels |
public class PixelsNode : RenderedNode
The PixelsNode type exposes the following members.
Name | Description | |
---|---|---|
PixelsNode(String) | Constructor | |
PixelsNode(Vector3, String) | Constructor | |
PixelsNode(Vector3, BoundingBox, String) | Constructor | |
PixelsNode(Vector3, Color4, Single, String) | Constructor | |
PixelsNode(Vector3, Color4, Single, String) | Constructor | |
PixelsNode(Vector3, BoundingBox, Color4, Single, String) | Constructor | |
PixelsNode(Vector3, BoundingBox, Color4, Single, String) | Constructor | |
PixelsNode(Vector3, Color4, NullableBoolean, Single, String) | Constructor | |
PixelsNode(Vector3, Color4, Single, NullableBoolean, String) | Constructor | |
PixelsNode(Vector3, BoundingBox, Color4, NullableBoolean, Single, String) | Constructor | |
PixelsNode(Vector3, BoundingBox, Color4, Single, NullableBoolean, String) | Constructor |
Name | Description | |
---|---|---|
HasTransparentPixelColors | 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. | |
PixelColor | 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. | |
PixelColors | 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. | |
PixelSize | 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. | |
PixelSizes | 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. | |
Positions | Positions array that form 3D lines. |
Name | Description | |
---|---|---|
CollectRenderingItems |
CollectRenderingItems
(Overrides SceneNodeCollectRenderingItems(RenderingContext)) | |
DisconnectMaterial | DisconnectMaterial | |
DisconnectMesh | DisconnectMesh | |
Dispose |
Dispose
(Overrides SceneNodeDispose(Boolean)) | |
DisposeRenderingItems |
DisposeRenderingItems
(Overrides SceneNodeDisposeRenderingItems) | |
GetCenterPosition |
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)) | |
GetLocalBoundingBox |
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)) | |
GetMaterial | Returns the PixelMaterial that is used by this PixelsNode. | |
GetMesh | Returns the PositionsMesh that is used by this PixelsNode. | |
GetOverviewText |
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)) | |
OnInitializeSceneResources |
Initializes resources with the specified Scene and GpuDevice.
This method can be override and is called from InitializeSceneResources(Scene) method.
(Overrides InitializedSceneComponentOnInitializeSceneResources(Scene, VulkanDevice)) | |
OnIsVisibleChanged |
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)) | |
OnUpdate |
OnUpdate
(Overrides SceneNodeOnUpdate) | |
OnWorldMatrixChanged |
OnWorldMatrixChanged
(Overrides SceneNodeOnWorldMatrixChanged) | |
UpdateLocalBoundingBox |
UpdateLocalBoundingBox
(Overrides SceneNodeUpdateLocalBoundingBox) | |
UpdatePixelColors | 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. | |
UpdatePixelSizes | 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. | |
UpdatePositions | 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. | |
UpdatePositions(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. | |
UpdateWorldBoundingBox |
UpdateWorldBoundingBox
(Overrides SceneNodeUpdateWorldBoundingBox) |
Name | Description | |
---|---|---|
material | ||
mesh | ||
pixelColorsBuffer | ||
pixelSizesBuffer | ||
renderingItem |