41 EXPECT_TRUE(item.
dataItem() ==
nullptr);
54 colormap_item->setDataItem(data_item);
56 EXPECT_EQ(colormap_item->dataItem(), data_item);
69 EXPECT_CALL(widget, onDataChange(_, _)).Times(0);
71 EXPECT_CALL(widget, onChildPropertyChange(_, _)).Times(0);
72 EXPECT_CALL(widget, onItemInserted(_, _)).Times(0);
73 EXPECT_CALL(widget, onAboutToRemoveItem(_, _)).Times(0);
76 colormap_item->setDataItem(data_item);
Two-dimensional color map representation of Data2DItem.
static const std::string P_INTERPOLATION
static const std::string P_LINK
static const std::string P_GRADIENT
Data2DItem * dataItem() const
Returns data item linked to the given ColorMapItem.
Custom property to define list of string values with multiple selections.
std::string value() const
Represents two-dimensional data (axes definition and 2d array of values).
T property(const std::string &tag) const
Returns data stored in property item.
Main class to hold hierarchy of SessionItem objects.
T * insertItem(SessionItem *parent=nullptr, const TagRow &tagrow={})
Inserts item into given parent under given tagrow.
TEST_F(ColorMapItemTest, initialState)
Initial state.
materialitems.h Collection of materials to populate MaterialModel.