# struct hiro::draw::LineFieldStyle

## Overview

Stylization of the rendered line field. More…

    #include <LineFieldRenderer.h>

    struct LineFieldStyle: public hiro::draw::Style {
        // enums

        enum ColorSource;

        // fields

        float thickness { 1.0f };
        hiro::draw::LineFieldStyle::ColorSource color_source { hiro::draw::LineFieldStyle::ColorSource::fixed };
        cogs::Color3f fixed_color { cogs::color::GRAY50 };
        glw::ArrayObject::BufferName custom_cl_buf { glw::ArrayObject::INVALID_NAME };

        // methods

        virtual bool ReadFromStream(std::istream& str);
        virtual void WriteToStream(std::ostream& str);
    };

### Inherited Members

    public:
        // fields

        bool visible = true;
        cogs::Transform transform;

        // methods

        virtual bool ReadFromStream(std::istream& str);
        virtual void WriteToStream(std::ostream& str);

    protected:
        // methods

        bool ReadVersion(std::istream& str, const uint32_t expected_version);

## Detailed Documentation

Stylization of the rendered line field.

### Fields

    float thickness { 1.0f }

Specifies thickness of a lines.

    hiro::draw::LineFieldStyle::ColorSource color_source { hiro::draw::LineFieldStyle::ColorSource::fixed }

Specifies, from where line colors should be obtained.

    cogs::Color3f fixed_color { cogs::color::GRAY50 }

Default fixed color for the lines. Used when color source set to ColorSource::fixed.

    glw::ArrayObject::BufferName custom_cl_buf { glw::ArrayObject::INVALID_NAME }

Name of buffer used to get custom colors. Used when color source set to ColorSource::custom.

### Methods

    virtual bool ReadFromStream(std::istream& str)

Imports state from stream.

    virtual void WriteToStream(std::ostream& str)

Exports state to stream.