41 std::ostringstream ostr;
42 ostr <<
"(" << property<double>(
P_X) <<
", " << property<double>(
P_Y) <<
", "
43 << property<double>(
P_Z) <<
")";
Complex item holding mixed SessionItem types (single properties and other CompountItems).
T * addProperty(const std::string &name)
Adds property item of given type.
void setOnPropertyChange(Callbacks::item_str_t f, Callbacks::slot_t owner) override
Sets callback to be notified on item's property change.
The main object representing an editable/displayable/serializable entity.
SessionItem * setEditable(bool value)
Sets editable flag to given value (fluent interface).
bool setData(const T &value, int role=ItemDataRole::DATA, bool direct=false)
Sets data for a given role.
ItemMapper * mapper()
Returns item mapper. Allows subscribing to various events happening to the item.
static const std::string P_X
static const std::string P_Z
static const std::string P_Y
const model_type VectorItemType
const int DATA
main data role
materialitems.h Collection of materials to populate MaterialModel.