class hiro::modules::GraphResource — HIRO 0.7.0 documentation

# class hiro::modules::GraphResource

## Overview

    #include <GraphResource.h>

    class GraphResource: public hiro::Resource {
    public:
        // construction

        GraphResource(const std::string& name);

        // methods

        void SetData(const std::vector<float>& values_y);
        void SetData(const std::vector<glm::vec2>& values);
        const std::vector<glm::vec2>& GetData() const;
        virtual hiro::PGadget CreateGadget();
    };

### Inherited Members

    public:
        // fields

        const hiro::ResourceId ID;

        // methods

        virtual hiro::PGadget CreateGadget() = 0;
        void ResetGadgets();
        virtual void Update(float delta_time);

    protected:
        // methods

        void DrawOnNextUpdate() const;

## Detailed Documentation

### Methods

    virtual hiro::PGadget CreateGadget()

Override this method to create custom Gadget type objects.