Inviwo
0.9.10.1
Inviwo documentation
|
A Property represents a parameter to a processor. More...
#include <property.h>
Classes | |
class | OnChangeBlocker |
Public Member Functions | |
virtual std::string | getClassIdentifier () const =0 |
Property (const std::string &identifier="", const std::string &displayName="", InvalidationLevel invalidationLevel=InvalidationLevel::InvalidOutput, PropertySemantics semantics=PropertySemantics::Default) | |
virtual Property * | clone () const =0 |
virtual | ~Property () |
Removes itself from its PropertyOwner. | |
virtual Property & | setIdentifier (const std::string &identifier) |
virtual std::string | getIdentifier () const |
virtual std::vector< std::string > | getPath () const |
virtual Property & | setDisplayName (const std::string &displayName) |
A property's name displayed to the user. | |
virtual std::string | getDisplayName () const |
virtual std::string | getClassIdentifierForWidget () const |
Returns which property's widget should be used when the WidgetFactory tries to create a widget. Defaults to getClassIdentifier(), should only be overridden if a subclass want to reuse another property's widget. | |
virtual Property & | setSemantics (const PropertySemantics &semantics) |
virtual PropertySemantics | getSemantics () const |
virtual Property & | setReadOnly (bool value) |
Enable or disable editing of property. | |
virtual bool | getReadOnly () const |
virtual Property & | setInvalidationLevel (InvalidationLevel invalidationLevel) |
virtual InvalidationLevel | getInvalidationLevel () const |
virtual void | setOwner (PropertyOwner *owner) |
PropertyOwner * | getOwner () |
const PropertyOwner * | getOwner () const |
void | registerWidget (PropertyWidget *propertyWidget) |
void | deregisterWidget (PropertyWidget *propertyWidget) |
const std::vector< PropertyWidget * > & | getWidgets () const |
void | setInitiatingWidget (PropertyWidget *propertyWidget) |
void | clearInitiatingWidget () |
bool | hasWidgets () const |
virtual Property & | setCurrentStateAsDefault () |
virtual Property & | resetToDefaultState () |
virtual Property & | propertyModified () |
virtual void | setValid () |
virtual Property & | setModified () |
virtual bool | isModified () const |
virtual void | set (const Property *src) |
virtual void | serialize (Serializer &s) const override |
virtual void | deserialize (Deserializer &d) override |
std::shared_ptr< std::function< void()> > | onChangeScoped (std::function< void()> callback) |
const BaseCallBack * | onChange (std::function< void()> callback) |
void | removeOnChange (const BaseCallBack *callback) |
template<typename T > | |
const BaseCallBack * | onChange (T *object, void(T::*method)()) |
template<typename T > | |
void | removeOnChange (T *object) |
virtual Property & | setUsageMode (UsageMode usageMode) |
virtual UsageMode | getUsageMode () const |
virtual void | setSerializationMode (PropertySerializationMode mode) |
virtual PropertySerializationMode | getSerializationMode () const |
virtual Property & | setVisible (bool val) |
virtual bool | getVisible () const |
template<typename P , typename DecisionFunc > | |
Property & | visibilityDependsOn (P &prop, DecisionFunc callback) |
template<typename P , typename DecisionFunc > | |
Property & | readonlyDependsOn (P &prop, DecisionFunc callback) |
virtual Document | getDescription () const |
template<typename P > | |
Property & | autoLinkToProperty (const std::string &propertyPath) |
const std::vector< std::pair< std::string, std::string > > & | getAutoLinkToProperty () const |
Public Member Functions inherited from inviwo::Observable< PropertyObserver > | |
Observable (const Observable< PropertyObserver > &other) | |
Observable (Observable< PropertyObserver > &&other) | |
Observable< PropertyObserver > & | operator= (const Observable< PropertyObserver > &other) |
Observable< PropertyObserver > & | operator= (Observable< PropertyObserver > &&other) |
void | addObserver (PropertyObserver *observer) |
void | removeObserver (PropertyObserver *observer) |
virtual void | startBlockingNotifications () override final |
virtual void | stopBlockingNotifications () override final |
Public Member Functions inherited from inviwo::MetaDataOwner | |
MetaDataOwner (const MetaDataOwner &rhs)=default | |
MetaDataOwner & | operator= (const MetaDataOwner &rhs)=default |
void | copyMetaDataFrom (const MetaDataOwner &src) |
void | copyMetaDataTo (MetaDataOwner &dst) |
template<typename T > | |
T * | createMetaData (const std::string &key) |
template<typename T , typename U > | |
void | setMetaData (const std::string &key, U value) |
template<typename T > | |
bool | unsetMetaData (const std::string &key) |
unset, i.e. remove the metadata entry matching the given key and type More... | |
template<typename T , typename U > | |
U | getMetaData (const std::string &key, U val) const |
template<typename T > | |
T * | getMetaData (const std::string &key) |
template<typename T > | |
const T * | getMetaData (const std::string &key) const |
MetaDataMap * | getMetaDataMap () |
const MetaDataMap * | getMetaDataMap () const |
template<typename T > | |
bool | hasMetaData (const std::string &key) const |
Static Public Member Functions | |
template<typename T , typename U > | |
static void | setStateAsDefault (T &property, const U &state) |
Protected Member Functions | |
Property (const Property &rhs) | |
Property & | operator= (const Property &that)=delete |
void | updateWidgets () |
void | notifyAboutChange () |
Protected Member Functions inherited from inviwo::PropertyObservable | |
void | notifyObserversOnSetIdentifier (Property *property, const std::string &identifier) |
void | notifyObserversOnSetDisplayName (Property *property, const std::string &displayName) |
void | notifyObserversOnSetSemantics (Property *property, const PropertySemantics &semantics) |
void | notifyObserversOnSetReadOnly (Property *property, bool readonly) |
void | notifyObserversOnSetVisible (Property *property, bool visible) |
void | notifyObserversOnSetUsageMode (Property *property, UsageMode usageMode) |
Protected Member Functions inherited from inviwo::Observable< PropertyObserver > | |
void | forEachObserver (C callback) |
Protected Member Functions inherited from inviwo::ObservableInterface | |
void | addObservationHelper (Observer *observer) |
void | removeObservationHelper (Observer *observer) |
Protected Attributes | |
CallBackList | onChangeCallback_ |
PropertySerializationMode | serializationMode_ |
Protected Attributes inherited from inviwo::MetaDataOwner | |
MetaDataMap | metaData_ |
A Property represents a parameter to a processor.
Concepts:
|
protected |
Since property is a polymorphic class the copy constructor should only be used internally to implement the clone functionality
void inviwo::Property::clearInitiatingWidget | ( | ) |
Clear the initiatingWidget
|
pure virtual |
Creates a clone of this property. The clone will have the same identifier, hence the identifier must be changed if the clone should be added to the same owner as this. The new clone does not have any owner set.
Implemented in inviwo::TemplateOptionProperty< T >, inviwo::TemplateOptionProperty< ConnectivityType >, inviwo::TemplateOptionProperty< DrawType >, inviwo::TemplateOptionProperty< utilgl::debug::Severity >, inviwo::TemplateOptionProperty< Mode >, inviwo::TemplateOptionProperty< BasisPropertyReference >, inviwo::TemplateOptionProperty< double >, inviwo::TemplateOptionProperty< GradientComputation >, inviwo::TemplateOptionProperty< IntegralLineProperties::IntegrationScheme >, inviwo::TemplateOptionProperty< Positioning >, inviwo::TemplateOptionProperty< Location >, inviwo::TemplateOptionProperty< LineDrawMode >, inviwo::TemplateOptionProperty< DataRangeMode >, inviwo::TemplateOptionProperty< std::string >, inviwo::TemplateOptionProperty< IntegralLineProperties::Direction >, inviwo::TemplateOptionProperty< NormalizationMode >, inviwo::TemplateOptionProperty< Operator >, inviwo::TemplateOptionProperty< PlaybackMode >, inviwo::TemplateOptionProperty< CompositingType >, inviwo::TemplateOptionProperty< SeedingSpace >, inviwo::TemplateOptionProperty< Method >, inviwo::TemplateOptionProperty< int >, inviwo::TemplateOptionProperty< MessageBreakLevel >, inviwo::TemplateOptionProperty< MeshType >, inviwo::TemplateOptionProperty< GlyphClippingMode >, inviwo::TemplateOptionProperty< NoiseType >, inviwo::TemplateOptionProperty< BackgroundStyle >, inviwo::TemplateOptionProperty< BlendMode >, inviwo::TemplateOptionProperty< Shader::OnError >, inviwo::TemplateOptionProperty< utilgl::debug::BreakLevel >, inviwo::TemplateOptionProperty< utilgl::debug::Mode >, inviwo::TemplateOptionProperty< ColoringMethod >, inviwo::TemplateOptionProperty< UsageMode >, inviwo::TemplateOptionProperty< InputType >, inviwo::TemplateOptionProperty< size_t >, inviwo::TemplateOptionProperty< LayerType >, inviwo::TemplateOptionProperty< Type >, inviwo::TemplateOptionProperty< BoundaryType >, inviwo::TemplateOptionProperty< LabelPosition >, inviwo::TemplateOptionProperty< TickStyle >, inviwo::TemplateOptionProperty< Layout >, inviwo::TemplateOptionProperty< SplitterStyle >, inviwo::TemplateOptionProperty< colorbrewer::Family >, inviwo::TemplateOptionProperty< ColormapType >, inviwo::TemplateOptionProperty< AxisSelection >, inviwo::TemplateOptionProperty< Generator >, inviwo::TemplateOptionProperty< CartesianCoordinateAxis >, inviwo::TemplateOptionProperty< CoordinateSpace >, inviwo::TemplateOptionProperty< DataFormatId >, inviwo::TemplateOptionProperty< Shader::UniformWarning >, inviwo::TemplateOptionProperty< Placement >, inviwo::TemplateOptionProperty< OutputType >, inviwo::TemplateOptionProperty< Orientation >, inviwo::TemplateOptionProperty< SplitDirection >, inviwo::TemplateOptionProperty< GlyphType >, inviwo::TemplateOptionProperty< SourceType >, inviwo::TemplateOptionProperty< AxisRangeMode >, inviwo::TemplateOptionProperty< BrushBy >, inviwo::TemplateOptionProperty< Classification >, inviwo::TemplateOptionProperty< RenderingType >, inviwo::TemplateOptionProperty< RenderMode >, inviwo::TemplateOptionProperty< BasisPropertyMode >, inviwo::TemplateOptionProperty< util::VolumeLaplacianPostProcessing >, inviwo::TemplateOptionProperty< glui::BoxLayout::LayoutDirection >, inviwo::TemplateOptionProperty< Output >, inviwo::TemplateOptionProperty< inviwo::FileExtension >, inviwo::plot::PCPAxisSettings, inviwo::ListProperty, inviwo::plot::TickProperty, inviwo::IndexBufferInformationProperty, inviwo::TransferFunctionProperty, inviwo::plot::MinorTickProperty, inviwo::EventProperty, inviwo::ColormapProperty, inviwo::FileProperty, inviwo::MeshBufferInformationProperty, inviwo::ABufferGLCompositeProperty, inviwo::CameraProperty, inviwo::RaycastingProperty, inviwo::plot::PersistenceDiagramPlotGL::Properties, inviwo::FilePatternProperty, inviwo::MultiFileProperty, inviwo::ImageEditorProperty, inviwo::IsoTFProperty, inviwo::SimpleLightingProperty, inviwo::IsoValueProperty, inviwo::AdvancedMaterialProperty, inviwo::plot::ScatterPlotGL::Properties, inviwo::ButtonGroupProperty, inviwo::IntegralLineVectorToMesh::ColorByProperty, inviwo::OrdinalAnimationProperty< T >, inviwo::plot::CategoricalAxisProperty, inviwo::GaussianProperty< T >, inviwo::GaussianProperty< double >, inviwo::ButtonProperty, inviwo::PositionProperty, inviwo::StringProperty, inviwo::BasisProperty, inviwo::PlaneProperty, inviwo::MinMaxProperty< T >, inviwo::MinMaxProperty< double >, inviwo::MinMaxProperty< float >, inviwo::MinMaxProperty< int >, inviwo::MinMaxProperty< size_t >, inviwo::Trackball, inviwo::plot::AxisProperty, inviwo::CompositeProperty, inviwo::FontProperty, inviwo::plot::MarginProperty, inviwo::VolumeIndicatorProperty, inviwo::OrdinalProperty< T >, inviwo::plot::AxisStyleProperty, inviwo::plot::PlotTextProperty, inviwo::plot::MajorTickProperty, inviwo::OrdinalProperty< glm::vec< 3, T, glm::defaultp > >, inviwo::OrdinalProperty< size3_t >, inviwo::OrdinalProperty< double >, inviwo::OrdinalProperty< glm::i64 >, inviwo::OrdinalProperty< size4_t >, inviwo::OrdinalProperty< float >, inviwo::OrdinalProperty< dvec4 >, inviwo::OrdinalProperty< size2_t >, inviwo::OrdinalProperty< int >, inviwo::OrdinalProperty< vec4 >, inviwo::OrdinalProperty< dvec2 >, inviwo::OrdinalProperty< vec3 >, inviwo::OrdinalProperty< dvec3 >, inviwo::OrdinalProperty< vec2 >, inviwo::OrdinalProperty< size_t >, inviwo::OrdinalProperty< mat4 >, inviwo::OrdinalProperty< ivec4 >, inviwo::OrdinalProperty< mat3 >, inviwo::OrdinalProperty< ivec2 >, inviwo::OrdinalProperty< ivec3 >, inviwo::BoolProperty, inviwo::BufferInformationProperty, inviwo::ImageInformationProperty, inviwo::MeshInformationProperty, inviwo::SequenceTimerProperty, inviwo::VolumeInformationProperty, inviwo::BoolCompositeProperty, inviwo::DirectoryProperty, inviwo::TemplateProperty< T >, inviwo::LayerInformationProperty, inviwo::TemplateProperty< glm::tvec2< size_t, glm::defaultp > >, inviwo::TemplateProperty< glm::vec< 3, T, glm::defaultp > >, inviwo::TemplateProperty< size3_t >, inviwo::TemplateProperty< TransferFunction >, inviwo::TemplateProperty< double >, inviwo::TemplateProperty< glm::i64 >, inviwo::TemplateProperty< glm::tvec2< float, glm::defaultp > >, inviwo::TemplateProperty< size4_t >, inviwo::TemplateProperty< std::string >, inviwo::TemplateProperty< float >, inviwo::TemplateProperty< std::vector< std::string > >, inviwo::TemplateProperty< dvec4 >, inviwo::TemplateProperty< size2_t >, inviwo::TemplateProperty< int >, inviwo::TemplateProperty< glm::tvec2< double, glm::defaultp > >, inviwo::TemplateProperty< vec4 >, inviwo::TemplateProperty< glm::tvec2< T, glm::defaultp > >, inviwo::TemplateProperty< dvec2 >, inviwo::TemplateProperty< vec3 >, inviwo::TemplateProperty< dvec3 >, inviwo::TemplateProperty< vec2 >, inviwo::TemplateProperty< glm::tvec2< int, glm::defaultp > >, inviwo::TemplateProperty< size_t >, inviwo::TemplateProperty< mat4 >, inviwo::TemplateProperty< ivec4 >, inviwo::TemplateProperty< mat3 >, inviwo::TemplateProperty< bool >, inviwo::TemplateProperty< IsoValueCollection >, inviwo::TemplateProperty< ivec2 >, inviwo::TemplateProperty< ivec3 >, inviwo::SimpleRaycastingProperty, inviwo::StipplingProperty, inviwo::DataFrameColumnProperty, inviwo::IntegralLineProperties, inviwo::PathLineProperties, and inviwo::StreamLineProperties.
void inviwo::Property::deregisterWidget | ( | PropertyWidget * | propertyWidget | ) |
Deregister a widget, the widget will no longer receive updateFromProperty calls.
const std::vector< PropertyWidget * > & inviwo::Property::getWidgets | ( | ) | const |
Retrieve all registered widgets.
bool inviwo::Property::hasWidgets | ( | ) | const |
Does the property have any registered widgets.
const BaseCallBack * inviwo::Property::onChange | ( | std::function< void()> | callback | ) |
Add an on change callback to the property. The callback is run when ever propertyModified is called. Usually when even the value of property changes. The return value can be passed to removeOnChange to remove the callback. Prefer onChangeScoped when the callback need to be removed. Multiple callbacks can be registered at the same time.
std::shared_ptr< std::function< void()> > inviwo::Property::onChangeScoped | ( | std::function< void()> | callback | ) |
Add an on change callback to the property. The callback is run when ever propertyModified is called. Usually when even the value of property changes. The return value is a RAII guard for the callback and will remove the callback on destruction. Hence one must keep the return value around as long as the callback should be active. To remove the callback one only need to destruct or reset the return value. Multiple callbacks can be registered at the same time.
Properties do not support copy assignment. To assign the "value" of a property to an other property the Property::set(const Property* src) function should be used
void inviwo::Property::registerWidget | ( | PropertyWidget * | propertyWidget | ) |
Register a widget for the property. Registered widgets will receive updateFromProperty calls when the value state of the property changes. One Property can have multiple widgets. The property does not take ownership of the widget.
void inviwo::Property::removeOnChange | ( | const BaseCallBack * | callback | ) |
Remove an on change callback registered using onChange.
|
virtual |
Reset the state of the property back to it's default value. It is important that all overriding properties make sure to call the base class implementation.
Reimplemented in inviwo::TemplateOptionProperty< T >, inviwo::TemplateOptionProperty< ConnectivityType >, inviwo::TemplateOptionProperty< DrawType >, inviwo::TemplateOptionProperty< utilgl::debug::Severity >, inviwo::TemplateOptionProperty< Mode >, inviwo::TemplateOptionProperty< BasisPropertyReference >, inviwo::TemplateOptionProperty< double >, inviwo::TemplateOptionProperty< GradientComputation >, inviwo::TemplateOptionProperty< IntegralLineProperties::IntegrationScheme >, inviwo::TemplateOptionProperty< Positioning >, inviwo::TemplateOptionProperty< Location >, inviwo::TemplateOptionProperty< LineDrawMode >, inviwo::TemplateOptionProperty< DataRangeMode >, inviwo::TemplateOptionProperty< std::string >, inviwo::TemplateOptionProperty< IntegralLineProperties::Direction >, inviwo::TemplateOptionProperty< NormalizationMode >, inviwo::TemplateOptionProperty< Operator >, inviwo::TemplateOptionProperty< PlaybackMode >, inviwo::TemplateOptionProperty< CompositingType >, inviwo::TemplateOptionProperty< SeedingSpace >, inviwo::TemplateOptionProperty< Method >, inviwo::TemplateOptionProperty< int >, inviwo::TemplateOptionProperty< MessageBreakLevel >, inviwo::TemplateOptionProperty< MeshType >, inviwo::TemplateOptionProperty< GlyphClippingMode >, inviwo::TemplateOptionProperty< NoiseType >, inviwo::TemplateOptionProperty< BackgroundStyle >, inviwo::TemplateOptionProperty< BlendMode >, inviwo::TemplateOptionProperty< Shader::OnError >, inviwo::TemplateOptionProperty< utilgl::debug::BreakLevel >, inviwo::TemplateOptionProperty< utilgl::debug::Mode >, inviwo::TemplateOptionProperty< ColoringMethod >, inviwo::TemplateOptionProperty< UsageMode >, inviwo::TemplateOptionProperty< InputType >, inviwo::TemplateOptionProperty< size_t >, inviwo::TemplateOptionProperty< LayerType >, inviwo::TemplateOptionProperty< Type >, inviwo::TemplateOptionProperty< BoundaryType >, inviwo::TemplateOptionProperty< LabelPosition >, inviwo::TemplateOptionProperty< TickStyle >, inviwo::TemplateOptionProperty< Layout >, inviwo::TemplateOptionProperty< SplitterStyle >, inviwo::TemplateOptionProperty< colorbrewer::Family >, inviwo::TemplateOptionProperty< ColormapType >, inviwo::TemplateOptionProperty< AxisSelection >, inviwo::TemplateOptionProperty< Generator >, inviwo::TemplateOptionProperty< CartesianCoordinateAxis >, inviwo::TemplateOptionProperty< CoordinateSpace >, inviwo::TemplateOptionProperty< DataFormatId >, inviwo::TemplateOptionProperty< Shader::UniformWarning >, inviwo::TemplateOptionProperty< Placement >, inviwo::TemplateOptionProperty< OutputType >, inviwo::TemplateOptionProperty< Orientation >, inviwo::TemplateOptionProperty< SplitDirection >, inviwo::TemplateOptionProperty< GlyphType >, inviwo::TemplateOptionProperty< SourceType >, inviwo::TemplateOptionProperty< AxisRangeMode >, inviwo::TemplateOptionProperty< BrushBy >, inviwo::TemplateOptionProperty< Classification >, inviwo::TemplateOptionProperty< RenderingType >, inviwo::TemplateOptionProperty< RenderMode >, inviwo::TemplateOptionProperty< BasisPropertyMode >, inviwo::TemplateOptionProperty< util::VolumeLaplacianPostProcessing >, inviwo::TemplateOptionProperty< glui::BoxLayout::LayoutDirection >, inviwo::TemplateOptionProperty< Output >, inviwo::TemplateOptionProperty< inviwo::FileExtension >, inviwo::MinMaxProperty< T >, inviwo::MinMaxProperty< double >, inviwo::MinMaxProperty< float >, inviwo::MinMaxProperty< int >, inviwo::MinMaxProperty< size_t >, inviwo::TransferFunctionProperty, inviwo::EventProperty, inviwo::ButtonGroupProperty, inviwo::ButtonProperty, inviwo::IsoValueProperty, inviwo::OrdinalProperty< T >, inviwo::OrdinalProperty< glm::vec< 3, T, glm::defaultp > >, inviwo::OrdinalProperty< size3_t >, inviwo::OrdinalProperty< double >, inviwo::OrdinalProperty< glm::i64 >, inviwo::OrdinalProperty< size4_t >, inviwo::OrdinalProperty< float >, inviwo::OrdinalProperty< dvec4 >, inviwo::OrdinalProperty< size2_t >, inviwo::OrdinalProperty< int >, inviwo::OrdinalProperty< vec4 >, inviwo::OrdinalProperty< dvec2 >, inviwo::OrdinalProperty< vec3 >, inviwo::OrdinalProperty< dvec3 >, inviwo::OrdinalProperty< vec2 >, inviwo::OrdinalProperty< size_t >, inviwo::OrdinalProperty< mat4 >, inviwo::OrdinalProperty< ivec4 >, inviwo::OrdinalProperty< mat3 >, inviwo::OrdinalProperty< ivec2 >, inviwo::OrdinalProperty< ivec3 >, inviwo::BasisProperty, inviwo::CompositeProperty, inviwo::TemplateProperty< T >, inviwo::TemplateProperty< glm::tvec2< size_t, glm::defaultp > >, inviwo::TemplateProperty< glm::vec< 3, T, glm::defaultp > >, inviwo::TemplateProperty< size3_t >, inviwo::TemplateProperty< TransferFunction >, inviwo::TemplateProperty< double >, inviwo::TemplateProperty< glm::i64 >, inviwo::TemplateProperty< glm::tvec2< float, glm::defaultp > >, inviwo::TemplateProperty< size4_t >, inviwo::TemplateProperty< std::string >, inviwo::TemplateProperty< float >, inviwo::TemplateProperty< std::vector< std::string > >, inviwo::TemplateProperty< dvec4 >, inviwo::TemplateProperty< size2_t >, inviwo::TemplateProperty< int >, inviwo::TemplateProperty< glm::tvec2< double, glm::defaultp > >, inviwo::TemplateProperty< vec4 >, inviwo::TemplateProperty< glm::tvec2< T, glm::defaultp > >, inviwo::TemplateProperty< dvec2 >, inviwo::TemplateProperty< vec3 >, inviwo::TemplateProperty< dvec3 >, inviwo::TemplateProperty< vec2 >, inviwo::TemplateProperty< glm::tvec2< int, glm::defaultp > >, inviwo::TemplateProperty< size_t >, inviwo::TemplateProperty< mat4 >, inviwo::TemplateProperty< ivec4 >, inviwo::TemplateProperty< mat3 >, inviwo::TemplateProperty< bool >, inviwo::TemplateProperty< IsoValueCollection >, inviwo::TemplateProperty< ivec2 >, and inviwo::TemplateProperty< ivec3 >.
|
virtual |
Set the value of this to that of src. The "value" is in this case considered to be for example the string in a StringProperty or the float value in a FloatProperty. But not things like the identifier of display name.
Reimplemented in inviwo::TemplateOptionProperty< T >, inviwo::TemplateOptionProperty< ConnectivityType >, inviwo::TemplateOptionProperty< DrawType >, inviwo::TemplateOptionProperty< utilgl::debug::Severity >, inviwo::TemplateOptionProperty< Mode >, inviwo::TemplateOptionProperty< BasisPropertyReference >, inviwo::TemplateOptionProperty< double >, inviwo::TemplateOptionProperty< GradientComputation >, inviwo::TemplateOptionProperty< IntegralLineProperties::IntegrationScheme >, inviwo::TemplateOptionProperty< Positioning >, inviwo::TemplateOptionProperty< Location >, inviwo::TemplateOptionProperty< LineDrawMode >, inviwo::TemplateOptionProperty< DataRangeMode >, inviwo::TemplateOptionProperty< std::string >, inviwo::TemplateOptionProperty< IntegralLineProperties::Direction >, inviwo::TemplateOptionProperty< NormalizationMode >, inviwo::TemplateOptionProperty< Operator >, inviwo::TemplateOptionProperty< PlaybackMode >, inviwo::TemplateOptionProperty< CompositingType >, inviwo::TemplateOptionProperty< SeedingSpace >, inviwo::TemplateOptionProperty< Method >, inviwo::TemplateOptionProperty< int >, inviwo::TemplateOptionProperty< MessageBreakLevel >, inviwo::TemplateOptionProperty< MeshType >, inviwo::TemplateOptionProperty< GlyphClippingMode >, inviwo::TemplateOptionProperty< NoiseType >, inviwo::TemplateOptionProperty< BackgroundStyle >, inviwo::TemplateOptionProperty< BlendMode >, inviwo::TemplateOptionProperty< Shader::OnError >, inviwo::TemplateOptionProperty< utilgl::debug::BreakLevel >, inviwo::TemplateOptionProperty< utilgl::debug::Mode >, inviwo::TemplateOptionProperty< ColoringMethod >, inviwo::TemplateOptionProperty< UsageMode >, inviwo::TemplateOptionProperty< InputType >, inviwo::TemplateOptionProperty< size_t >, inviwo::TemplateOptionProperty< LayerType >, inviwo::TemplateOptionProperty< Type >, inviwo::TemplateOptionProperty< BoundaryType >, inviwo::TemplateOptionProperty< LabelPosition >, inviwo::TemplateOptionProperty< TickStyle >, inviwo::TemplateOptionProperty< Layout >, inviwo::TemplateOptionProperty< SplitterStyle >, inviwo::TemplateOptionProperty< colorbrewer::Family >, inviwo::TemplateOptionProperty< ColormapType >, inviwo::TemplateOptionProperty< AxisSelection >, inviwo::TemplateOptionProperty< Generator >, inviwo::TemplateOptionProperty< CartesianCoordinateAxis >, inviwo::TemplateOptionProperty< CoordinateSpace >, inviwo::TemplateOptionProperty< DataFormatId >, inviwo::TemplateOptionProperty< Shader::UniformWarning >, inviwo::TemplateOptionProperty< Placement >, inviwo::TemplateOptionProperty< OutputType >, inviwo::TemplateOptionProperty< Orientation >, inviwo::TemplateOptionProperty< SplitDirection >, inviwo::TemplateOptionProperty< GlyphType >, inviwo::TemplateOptionProperty< SourceType >, inviwo::TemplateOptionProperty< AxisRangeMode >, inviwo::TemplateOptionProperty< BrushBy >, inviwo::TemplateOptionProperty< Classification >, inviwo::TemplateOptionProperty< RenderingType >, inviwo::TemplateOptionProperty< RenderMode >, inviwo::TemplateOptionProperty< BasisPropertyMode >, inviwo::TemplateOptionProperty< util::VolumeLaplacianPostProcessing >, inviwo::TemplateOptionProperty< glui::BoxLayout::LayoutDirection >, inviwo::TemplateOptionProperty< Output >, inviwo::TemplateOptionProperty< inviwo::FileExtension >, inviwo::ListProperty, inviwo::TransferFunctionProperty, inviwo::IsoValueProperty, inviwo::FileProperty, inviwo::ButtonGroupProperty, inviwo::CameraProperty, inviwo::MultiFileProperty, inviwo::BaseOptionProperty, inviwo::ButtonProperty, inviwo::IsoTFProperty, inviwo::MinMaxProperty< T >, inviwo::MinMaxProperty< double >, inviwo::MinMaxProperty< float >, inviwo::MinMaxProperty< int >, inviwo::MinMaxProperty< size_t >, inviwo::CompositeProperty, inviwo::TemplateProperty< T >, inviwo::TemplateProperty< glm::tvec2< size_t, glm::defaultp > >, inviwo::TemplateProperty< glm::vec< 3, T, glm::defaultp > >, inviwo::TemplateProperty< size3_t >, inviwo::TemplateProperty< TransferFunction >, inviwo::TemplateProperty< double >, inviwo::TemplateProperty< glm::i64 >, inviwo::TemplateProperty< glm::tvec2< float, glm::defaultp > >, inviwo::TemplateProperty< size4_t >, inviwo::TemplateProperty< std::string >, inviwo::TemplateProperty< float >, inviwo::TemplateProperty< std::vector< std::string > >, inviwo::TemplateProperty< dvec4 >, inviwo::TemplateProperty< size2_t >, inviwo::TemplateProperty< int >, inviwo::TemplateProperty< glm::tvec2< double, glm::defaultp > >, inviwo::TemplateProperty< vec4 >, inviwo::TemplateProperty< glm::tvec2< T, glm::defaultp > >, inviwo::TemplateProperty< dvec2 >, inviwo::TemplateProperty< vec3 >, inviwo::TemplateProperty< dvec3 >, inviwo::TemplateProperty< vec2 >, inviwo::TemplateProperty< glm::tvec2< int, glm::defaultp > >, inviwo::TemplateProperty< size_t >, inviwo::TemplateProperty< mat4 >, inviwo::TemplateProperty< ivec4 >, inviwo::TemplateProperty< mat3 >, inviwo::TemplateProperty< bool >, inviwo::TemplateProperty< IsoValueCollection >, inviwo::TemplateProperty< ivec2 >, inviwo::TemplateProperty< ivec3 >, inviwo::OrdinalProperty< T >, inviwo::OrdinalProperty< glm::vec< 3, T, glm::defaultp > >, inviwo::OrdinalProperty< size3_t >, inviwo::OrdinalProperty< double >, inviwo::OrdinalProperty< glm::i64 >, inviwo::OrdinalProperty< size4_t >, inviwo::OrdinalProperty< float >, inviwo::OrdinalProperty< dvec4 >, inviwo::OrdinalProperty< size2_t >, inviwo::OrdinalProperty< int >, inviwo::OrdinalProperty< vec4 >, inviwo::OrdinalProperty< dvec2 >, inviwo::OrdinalProperty< vec3 >, inviwo::OrdinalProperty< dvec3 >, inviwo::OrdinalProperty< vec2 >, inviwo::OrdinalProperty< size_t >, inviwo::OrdinalProperty< mat4 >, inviwo::OrdinalProperty< ivec4 >, inviwo::OrdinalProperty< mat3 >, inviwo::OrdinalProperty< ivec2 >, inviwo::OrdinalProperty< ivec3 >, and inviwo::DataFrameColumnProperty.
|
virtual |
Save the current state of the property as the default. This state will then be used as a reference when serializing, only state different from the default will be serialized. This method should usually only be called once directly after construction in the processor constructor after setting property specific state. It is important that all overriding properties make sure to call the base class implementation.
Reimplemented in inviwo::TemplateOptionProperty< T >, inviwo::TemplateOptionProperty< ConnectivityType >, inviwo::TemplateOptionProperty< DrawType >, inviwo::TemplateOptionProperty< utilgl::debug::Severity >, inviwo::TemplateOptionProperty< Mode >, inviwo::TemplateOptionProperty< BasisPropertyReference >, inviwo::TemplateOptionProperty< double >, inviwo::TemplateOptionProperty< GradientComputation >, inviwo::TemplateOptionProperty< IntegralLineProperties::IntegrationScheme >, inviwo::TemplateOptionProperty< Positioning >, inviwo::TemplateOptionProperty< Location >, inviwo::TemplateOptionProperty< LineDrawMode >, inviwo::TemplateOptionProperty< DataRangeMode >, inviwo::TemplateOptionProperty< std::string >, inviwo::TemplateOptionProperty< IntegralLineProperties::Direction >, inviwo::TemplateOptionProperty< NormalizationMode >, inviwo::TemplateOptionProperty< Operator >, inviwo::TemplateOptionProperty< PlaybackMode >, inviwo::TemplateOptionProperty< CompositingType >, inviwo::TemplateOptionProperty< SeedingSpace >, inviwo::TemplateOptionProperty< Method >, inviwo::TemplateOptionProperty< int >, inviwo::TemplateOptionProperty< MessageBreakLevel >, inviwo::TemplateOptionProperty< MeshType >, inviwo::TemplateOptionProperty< GlyphClippingMode >, inviwo::TemplateOptionProperty< NoiseType >, inviwo::TemplateOptionProperty< BackgroundStyle >, inviwo::TemplateOptionProperty< BlendMode >, inviwo::TemplateOptionProperty< Shader::OnError >, inviwo::TemplateOptionProperty< utilgl::debug::BreakLevel >, inviwo::TemplateOptionProperty< utilgl::debug::Mode >, inviwo::TemplateOptionProperty< ColoringMethod >, inviwo::TemplateOptionProperty< UsageMode >, inviwo::TemplateOptionProperty< InputType >, inviwo::TemplateOptionProperty< size_t >, inviwo::TemplateOptionProperty< LayerType >, inviwo::TemplateOptionProperty< Type >, inviwo::TemplateOptionProperty< BoundaryType >, inviwo::TemplateOptionProperty< LabelPosition >, inviwo::TemplateOptionProperty< TickStyle >, inviwo::TemplateOptionProperty< Layout >, inviwo::TemplateOptionProperty< SplitterStyle >, inviwo::TemplateOptionProperty< colorbrewer::Family >, inviwo::TemplateOptionProperty< ColormapType >, inviwo::TemplateOptionProperty< AxisSelection >, inviwo::TemplateOptionProperty< Generator >, inviwo::TemplateOptionProperty< CartesianCoordinateAxis >, inviwo::TemplateOptionProperty< CoordinateSpace >, inviwo::TemplateOptionProperty< DataFormatId >, inviwo::TemplateOptionProperty< Shader::UniformWarning >, inviwo::TemplateOptionProperty< Placement >, inviwo::TemplateOptionProperty< OutputType >, inviwo::TemplateOptionProperty< Orientation >, inviwo::TemplateOptionProperty< SplitDirection >, inviwo::TemplateOptionProperty< GlyphType >, inviwo::TemplateOptionProperty< SourceType >, inviwo::TemplateOptionProperty< AxisRangeMode >, inviwo::TemplateOptionProperty< BrushBy >, inviwo::TemplateOptionProperty< Classification >, inviwo::TemplateOptionProperty< RenderingType >, inviwo::TemplateOptionProperty< RenderMode >, inviwo::TemplateOptionProperty< BasisPropertyMode >, inviwo::TemplateOptionProperty< util::VolumeLaplacianPostProcessing >, inviwo::TemplateOptionProperty< glui::BoxLayout::LayoutDirection >, inviwo::TemplateOptionProperty< Output >, inviwo::TemplateOptionProperty< inviwo::FileExtension >, inviwo::MinMaxProperty< T >, inviwo::MinMaxProperty< double >, inviwo::MinMaxProperty< float >, inviwo::MinMaxProperty< int >, inviwo::MinMaxProperty< size_t >, inviwo::TransferFunctionProperty, inviwo::EventProperty, inviwo::IsoValueProperty, inviwo::OrdinalProperty< T >, inviwo::OrdinalProperty< glm::vec< 3, T, glm::defaultp > >, inviwo::OrdinalProperty< size3_t >, inviwo::OrdinalProperty< double >, inviwo::OrdinalProperty< glm::i64 >, inviwo::OrdinalProperty< size4_t >, inviwo::OrdinalProperty< float >, inviwo::OrdinalProperty< dvec4 >, inviwo::OrdinalProperty< size2_t >, inviwo::OrdinalProperty< int >, inviwo::OrdinalProperty< vec4 >, inviwo::OrdinalProperty< dvec2 >, inviwo::OrdinalProperty< vec3 >, inviwo::OrdinalProperty< dvec3 >, inviwo::OrdinalProperty< vec2 >, inviwo::OrdinalProperty< size_t >, inviwo::OrdinalProperty< mat4 >, inviwo::OrdinalProperty< ivec4 >, inviwo::OrdinalProperty< mat3 >, inviwo::OrdinalProperty< ivec2 >, inviwo::OrdinalProperty< ivec3 >, inviwo::BasisProperty, inviwo::CompositeProperty, inviwo::TemplateProperty< T >, inviwo::TemplateProperty< glm::tvec2< size_t, glm::defaultp > >, inviwo::TemplateProperty< glm::vec< 3, T, glm::defaultp > >, inviwo::TemplateProperty< size3_t >, inviwo::TemplateProperty< TransferFunction >, inviwo::TemplateProperty< double >, inviwo::TemplateProperty< glm::i64 >, inviwo::TemplateProperty< glm::tvec2< float, glm::defaultp > >, inviwo::TemplateProperty< size4_t >, inviwo::TemplateProperty< std::string >, inviwo::TemplateProperty< float >, inviwo::TemplateProperty< std::vector< std::string > >, inviwo::TemplateProperty< dvec4 >, inviwo::TemplateProperty< size2_t >, inviwo::TemplateProperty< int >, inviwo::TemplateProperty< glm::tvec2< double, glm::defaultp > >, inviwo::TemplateProperty< vec4 >, inviwo::TemplateProperty< glm::tvec2< T, glm::defaultp > >, inviwo::TemplateProperty< dvec2 >, inviwo::TemplateProperty< vec3 >, inviwo::TemplateProperty< dvec3 >, inviwo::TemplateProperty< vec2 >, inviwo::TemplateProperty< glm::tvec2< int, glm::defaultp > >, inviwo::TemplateProperty< size_t >, inviwo::TemplateProperty< mat4 >, inviwo::TemplateProperty< ivec4 >, inviwo::TemplateProperty< mat3 >, inviwo::TemplateProperty< bool >, inviwo::TemplateProperty< IsoValueCollection >, inviwo::TemplateProperty< ivec2 >, and inviwo::TemplateProperty< ivec3 >.
|
virtual |
Property identifier has to be unique within the scope of a PropertyOwner. Property identifiers should only contain alpha numeric characters, "-" and "_".
void inviwo::Property::setInitiatingWidget | ( | PropertyWidget * | propertyWidget | ) |
This function should be called by property widgets before they initiate a property change. This is needed because when the property is modified it needs to update all of its widgets. And since it won't know if the change started in one of them we will update the property widget that started the change