    

 ## On this page

  

 

 # rocky\_point\_cloud\_api

 Last update: 16.07.2025 

<a id="l00001" name="l00001"></a> 1// (C) 2024 ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.

<a id="l00002" name="l00002"></a> 2\#pragma once

<a id="l00003" name="l00003"></a> 3 

<a id="l00004" name="l00004"></a> 4// Includes =======================================================================================

<a id="l00005" name="l00005"></a> 5\#include "rocky\_point\_cloud.h"

<a id="l00006" name="l00006"></a> 6 

<a id="l00007" name="l00007"></a> 7// ================================================================================================

<a id="l00008" name="l00008"></a> 8// IRockyCloudPoint

<a id="l00009" name="l00009"></a> 9// ================================================================================================

<a id="l00010" name="l00010"></a> 10 

<a id="l00015" name="l00015"></a>[ 15](structIRockyCloudPoint.xhtml)struct [IRockyCloudPoint](structIRockyCloudPoint.xhtml)

<a id="l00016" name="l00016"></a> 16{

<a id="l00020" name="l00020"></a> 20 inline ROCKY_FUNCTIONS double3 [get\_position](structIRockyCloudPoint.xhtml#a1d06a1eb80ad0811ab2794f2a494fe17)() const;

<a id="l00021" name="l00021"></a> 21 

<a id="l00026" name="l00026"></a> 26 template &lt;class _data_type = double&gt;

<a id="l00027" name="l00027"></a> 27 inline ROCKY_FUNCTIONS _data_type [get\_property](structIRockyCloudPoint.xhtml#a51d29e82619836ed172e8f3135bf0f51)(int property_index) const;

<a id="l00028" name="l00028"></a> 28 

<a id="l00032" name="l00032"></a> 32 inline ROCKY_FUNCTIONS bool [is\_enabled](structIRockyCloudPoint.xhtml#ae9e37938664d6977e49593d1ec8f3dbd)() const;

<a id="l00033" name="l00033"></a> 33 

<a id="l00039" name="l00039"></a> 39 inline ROCKY_FUNCTIONS bool [is\_valid](structIRockyCloudPoint.xhtml#a79dfeecd7f7360ed1e25135ed54ed312)() const;

<a id="l00040" name="l00040"></a> 40 

<a id="l00043" name="l00043"></a> 43 ROCKY_FUNCTIONS [IRockyCloudPoint](structIRockyCloudPoint.xhtml)(device::PointCloud* _point_cloud, int _point_index)

<a id="l00044" name="l00044"></a> 44 {

<a id="l00045" name="l00045"></a> 45 this-&gt;_impl.point_cloud = _point_cloud;

<a id="l00046" name="l00046"></a> 46 this-&gt;point_index = _point_index;

<a id="l00047" name="l00047"></a> 47 }

<a id="l00048" name="l00048"></a> 48 

<a id="l00049" name="l00049"></a> 49 RockyPointCloud _impl;

<a id="l00050" name="l00050"></a> 50 int point_index;

<a id="l00051" name="l00051"></a> 51 

<a id="l00053" name="l00053"></a> 53};



<a id="l00054" name="l00054"></a> 54 

<a id="l00055" name="l00055"></a>[ 55](structIRockyCloudPoint.xhtml#a1d06a1eb80ad0811ab2794f2a494fe17)inline ROCKY_FUNCTIONS double3 [IRockyCloudPoint::get\_position](structIRockyCloudPoint.xhtml#a1d06a1eb80ad0811ab2794f2a494fe17)() const

<a id="l00056" name="l00056"></a> 56{

<a id="l00057" name="l00057"></a> 57 return this-&gt;_impl.get_point_position(this-&gt;point_index);

<a id="l00058" name="l00058"></a> 58}



<a id="l00059" name="l00059"></a> 59 

<a id="l00060" name="l00060"></a> 60template &lt;class _data_type&gt;

<a id="l00061" name="l00061"></a>[ 61](structIRockyCloudPoint.xhtml#a51d29e82619836ed172e8f3135bf0f51)inline ROCKY_FUNCTIONS _data_type [IRockyCloudPoint::get\_property](structIRockyCloudPoint.xhtml#a51d29e82619836ed172e8f3135bf0f51)(int property_index) const

<a id="l00062" name="l00062"></a> 62{

<a id="l00063" name="l00063"></a> 63 return this-&gt;_impl.get_point_property&lt;_data_type&gt;(this-&gt;point_index, property_index);

<a id="l00064" name="l00064"></a> 64}



<a id="l00065" name="l00065"></a> 65 

<a id="l00066" name="l00066"></a>[ 66](structIRockyCloudPoint.xhtml#ae9e37938664d6977e49593d1ec8f3dbd)inline ROCKY_FUNCTIONS bool [IRockyCloudPoint::is\_enabled](structIRockyCloudPoint.xhtml#ae9e37938664d6977e49593d1ec8f3dbd)() const

<a id="l00067" name="l00067"></a> 67{

<a id="l00068" name="l00068"></a> 68 return this-&gt;_impl.point_cloud-&gt;[is\_enabled](structIRockyCloudPoint.xhtml#ae9e37938664d6977e49593d1ec8f3dbd)();

<a id="l00069" name="l00069"></a> 69}



<a id="l00070" name="l00070"></a> 70 

<a id="l00071" name="l00071"></a>[ 71](structIRockyCloudPoint.xhtml#a79dfeecd7f7360ed1e25135ed54ed312)inline bool [IRockyCloudPoint::is\_valid](structIRockyCloudPoint.xhtml#a79dfeecd7f7360ed1e25135ed54ed312)() const

<a id="l00072" name="l00072"></a> 72{

<a id="l00073" name="l00073"></a> 73 return this-&gt;point_index != INVALID_POINT_CLOUD_POINT;

<a id="l00074" name="l00074"></a> 74}



[IRockyCloudPoint](structIRockyCloudPoint.xhtml)

**Definition** rocky_point_cloud_api.hpp:16



[IRockyCloudPoint::get\_position](structIRockyCloudPoint.xhtml#a1d06a1eb80ad0811ab2794f2a494fe17)

ROCKY_FUNCTIONS double3 get_position() const

**Definition** rocky_point_cloud_api.hpp:55



[IRockyCloudPoint::get\_property](structIRockyCloudPoint.xhtml#a51d29e82619836ed172e8f3135bf0f51)

ROCKY_FUNCTIONS _data_type get_property(int property_index) const

**Definition** rocky_point_cloud_api.hpp:61



[IRockyCloudPoint::is\_valid](structIRockyCloudPoint.xhtml#a79dfeecd7f7360ed1e25135ed54ed312)

ROCKY_FUNCTIONS bool is_valid() const

**Definition** rocky_point_cloud_api.hpp:71



[IRockyCloudPoint::is\_enabled](structIRockyCloudPoint.xhtml#ae9e37938664d6977e49593d1ec8f3dbd)

ROCKY_FUNCTIONS bool is_enabled() const

**Definition** rocky_point_cloud_api.hpp:66