SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
10 #ifndef smtk_view_PhraseListContent_h
11 #define smtk_view_PhraseListContent_h
13 #include "smtk/view/PhraseContent.h"
15 #include "smtk/model/Entity.h"
68 return (m_mutability &
static_cast<int>(attr)) != 0;
71 std::string stringValue(ContentType attr)
const override;
72 int flagValue(ContentType attr)
const override;
74 bool editStringValue(ContentType attr,
const std::string& val)
override;
75 bool editFlagValue(ContentType attr,
int val)
override;
92 auto comps = this->relatedComponents();
93 for (
auto comp : comps)
95 result.insert(result.end(), dynamic_pointer_cast<typename T::value_type::element_type>(comp));
117 void setMutability(
int whatsMutable);
135 int m_mutability{ 0 };
138 mutable std::string m_title;
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
An abstract base class for obtaining descriptive phrase information.
Definition: PhraseContent.h:38
bool editable(ContentType attr) const override
Is attr editable or fixed (for information/display only)?
Definition: PhraseListContent.h:66
unsigned int BitFlags
The integer type used to hold bit values describing an entity's type.
Definition: EntityTypeBits.h:25
@ INVALID
The entity is invalid.
Definition: EntityTypeBits.h:169
smtk::model::BitFlags commonModelFlags() const
Return the bit-vector common to all smtk::model children in this list.
Definition: PhraseListContent.h:112
std::vector< smtk::view::DescriptivePhrasePtr > DescriptivePhrases
Definition: PublicPointerDefs.h:624
ContentType
Accepted types of content.
Definition: PhraseContent.h:45
#define smtkTypeMacro(...)
Add typedefs to a class for identifcation.
Definition: SharedFromThis.h:128
smtk::model::BitFlags unionModelFlags() const
Return the bit-vector holding the union of all smtk::model children in this list.
Definition: PhraseListContent.h:115
std::vector< smtk::resource::ComponentPtr > ComponentArray
Definition: PublicPointerDefs.h:313
T relatedComponentsAs() const
A convenience method for obtaining related components in a user-specified container.
Definition: PhraseListContent.h:89
#define smtkSharedPtrCreateMacro(...)
A convenience macro for declaring shared_from_this and create methods.
Definition: SharedFromThis.h:267
smtk::shared_ptr< smtk::view::DescriptivePhrase > DescriptivePhrasePtr
Definition: PublicPointerDefs.h:620
void setCustomTitle(const std::string &title)
This method is for subphrase generators that wish to customize the list title.
Definition: PhraseListContent.h:125
Describe a list of child phrases to the user.
Definition: PhraseListContent.h:33