|
| smtkTypeMacro (smtk::attribute::IntItemDefinition) |
|
Item::Type | type () const override |
|
smtk::attribute::ItemPtr | buildItem (Attribute *owningAttribute, int itemPosition) const override |
|
smtk::attribute::ItemPtr | buildItem (Item *owningItem, int position, int subGroupPosition) const override |
|
smtk::attribute::ItemDefinitionPtr | createCopy (smtk::attribute::ItemDefinition::CopyInfo &info) const override |
|
const int & | defaultValue () const |
|
const int & | defaultValue (std::size_t element) const |
|
const std::vector< int > & | defaultValues () const |
|
bool | setDefaultValue (const int &val) |
| Set the default value for an attribute.
|
|
bool | setDefaultValue (const std::vector< int > &val) |
| Set the default value for an attribute. More...
|
|
const int & | discreteValue (std::size_t element) const |
|
void | addDiscreteValue (const int &val) |
|
void | addDiscreteValue (const int &val, const std::string &discreteEnum) |
|
void | clearDiscreteValues () |
|
bool | hasRange () const override |
|
bool | hasMinRange () const |
|
const int & | minRange () const |
|
bool | minRangeInclusive () const |
|
bool | setMinRange (const int &minVal, bool isInclusive) |
|
bool | hasMaxRange () const |
|
const int & | maxRange () const |
|
bool | maxRangeInclusive () const |
|
bool | setMaxRange (const int &maxVal, bool isInclusive) |
|
void | clearRange () |
|
int | findDiscreteIndex (const int &val) const |
|
bool | isValueValid (const int &val) const |
|
| smtkTypeMacro (smtk::attribute::ValueItemDefinition) |
|
| ValueItemDefinition (const std::string &myname) |
|
const std::string & | units () const |
|
void | setUnits (const std::string &newUnits) |
|
bool | isDiscrete () const |
|
std::size_t | numberOfDiscreteValues () const |
|
const std::string & | discreteEnum (std::size_t ith) const |
|
bool | getEnumIndex (const std::string &enumVal, std::size_t &index) const |
|
int | defaultDiscreteIndex () const |
|
void | setDefaultDiscreteIndex (int discreteIndex) |
|
bool | allowsExpressions () const |
|
bool | isValidExpression (const smtk::attribute::AttributePtr &exp) const |
|
std::string | expressionType () const |
|
void | setExpressionType (const std::string &etype) |
|
void | setExpressionDefinition (const smtk::attribute::DefinitionPtr &exp) |
|
smtk::attribute::DefinitionPtr | expressionDefinition (const smtk::attribute::ResourcePtr &attResource) const |
|
void | buildExpressionItem (ValueItem *vitem) const |
|
void | buildChildrenItems (ValueItem *vitem) const |
|
bool | hasDefault () const |
|
virtual bool | hasRange () const =0 |
|
std::size_t | numberOfRequiredValues () const |
|
bool | setNumberOfRequiredValues (std::size_t esize) |
|
std::size_t | maxNumberOfValues () const |
|
bool | setMaxNumberOfValues (std::size_t esize) |
|
bool | isExtensible () const |
|
void | setIsExtensible (bool mode) |
|
bool | hasValueLabels () const |
|
bool | usingCommonLabel () const |
|
void | setValueLabel (std::size_t element, const std::string &elabel) |
|
void | setCommonValueLabel (const std::string &elabel) |
|
std::string | valueLabel (std::size_t element) const |
|
bool | isDiscreteIndexValid (int index) const |
|
std::size_t | numberOfChildrenItemDefinitions () const |
| For conditional children items based on the item's current discrete value.
|
|
const std::map< std::string, smtk::attribute::ItemDefinitionPtr > & | childrenItemDefinitions () const |
|
bool | hasChildItemDefinition (const std::string &itemName) const |
|
bool | hasChildItemDefinition (const std::string &valueName, const std::string &itemName) |
|
bool | addChildItemDefinition (smtk::attribute::ItemDefinitionPtr cdef) |
|
bool | addItemDefinition (smtk::attribute::ItemDefinitionPtr cdef) |
|
template<typename T > |
smtk::internal::shared_ptr_type< T >::SharedPointerType | addItemDefinition (const std::string &idName) |
|
bool | addConditionalItem (const std::string &enumValue, const std::string &itemName) |
|
std::vector< std::string > | conditionalItems (const std::string &enumValue) const |
|
std::vector< std::string > | relevantEnums (bool includeCategories, const std::set< std::string > &testCategories, bool includeReadAccess, unsigned int readAccessLevel) const |
| Return the enum strings that pass a set of categories and/or specified advance read access level.
|
|
void | setEnumCategories (const std::string &enumValue, const smtk::attribute::Categories::Set &cats) |
| Set/Get the set of categories associated with a value Enum.
|
|
void | addEnumCategory (const std::string &enumValue, const std::string &cat) |
| Set/Get the set of categories associated with a value Enum.
|
|
const smtk::attribute::Categories::Set & | enumCategories (const std::string &enumValue) const |
| Set/Get the set of categories associated with a value Enum.
|
|
void | setEnumAdvanceLevel (const std::string &enumValue, unsigned int level) |
| Set/Get advance level associated with associated with a value Enum.
|
|
void | unsetEnumAdvanceLevel (const std::string &enumValue) |
| Set/Get advance level associated with associated with a value Enum.
|
|
unsigned int | enumAdvanceLevel (const std::string &enumValue) const |
| Set/Get advance level associated with associated with a value Enum.
|
|
bool | hasEnumAdvanceLevel (const std::string &enumValue) const |
| Set/Get advance level associated with associated with a value Enum.
|
|
const std::map< std::string, unsigned int > | enumAdvanceLevelInfo () const |
| Set/Get advance level associated with associated with a value Enum.
|
|
| smtkTypeMacroBase (smtk::attribute::ItemDefinition) |
|
const std::string & | name () const |
|
const std::string & | label () const |
|
void | setLabel (const std::string &newLabel) |
|
int | version () const |
|
void | setVersion (int myVersion) |
|
bool | isOptional () const |
|
void | setIsOptional (bool isOptionalValue) |
|
bool | isEnabledByDefault () const |
|
void | setIsEnabledByDefault (bool isEnabledByDefaultValue) |
|
const smtk::attribute::Categories & | categories () const |
| Returns the categories (both explicitly assigned and inherited) associated to the Item Definition. More...
|
|
smtk::attribute::Categories::Set & | localCategories () |
| Returns the categories::Set explicitly assigned to the Items Definition.
|
|
const smtk::attribute::Categories::Set & | localCategories () const |
|
void | setLocalCategories (const smtk::attribute::Categories::Set &catSet) |
| Sets the local categories. More...
|
|
unsigned int | advanceLevel (int mode=0) const |
|
unsigned int | localAdvanceLevel (int mode=0) const |
|
void | setLocalAdvanceLevel (int mode, unsigned int level) |
|
void | setLocalAdvanceLevel (unsigned int level) |
|
void | unsetLocalAdvanceLevel (int mode=0) |
|
bool | hasLocalAdvanceLevelInfo (int mode=0) const |
|
const std::string & | detailedDescription () const |
|
void | setDetailedDescription (const std::string &text) |
|
const std::string & | briefDescription () const |
|
void | setBriefDescription (const std::string &text) |
|
const Tags & | tags () const |
| return the smtk::attribute::Tags associated with the Definition
|
|
Categories::CombinationMode | categoryInheritanceMode () const |
| Determines how the Definition should combine its local category Set with the category constraints being inherited from it's owning Attribute or Item Definition.
|
|
void | setCategoryInheritanceMode (Categories::CombinationMode mode) |
| Determines how the Definition should combine its local category Set with the category constraints being inherited from it's owning Attribute or Item Definition.
|
|
const Tag * | tag (const std::string &name) const |
| Return a pointer to a smtk::attribute::Tag with a given name. If the Tag does not exist, return a null pointer.
|
|
Tag * | tag (const std::string &name) |
| Return a pointer to a smtk::attribute::Tag with a given name. If the Tag does not exist, return a null pointer.
|
|
bool | addTag (const Tag &tag) |
| Add/Remove a smtk::attribute::Tag from a Definition.
|
|
bool | removeTag (const std::string &name) |
| Add/Remove a smtk::attribute::Tag from a Definition.
|
|