You've already forked nodeeditor
mirror of
https://github.com/AxioDL/nodeeditor.git
synced 2026-03-30 11:48:31 -07:00
43 lines
744 B
C++
43 lines
744 B
C++
#pragma once
|
|
|
|
#include <nodes/NodeDataModel>
|
|
|
|
using QtNodes::NodeDataType;
|
|
|
|
/// The class can potentially incapsulate any user data which
|
|
/// need to be transferred within the Node Editor graph
|
|
class ExpressionBoolData : public NodeData
|
|
{
|
|
public:
|
|
|
|
ExpressionBoolData()
|
|
{}
|
|
|
|
ExpressionBoolData(QString const & text,
|
|
std::vector<bool> const &range)
|
|
: _expression(text)
|
|
, _range(range)
|
|
{}
|
|
|
|
NodeDataType
|
|
type() const override
|
|
{
|
|
return NodeDataType {"ExpressionBool",
|
|
"B"};
|
|
}
|
|
|
|
QString const &
|
|
expression() const
|
|
{ return _expression; }
|
|
|
|
std::vector<bool> const &
|
|
range() const
|
|
{ return _range; }
|
|
|
|
private:
|
|
|
|
QString _expression;
|
|
|
|
std::vector<bool> _range;
|
|
};
|