SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
11 #ifndef smtk_extension_paraview_appcomponents_VisibilityBadge_h
12 #define smtk_extension_paraview_appcomponents_VisibilityBadge_h
14 #include "smtk/extension/paraview/appcomponents/smtkPQComponentsExtModule.h"
15 #include "smtk/extension/qt/VisibilityBadge.h"
20 #include "smtk/view/Badge.h"
21 #include "smtk/view/BadgeSet.h"
22 #include "smtk/view/Configuration.h"
23 #include "smtk/view/DescriptivePhrase.h"
24 #include "smtk/view/PhraseModel.h"
31 class pqRepresentation;
39 namespace appcomponents
63 return std::string(
"Click to toggle visibility");
65 std::string icon(
const DescriptivePhrase* phrase,
const std::array<float, 4>&)
const override;
68 bool action(
const DescriptivePhrase* phrase,
const BadgeAction& act)
override;
71 void setPhraseVisibility(
const DescriptivePhrase* phrase,
int val);
72 bool phraseVisibility(
const DescriptivePhrase* phrase)
const;
76 void activeViewChanged(
pqView* view);
77 void representationAddedToActiveView(pqRepresentation* rep);
78 void representationRemovedFromActiveView(pqRepresentation* rep);
87 std::string m_iconClosed;
89 std::map<smtk::common::UUID, int> m_visibleThings;
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
A base class for descriptive-phrase badges.
Definition: Badge.h:78
Definition: RespondToVTKSelection.cxx:39
A container for the badges that apply to a view.
Definition: BadgeSet.h:32
std::string tooltip(const DescriptivePhrase *) const override
Return a tool-tip string for the badge that is relevant to this phrase.
Definition: VisibilityBadge.h:61
#define smtkCreateMacro(...)
Add static create() methods to a class.
Definition: SharedFromThis.h:173
#define smtkSharedFromThisMacro(...)
A macro to help with derived classes whose bases enable shared_from_this().
Definition: SharedFromThis.h:250
An empty base class for badges controlling visibility of objects (in other views).
Definition: VisibilityBadge.h:44
Hold and maintain a descriptive phrase hierarchy.
Definition: PhraseModel.h:101
#define smtkTypeMacro(...)
Add typedefs to a class for identifcation.
Definition: SharedFromThis.h:128
Definition: VisibilityBadge.h:42
A base class for phrases describing an SMTK model.
Definition: DescriptivePhrase.h:76
#define smtkSuperclassMacro(...)
Add a typedef to the superclass of this class.
Definition: SharedFromThis.h:147
Configure one item in a view, which may contain children.
Definition: Configuration.h:32
A base class for actions taken on badges.
Definition: Badge.h:34
Macros for dealing with shared-pointer classes.
smtk::shared_ptr< smtk::resource::Component > ComponentPtr
Definition: PublicPointerDefs.h:304