OpenWalnut
1.5.0dev
|
Class helping to create a new instance of the property content from an old one. More...
#include <WPropertyTypes.h>
Public Member Functions | |
WPVBaseTypes::PV_TRANSFERFUNCTION | create (const WPVBaseTypes::PV_TRANSFERFUNCTION &, const std::string str) |
Creates a new instance of the type from a given string. More... | |
std::string | asString (const WPVBaseTypes::PV_TRANSFERFUNCTION &tf) |
Creates a string from the specified value. More... | |
Class helping to create a new instance of the property content from an old one.
Selections need this special care since they contain not serializable content which needs to be acquired from its predecessor instance.
Definition at line 665 of file WPropertyTypes.h.
std::string PROPERTY_TYPE_HELPER::WStringConversion< WPVBaseTypes::PV_TRANSFERFUNCTION >::asString | ( | const WPVBaseTypes::PV_TRANSFERFUNCTION & | tf | ) |
Creates a string from the specified value.
tf | the value to convert |
Definition at line 113 of file WPropertyTypes.cpp.
References WTransferFunction::getAlpha(), WTransferFunction::getAlphaIsovalue(), WTransferFunction::getColor(), WTransferFunction::getColorIsovalue(), WTransferFunction::numAlphas(), and WTransferFunction::numColors().
WPVBaseTypes::PV_TRANSFERFUNCTION PROPERTY_TYPE_HELPER::WStringConversion< WPVBaseTypes::PV_TRANSFERFUNCTION >::create | ( | const WPVBaseTypes::PV_TRANSFERFUNCTION & | , |
const std::string | str | ||
) |
Creates a new instance of the type from a given string.
Some classes need a predecessor which is also specified here.
str | the new value as string |
Definition at line 79 of file WPropertyTypes.cpp.
References WTransferFunction::addAlpha(), WTransferFunction::addColor(), and string_utils::tokenize().