C# Класс Revit.SDK.Samples.CS.PointCloudEngine.PointCloudAccessBase

The base class for all IPointCloudAccess implementations in this sample.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
SerializeObjectData ( System.Xml.Linq.XElement rootElement ) : void

Saves the contents of the point cloud into an XML element.

Защищенные методы

Метод Описание
AddCell ( XYZ lowerLeft, XYZ upperRight, int color ) : void

Adds a new cell to the point cloud.

AddCell ( XYZ lowerLeft, XYZ upperRight, int color, bool randomize ) : void

Adds a new cell to the point cloud.

GetOutline ( ) : Outline

Gets the outline calculated from all cells in the point cloud.

GetScale ( ) : double

Gets the scale stored for this point cloud.

PointCloudAccessBase ( ) : System

Constructs a new instance of the base class.

ReadSomePoints ( PointCloudFilter rFilter, IntPtr buffer, int nBufferSize, int startIndex ) : int

The internal implementation for point cloud read requests from Revit.

Both IPointCloudAccess.ReadPoints() and IPointSetIterator.ReadPoints() are served by this method.

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

Sets up a point cloud from an XML root element.

Приватные методы

Метод Описание
AddCellToOutline ( PointCloudCellStorage storage ) : void

Adds a cell to the stored outline of the point cloud. If the cell boundaries extend beyond the current outline, the outline is adjusted.

Описание методов

AddCell() защищенный Метод

Adds a new cell to the point cloud.
protected AddCell ( XYZ lowerLeft, XYZ upperRight, int color ) : void
lowerLeft XYZ The lower left point.
upperRight XYZ The upper right point.
color int The color.
Результат void

AddCell() защищенный Метод

Adds a new cell to the point cloud.
protected AddCell ( XYZ lowerLeft, XYZ upperRight, int color, bool randomize ) : void
lowerLeft XYZ The lower left point.
upperRight XYZ The upper right point.
color int The color.
randomize bool True to randomize point number and location, false for a regular arrangement of points.
Результат void

GetOutline() защищенный Метод

Gets the outline calculated from all cells in the point cloud.
protected GetOutline ( ) : Outline
Результат Outline

GetScale() защищенный Метод

Gets the scale stored for this point cloud.
protected GetScale ( ) : double
Результат double

PointCloudAccessBase() защищенный Метод

Constructs a new instance of the base class.
protected PointCloudAccessBase ( ) : System
Результат System

ReadSomePoints() защищенный Метод

The internal implementation for point cloud read requests from Revit.
Both IPointCloudAccess.ReadPoints() and IPointSetIterator.ReadPoints() are served by this method.
protected ReadSomePoints ( PointCloudFilter rFilter, IntPtr buffer, int nBufferSize, int startIndex ) : int
rFilter PointCloudFilter The point cloud filter.
buffer System.IntPtr The point cloud buffer.
nBufferSize int The maximum number of points in the buffer.
startIndex int The start index for points. Pass 0 if called from IPointCloudAccess.ReadPoints() or if this is the first /// call to IPointSetIterator.ReadPoints(). Pass the previous cumulative number of read points for second and successive calls to /// IPointSetIterator.ReadPoints().
Результат int

SerializeObjectData() публичный Метод

Saves the contents of the point cloud into an XML element.
public SerializeObjectData ( System.Xml.Linq.XElement rootElement ) : void
rootElement System.Xml.Linq.XElement The XML element in which to save the point cloud properties.
Результат void

SetupFrom() защищенный Метод

Sets up a point cloud from an XML root element.
protected SetupFrom ( System.Xml.Linq.XElement rootElement ) : void
rootElement System.Xml.Linq.XElement The root element.
Результат void