 |
RDB 2
|
#include <iostream>
#include <exception>
int main()
{
try
{
{
rdb.
create(
"pointcloud.rdbx", settings);
}
{
"Initialization",
"Example program v1.0"
);
{
attribute.
name =
"riegl.reflectance";
attribute.
title =
"Reflectance";
}
{
attribute.
name =
"riegl.rgba";
attribute.
title =
"True Color";
attribute.
description =
"Point color acquired by camera";
}
{
}
{
}
}
return 0;
}
{
std::cerr << error.
what() <<
" (" << error.
details() <<
")" << std::endl;
return 1;
}
catch(const std::exception &error)
{
std::cerr << error.what() << std::endl;
return 1;
}
}
void add(const PointAttribute &attribute)
Add new attribute.
Point attribute description.
void create(const std::string &location, const pointcloud::CreateSettings &settings)
Create new database.
riegl::rdb::pointcloud::PointAttribute primaryAttribute
Primary point attribute.
double minimumValue
theoretical minimum value
virtual const char * details() const RDB_NO_EXCEPT
Get error details.
void commit()
Commit transaction.
double defaultValue
default value (minimum <= default <= maximum)
std::uint8_t storageClass
storage class
std::string unitSymbol
physical unit symbol (e.g. "m", "rad", "K"), string size limits: [0, 100]
virtual const char * what() const RDB_NO_EXCEPT
Get error text.
std::uint32_t chunkSize
Point chunk size.
std::uint8_t compressionLevel
Data compression level.
Point cloud transaction scope helper class.
Main point cloud database class.
Main RDB library include file.
value can change from time to time
double resolution
expected value resolution
std::uint32_t length
number of dimensions/elements (1: scalar, >1: vector, e.g. 3 for point coordinates)
Master include file for RIEGL defaults.
std::uint32_t chunkMode
Point chunk mode.
std::string title
attribute title (for display), string size limits: [1, 100]
Database create settings.
pointcloud::PointAttributes & pointAttribute()
Manage point attributes.
std::string description
attribute description (for display), string size limits: [0, 5000]
double maximumValue
theoretical maximum value
std::string name
unique attribute name (for queries)