Emergency 20 Dokumentation  4.2.0
em5::editor::FireMaterialDynamicEnumProvider Class Reference

Fire material dynamic enum provider class, knows how to display enums with "Semantic" = "enum:FireMaterial". More...

#include <FireMaterialDynamicEnumProvider.h>

Inheritance diagram for em5::editor::FireMaterialDynamicEnumProvider:
qsf::editor::DynamicEnumProvider qsf::Pluginable< DynamicEnumManager > qsf::PluginableBase qsf::Object

Public Member Functions

 FireMaterialDynamicEnumProvider (qsf::editor::DynamicEnumManager *dynamicEnumManager)
 Constructor. More...
 
virtual const std::string & getSemanticName () const override
 Return the name of the dynamic enum provider. More...
 
virtual const ValuePairListgetValues (bool rebuildCachedList) override
 Return a list of human readable strings and internal values associated with them. More...
 
- Public Member Functions inherited from qsf::editor::DynamicEnumProvider
 DynamicEnumProvider (DynamicEnumManager *dynamicEnumManager)
 Constructor. More...
 
virtual ~DynamicEnumProvider ()
 Destructor. More...
 
- Public Member Functions inherited from qsf::Pluginable< DynamicEnumManager >
virtual ~Pluginable ()
 Destructor. More...
 
DynamicEnumManager & getManager () const
 Return the pluginable manager this pluginable is in. More...
 
- Public Member Functions inherited from qsf::PluginableBase
virtual ~PluginableBase ()
 Destructor. More...
 
template<typename T >
T & getPluginableManager () const
 Return the pluginable manager this pluginable is in. More...
 
- Public Member Functions inherited from qsf::Object
virtual ~Object ()
 Destructor. More...
 
const camp::Class & getCampClass () const
 Return the CAMP class. More...
 
int getPropertyIndexById (const StringHash &propertyId) const
 Return the CAMP property index by using the unique class property ID. More...
 
uint32 getPropertyIdByIndex (int index) const
 Return the unique class property ID with the given index. More...
 
std::string getPropertyNameById (const StringHash &propertyId) const
 Return the CAMP property name by using the unique class property ID. More...
 
const camp::Property * getCampPropertyById (const StringHash &propertyId) const
 Return the CAMP property by using the unique class property ID. More...
 
void setPropertyValuesByString (const std::string &values)
 Set CAMP reflection property values by using a given string. More...
 
void setPropertiesToDefaultValues ()
 Set all CAMP reflection system properties to their default values. More...
 
void serializeToBoostPTree (boost::property_tree::ptree &pTree, SerializationMethod serializationMethod=SERIALIZE_DIFFERENTIAL) const
 
void serializeToBoostPTree (boost::property_tree::ptree &pTree, const camp::Class &campClass, SerializationMethod serializationMethod=SERIALIZE_DIFFERENTIAL) const
 
bool deserializeFromBoostPTree (const boost::property_tree::ptree &pTree, SerializationMethod serializationMethod=SERIALIZE_DIFFERENTIAL)
 
bool deserializeFromBoostPTree (const boost::property_tree::ptree &pTree, const camp::Class &campClass, SerializationMethod serializationMethod=SERIALIZE_DIFFERENTIAL)
 
void serializeToBinarySerializer (BinarySerializer &serializer, SerializationMode mode=MODE_MINIMAL, SerializationMethod serializationMethod=SERIALIZE_DIFFERENTIAL) const
 
void deserializeFromBinarySerializer (BinarySerializer &serializer, SerializationMode mode=MODE_MINIMAL, SerializationMethod serializationMethod=SERIALIZE_DIFFERENTIAL, bool setOverrideState=true)
 
virtual camp::Value getPropertyDefaultValue (const StringHash &propertyId) const
 
virtual PropertyOverrideState getPropertyOverrideState (const StringHash &propertyId) const
 
virtual bool setPropertyOverrideState (const StringHash &propertyId, PropertyOverrideState overrideState)
 
virtual void onPreDeserialize ()
 Called right before the object is deserialized using any of the above methods. Default implementation is empty. More...
 
virtual void onPostDeserialize ()
 Called right after the object was deserialized using any of the above methods. Default implementation is empty. More...
 
virtual ScriptgetAssociatedScript () const
 Return the script instance associated with this object instance. More...
 

Static Public Attributes

static const std::string SEMANTIC_NAME
 Enum semantic name "enum:FireMaterial". More...
 

Additional Inherited Members

- Public Types inherited from qsf::editor::DynamicEnumProvider
typedef DynamicEnumManager::ValuePairList ValuePairList
 
- Public Types inherited from qsf::Object
enum  PropertyOverrideState { PROPERTY_INVALID, PROPERTY_DEFAULT, PROPERTY_OVERRIDE, PROPERTY_REMOVED }
 
enum  SerializationMethod { SERIALIZE_FLAT, SERIALIZE_COMPLETE, SERIALIZE_DIFFERENTIAL, SERIALIZE_IGNORE_UNKNOWN }
 
enum  SerializationMode { MODE_MINIMAL, MODE_COMPATIBLE }
 
- Protected Member Functions inherited from qsf::Pluginable< DynamicEnumManager >
 Pluginable (DynamicEnumManager *pluginableManager)
 Constructor. More...
 
- Protected Member Functions inherited from qsf::PluginableBase
 PluginableBase (PluginableManager *pluginableManager)
 Constructor. More...
 
- Protected Member Functions inherited from qsf::Object
 Object ()
 Default constructor. More...
 
- Protected Attributes inherited from qsf::editor::DynamicEnumProvider
ValuePairList mCachedList
 

Detailed Description

Fire material dynamic enum provider class, knows how to display enums with "Semantic" = "enum:FireMaterial".

Constructor & Destructor Documentation

em5::editor::FireMaterialDynamicEnumProvider::FireMaterialDynamicEnumProvider ( qsf::editor::DynamicEnumManager dynamicEnumManager)
explicit

Constructor.

Member Function Documentation

virtual const std::string& em5::editor::FireMaterialDynamicEnumProvider::getSemanticName ( ) const
overridevirtual

Return the name of the dynamic enum provider.

Implements qsf::editor::DynamicEnumProvider.

virtual const ValuePairList& em5::editor::FireMaterialDynamicEnumProvider::getValues ( bool  rebuildCachedList)
overridevirtual

Return a list of human readable strings and internal values associated with them.

Implements qsf::editor::DynamicEnumProvider.

Member Data Documentation

const std::string em5::editor::FireMaterialDynamicEnumProvider::SEMANTIC_NAME
static

Enum semantic name "enum:FireMaterial".


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