SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Classes | Enumerations | Functions
smtk::extension::qt Namespace Reference

Extensions that expose SMTK data in Qt UI components. More...

Classes

class  Launcher
 qtOperationLauncher has all of the Qt-integrated functionality we require; smtk's operation launchers are stored in std::maps, however, requiring that launchers support copy construction. More...
 
class  MembershipBadge
 A badge that lets the user choose from a set of objects. More...
 
class  TypeAndColorBadge
 A badge that illustrates the type and set the color of a persistent object. More...
 
class  VisibilityBadge
 An empty base class for badges controlling visibility of objects (in other views). More...
 

Enumerations

enum  MembershipCriteria {
  MembershipCriteria::All, MembershipCriteria::Components, MembershipCriteria::ComponentsWithGeometry, MembershipCriteria::Objects,
  MembershipCriteria::ObjectsWithGeometry, MembershipCriteria::Resources, MembershipCriteria::ResourcesWithGeometry
}
 Rules for determining which phrases a membership badge applies to. More...
 

Functions

std::string membershipCriteriaName (const MembershipCriteria &mc)
 A type-conversion operation to cast enumerants to strings.
 
MembershipCriteria membershipCriteriaEnum (const std::string &mcn)
 A type-conversion operation to cast strings to enumerants.
 
void RedirectOutputToQt (QObject *context, smtk::io::Logger &log)
 
smtk::resource::FloatList colorValue (smtk::resource::ComponentPtr component)
 
QColor getPhraseColor (const smtk::view::DescriptivePhrase *item)
 
bool editColorValue (smtk::view::PhraseModelPtr model, smtk::resource::ComponentPtr component, const resource::FloatList &val)
 

Detailed Description

Extensions that expose SMTK data in Qt UI components.

Enumeration Type Documentation

◆ MembershipCriteria

Rules for determining which phrases a membership badge applies to.

Enumerator
All 

All descriptive phrases should have a membership badge.

Components 

All phrases with a related component.

ComponentsWithGeometry 

Like Components, but restricted to components with renderable geometry.

Objects 

All descriptive phrases with a related persistent object should have a badge.

ObjectsWithGeometry 

Like Objects, but restricted to objects with renderable geometry.

Resources 

All phrases with a related resource but not a related component.

ResourcesWithGeometry 

Like Resources, but restricted to resources with renderable geometry.