# namespace hiro::modules

## Overview

Default modules included directly in the library. More…

    namespace modules {

    // typedefs

    typedef std::shared_ptr<ImageResource> PImageResource;
    typedef std::shared_ptr<hiro::modules::MeshResource> PMeshResource;
    typedef std::shared_ptr<hiro::modules::PointCloudResource> PPointCloudResource;
    typedef std::shared_ptr<ScanResource> PScanResource;
    typedef std::shared_ptr<hiro::modules::SkeletonResource> PSkeletonResource;

    // classes

    class GeometryGadget;
    class GeometryResource;
    class GraphResource;
    class GuiResource;
    class ImageResource;
    class MeshResource;
    class PointCloudResource;
    class ScanResource;
    class SkeletonResource;

    // global functions

    HIRO_API PImageResource AddImage(const std::string& name, const std::string& file_path);
    HIRO_API PImageResource AddImage(const std::string& name, const glw::PTexture2D& texture);
    HIRO_API hiro::modules::PMeshResource AddMesh(const std::string& name, const cogs::Mesh& mesh);
    HIRO_API PPointCloudResource AddPointCloud(const std::string& name, const cogs::PointCloud& pc);
    HIRO_API PScanResource AddScan(const std::string& name, const cogs::Scan& sc);
    HIRO_API PSkeletonResource AddSkeleton(const std::string& name, const cogs::Skeleton& skeleton);
    HIRO_API PSkeletonResource AddSkeleton(const std::string& name, const cogs::Skeleton& skeleton, const cogs::SkeletonAction& action);

    } // namespace modules

## Detailed Documentation

Default modules included directly in the library.

### Typedefs

    typedef std::shared_ptr<hiro::modules::MeshResource> PMeshResource

Shared pointer to an object of the type MeshResource.

    typedef std::shared_ptr<hiro::modules::PointCloudResource> PPointCloudResource

Shared pointer to an object of the type PointCloudResource.

    typedef std::shared_ptr<ScanResource> PScanResource

Shared pointer to an object of the type ScanResource.

    typedef std::shared_ptr<hiro::modules::SkeletonResource> PSkeletonResource

Shared pointer to an object of the type SkeletonResource.

### Global Functions

    HIRO_API hiro::modules::PMeshResource AddMesh(const std::string& name, const cogs::Mesh& mesh)

Creates new mesh resource from the specified and adds it to HIRO.

    HIRO_API PPointCloudResource AddPointCloud(const std::string& name, const cogs::PointCloud& pc)

Creates new point cloud resource from the specified and adds it to HIRO.

    HIRO_API PScanResource AddScan(const std::string& name, const cogs::Scan& sc)

Creates new point cloud resource from the specified and adds it to HIRO.

    HIRO_API PSkeletonResource AddSkeleton(const std::string& name, const cogs::Skeleton& skeleton)

Creates new skeleton resource from the specified cogs::Skeleton and adds it to HIRO.

    HIRO_API PSkeletonResource AddSkeleton(const std::string& name, const cogs::Skeleton& skeleton, const cogs::SkeletonAction& action)

Creates new skeleton resource from the specified cogs::Skeleton, assigns it an action and adds it to HIRO.