Inviwo 0.9.12-pre
Inviwo documentation
|
A Property represents a parameter to a processor. More...
#include <property.h>
Classes | |
class | OnChangeBlocker |
Public Member Functions | |
virtual std::string_view | getClassIdentifier () const =0 |
Property (std::string_view identifier="", std::string_view displayName="", Document help={}, InvalidationLevel invalidationLevel=InvalidationLevel::InvalidOutput, PropertySemantics semantics=PropertySemantics::Default, ReadOnly readOnly=ReadOnly::No) | |
Property (std::string_view identifier, std::string_view displayName, InvalidationLevel invalidationLevel, PropertySemantics semantics=PropertySemantics::Default) | |
virtual Property * | clone () const =0 |
virtual | ~Property () |
Removes itself from its PropertyOwner. | |
virtual Property & | setIdentifier (std::string_view identifier) |
virtual const std::string & | getIdentifier () const |
const std::string & | getPath () const |
Get the property path as string. | |
void | getPath (std::pmr::string &out) const |
virtual Property & | setDisplayName (std::string_view displayName) |
A property's name displayed to the user. | |
virtual const std::string & | getDisplayName () const |
virtual std::string_view | 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 () |
void | updateWidgets () |
bool | hasWidgets () const |
virtual Property & | setSerializationMode (PropertySerializationMode mode) |
virtual PropertySerializationMode | getSerializationMode () const |
virtual Property & | setCurrentStateAsDefault () |
virtual Property & | resetToDefaultState () |
virtual bool | isDefaultState () const |
virtual bool | needsSerialization () const |
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) |
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) |
const Document & | getHelp () const |
Document & | getHelp () |
Property & | setHelp (Document help) |
virtual Document | getDescription () const |
template<typename P > | |
Property & | autoLinkToProperty (std::string_view propertyPath) |
const std::vector< std::pair< std::string, std::string > > & | getAutoLinkToProperty () const |
virtual void | accept (NetworkVisitor &visitor) |
Accept a NetworkVisitor, the visitor will visit this Property. | |
Public Member Functions inherited from inviwo::Observable< PropertyObserver > | |
Observable (const Observable< PropertyObserver > &other) | |
Observable (Observable< PropertyObserver > &&other) noexcept | |
Observable< PropertyObserver > & | operator= (const Observable< PropertyObserver > &other) |
Observable< PropertyObserver > & | operator= (Observable< PropertyObserver > &&other) noexcept |
void | addObserver (PropertyObserver *observer) |
void | removeObserver (PropertyObserver *observer) |
virtual void | startBlockingNotifications () override final |
virtual void | stopBlockingNotifications () override final |
Public Member Functions inherited from inviwo::ObservableInterface | |
Public Member Functions inherited from inviwo::Serializable | |
Public Member Functions inherited from inviwo::MetaDataOwner | |
MetaDataOwner (const MetaDataOwner &rhs)=default | |
MetaDataOwner (MetaDataOwner &rhs)=default | |
MetaDataOwner & | operator= (const MetaDataOwner &rhs)=default |
MetaDataOwner & | operator= (MetaDataOwner &)=default |
void | copyMetaDataFrom (const MetaDataOwner &src) |
void | copyMetaDataTo (MetaDataOwner &dst) |
template<typename T > requires std::derived_from<T, MetaData> | |
T * | createMetaData (std::string_view key) |
template<typename T , typename U > requires std::derived_from<T, MetaData> && Settable<T, U> | |
void | setMetaData (std::string_view key, U value) |
template<typename T > requires std::derived_from<T, MetaData> | |
bool | unsetMetaData (std::string_view key) |
unset, i.e. remove the metadata entry matching the given key and type | |
template<typename T , typename U > requires std::derived_from<T, MetaData> && Gettable<T, U> | |
U | getMetaData (std::string_view key, U val) const |
template<typename T > requires std::derived_from<T, MetaData> | |
T * | getMetaData (std::string_view key) |
template<typename T > requires std::derived_from<T, MetaData> | |
const T * | getMetaData (std::string_view key) const |
MetaDataMap * | getMetaDataMap () |
const MetaDataMap * | getMetaDataMap () const |
bool | hasMetaData (std::string_view key) const |
template<typename T > requires std::derived_from<T, MetaData> | |
bool | hasMetaData (std::string_view key) const |
void | serialize (Serializer &s) const |
void | deserialize (Deserializer &d) |
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 | 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) |
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
|
virtual |
Accept a NetworkVisitor, the visitor will visit this Property.
Reimplemented in inviwo::CompositeProperty.
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::AdvancedMaterialProperty, inviwo::BasisProperty, inviwo::BoolCompositeProperty, inviwo::BoolProperty, inviwo::BufferInformationProperty, inviwo::ButtonGroupProperty, inviwo::ButtonProperty, inviwo::CameraProperty, inviwo::CameraTrackball, inviwo::ColormapProperty, inviwo::ColumnMetaDataListProperty, inviwo::ColumnMetaDataProperty, inviwo::ColumnOptionProperty, inviwo::CompositeProperty, inviwo::DataRangeProperty, inviwo::DirectoryProperty, inviwo::EventProperty, inviwo::FilePatternProperty, inviwo::FileProperty, inviwo::FilterListProperty, inviwo::FontFaceOptionProperty, inviwo::FontProperty, inviwo::GaussianProperty< T >, inviwo::GaussianProperty< double >, inviwo::ImageEditorProperty, inviwo::ImageInformationProperty, inviwo::IndexBufferInformationProperty, inviwo::IntegralLineProperties, inviwo::IntegralLineVectorToMesh::ColorByProperty, inviwo::IsoTFProperty, inviwo::IsoValueProperty, inviwo::LayerInformationProperty, inviwo::LineSettingsProperty, inviwo::ListProperty, inviwo::MarginProperty, inviwo::MeshBufferInformationProperty, inviwo::MeshInformationProperty, inviwo::MinMaxProperty< T >, inviwo::MinMaxProperty< double >, inviwo::MinMaxProperty< float >, inviwo::MinMaxProperty< int >, inviwo::MinMaxProperty< size_t >, inviwo::MultiFileProperty, inviwo::OptionProperty< T >, inviwo::OptionProperty< AngleMeasure >, inviwo::OptionProperty< AxisRangeMode >, inviwo::OptionProperty< AxisSelection >, inviwo::OptionProperty< BackgroundStyle >, inviwo::OptionProperty< BasisPropertyMode >, inviwo::OptionProperty< BasisPropertyReference >, inviwo::OptionProperty< BlendMode >, inviwo::OptionProperty< BoundaryType >, inviwo::OptionProperty< BoxSelectionSettingsInterface::Mode >, inviwo::OptionProperty< BrushBy >, inviwo::OptionProperty< BrushingMode >, inviwo::OptionProperty< BufferTarget >, inviwo::OptionProperty< BufferUsage >, inviwo::OptionProperty< CaptionType >, inviwo::OptionProperty< CartesianCoordinateAxis >, inviwo::OptionProperty< cimgutil::InterpolationType >, inviwo::OptionProperty< Classification >, inviwo::OptionProperty< ClipSide >, inviwo::OptionProperty< colorbrewer::Family >, inviwo::OptionProperty< ColoringGroup >, inviwo::OptionProperty< ColoringMethod >, inviwo::OptionProperty< ColormapType >, inviwo::OptionProperty< ColorSource >, inviwo::OptionProperty< ColumnMatch >, inviwo::OptionProperty< CompositingType >, inviwo::OptionProperty< ConnectivityType >, inviwo::OptionProperty< CoordinateOffset >, inviwo::OptionProperty< CoordinateSpace >, inviwo::OptionProperty< CSVReader::EmptyField >, inviwo::OptionProperty< DataFormatId >, inviwo::OptionProperty< DataRangeMode >, inviwo::OptionProperty< double >, inviwo::OptionProperty< DrawType >, inviwo::OptionProperty< ffmpeg::Recorder::Mode >, inviwo::OptionProperty< Generator >, inviwo::OptionProperty< glui::BoxLayout::LayoutDirection >, inviwo::OptionProperty< GlyphType >, inviwo::OptionProperty< GradientComputation >, inviwo::OptionProperty< HatchingBlendingMode >, inviwo::OptionProperty< HatchingMode >, inviwo::OptionProperty< HistogramMode >, inviwo::OptionProperty< InputType >, inviwo::OptionProperty< int >, inviwo::OptionProperty< IntegralLineProperties::Direction >, inviwo::OptionProperty< IntegralLineProperties::IntegrationScheme >, inviwo::OptionProperty< InterpolationType >, inviwo::OptionProperty< inviwo::ffmpeg::CodecID >, inviwo::OptionProperty< inviwo::FileExtension >, inviwo::OptionProperty< JoinType >, inviwo::OptionProperty< LabelPlacement >, inviwo::OptionProperty< LabelPosition >, inviwo::OptionProperty< LabelType >, inviwo::OptionProperty< LayerType >, inviwo::OptionProperty< Layout >, inviwo::OptionProperty< Location >, inviwo::OptionProperty< luminance::Model >, inviwo::OptionProperty< MeshType >, inviwo::OptionProperty< meshutil::CalculateMeshNormalsMode >, inviwo::OptionProperty< MessageBreakLevel >, inviwo::OptionProperty< Method >, inviwo::OptionProperty< Mode >, inviwo::OptionProperty< NoiseType >, inviwo::OptionProperty< NormalizationMode >, inviwo::OptionProperty< NormalSource >, inviwo::OptionProperty< OffsetScaling >, inviwo::OptionProperty< Operator >, inviwo::OptionProperty< Orientation >, inviwo::OptionProperty< Output >, inviwo::OptionProperty< OutputFormat >, inviwo::OptionProperty< OutputType >, inviwo::OptionProperty< PlaybackMode >, inviwo::OptionProperty< Positioning >, inviwo::OptionProperty< RenderingType >, inviwo::OptionProperty< RenderMode >, inviwo::OptionProperty< SamplingDomain >, inviwo::OptionProperty< ScatterPlotGL::SortingOrder >, inviwo::OptionProperty< SeedingSpace >, inviwo::OptionProperty< Shader::OnError >, inviwo::OptionProperty< Shader::UniformWarning >, inviwo::OptionProperty< ShadingMode >, inviwo::OptionProperty< size_t >, inviwo::OptionProperty< Sizing >, inviwo::OptionProperty< SourceType >, inviwo::OptionProperty< splitter::Direction >, inviwo::OptionProperty< splitter::Style >, inviwo::OptionProperty< std::filesystem::path >, inviwo::OptionProperty< std::string >, inviwo::OptionProperty< StipplingSettingsInterface::Mode >, inviwo::OptionProperty< TickStyle >, inviwo::OptionProperty< Transform >, inviwo::OptionProperty< Type >, inviwo::OptionProperty< Upsampling >, inviwo::OptionProperty< util::DownsamplingMode >, inviwo::OptionProperty< util::VolumeLaplacianPostProcessing >, inviwo::OptionProperty< utilgl::debug::BreakLevel >, inviwo::OptionProperty< utilgl::debug::Mode >, inviwo::OptionProperty< utilgl::debug::Severity >, inviwo::OptionProperty< Wrapping >, inviwo::OrdinalAnimationProperty< T >, inviwo::OrdinalProperty< T >, inviwo::OrdinalProperty< double >, inviwo::OrdinalProperty< dvec2 >, inviwo::OrdinalProperty< dvec3 >, inviwo::OrdinalProperty< dvec4 >, inviwo::OrdinalProperty< float >, inviwo::OrdinalProperty< int >, inviwo::OrdinalProperty< ivec2 >, inviwo::OrdinalProperty< ivec3 >, inviwo::OrdinalProperty< ivec4 >, inviwo::OrdinalProperty< mat3 >, inviwo::OrdinalProperty< mat4 >, inviwo::OrdinalProperty< size2_t >, inviwo::OrdinalProperty< size3_t >, inviwo::OrdinalProperty< size4_t >, inviwo::OrdinalProperty< size_t >, inviwo::OrdinalProperty< vec2 >, inviwo::OrdinalProperty< vec3 >, inviwo::OrdinalProperty< vec4 >, inviwo::OrdinalRefProperty< T >, inviwo::OrdinalRefProperty< float >, inviwo::OrdinalRefProperty< vec3 >, inviwo::PathLineProperties, inviwo::PlaneProperty, inviwo::plot::AxisProperty, inviwo::plot::AxisStyleProperty, inviwo::plot::BoxSelectionProperty, inviwo::plot::CategoricalAxisProperty, inviwo::plot::MajorTickProperty, inviwo::plot::MinorTickProperty, inviwo::plot::PCPAxisSettings, inviwo::plot::PersistenceDiagramPlotGL::Properties, inviwo::plot::PlotTextProperty, inviwo::plot::ScatterPlotGL::Properties, inviwo::PositionProperty, inviwo::RaycastingProperty, inviwo::SelectionColorProperty, inviwo::SequenceTimerProperty, inviwo::SimpleLightingProperty, inviwo::SimpleRaycastingProperty, inviwo::SplitterProperty, inviwo::StipplingProperty, inviwo::StreamLineProperties, inviwo::StringProperty, inviwo::StringsProperty< N >, inviwo::StringsProperty< 2 >, inviwo::StringsProperty< 3 >, inviwo::TemplateProperty< T >, inviwo::TemplateProperty< bool >, inviwo::TemplateProperty< std::string >, inviwo::TextOverlayProperty, inviwo::Trackball, inviwo::TransferFunctionProperty, inviwo::transform::CustomTransformProperty, inviwo::transform::RotateProperty, inviwo::transform::ScaleProperty, inviwo::transform::TranslateProperty, inviwo::TransformationList, inviwo::TransformListProperty, inviwo::VolumeIndicatorProperty, and inviwo::VolumeInformationProperty.
void inviwo::Property::deregisterWidget | ( | PropertyWidget * | propertyWidget | ) |
Deregister a widget, the widget will no longer receive updateFromProperty calls.
|
overridevirtual |
Implements inviwo::Serializable.
|
virtual |
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.
Reimplemented in inviwo::BoolCompositeProperty, inviwo::ColormapProperty, inviwo::CompositeProperty, inviwo::DirectoryProperty, inviwo::IsoTFProperty, inviwo::ListProperty, inviwo::OptionProperty< T >, inviwo::OptionProperty< AngleMeasure >, inviwo::OptionProperty< AxisRangeMode >, inviwo::OptionProperty< AxisSelection >, inviwo::OptionProperty< BackgroundStyle >, inviwo::OptionProperty< BasisPropertyMode >, inviwo::OptionProperty< BasisPropertyReference >, inviwo::OptionProperty< BlendMode >, inviwo::OptionProperty< BoundaryType >, inviwo::OptionProperty< BoxSelectionSettingsInterface::Mode >, inviwo::OptionProperty< BrushBy >, inviwo::OptionProperty< BrushingMode >, inviwo::OptionProperty< BufferTarget >, inviwo::OptionProperty< BufferUsage >, inviwo::OptionProperty< CaptionType >, inviwo::OptionProperty< CartesianCoordinateAxis >, inviwo::OptionProperty< cimgutil::InterpolationType >, inviwo::OptionProperty< Classification >, inviwo::OptionProperty< ClipSide >, inviwo::OptionProperty< colorbrewer::Family >, inviwo::OptionProperty< ColoringGroup >, inviwo::OptionProperty< ColoringMethod >, inviwo::OptionProperty< ColormapType >, inviwo::OptionProperty< ColorSource >, inviwo::OptionProperty< ColumnMatch >, inviwo::OptionProperty< CompositingType >, inviwo::OptionProperty< ConnectivityType >, inviwo::OptionProperty< CoordinateOffset >, inviwo::OptionProperty< CoordinateSpace >, inviwo::OptionProperty< CSVReader::EmptyField >, inviwo::OptionProperty< DataFormatId >, inviwo::OptionProperty< DataRangeMode >, inviwo::OptionProperty< double >, inviwo::OptionProperty< DrawType >, inviwo::OptionProperty< ffmpeg::Recorder::Mode >, inviwo::OptionProperty< Generator >, inviwo::OptionProperty< glui::BoxLayout::LayoutDirection >, inviwo::OptionProperty< GlyphType >, inviwo::OptionProperty< GradientComputation >, inviwo::OptionProperty< HatchingBlendingMode >, inviwo::OptionProperty< HatchingMode >, inviwo::OptionProperty< HistogramMode >, inviwo::OptionProperty< InputType >, inviwo::OptionProperty< int >, inviwo::OptionProperty< IntegralLineProperties::Direction >, inviwo::OptionProperty< IntegralLineProperties::IntegrationScheme >, inviwo::OptionProperty< InterpolationType >, inviwo::OptionProperty< inviwo::ffmpeg::CodecID >, inviwo::OptionProperty< inviwo::FileExtension >, inviwo::OptionProperty< JoinType >, inviwo::OptionProperty< LabelPlacement >, inviwo::OptionProperty< LabelPosition >, inviwo::OptionProperty< LabelType >, inviwo::OptionProperty< LayerType >, inviwo::OptionProperty< Layout >, inviwo::OptionProperty< Location >, inviwo::OptionProperty< luminance::Model >, inviwo::OptionProperty< MeshType >, inviwo::OptionProperty< meshutil::CalculateMeshNormalsMode >, inviwo::OptionProperty< MessageBreakLevel >, inviwo::OptionProperty< Method >, inviwo::OptionProperty< Mode >, inviwo::OptionProperty< NoiseType >, inviwo::OptionProperty< NormalizationMode >, inviwo::OptionProperty< NormalSource >, inviwo::OptionProperty< OffsetScaling >, inviwo::OptionProperty< Operator >, inviwo::OptionProperty< Orientation >, inviwo::OptionProperty< Output >, inviwo::OptionProperty< OutputFormat >, inviwo::OptionProperty< OutputType >, inviwo::OptionProperty< PlaybackMode >, inviwo::OptionProperty< Positioning >, inviwo::OptionProperty< RenderingType >, inviwo::OptionProperty< RenderMode >, inviwo::OptionProperty< SamplingDomain >, inviwo::OptionProperty< ScatterPlotGL::SortingOrder >, inviwo::OptionProperty< SeedingSpace >, inviwo::OptionProperty< Shader::OnError >, inviwo::OptionProperty< Shader::UniformWarning >, inviwo::OptionProperty< ShadingMode >, inviwo::OptionProperty< size_t >, inviwo::OptionProperty< Sizing >, inviwo::OptionProperty< SourceType >, inviwo::OptionProperty< splitter::Direction >, inviwo::OptionProperty< splitter::Style >, inviwo::OptionProperty< std::filesystem::path >, inviwo::OptionProperty< std::string >, inviwo::OptionProperty< StipplingSettingsInterface::Mode >, inviwo::OptionProperty< TickStyle >, inviwo::OptionProperty< Transform >, inviwo::OptionProperty< Type >, inviwo::OptionProperty< Upsampling >, inviwo::OptionProperty< util::DownsamplingMode >, inviwo::OptionProperty< util::VolumeLaplacianPostProcessing >, inviwo::OptionProperty< utilgl::debug::BreakLevel >, inviwo::OptionProperty< utilgl::debug::Mode >, inviwo::OptionProperty< utilgl::debug::Severity >, inviwo::OptionProperty< Wrapping >, inviwo::StringsProperty< N >, inviwo::StringsProperty< 2 >, and inviwo::StringsProperty< 3 >.
|
virtual |
This function should describe the state of the property By default this will return a document describing all the state. i.e. Identifier, DisplayName, Help, InvalidationLevel, PropertySemantics, etc. Derived properties should extend this function and add their state, usually values etc. The description is usually shown as a tooltip in the GUI.
Reimplemented in inviwo::BoolProperty, inviwo::FileProperty, inviwo::MinMaxProperty< T >, inviwo::MinMaxProperty< double >, inviwo::MinMaxProperty< float >, inviwo::MinMaxProperty< int >, inviwo::MinMaxProperty< size_t >, inviwo::MultiFileProperty, inviwo::OptionProperty< T >, inviwo::OptionProperty< AngleMeasure >, inviwo::OptionProperty< AxisRangeMode >, inviwo::OptionProperty< AxisSelection >, inviwo::OptionProperty< BackgroundStyle >, inviwo::OptionProperty< BasisPropertyMode >, inviwo::OptionProperty< BasisPropertyReference >, inviwo::OptionProperty< BlendMode >, inviwo::OptionProperty< BoundaryType >, inviwo::OptionProperty< BoxSelectionSettingsInterface::Mode >, inviwo::OptionProperty< BrushBy >, inviwo::OptionProperty< BrushingMode >, inviwo::OptionProperty< BufferTarget >, inviwo::OptionProperty< BufferUsage >, inviwo::OptionProperty< CaptionType >, inviwo::OptionProperty< CartesianCoordinateAxis >, inviwo::OptionProperty< cimgutil::InterpolationType >, inviwo::OptionProperty< Classification >, inviwo::OptionProperty< ClipSide >, inviwo::OptionProperty< colorbrewer::Family >, inviwo::OptionProperty< ColoringGroup >, inviwo::OptionProperty< ColoringMethod >, inviwo::OptionProperty< ColormapType >, inviwo::OptionProperty< ColorSource >, inviwo::OptionProperty< ColumnMatch >, inviwo::OptionProperty< CompositingType >, inviwo::OptionProperty< ConnectivityType >, inviwo::OptionProperty< CoordinateOffset >, inviwo::OptionProperty< CoordinateSpace >, inviwo::OptionProperty< CSVReader::EmptyField >, inviwo::OptionProperty< DataFormatId >, inviwo::OptionProperty< DataRangeMode >, inviwo::OptionProperty< double >, inviwo::OptionProperty< DrawType >, inviwo::OptionProperty< ffmpeg::Recorder::Mode >, inviwo::OptionProperty< Generator >, inviwo::OptionProperty< glui::BoxLayout::LayoutDirection >, inviwo::OptionProperty< GlyphType >, inviwo::OptionProperty< GradientComputation >, inviwo::OptionProperty< HatchingBlendingMode >, inviwo::OptionProperty< HatchingMode >, inviwo::OptionProperty< HistogramMode >, inviwo::OptionProperty< InputType >, inviwo::OptionProperty< int >, inviwo::OptionProperty< IntegralLineProperties::Direction >, inviwo::OptionProperty< IntegralLineProperties::IntegrationScheme >, inviwo::OptionProperty< InterpolationType >, inviwo::OptionProperty< inviwo::ffmpeg::CodecID >, inviwo::OptionProperty< inviwo::FileExtension >, inviwo::OptionProperty< JoinType >, inviwo::OptionProperty< LabelPlacement >, inviwo::OptionProperty< LabelPosition >, inviwo::OptionProperty< LabelType >, inviwo::OptionProperty< LayerType >, inviwo::OptionProperty< Layout >, inviwo::OptionProperty< Location >, inviwo::OptionProperty< luminance::Model >, inviwo::OptionProperty< MeshType >, inviwo::OptionProperty< meshutil::CalculateMeshNormalsMode >, inviwo::OptionProperty< MessageBreakLevel >, inviwo::OptionProperty< Method >, inviwo::OptionProperty< Mode >, inviwo::OptionProperty< NoiseType >, inviwo::OptionProperty< NormalizationMode >, inviwo::OptionProperty< NormalSource >, inviwo::OptionProperty< OffsetScaling >, inviwo::OptionProperty< Operator >, inviwo::OptionProperty< Orientation >, inviwo::OptionProperty< Output >, inviwo::OptionProperty< OutputFormat >, inviwo::OptionProperty< OutputType >, inviwo::OptionProperty< PlaybackMode >, inviwo::OptionProperty< Positioning >, inviwo::OptionProperty< RenderingType >, inviwo::OptionProperty< RenderMode >, inviwo::OptionProperty< SamplingDomain >, inviwo::OptionProperty< ScatterPlotGL::SortingOrder >, inviwo::OptionProperty< SeedingSpace >, inviwo::OptionProperty< Shader::OnError >, inviwo::OptionProperty< Shader::UniformWarning >, inviwo::OptionProperty< ShadingMode >, inviwo::OptionProperty< size_t >, inviwo::OptionProperty< Sizing >, inviwo::OptionProperty< SourceType >, inviwo::OptionProperty< splitter::Direction >, inviwo::OptionProperty< splitter::Style >, inviwo::OptionProperty< std::filesystem::path >, inviwo::OptionProperty< std::string >, inviwo::OptionProperty< StipplingSettingsInterface::Mode >, inviwo::OptionProperty< TickStyle >, inviwo::OptionProperty< Transform >, inviwo::OptionProperty< Type >, inviwo::OptionProperty< Upsampling >, inviwo::OptionProperty< util::DownsamplingMode >, inviwo::OptionProperty< util::VolumeLaplacianPostProcessing >, inviwo::OptionProperty< utilgl::debug::BreakLevel >, inviwo::OptionProperty< utilgl::debug::Mode >, inviwo::OptionProperty< utilgl::debug::Severity >, inviwo::OptionProperty< Wrapping >, inviwo::OrdinalProperty< T >, inviwo::OrdinalProperty< double >, inviwo::OrdinalProperty< dvec2 >, inviwo::OrdinalProperty< dvec3 >, inviwo::OrdinalProperty< dvec4 >, inviwo::OrdinalProperty< float >, inviwo::OrdinalProperty< int >, inviwo::OrdinalProperty< ivec2 >, inviwo::OrdinalProperty< ivec3 >, inviwo::OrdinalProperty< ivec4 >, inviwo::OrdinalProperty< mat3 >, inviwo::OrdinalProperty< mat4 >, inviwo::OrdinalProperty< size2_t >, inviwo::OrdinalProperty< size3_t >, inviwo::OrdinalProperty< size4_t >, inviwo::OrdinalProperty< size_t >, inviwo::OrdinalProperty< vec2 >, inviwo::OrdinalProperty< vec3 >, inviwo::OrdinalProperty< vec4 >, inviwo::OrdinalRefProperty< T >, inviwo::OrdinalRefProperty< float >, inviwo::OrdinalRefProperty< vec3 >, inviwo::StringProperty, inviwo::StringsProperty< N >, inviwo::StringsProperty< 2 >, and inviwo::StringsProperty< 3 >.
const Document & inviwo::Property::getHelp | ( | ) | const |
The help should describe what state the property represents and how it is used. This will be shown in the Processor help, and as part of the property description in the property tooltip in the GUI.
const std::string & inviwo::Property::getPath | ( | ) | const |
Get the property path as string.
const std::vector< PropertyWidget * > & inviwo::Property::getWidgets | ( | ) | const |
Retrieve all registered widgets.
bool inviwo::Property::hasWidgets | ( | ) | const |
Does the property have any registered widgets.
|
virtual |
Check if the property is in it's default state, i.e. resetToDefaultState would do nothing
Reimplemented in inviwo::ButtonProperty, inviwo::CameraProperty, inviwo::CompositeProperty, inviwo::EventProperty, inviwo::FileProperty, inviwo::ListProperty, inviwo::MinMaxProperty< T >, inviwo::MinMaxProperty< double >, inviwo::MinMaxProperty< float >, inviwo::MinMaxProperty< int >, inviwo::MinMaxProperty< size_t >, inviwo::MultiFileProperty, inviwo::OptionProperty< T >, inviwo::OptionProperty< AngleMeasure >, inviwo::OptionProperty< AxisRangeMode >, inviwo::OptionProperty< AxisSelection >, inviwo::OptionProperty< BackgroundStyle >, inviwo::OptionProperty< BasisPropertyMode >, inviwo::OptionProperty< BasisPropertyReference >, inviwo::OptionProperty< BlendMode >, inviwo::OptionProperty< BoundaryType >, inviwo::OptionProperty< BoxSelectionSettingsInterface::Mode >, inviwo::OptionProperty< BrushBy >, inviwo::OptionProperty< BrushingMode >, inviwo::OptionProperty< BufferTarget >, inviwo::OptionProperty< BufferUsage >, inviwo::OptionProperty< CaptionType >, inviwo::OptionProperty< CartesianCoordinateAxis >, inviwo::OptionProperty< cimgutil::InterpolationType >, inviwo::OptionProperty< Classification >, inviwo::OptionProperty< ClipSide >, inviwo::OptionProperty< colorbrewer::Family >, inviwo::OptionProperty< ColoringGroup >, inviwo::OptionProperty< ColoringMethod >, inviwo::OptionProperty< ColormapType >, inviwo::OptionProperty< ColorSource >, inviwo::OptionProperty< ColumnMatch >, inviwo::OptionProperty< CompositingType >, inviwo::OptionProperty< ConnectivityType >, inviwo::OptionProperty< CoordinateOffset >, inviwo::OptionProperty< CoordinateSpace >, inviwo::OptionProperty< CSVReader::EmptyField >, inviwo::OptionProperty< DataFormatId >, inviwo::OptionProperty< DataRangeMode >, inviwo::OptionProperty< double >, inviwo::OptionProperty< DrawType >, inviwo::OptionProperty< ffmpeg::Recorder::Mode >, inviwo::OptionProperty< Generator >, inviwo::OptionProperty< glui::BoxLayout::LayoutDirection >, inviwo::OptionProperty< GlyphType >, inviwo::OptionProperty< GradientComputation >, inviwo::OptionProperty< HatchingBlendingMode >, inviwo::OptionProperty< HatchingMode >, inviwo::OptionProperty< HistogramMode >, inviwo::OptionProperty< InputType >, inviwo::OptionProperty< int >, inviwo::OptionProperty< IntegralLineProperties::Direction >, inviwo::OptionProperty< IntegralLineProperties::IntegrationScheme >, inviwo::OptionProperty< InterpolationType >, inviwo::OptionProperty< inviwo::ffmpeg::CodecID >, inviwo::OptionProperty< inviwo::FileExtension >, inviwo::OptionProperty< JoinType >, inviwo::OptionProperty< LabelPlacement >, inviwo::OptionProperty< LabelPosition >, inviwo::OptionProperty< LabelType >, inviwo::OptionProperty< LayerType >, inviwo::OptionProperty< Layout >, inviwo::OptionProperty< Location >, inviwo::OptionProperty< luminance::Model >, inviwo::OptionProperty< MeshType >, inviwo::OptionProperty< meshutil::CalculateMeshNormalsMode >, inviwo::OptionProperty< MessageBreakLevel >, inviwo::OptionProperty< Method >, inviwo::OptionProperty< Mode >, inviwo::OptionProperty< NoiseType >, inviwo::OptionProperty< NormalizationMode >, inviwo::OptionProperty< NormalSource >, inviwo::OptionProperty< OffsetScaling >, inviwo::OptionProperty< Operator >, inviwo::OptionProperty< Orientation >, inviwo::OptionProperty< Output >, inviwo::OptionProperty< OutputFormat >, inviwo::OptionProperty< OutputType >, inviwo::OptionProperty< PlaybackMode >, inviwo::OptionProperty< Positioning >, inviwo::OptionProperty< RenderingType >, inviwo::OptionProperty< RenderMode >, inviwo::OptionProperty< SamplingDomain >, inviwo::OptionProperty< ScatterPlotGL::SortingOrder >, inviwo::OptionProperty< SeedingSpace >, inviwo::OptionProperty< Shader::OnError >, inviwo::OptionProperty< Shader::UniformWarning >, inviwo::OptionProperty< ShadingMode >, inviwo::OptionProperty< size_t >, inviwo::OptionProperty< Sizing >, inviwo::OptionProperty< SourceType >, inviwo::OptionProperty< splitter::Direction >, inviwo::OptionProperty< splitter::Style >, inviwo::OptionProperty< std::filesystem::path >, inviwo::OptionProperty< std::string >, inviwo::OptionProperty< StipplingSettingsInterface::Mode >, inviwo::OptionProperty< TickStyle >, inviwo::OptionProperty< Transform >, inviwo::OptionProperty< Type >, inviwo::OptionProperty< Upsampling >, inviwo::OptionProperty< util::DownsamplingMode >, inviwo::OptionProperty< util::VolumeLaplacianPostProcessing >, inviwo::OptionProperty< utilgl::debug::BreakLevel >, inviwo::OptionProperty< utilgl::debug::Mode >, inviwo::OptionProperty< utilgl::debug::Severity >, inviwo::OptionProperty< Wrapping >, inviwo::OrdinalProperty< T >, inviwo::OrdinalProperty< double >, inviwo::OrdinalProperty< dvec2 >, inviwo::OrdinalProperty< dvec3 >, inviwo::OrdinalProperty< dvec4 >, inviwo::OrdinalProperty< float >, inviwo::OrdinalProperty< int >, inviwo::OrdinalProperty< ivec2 >, inviwo::OrdinalProperty< ivec3 >, inviwo::OrdinalProperty< ivec4 >, inviwo::OrdinalProperty< mat3 >, inviwo::OrdinalProperty< mat4 >, inviwo::OrdinalProperty< size2_t >, inviwo::OrdinalProperty< size3_t >, inviwo::OrdinalProperty< size4_t >, inviwo::OrdinalProperty< size_t >, inviwo::OrdinalProperty< vec2 >, inviwo::OrdinalProperty< vec3 >, inviwo::OrdinalProperty< vec4 >, inviwo::OrdinalRefProperty< T >, inviwo::OrdinalRefProperty< float >, inviwo::OrdinalRefProperty< vec3 >, inviwo::TemplateProperty< T >, inviwo::TemplateProperty< bool >, and inviwo::TemplateProperty< std::string >.
|
virtual |
Determinate if the property should be included in the serialization Depends on the PropertySerializationMode and if the property is in the default state. If the mode is All it always return true, None always returns false, and default delegates to isDefaultState()
Reimplemented in inviwo::CameraProperty, inviwo::CompositeProperty, and inviwo::ListProperty.
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::BasisProperty, inviwo::ButtonGroupProperty, inviwo::ButtonProperty, inviwo::CameraProperty, inviwo::CompositeProperty, inviwo::EventProperty, inviwo::FileProperty, inviwo::IsoValueProperty, inviwo::ListProperty, inviwo::MinMaxProperty< T >, inviwo::MinMaxProperty< double >, inviwo::MinMaxProperty< float >, inviwo::MinMaxProperty< int >, inviwo::MinMaxProperty< size_t >, inviwo::MultiFileProperty, inviwo::OptionProperty< T >, inviwo::OptionProperty< AngleMeasure >, inviwo::OptionProperty< AxisRangeMode >, inviwo::OptionProperty< AxisSelection >, inviwo::OptionProperty< BackgroundStyle >, inviwo::OptionProperty< BasisPropertyMode >, inviwo::OptionProperty< BasisPropertyReference >, inviwo::OptionProperty< BlendMode >, inviwo::OptionProperty< BoundaryType >, inviwo::OptionProperty< BoxSelectionSettingsInterface::Mode >, inviwo::OptionProperty< BrushBy >, inviwo::OptionProperty< BrushingMode >, inviwo::OptionProperty< BufferTarget >, inviwo::OptionProperty< BufferUsage >, inviwo::OptionProperty< CaptionType >, inviwo::OptionProperty< CartesianCoordinateAxis >, inviwo::OptionProperty< cimgutil::InterpolationType >, inviwo::OptionProperty< Classification >, inviwo::OptionProperty< ClipSide >, inviwo::OptionProperty< colorbrewer::Family >, inviwo::OptionProperty< ColoringGroup >, inviwo::OptionProperty< ColoringMethod >, inviwo::OptionProperty< ColormapType >, inviwo::OptionProperty< ColorSource >, inviwo::OptionProperty< ColumnMatch >, inviwo::OptionProperty< CompositingType >, inviwo::OptionProperty< ConnectivityType >, inviwo::OptionProperty< CoordinateOffset >, inviwo::OptionProperty< CoordinateSpace >, inviwo::OptionProperty< CSVReader::EmptyField >, inviwo::OptionProperty< DataFormatId >, inviwo::OptionProperty< DataRangeMode >, inviwo::OptionProperty< double >, inviwo::OptionProperty< DrawType >, inviwo::OptionProperty< ffmpeg::Recorder::Mode >, inviwo::OptionProperty< Generator >, inviwo::OptionProperty< glui::BoxLayout::LayoutDirection >, inviwo::OptionProperty< GlyphType >, inviwo::OptionProperty< GradientComputation >, inviwo::OptionProperty< HatchingBlendingMode >, inviwo::OptionProperty< HatchingMode >, inviwo::OptionProperty< HistogramMode >, inviwo::OptionProperty< InputType >, inviwo::OptionProperty< int >, inviwo::OptionProperty< IntegralLineProperties::Direction >, inviwo::OptionProperty< IntegralLineProperties::IntegrationScheme >, inviwo::OptionProperty< InterpolationType >, inviwo::OptionProperty< inviwo::ffmpeg::CodecID >, inviwo::OptionProperty< inviwo::FileExtension >, inviwo::OptionProperty< JoinType >, inviwo::OptionProperty< LabelPlacement >, inviwo::OptionProperty< LabelPosition >, inviwo::OptionProperty< LabelType >, inviwo::OptionProperty< LayerType >, inviwo::OptionProperty< Layout >, inviwo::OptionProperty< Location >, inviwo::OptionProperty< luminance::Model >, inviwo::OptionProperty< MeshType >, inviwo::OptionProperty< meshutil::CalculateMeshNormalsMode >, inviwo::OptionProperty< MessageBreakLevel >, inviwo::OptionProperty< Method >, inviwo::OptionProperty< Mode >, inviwo::OptionProperty< NoiseType >, inviwo::OptionProperty< NormalizationMode >, inviwo::OptionProperty< NormalSource >, inviwo::OptionProperty< OffsetScaling >, inviwo::OptionProperty< Operator >, inviwo::OptionProperty< Orientation >, inviwo::OptionProperty< Output >, inviwo::OptionProperty< OutputFormat >, inviwo::OptionProperty< OutputType >, inviwo::OptionProperty< PlaybackMode >, inviwo::OptionProperty< Positioning >, inviwo::OptionProperty< RenderingType >, inviwo::OptionProperty< RenderMode >, inviwo::OptionProperty< SamplingDomain >, inviwo::OptionProperty< ScatterPlotGL::SortingOrder >, inviwo::OptionProperty< SeedingSpace >, inviwo::OptionProperty< Shader::OnError >, inviwo::OptionProperty< Shader::UniformWarning >, inviwo::OptionProperty< ShadingMode >, inviwo::OptionProperty< size_t >, inviwo::OptionProperty< Sizing >, inviwo::OptionProperty< SourceType >, inviwo::OptionProperty< splitter::Direction >, inviwo::OptionProperty< splitter::Style >, inviwo::OptionProperty< std::filesystem::path >, inviwo::OptionProperty< std::string >, inviwo::OptionProperty< StipplingSettingsInterface::Mode >, inviwo::OptionProperty< TickStyle >, inviwo::OptionProperty< Transform >, inviwo::OptionProperty< Type >, inviwo::OptionProperty< Upsampling >, inviwo::OptionProperty< util::DownsamplingMode >, inviwo::OptionProperty< util::VolumeLaplacianPostProcessing >, inviwo::OptionProperty< utilgl::debug::BreakLevel >, inviwo::OptionProperty< utilgl::debug::Mode >, inviwo::OptionProperty< utilgl::debug::Severity >, inviwo::OptionProperty< Wrapping >, inviwo::OrdinalProperty< T >, inviwo::OrdinalProperty< double >, inviwo::OrdinalProperty< dvec2 >, inviwo::OrdinalProperty< dvec3 >, inviwo::OrdinalProperty< dvec4 >, inviwo::OrdinalProperty< float >, inviwo::OrdinalProperty< int >, inviwo::OrdinalProperty< ivec2 >, inviwo::OrdinalProperty< ivec3 >, inviwo::OrdinalProperty< ivec4 >, inviwo::OrdinalProperty< mat3 >, inviwo::OrdinalProperty< mat4 >, inviwo::OrdinalProperty< size2_t >, inviwo::OrdinalProperty< size3_t >, inviwo::OrdinalProperty< size4_t >, inviwo::OrdinalProperty< size_t >, inviwo::OrdinalProperty< vec2 >, inviwo::OrdinalProperty< vec3 >, inviwo::OrdinalProperty< vec4 >, inviwo::OrdinalRefProperty< T >, inviwo::OrdinalRefProperty< float >, inviwo::OrdinalRefProperty< vec3 >, inviwo::TemplateProperty< T >, inviwo::TemplateProperty< bool >, inviwo::TemplateProperty< std::string >, and inviwo::TransferFunctionProperty.
|
overridevirtual |
Implements inviwo::Serializable.
|
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::BaseOptionProperty, inviwo::ButtonGroupProperty, inviwo::ButtonProperty, inviwo::CameraProperty, inviwo::ColumnOptionProperty, inviwo::CompositeProperty, inviwo::FileProperty, inviwo::IsoTFProperty, inviwo::IsoValueProperty, inviwo::ListProperty, inviwo::MinMaxProperty< T >, inviwo::MinMaxProperty< double >, inviwo::MinMaxProperty< float >, inviwo::MinMaxProperty< int >, inviwo::MinMaxProperty< size_t >, inviwo::MultiFileProperty, inviwo::OptionProperty< T >, inviwo::OptionProperty< AngleMeasure >, inviwo::OptionProperty< AxisRangeMode >, inviwo::OptionProperty< AxisSelection >, inviwo::OptionProperty< BackgroundStyle >, inviwo::OptionProperty< BasisPropertyMode >, inviwo::OptionProperty< BasisPropertyReference >, inviwo::OptionProperty< BlendMode >, inviwo::OptionProperty< BoundaryType >, inviwo::OptionProperty< BoxSelectionSettingsInterface::Mode >, inviwo::OptionProperty< BrushBy >, inviwo::OptionProperty< BrushingMode >, inviwo::OptionProperty< BufferTarget >, inviwo::OptionProperty< BufferUsage >, inviwo::OptionProperty< CaptionType >, inviwo::OptionProperty< CartesianCoordinateAxis >, inviwo::OptionProperty< cimgutil::InterpolationType >, inviwo::OptionProperty< Classification >, inviwo::OptionProperty< ClipSide >, inviwo::OptionProperty< colorbrewer::Family >, inviwo::OptionProperty< ColoringGroup >, inviwo::OptionProperty< ColoringMethod >, inviwo::OptionProperty< ColormapType >, inviwo::OptionProperty< ColorSource >, inviwo::OptionProperty< ColumnMatch >, inviwo::OptionProperty< CompositingType >, inviwo::OptionProperty< ConnectivityType >, inviwo::OptionProperty< CoordinateOffset >, inviwo::OptionProperty< CoordinateSpace >, inviwo::OptionProperty< CSVReader::EmptyField >, inviwo::OptionProperty< DataFormatId >, inviwo::OptionProperty< DataRangeMode >, inviwo::OptionProperty< double >, inviwo::OptionProperty< DrawType >, inviwo::OptionProperty< ffmpeg::Recorder::Mode >, inviwo::OptionProperty< Generator >, inviwo::OptionProperty< glui::BoxLayout::LayoutDirection >, inviwo::OptionProperty< GlyphType >, inviwo::OptionProperty< GradientComputation >, inviwo::OptionProperty< HatchingBlendingMode >, inviwo::OptionProperty< HatchingMode >, inviwo::OptionProperty< HistogramMode >, inviwo::OptionProperty< InputType >, inviwo::OptionProperty< int >, inviwo::OptionProperty< IntegralLineProperties::Direction >, inviwo::OptionProperty< IntegralLineProperties::IntegrationScheme >, inviwo::OptionProperty< InterpolationType >, inviwo::OptionProperty< inviwo::ffmpeg::CodecID >, inviwo::OptionProperty< inviwo::FileExtension >, inviwo::OptionProperty< JoinType >, inviwo::OptionProperty< LabelPlacement >, inviwo::OptionProperty< LabelPosition >, inviwo::OptionProperty< LabelType >, inviwo::OptionProperty< LayerType >, inviwo::OptionProperty< Layout >, inviwo::OptionProperty< Location >, inviwo::OptionProperty< luminance::Model >, inviwo::OptionProperty< MeshType >, inviwo::OptionProperty< meshutil::CalculateMeshNormalsMode >, inviwo::OptionProperty< MessageBreakLevel >, inviwo::OptionProperty< Method >, inviwo::OptionProperty< Mode >, inviwo::OptionProperty< NoiseType >, inviwo::OptionProperty< NormalizationMode >, inviwo::OptionProperty< NormalSource >, inviwo::OptionProperty< OffsetScaling >, inviwo::OptionProperty< Operator >, inviwo::OptionProperty< Orientation >, inviwo::OptionProperty< Output >, inviwo::OptionProperty< OutputFormat >, inviwo::OptionProperty< OutputType >, inviwo::OptionProperty< PlaybackMode >, inviwo::OptionProperty< Positioning >, inviwo::OptionProperty< RenderingType >, inviwo::OptionProperty< RenderMode >, inviwo::OptionProperty< SamplingDomain >, inviwo::OptionProperty< ScatterPlotGL::SortingOrder >, inviwo::OptionProperty< SeedingSpace >, inviwo::OptionProperty< Shader::OnError >, inviwo::OptionProperty< Shader::UniformWarning >, inviwo::OptionProperty< ShadingMode >, inviwo::OptionProperty< size_t >, inviwo::OptionProperty< Sizing >, inviwo::OptionProperty< SourceType >, inviwo::OptionProperty< splitter::Direction >, inviwo::OptionProperty< splitter::Style >, inviwo::OptionProperty< std::filesystem::path >, inviwo::OptionProperty< std::string >, inviwo::OptionProperty< StipplingSettingsInterface::Mode >, inviwo::OptionProperty< TickStyle >, inviwo::OptionProperty< Transform >, inviwo::OptionProperty< Type >, inviwo::OptionProperty< Upsampling >, inviwo::OptionProperty< util::DownsamplingMode >, inviwo::OptionProperty< util::VolumeLaplacianPostProcessing >, inviwo::OptionProperty< utilgl::debug::BreakLevel >, inviwo::OptionProperty< utilgl::debug::Mode >, inviwo::OptionProperty< utilgl::debug::Severity >, inviwo::OptionProperty< Wrapping >, inviwo::OrdinalProperty< T >, inviwo::OrdinalProperty< double >, inviwo::OrdinalProperty< dvec2 >, inviwo::OrdinalProperty< dvec3 >, inviwo::OrdinalProperty< dvec4 >, inviwo::OrdinalProperty< float >, inviwo::OrdinalProperty< int >, inviwo::OrdinalProperty< ivec2 >, inviwo::OrdinalProperty< ivec3 >, inviwo::OrdinalProperty< ivec4 >, inviwo::OrdinalProperty< mat3 >, inviwo::OrdinalProperty< mat4 >, inviwo::OrdinalProperty< size2_t >, inviwo::OrdinalProperty< size3_t >, inviwo::OrdinalProperty< size4_t >, inviwo::OrdinalProperty< size_t >, inviwo::OrdinalProperty< vec2 >, inviwo::OrdinalProperty< vec3 >, inviwo::OrdinalProperty< vec4 >, inviwo::OrdinalRefProperty< T >, inviwo::OrdinalRefProperty< float >, inviwo::OrdinalRefProperty< vec3 >, inviwo::PositionProperty, inviwo::TemplateProperty< T >, inviwo::TemplateProperty< bool >, inviwo::TemplateProperty< std::string >, and inviwo::TransferFunctionProperty.
|
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::BasisProperty, inviwo::CameraProperty, inviwo::CompositeProperty, inviwo::EventProperty, inviwo::FileProperty, inviwo::IsoValueProperty, inviwo::ListProperty, inviwo::MinMaxProperty< T >, inviwo::MinMaxProperty< double >, inviwo::MinMaxProperty< float >, inviwo::MinMaxProperty< int >, inviwo::MinMaxProperty< size_t >, inviwo::MultiFileProperty, inviwo::OptionProperty< T >, inviwo::OptionProperty< AngleMeasure >, inviwo::OptionProperty< AxisRangeMode >, inviwo::OptionProperty< AxisSelection >, inviwo::OptionProperty< BackgroundStyle >, inviwo::OptionProperty< BasisPropertyMode >, inviwo::OptionProperty< BasisPropertyReference >, inviwo::OptionProperty< BlendMode >, inviwo::OptionProperty< BoundaryType >, inviwo::OptionProperty< BoxSelectionSettingsInterface::Mode >, inviwo::OptionProperty< BrushBy >, inviwo::OptionProperty< BrushingMode >, inviwo::OptionProperty< BufferTarget >, inviwo::OptionProperty< BufferUsage >, inviwo::OptionProperty< CaptionType >, inviwo::OptionProperty< CartesianCoordinateAxis >, inviwo::OptionProperty< cimgutil::InterpolationType >, inviwo::OptionProperty< Classification >, inviwo::OptionProperty< ClipSide >, inviwo::OptionProperty< colorbrewer::Family >, inviwo::OptionProperty< ColoringGroup >, inviwo::OptionProperty< ColoringMethod >, inviwo::OptionProperty< ColormapType >, inviwo::OptionProperty< ColorSource >, inviwo::OptionProperty< ColumnMatch >, inviwo::OptionProperty< CompositingType >, inviwo::OptionProperty< ConnectivityType >, inviwo::OptionProperty< CoordinateOffset >, inviwo::OptionProperty< CoordinateSpace >, inviwo::OptionProperty< CSVReader::EmptyField >, inviwo::OptionProperty< DataFormatId >, inviwo::OptionProperty< DataRangeMode >, inviwo::OptionProperty< double >, inviwo::OptionProperty< DrawType >, inviwo::OptionProperty< ffmpeg::Recorder::Mode >, inviwo::OptionProperty< Generator >, inviwo::OptionProperty< glui::BoxLayout::LayoutDirection >, inviwo::OptionProperty< GlyphType >, inviwo::OptionProperty< GradientComputation >, inviwo::OptionProperty< HatchingBlendingMode >, inviwo::OptionProperty< HatchingMode >, inviwo::OptionProperty< HistogramMode >, inviwo::OptionProperty< InputType >, inviwo::OptionProperty< int >, inviwo::OptionProperty< IntegralLineProperties::Direction >, inviwo::OptionProperty< IntegralLineProperties::IntegrationScheme >, inviwo::OptionProperty< InterpolationType >, inviwo::OptionProperty< inviwo::ffmpeg::CodecID >, inviwo::OptionProperty< inviwo::FileExtension >, inviwo::OptionProperty< JoinType >, inviwo::OptionProperty< LabelPlacement >, inviwo::OptionProperty< LabelPosition >, inviwo::OptionProperty< LabelType >, inviwo::OptionProperty< LayerType >, inviwo::OptionProperty< Layout >, inviwo::OptionProperty< Location >, inviwo::OptionProperty< luminance::Model >, inviwo::OptionProperty< MeshType >, inviwo::OptionProperty< meshutil::CalculateMeshNormalsMode >, inviwo::OptionProperty< MessageBreakLevel >, inviwo::OptionProperty< Method >, inviwo::OptionProperty< Mode >, inviwo::OptionProperty< NoiseType >, inviwo::OptionProperty< NormalizationMode >, inviwo::OptionProperty< NormalSource >, inviwo::OptionProperty< OffsetScaling >, inviwo::OptionProperty< Operator >, inviwo::OptionProperty< Orientation >, inviwo::OptionProperty< Output >, inviwo::OptionProperty< OutputFormat >, inviwo::OptionProperty< OutputType >, inviwo::OptionProperty< PlaybackMode >, inviwo::OptionProperty< Positioning >, inviwo::OptionProperty< RenderingType >, inviwo::OptionProperty< RenderMode >, inviwo::OptionProperty< SamplingDomain >, inviwo::OptionProperty< ScatterPlotGL::SortingOrder >, inviwo::OptionProperty< SeedingSpace >, inviwo::OptionProperty< Shader::OnError >, inviwo::OptionProperty< Shader::UniformWarning >, inviwo::OptionProperty< ShadingMode >, inviwo::OptionProperty< size_t >, inviwo::OptionProperty< Sizing >, inviwo::OptionProperty< SourceType >, inviwo::OptionProperty< splitter::Direction >, inviwo::OptionProperty< splitter::Style >, inviwo::OptionProperty< std::filesystem::path >, inviwo::OptionProperty< std::string >, inviwo::OptionProperty< StipplingSettingsInterface::Mode >, inviwo::OptionProperty< TickStyle >, inviwo::OptionProperty< Transform >, inviwo::OptionProperty< Type >, inviwo::OptionProperty< Upsampling >, inviwo::OptionProperty< util::DownsamplingMode >, inviwo::OptionProperty< util::VolumeLaplacianPostProcessing >, inviwo::OptionProperty< utilgl::debug::BreakLevel >, inviwo::OptionProperty< utilgl::debug::Mode >, inviwo::OptionProperty< utilgl::debug::Severity >, inviwo::OptionProperty< Wrapping >, inviwo::OrdinalProperty< T >, inviwo::OrdinalProperty< double >, inviwo::OrdinalProperty< dvec2 >, inviwo::OrdinalProperty< dvec3 >, inviwo::OrdinalProperty< dvec4 >, inviwo::OrdinalProperty< float >, inviwo::OrdinalProperty< int >, inviwo::OrdinalProperty< ivec2 >, inviwo::OrdinalProperty< ivec3 >, inviwo::OrdinalProperty< ivec4 >, inviwo::OrdinalProperty< mat3 >, inviwo::OrdinalProperty< mat4 >, inviwo::OrdinalProperty< size2_t >, inviwo::OrdinalProperty< size3_t >, inviwo::OrdinalProperty< size4_t >, inviwo::OrdinalProperty< size_t >, inviwo::OrdinalProperty< vec2 >, inviwo::OrdinalProperty< vec3 >, inviwo::OrdinalProperty< vec4 >, inviwo::OrdinalRefProperty< T >, inviwo::OrdinalRefProperty< float >, inviwo::OrdinalRefProperty< vec3 >, inviwo::TemplateProperty< T >, inviwo::TemplateProperty< bool >, inviwo::TemplateProperty< std::string >, and inviwo::TransferFunctionProperty.
|
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
|
virtual |
Enable or disable editing of property.
Reimplemented in inviwo::CompositeProperty.
void inviwo::Property::updateWidgets | ( | ) |
Update all widgets using the current property state except for the initiating widget.