kDB: Knowledge DataBase
Loading...
Searching...
No Matches
kDBPointClouds::PointSpecification Class Reference

Classes

struct  Dimension
 
struct  Private
 

Public Types

enum class  DataType {
  UnsignedInteger8 , Integer8 , UnsignedInteger16 , Integer16 ,
  UnsignedInteger32 , Integer32 , UnsignedInteger64 , Integer64 ,
  Float32 , Float64
}
 
enum class  CompressionMode { None , Dimensional , GHT }
 
enum class  StandardType : int { XYZf , XYZfRGBui8 , FirstCustomType = 100 }
 

Public Member Functions

 PointSpecification (int _pcid, const Cartography::CoordinateSystem &_coordinates)
 
 PointSpecification (const PointSpecification &_specification, const Cartography::CoordinateSystem &_coordinates)
 
 PointSpecification (const PointSpecification &_rhs)
 
PointSpecificationoperator= (const PointSpecification &_rhs)
 
bool operator== (const PointSpecification &_rhs) const
 
CompressionMode compressionMode () const
 
void setCompressionMode (CompressionMode _mode)
 
void addDimension (DataType _type, const QString &_name, const QString &_description, double _scale)
 
QList< Dimensiondimensions () const
 
QString toXML () const
 
cres_qresult< void > loadFromXML (const QString &_xml)
 
cres_qresult< void > load (const kDB::Repository::Connection &_connection)
 
bool save (const kDB::Repository::Connection &_connection)
 
bool synchronise (const kDB::Repository::Connection &_connection)
 
Cartography::CoordinateSystem coordinateSystem () const
 
int pcid () const
 
std::size_t size () const
 
bool isValid () const
 
cres_qresult< QByteArray > md5 () const
 

Static Public Member Functions

static PointSpecification get (const kDB::Repository::Connection &_connection, StandardType _type, const Cartography::CoordinateSystem &_coordinates)
 
static PointSpecification get (const kDB::Repository::Connection &_connection, int _pcid)
 
static PointSpecification find (const kDB::Repository::Connection &_connection, const PointSpecification &_spec)
 
static cres_qresult< PointSpecificationfromXML (const QString &_xml)
 

Constructor & Destructor Documentation

◆ PointSpecification() [1/2]

PointSpecification::PointSpecification ( int _pcid,
const Cartography::CoordinateSystem & _coordinates )

Create a point specification with a given connection and identifier. If the specification already exists in the database, it will be loaded, in which case the srid will also be loaded from the database.

◆ PointSpecification() [2/2]

PointSpecification::PointSpecification ( const PointSpecification & _specification,
const Cartography::CoordinateSystem & _coordinates )

Create a point specification based on an existing one but with a different coordinate system

Member Function Documentation

◆ fromXML()

cres_qresult< PointSpecification > PointSpecification::fromXML ( const QString & _xml)
static

Convert from a XML representation

◆ isValid()

bool PointSpecification::isValid ( ) const
Returns
if it is a valid point specification

◆ load()

cres_qresult< void > PointSpecification::load ( const kDB::Repository::Connection & _connection)

Load the definition from a database. Using the pcid. It will override the srid and the dimensions.

◆ save()

bool PointSpecification::save ( const kDB::Repository::Connection & _connection)

Save the definition to a database.

◆ size()

std::size_t PointSpecification::size ( ) const
Returns
the storage size of a point using that specification

◆ synchronise()

bool PointSpecification::synchronise ( const kDB::Repository::Connection & _connection)

Check if available in the database and then update srid, or save in the database.

◆ toXML()

QString PointSpecification::toXML ( ) const

Convert to XML representation


The documentation for this class was generated from the following files: