EPointCloud::FillAttributeBuffer
Allocates and copies the data to the attribute buffer.
Namespace: Euresys::Open_eVision::Easy3D
[C++]
void FillAttributeBuffer(
int attribute,
const std::vector<OEV_UINT8>& data
)
void FillAttributeBuffer(
int attribute,
const std::vector<OEV_UINT8>& data,
OEV_UINT8 defaultValue
)
void FillAttributeBuffer(
int attribute,
const std::vector<OEV_UINT16>& data
)
void FillAttributeBuffer(
int attribute,
const std::vector<OEV_UINT16>& data,
OEV_UINT16 defaultValue
)
void FillAttributeBuffer(
int attribute,
const std::vector<OEV_UINT32>& data
)
void FillAttributeBuffer(
int attribute,
const std::vector<OEV_UINT32>& data,
OEV_UINT32 defaultValue
)
void FillAttributeBuffer(
int attribute,
const std::vector<int>& data
)
void FillAttributeBuffer(
int attribute,
const std::vector<int>& data,
int defaultValue
)
void FillAttributeBuffer(
int attribute,
const std::vector<float>& data
)
void FillAttributeBuffer(
int attribute,
const std::vector<float>& data,
float defaultValue
)
void FillAttributeBuffer(
int attribute,
const std::vector<double>& data
)
void FillAttributeBuffer(
int attribute,
const std::vector<double>& data,
double defaultValue
)
void FillAttributeBuffer(
int attribute,
const std::vector<Euresys::Open_eVision::EC24A>& data
)
void FillAttributeBuffer(
int attribute,
const std::vector<Euresys::Open_eVision::EC24A>& data,
const EC24A& defaultValue
)
void FillAttributeBuffer(
int attribute,
const std::vector<Euresys::Open_eVision::Easy3D::E3DPoint>& data
)
void FillAttributeBuffer(
int attribute,
const std::vector<Euresys::Open_eVision::Easy3D::E3DPoint>& data,
const E3DPoint& defaultValue
)
Parameters
attribute
The attribute buffer id. Either an E3DAttribute or an id returned by EPointCloud::AddCustomAttributeBuffer.
data
The address of the external attribute buffer. The buffer should be of the same length as the EPointCloud (see EPointCloud::NumPoints).
defaultValue
The value used to set the attribute when the EPointCloud grows (see EPointCloud::AddPoint, EPointCloud::AddPoints and EPointCloud::AddPointCloud).
Remarks
If the data type is not correct depending on the E3DAttribute, it throws an EException with an EError. An exception is also thrown if data is nullptr, if you don't want to specify the data, use EPointCloud::AllocateAttributeBuffer.
EPointCloud.FillAttributeBuffer
Allocates and copies the data to the attribute buffer.
Namespace: Euresys.Open_eVision.Easy3D
[C#]
void FillAttributeBuffer(
int attribute,
byte[] data
)
void FillAttributeBuffer(
int attribute,
byte[] data,
byte defaultValue
)
void FillAttributeBuffer(
int attribute,
ushort[] data
)
void FillAttributeBuffer(
int attribute,
ushort[] data,
ushort defaultValue
)
void FillAttributeBuffer(
int attribute,
uint[] data
)
void FillAttributeBuffer(
int attribute,
uint[] data,
uint defaultValue
)
void FillAttributeBuffer(
int attribute,
int[] data
)
void FillAttributeBuffer(
int attribute,
int[] data,
int defaultValue
)
void FillAttributeBuffer(
int attribute,
float[] data
)
void FillAttributeBuffer(
int attribute,
float[] data,
float defaultValue
)
void FillAttributeBuffer(
int attribute,
double[] data
)
void FillAttributeBuffer(
int attribute,
double[] data,
double defaultValue
)
void FillAttributeBuffer(
int attribute,
Euresys.Open_eVision.EC24A[] data
)
void FillAttributeBuffer(
int attribute,
Euresys.Open_eVision.EC24A[] data,
Euresys.Open_eVision.EC24A defaultValue
)
void FillAttributeBuffer(
int attribute,
Euresys.Open_eVision.Easy3D.E3DPoint[] data
)
void FillAttributeBuffer(
int attribute,
Euresys.Open_eVision.Easy3D.E3DPoint[] data,
Euresys.Open_eVision.Easy3D.E3DPoint defaultValue
)
Parameters
attribute
The attribute buffer id. Either an E3DAttribute or an id returned by EPointCloud::AddCustomAttributeBuffer.
data
The address of the external attribute buffer. The buffer should be of the same length as the EPointCloud (see EPointCloud::NumPoints).
defaultValue
The value used to set the attribute when the EPointCloud grows (see EPointCloud::AddPoint, EPointCloud::AddPoints and EPointCloud::AddPointCloud).
Remarks
If the data type is not correct depending on the E3DAttribute, it throws an EException with an EError. An exception is also thrown if data is nullptr, if you don't want to specify the data, use EPointCloud::AllocateAttributeBuffer.