Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Mantid::Crystal::OrEnabledWhenProperties Class Reference
Inheritance diagram for Mantid::Crystal::OrEnabledWhenProperties:
Mantid::Kernel::IPropertySettings

Public Member Functions

IPropertySettingsclone () const override
 Make a copy of the present type of IPropertySettings. More...
 
bool isEnabled (const IPropertyManager *algo) const override
 Is the property to be shown as "enabled" in the GUI. More...
 
 OrEnabledWhenProperties (std::string prop1Name, ePropertyCriterion prop1Crit, std::string prop1Value, std::string prop2Name, ePropertyCriterion prop2Crit, std::string prop2Value)
 
 ~OrEnabledWhenProperties () override=default
 
- Public Member Functions inherited from Mantid::Kernel::IPropertySettings
virtual void applyChanges (const IPropertyManager *, Property *const)
 The function user have to overload it in their custom code to modify the property according to the changes to other properties. More...
 
virtual IPropertySettingsclone () const =0
 Make a copy of the present type of IPropertySettings. More...
 
 IPropertySettings ()=default
 Constructor. More...
 
virtual bool isConditionChanged (const IPropertyManager *algo, const std::string &changedPropName="") const
 to verify if the properties, this one depends on have changed or other special condition occurs which needs the framework to react to More...
 
virtual bool isEnabled (const IPropertyManager *algo) const
 Is the property to be shown as "enabled" in the GUI. More...
 
virtual bool isVisible (const IPropertyManager *algo) const
 Is the property to be shown in the GUI? Default true. More...
 
virtual ~IPropertySettings ()=default
 Destructor. More...
 

Private Attributes

ePropertyCriterion Criteria1
 
ePropertyCriterion Criteria2
 
std::unique_ptr< Kernel::EnabledWhenPropertyProp1
 
std::unique_ptr< Kernel::EnabledWhenPropertyProp2
 
std::string propName1
 
std::string propName2
 
std::string value1
 
std::string value2
 

Additional Inherited Members

- Protected Member Functions inherited from Mantid::Kernel::IPropertySettings
 IPropertySettings (const IPropertySettings &)=default
 

Detailed Description

Definition at line 43 of file OptimizeCrystalPlacement.cpp.

Constructor & Destructor Documentation

◆ OrEnabledWhenProperties()

Mantid::Crystal::OrEnabledWhenProperties::OrEnabledWhenProperties ( std::string  prop1Name,
ePropertyCriterion  prop1Crit,
std::string  prop1Value,
std::string  prop2Name,
ePropertyCriterion  prop2Crit,
std::string  prop2Value 
)
inline

Definition at line 45 of file OptimizeCrystalPlacement.cpp.

◆ ~OrEnabledWhenProperties()

Mantid::Crystal::OrEnabledWhenProperties::~OrEnabledWhenProperties ( )
overridedefault

Member Function Documentation

◆ clone()

IPropertySettings * Mantid::Crystal::OrEnabledWhenProperties::clone ( ) const
inlineoverridevirtual

Make a copy of the present type of IPropertySettings.

Implements Mantid::Kernel::IPropertySettings.

Definition at line 58 of file OptimizeCrystalPlacement.cpp.

◆ isEnabled()

bool Mantid::Crystal::OrEnabledWhenProperties::isEnabled ( const IPropertyManager algo) const
inlineoverridevirtual

Is the property to be shown as "enabled" in the GUI.

Default true.

Reimplemented from Mantid::Kernel::IPropertySettings.

Definition at line 62 of file OptimizeCrystalPlacement.cpp.

Member Data Documentation

◆ Criteria1

ePropertyCriterion Mantid::Crystal::OrEnabledWhenProperties::Criteria1
private

Definition at line 68 of file OptimizeCrystalPlacement.cpp.

◆ Criteria2

ePropertyCriterion Mantid::Crystal::OrEnabledWhenProperties::Criteria2
private

Definition at line 68 of file OptimizeCrystalPlacement.cpp.

◆ Prop1

std::unique_ptr<Kernel::EnabledWhenProperty> Mantid::Crystal::OrEnabledWhenProperties::Prop1
private

Definition at line 70 of file OptimizeCrystalPlacement.cpp.

◆ Prop2

std::unique_ptr<Kernel::EnabledWhenProperty> Mantid::Crystal::OrEnabledWhenProperties::Prop2
private

Definition at line 70 of file OptimizeCrystalPlacement.cpp.

◆ propName1

std::string Mantid::Crystal::OrEnabledWhenProperties::propName1
private

Definition at line 67 of file OptimizeCrystalPlacement.cpp.

◆ propName2

std::string Mantid::Crystal::OrEnabledWhenProperties::propName2
private

Definition at line 67 of file OptimizeCrystalPlacement.cpp.

◆ value1

std::string Mantid::Crystal::OrEnabledWhenProperties::value1
private

Definition at line 69 of file OptimizeCrystalPlacement.cpp.

◆ value2

std::string Mantid::Crystal::OrEnabledWhenProperties::value2
private

Definition at line 69 of file OptimizeCrystalPlacement.cpp.


The documentation for this class was generated from the following file: