ImFusion C++ SDK 4.4.0
ImFusion::DataDescriptor::PixelwiseData Class Referencefinal
Inheritance diagram for ImFusion::DataDescriptor::PixelwiseData:

Public Member Functions

 PixelwiseData (DataDescriptor *, const Project::PixelwiseData *)
Utils::Expected< std::unique_ptr< SharedImageSet >, std::stringloadLabelMap (Progress *progress) const
 Loads the labelmap file from disk or the server.
std::unique_ptr< SharedImageSetloadLabelMapVersion (int version, Progress *progress) const
 Retrieves the given label map version – only for remote projects.
bool saveLabelMap (const SharedImageSet &labels, bool hasData, const std::string &lockToken, Progress *progress)
QString dataPath () const override
QString projectId () const override
 Returns the ID of this layer as defined in the project.
QString thumbnailPath () const
Public Member Functions inherited from ImFusion::DataDescriptor::TypeSpecificData
void setHasData (bool b)
bool hasData () const
uint64_t & fileTimestamp ()
const uint64_t & fileTimestamp () const

Public Attributes

const Project::PixelwiseData *const m_projectData = nullptr

Additional Inherited Members

Protected Member Functions inherited from ImFusion::DataDescriptor::TypeSpecificData
 TypeSpecificData (DataDescriptor *)
Protected Attributes inherited from ImFusion::DataDescriptor::TypeSpecificData
bool m_hasData = false
uint64_t m_fileTimestamp = 0
DataDescriptor * m_dataDescriptor = nullptr

Member Function Documentation

◆ loadLabelMap()

Utils::Expected< std::unique_ptr< SharedImageSet >, std::string > ImFusion::DataDescriptor::PixelwiseData::loadLabelMap ( Progress * progress) const

Loads the labelmap file from disk or the server.

Returns a nullptr if the labelmap is completely empty. Throws an exception if the labelmap cannot be loaded due to an error.

◆ dataPath()

QString ImFusion::DataDescriptor::PixelwiseData::dataPath ( ) const
overridevirtual

◆ projectId()

QString ImFusion::DataDescriptor::PixelwiseData::projectId ( ) const
overridevirtual

Returns the ID of this layer as defined in the project.

Implements ImFusion::DataDescriptor::TypeSpecificData.


The documentation for this class was generated from the following file:
  • ImFusionLabels/lib/include/ImFusion/Labels/Core/DataDescriptor.h
Search Tab / S to search, Esc to close