Click or drag to resize
Ab4d.SharpEngine logo

WireGridNode Class

WireGridNode class is used to create GroupNode that represents a horizontally aligned grid defined by 3D lines.
Inheritance Hierarchy

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 1.0.8740+deb2991acfe86a95cca780cd4f82bcae2805c1a5
Syntax
C#
public class WireGridNode : GroupNode

The WireGridNode type exposes the following members.

Constructors
 NameDescription
Public methodWireGridNode Constructor
Top
Properties
 NameDescription
Public propertyCenterPosition Center position of the grid. Default value is (0, 0, 0)
Public propertyHeightCellsCount Number of cells along the height dimension. Default value is 5.
Public propertyHeightDirection Direction vector of the height dimension. Default value is (0, 0, -1), i.e., along the Z axis.
Public propertyIsClosed Flag indicating whether a rectangle is drawn around the grid's perimeter, closing the grid shape. The style used for the closing line is that of the major lines. Default value is true.
Public propertyMajorLineColor Color of major grid lines and the enclosing rectangle. Default color is black.
Public propertyMajorLinesFrequency The frequency of major lines, in terms of minor lines (i.e., how many minor lines until next major one). When set to 0 or less, the major lines are not drawn and all lines are minor lines. Default value is 0.
Public propertyMajorLineThickness Thickness of major grid lines and the enclosing rectangle. Default value is 2.0 (set by public static DefaultMajorLineThickness).
Public propertyMinorLineColor Color of minor grid lines. Default color is black.
Public propertyMinorLineThickness Thickness of minor grid lines. Default value is 1.0 (set by public static DefaultMinorLineThickness).
Public propertySize Size (2D width and height) of the grid. Default value is (1, 1)
Public propertyWidthCellsCount Number of cells along the width dimension. Default value is 5.
Public propertyWidthDirection Direction vector of the width dimension. Default value is (1, 0, 0), i.e., along the X axis.
Top
Fields
 NameDescription
Public fieldStatic memberDefaultMajorLineThickness Static public static float DefaultMajorLineThickness = 2; (set to 2 by default)
Public fieldStatic memberDefaultMinorLineThickness Static DefaultMinorLineThickness (set to 1 by default)
Protected fieldmajorLinesNode majorLinesNode
Protected fieldmajorLinesPositions majorLinesPositions
Protected fieldminorLinesNode minorLinesNode
Protected fieldminorLinesPositions minorLinesPositions
Protected fieldrectangleNode rectangleNode
Protected fieldrectanglePositions rectanglePositions
Top
Extension Methods
 NameDescription
Public Extension MethodDumpHierarchy Dumps the hierarchy of the GroupNode and its children.
(Defined by Extensions)
Top
See Also