struct mola::NDT::TRenderOptions

Overview

Rendering options, used in getAs3DObject()

#include <NDT.h>

struct TRenderOptions: public mrpt::config::CLoadableOptions
{
    // fields

    bool points_visible = false;
    float point_size = 1.0f;
    mrpt::img::TColorf points_color {.0f, .0f, 1.0f};
    bool planes_visible = true;
    mrpt::img::TColorf planes_color {1.0f, .0f, 1.0f};
    bool normals_visible = true;
    mrpt::img::TColorf normals_color {1.0f, 0.0f, 0.0f};

    // methods

    void loadFromConfigFile(
        const mrpt::config::CConfigFileBase& source,
        const std::string& section
        );

    void dumpToTextStream(std::ostream& out) const;
    void writeToStream(mrpt::serialization::CArchive& out) const;
    void readFromStream(mrpt::serialization::CArchive& in);
};

Methods

void writeToStream(mrpt::serialization::CArchive& out) const

Binary dump to stream - used in derived classes’ serialization

void readFromStream(mrpt::serialization::CArchive& in)

Binary dump to stream - used in derived classes’ serialization