43 addProperty<ModelView::VectorItem>(
P_POSITION);
44 addProperty<ShapeGroupItem>(
P_SHAPES);
102 registerItem<CylinderItem>(
"Cylinder");
103 registerItem<SphereItem>(
"Full sphere",
true);
104 registerItem<AnysoPyramidItem>(
"Anysotropical pyramid");
static ComboProperty createFrom(const std::vector< std::string > &values, const std::string ¤t_value={})
T * addProperty(const std::string &name)
Adds property item of given type.
void init_group()
Inits group item by creating all registered items and constructing combo property for switching betwe...
void setOnPropertyChange(Callbacks::item_str_t f, Callbacks::slot_t owner) override
Sets callback to be notified on item's property change.
SessionItem * getItem(const std::string &tag, int row=0) const
Returns item at given row of given tag.
void registerTag(const TagInfo &tagInfo, bool set_as_default=false)
Registers tag to hold items under given name.
ItemMapper * mapper()
Returns item mapper. Allows subscribing to various events happening to the item.
T property(const std::string &tag) const
Returns data stored in property item.
static TagInfo universalTag(std::string name, std::vector< std::string > modelTypes={})
Constructs universal tag intended for unlimited amount of various items.
static const std::string P_HEIGHT
static const std::string P_LENGTH
static const std::string P_ALPHA
static const std::string P_WIDTH
static const std::string P_HEIGHT
static const std::string P_RADIUS
static const std::string P_ROTATION_ANLE
static const std::string P_LATTICE_TYPE
static const std::string P_INTEGRATION
static const std::string T_PARTICLES
static const std::string P_COLOR
static const std::string P_THICKNESS
static const std::string T_LAYERS
static const std::string P_SHAPES
static const std::string P_POSITION
static const std::string P_RADIUS
const ModelView::model_type LayerItemType
const ModelView::model_type SphereItemType
const ModelView::model_type CylinderItemType
const ModelView::model_type LatticeItemType
const ModelView::model_type ShapeGroupItemType
const ModelView::model_type ParticleItemType
const ModelView::model_type AnysoPyramidItemType
Collection of toy items and models for testing purposes.
const std::string MultiLayerItemType
const std::string LayerItemType