Skip to content

Plotting custom types and structs as values #53

Description

@CrustyAuklet

I have a type that looks something like this:

```c++
class CAttenEntry {
    float   m_atten = -1.0f;
public:
    CAttenEntry() : m_atten( -1 ) {}
    float    atten() const         { return m_atten >= 0 ? m_atten : 0.5f; }
    bool    calculated() const  { return m_atten >= 0; }
    operator double() const   {  return atten(); }
};

I added the operator double() function to try to get the value to plot in this extension, but I can't get it to work so far. The values are in a C-style array, but I have tried copying the values into a vector and that still doesn't work. As of now I am copying the atten() values to a vector every time the array changes and that "works", but is very slow.

Using C++ and Visual Studio 2019

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions