Solar
Public Member Functions | Friends | List of all members
SolAR::datastructure::PrimitiveInformation Class Reference

This component includes primitive informations such as confident score, semantic. More...

#include <PrimitiveInformation.h>

Inheritance diagram for SolAR::datastructure::PrimitiveInformation:
Inheritance graph
[legend]

Public Member Functions

 PrimitiveInformation ()
 PrimitiveInformation constructor.
 
 ~PrimitiveInformation ()=default
 PrimitiveInformation deconstruction.
 
bool isValid () const
 This method is to known an element being valid or not. More...
 
void setInvalid ()
 This method is to set an element being invalid.
 
void updateConfidence (bool isGood)
 This method updates the confident score of the primitive element. More...
 
float getConfidence () const
 This method returns the confident score of the primitive element. More...
 
uint32_t getUsedTime () const
 This method returns the number of used times of the primitive element. More...
 
const std::chrono::system_clock::time_point & getLastUpdateTime () const
 This method returns the last updated time of the primitive element. More...
 
void setLastUpdateTime (const std::chrono::system_clock::time_point &updateTime)
 This method updates the last updated time of the primitive element. More...
 
int getSemanticId () const
 This method returns the semantic id of the primitive element. More...
 
void setSemanticId (const int &semanticId)
 This method sets the semantic id of the primitive element. More...
 
template<typename Archive >
void serialize (Archive &ar, ATTRIBUTE(maybe_unused) const unsigned int version)
 

Friends

class boost::serialization::access
 

Detailed Description

This component includes primitive informations such as confident score, semantic.

Member Function Documentation

◆ getConfidence()

float SolAR::datastructure::PrimitiveInformation::getConfidence ( ) const

This method returns the confident score of the primitive element.

Returns
the confident score

◆ getLastUpdateTime()

const std::chrono::system_clock::time_point & SolAR::datastructure::PrimitiveInformation::getLastUpdateTime ( ) const

This method returns the last updated time of the primitive element.

Returns
the last updated time

◆ getSemanticId()

int SolAR::datastructure::PrimitiveInformation::getSemanticId ( ) const

This method returns the semantic id of the primitive element.

Returns
the semantic id

◆ getUsedTime()

uint32_t SolAR::datastructure::PrimitiveInformation::getUsedTime ( ) const

This method returns the number of used times of the primitive element.

Returns
the number of used times

◆ isValid()

bool SolAR::datastructure::PrimitiveInformation::isValid ( ) const

This method is to known an element being valid or not.

Returns
isValid value

◆ setLastUpdateTime()

void SolAR::datastructure::PrimitiveInformation::setLastUpdateTime ( const std::chrono::system_clock::time_point &  updateTime)

This method updates the last updated time of the primitive element.

Parameters
[in]updateTimethe update time. You can get current time by using std::chrono::system_clock::now()

◆ setSemanticId()

void SolAR::datastructure::PrimitiveInformation::setSemanticId ( const int &  semanticId)

This method sets the semantic id of the primitive element.

Parameters
semanticIdthe semantic id

◆ updateConfidence()

void SolAR::datastructure::PrimitiveInformation::updateConfidence ( bool  isGood)

This method updates the confident score of the primitive element.

Parameters
[in]isGoodit is true if the primitive element is considered as an inlier for this use. It is false in the otherwise.

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