Inviwo  0.9.10.1
Inviwo documentation
inviwo::Property Class Referenceabstract

A Property represents a parameter to a processor. More...

#include <property.h>

+ Inheritance diagram for inviwo::Property:

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 Propertyclone () const =0
 
virtual ~Property ()
 Removes itself from its PropertyOwner.
 
virtual PropertysetIdentifier (const std::string &identifier)
 
virtual std::string getIdentifier () const
 
virtual std::vector< std::string > getPath () const
 
virtual PropertysetDisplayName (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 PropertysetSemantics (const PropertySemantics &semantics)
 
virtual PropertySemantics getSemantics () const
 
virtual PropertysetReadOnly (bool value)
 Enable or disable editing of property.
 
virtual bool getReadOnly () const
 
virtual PropertysetInvalidationLevel (InvalidationLevel invalidationLevel)
 
virtual InvalidationLevel getInvalidationLevel () const
 
virtual void setOwner (PropertyOwner *owner)
 
PropertyOwnergetOwner ()
 
const PropertyOwnergetOwner () 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 PropertysetCurrentStateAsDefault ()
 
virtual PropertyresetToDefaultState ()
 
virtual PropertypropertyModified ()
 
virtual void setValid ()
 
virtual PropertysetModified ()
 
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 PropertysetUsageMode (UsageMode usageMode)
 
virtual UsageMode getUsageMode () const
 
virtual void setSerializationMode (PropertySerializationMode mode)
 
virtual PropertySerializationMode getSerializationMode () const
 
virtual PropertysetVisible (bool val)
 
virtual bool getVisible () const
 
template<typename P , typename DecisionFunc >
PropertyvisibilityDependsOn (P &prop, DecisionFunc callback)
 
template<typename P , typename DecisionFunc >
PropertyreadonlyDependsOn (P &prop, DecisionFunc callback)
 
virtual Document getDescription () const
 
template<typename P >
PropertyautoLinkToProperty (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
 
MetaDataOwneroperator= (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 >
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
 
MetaDataMapgetMetaDataMap ()
 
const MetaDataMapgetMetaDataMap () 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)
 
Propertyoperator= (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_
 

Detailed Description

A Property represents a parameter to a processor.

Concepts:

  • PropertyOwner: A property can have a owner, usually a Processor or a CompositeProperty. If the property is modified, by calling Property::propertyModified then the property will set it's owner's invalidation level to the property's invalidation level, usually InvalidationLevel::InvalidOutput. This will in turn trigger a network evaluation that will update the processors to a valid state again.
  • Serializable: A property is serializable to be able to store all the processor parameters for each Processor in the saved ProcessorNetwork
  • PropertySemantics: A property can be set to one or several different semantics, which is often used to display different PropertyWidets. For example using a color picker for Color Semantic or a text field for Text Semantics.
  • UsageMode: A property can have different usage modes. Either Development or Application. Only properties with Application mode will show up when running Inviwo in Application mode.
  • Reset: A property has a default state specified in the constructor, or optionally be calling Property::setCurrentStateAsDefault. The property can then also be reset to it's default state by calling Property::resetToDefaultState. Both these functions are virtual and all property subclasses that introduce more state should make sure to implement these two function and also in their implementation make sure that to call the base class implementation.
  • PropertyWidget: A property can have one or multiple PropertyWidgets. The widget are used in the user interface to implement interactivity

Constructor & Destructor Documentation

◆ Property()

inviwo::Property::Property ( const Property rhs)
protected

Since property is a polymorphic class the copy constructor should only be used internally to implement the clone functionality

See also
clone

Member Function Documentation

◆ clearInitiatingWidget()

void inviwo::Property::clearInitiatingWidget ( )

Clear the initiatingWidget

See also
setInitiatingWidget

◆ clone()

virtual Property* inviwo::Property::clone ( ) const
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.

◆ deregisterWidget()

void inviwo::Property::deregisterWidget ( PropertyWidget propertyWidget)

Deregister a widget, the widget will no longer receive updateFromProperty calls.

See also
registerProperty
PropertyWidget

◆ getWidgets()

const std::vector< PropertyWidget * > & inviwo::Property::getWidgets ( ) const

Retrieve all registered widgets.

See also
registerProperty

◆ hasWidgets()

bool inviwo::Property::hasWidgets ( ) const

Does the property have any registered widgets.

See also
registerProperty

◆ onChange()

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.

◆ onChangeScoped()

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.

◆ operator=()

Property& inviwo::Property::operator= ( const Property that)
protecteddelete

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

See also
set

◆ registerWidget()

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.

See also
deregisterProperty
PropertyWidget

◆ removeOnChange()

void inviwo::Property::removeOnChange ( const BaseCallBack *  callback)

Remove an on change callback registered using onChange.

◆ resetToDefaultState()

Property & inviwo::Property::resetToDefaultState ( )
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 >.

◆ set()

void inviwo::Property::set ( const Property src)
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.

◆ setCurrentStateAsDefault()

Property & inviwo::Property::setCurrentStateAsDefault ( )
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 >.

◆ setIdentifier()

Property & inviwo::Property::setIdentifier ( const std::string &  identifier)
virtual

Property identifier has to be unique within the scope of a PropertyOwner. Property identifiers should only contain alpha numeric characters, "-" and "_".

◆ setInitiatingWidget()

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

See also
registerProperty
PropertyWidget

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