C# Class Revit.SDK.Samples.CS.PointCloudEngine.PointCloudCellStorage

This class is used to calculate and store points for a given cell.
显示文件 Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
GeneratePoints ( ) : void

Invokes the calculation for all points in the cell.

PointCloudCellStorage ( System.Xml.Linq.XElement rootElement ) : System

Constructs a new instance of a rectangular cell from an XML element.

PointCloudCellStorage ( XYZ lowerLeft, XYZ upperRight, int color, bool randomize ) : System

Creates a new instance of a rectangular cell.

SerializeObjectData ( System.Xml.Linq.XElement rootElement ) : void

Serializes the properties of the cell to an XML element.

Private Methods

Method Description
AddLine ( XYZ startPoint, XYZ direction, PointDirections directions, float distance ) : int
AddModifiedPoint ( XYZ point, XYZ modification, double transverseDelta, int pointNumber ) : void
AddPoints ( XYZ point, PointDirections directions ) : void

Method Details

GeneratePoints() public method

Invokes the calculation for all points in the cell.
public GeneratePoints ( ) : void
return void

PointCloudCellStorage() public method

Constructs a new instance of a rectangular cell from an XML element.
public PointCloudCellStorage ( System.Xml.Linq.XElement rootElement ) : System
rootElement System.Xml.Linq.XElement The XML element representing the cell.
return System

PointCloudCellStorage() public method

Creates a new instance of a rectangular cell.
public PointCloudCellStorage ( XYZ lowerLeft, XYZ upperRight, int color, bool randomize ) : System
lowerLeft XYZ The lower left point of the cell.
upperRight XYZ The upper right point of the cell.
color int The color used for points in the cell.
randomize bool True to apply randomization to the number and location of points, false for a regular arrangement of points.
return System

SerializeObjectData() public method

Serializes the properties of the cell to an XML element.
public SerializeObjectData ( System.Xml.Linq.XElement rootElement ) : void
rootElement System.Xml.Linq.XElement The element to which the properties are added as subelements.
return void