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

An implementation for a non file-based point cloud. In this implementaiton, the location of the cells, including their colors and options, are hardcoded.
Inheritance: PointCloudAccessBase, IPointCloudAccess
Datei anzeigen Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
CreatePointSetIterator ( PointCloudFilter rFilter, ElementId viewId ) : IPointSetIterator

The implementation of IPointCloudAccess.CreatePointSetIterator().

GetColorEncoding ( ) : PointCloudColorEncoding

The implementation of IPointCloudAccess.GetColorEncoding()

GetExtent ( ) : Outline

The implementation of IPointCloudAccess.GetExtent().

GetName ( ) : String

The implementation of IPointCloudAccess.GetName().

GetOffset ( ) : XYZ

The implementation of IPointCloudAccess.GetOffset().

This method is not used by Revit and will be removed in a later pre-release build.

GetUnitsToFeetConversionFactor ( ) : double

The implementation of IPointCloudAccess.GetUnitsToFeetConversionFactor().

PredefinedPointCloud ( String identifier ) : System

Constructs a new predefined point cloud access instance.

PredefinedPointCloud ( String identifier, bool randomizedPoints ) : System

Constructs a new predefined point cloud access instance.

ReadPoints ( PointCloudFilter rFilter, ElementId viewId, IntPtr buffer, int nBufferSize ) : int

The implementation of IPointCloudAccess.ReadPoints().

Private Methods

Method Description
Setup ( bool randomizedPoints ) : void

Sets up the predefined point cloud.

Method Details

CreatePointSetIterator() public method

The implementation of IPointCloudAccess.CreatePointSetIterator().
public CreatePointSetIterator ( PointCloudFilter rFilter, ElementId viewId ) : IPointSetIterator
rFilter PointCloudFilter The filter.
viewId ElementId The view id (unused).
return IPointSetIterator

GetColorEncoding() public method

The implementation of IPointCloudAccess.GetColorEncoding()
public GetColorEncoding ( ) : PointCloudColorEncoding
return PointCloudColorEncoding

GetExtent() public method

The implementation of IPointCloudAccess.GetExtent().
public GetExtent ( ) : Outline
return Outline

GetName() public method

The implementation of IPointCloudAccess.GetName().
public GetName ( ) : String
return String

GetOffset() public method

The implementation of IPointCloudAccess.GetOffset().
This method is not used by Revit and will be removed in a later pre-release build.
public GetOffset ( ) : XYZ
return XYZ

GetUnitsToFeetConversionFactor() public method

The implementation of IPointCloudAccess.GetUnitsToFeetConversionFactor().
public GetUnitsToFeetConversionFactor ( ) : double
return double

PredefinedPointCloud() public method

Constructs a new predefined point cloud access instance.
public PredefinedPointCloud ( String identifier ) : System
identifier String The identifier of the point cloud.
return System

PredefinedPointCloud() public method

Constructs a new predefined point cloud access instance.
public PredefinedPointCloud ( String identifier, bool randomizedPoints ) : System
identifier String The identifier of the point cloud.
randomizedPoints bool True to use randomization for the point location and number, false otherwise.
return System

ReadPoints() public method

The implementation of IPointCloudAccess.ReadPoints().
public ReadPoints ( PointCloudFilter rFilter, ElementId viewId, IntPtr buffer, int nBufferSize ) : int
rFilter PointCloudFilter The filter.
viewId ElementId The view id (unused).
buffer System.IntPtr The point cloud buffer.
nBufferSize int The maximum number of points.
return int