Click or drag to resize

MVCANControllerEditImmutableDocBaseTModel, TView Class

Base class of controllers that edit an immutable document or a document that is a struct. This means that the document can be copied from one member to another without cloning it.
Inheritance Hierarchy
SystemObject
  Altaxo.GuiControllerBase
    Altaxo.GuiMVCANControllerEditImmutableDocBaseTModel, TView
      More

Namespace: Altaxo.Gui
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public abstract class MVCANControllerEditImmutableDocBase<TModel, TView> : ControllerBase, 
	IMVCANController, IMVCAController, IMVCController, IDisposable, IApplyController, 
	INotifyPropertyChanged
where TView : class

Type Parameters

TModel
The type of the document to edit.
TView
The type of the view.

The MVCANControllerEditImmutableDocBaseTModel, TView type exposes the following members.

Constructors
 NameDescription
Protected methodMVCANControllerEditImmutableDocBaseTModel, TViewInitializes a new instance of the MVCANControllerEditImmutableDocBaseTModel, TView class
Top
Properties
 NameDescription
Public propertyIsDisposedGet a value indication whether this controller is already disposed.
(Inherited from ControllerBase)
Public propertyModelObject Returns the document that this controller has edited. Here the state of the document has changed only after calling Apply(Boolean).
Protected propertyNoDocumentException
(Inherited from ControllerBase)
Protected propertyNotInitializedException
(Inherited from ControllerBase)
Protected propertyNoViewException
(Inherited from ControllerBase)
Public propertyUseDocumentCopy Sets whether or not a copy of the document is used. If set to true, a copy of the document is used, so if the controller is not applied, all changes can be reverted. If set to false, no copy must be made. The document is directly changed by the controller, and changes can not be reverted. Use the last option if a controller up in the hierarchie has already made a copy of the document.
Public propertyViewObject Returns the Gui element that shows the model to the user.
Top
Methods
 NameDescription
Public methodApply Called when the user input has to be applied to the document being controlled. Returns true if Apply is successfull.
Protected methodApplyEnd 
Protected methodAttachView Override this function to attach the view to the controller, either by subscribing to events of the view, or by setting the controller object on the view.
Protected methodCheckDocumentInitializedT
(Inherited from ControllerBase)
Protected methodDetachView Override this function to detach the view from the controller, either by unsubscribing to events of the view, or by setting the controller object on the view to null.
Public methodDispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from ControllerBase)
Public methodDispose(Boolean) Releases unmanaged and - optionally - managed resources.
(Overrides ControllerBaseDispose(Boolean))
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetSubControllers Enumerates the sub controllers. This function is called on Dispose(Boolean) of this controller to dispose the subcontrollers too. By overriding this function, there is no need to override Dispose(Boolean)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodInitialize Basic initialization of the document.
Public methodInitializeDocument Initialize the controller with the document. If successfull, the function has to return true.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodOnPropertyChanged
(Inherited from ControllerBase)
Public methodRevert Try to revert changes to the model, i.e. restores the original state of the model.
Protected methodThrowIfNotInitializedThrows an exception if the controller is not initialized with a document.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventPropertyChanged Occurs when a property value changes.
(Inherited from ControllerBase)
Top
Fields
 NameDescription
Protected field_docThe document to edit. If _useDocumentCopy is true, this is a copy of the original document; otherwise, it is the original document itself.
Protected field_originalDocThe original document. If _useDocumentCopy is false, it maybe has been edited by this controller.
Protected field_useDocumentCopyIf true, a copy of the document is made before editing; this copy can later be used to revert the state of the document to the original state.
Protected field_viewThe Gui view of this controller
Top
See Also
Inheritance Hierarchy
SystemObject
  Altaxo.GuiControllerBase
    Altaxo.GuiMVCANControllerEditImmutableDocBaseTModel, TView
      Altaxo.Gui.Analysis.MultivariateDimensionReductionAndRegressionOptionsController
      Altaxo.Gui.Analysis.NonLinearFittingDependentVariableTransformationController
      Altaxo.Gui.Analysis.NonLinearFittingFitEnsembleController
      Altaxo.Gui.Analysis.NonLinearFittingFitFunctionSelectionController
      Altaxo.Gui.Analysis.NonLinearFittingNonlinearFitController
      Altaxo.Gui.Calc.InterpolationInterpolationFunctionOptionsController
      Altaxo.Gui.Calc.InterpolationNonlinearFitAsInterpolationController
      Altaxo.Gui.Calc.InterpolationPronySeriesInterpolationBaseController
      Altaxo.Gui.CommonAltaxoVariantController
      Altaxo.Gui.Common.BasicTypesBooleanValueController
      Altaxo.Gui.Common.BasicTypesIntegerValueController
      Altaxo.Gui.CommonEquallySpacedIntervalController
      Altaxo.Gui.CommonMultipleFilesController
      Altaxo.Gui.Common.PropertyGridPropertyGridController
      Altaxo.Gui.CommonSimpleImmutableObjectControllerTObject
      Altaxo.Gui.DataDataTableCleaningOptionsController
      Altaxo.Gui.DataExtractCommonColumnsToTableOptionsController
      Altaxo.Gui.Data.SelectionsAllRowsController
      Altaxo.Gui.Data.Selections.FooExcludeUnionOfRowSelectionsController
      Altaxo.Gui.Data.SelectionsIntersectionOfRowSelectionsController
      Altaxo.Gui.Data.SelectionsPeriodicRowIndexSegmentsController
      Altaxo.Gui.Data.SelectionsRangeOfRowIndicesController
      Altaxo.Gui.Data.SelectionsRowSelectionItemController
      Altaxo.Gui.Data.SelectionsUnionOfRowSelectionsController
      Altaxo.Gui.DataConnectionOleDbDataQueryController
      Altaxo.Gui.Drawing.ColorManagementNamedColorController
      Altaxo.Gui.Drawing.D3D.MaterialMaterialWithUniformColorController
      Altaxo.Gui.Drawing.D3DMaterialController
      Altaxo.Gui.Drawing.DashPatternManagementDashPatternController
      Altaxo.Gui.DrawingStyleListControllerTManager, TList, TItem
      Altaxo.Gui.Graph.ColorManagementColorSetChoiceController
      Altaxo.Gui.Graph.ColorManagementNamedColorChoiceController
      Altaxo.Gui.GraphExchangeTablesOfPlotItemsController
      Altaxo.Gui.GraphFitPolynomialDialogController
      Altaxo.Gui.Graph.Gdi.ShapesAnchoringController
      Altaxo.Gui.Graph.Gdi.ShapesCardinalSplinePointsController
      Altaxo.Gui.Graph.Graph3D.CSG3DCartesicCSController
      Altaxo.Gui.Graph.Graph3D.MaterialMaterialControllerSimple
      Altaxo.Gui.Graph.Graph3D.ShapesAnchoringController
      Altaxo.Gui.GraphPrintingController
      Altaxo.Gui.GraphSingleColumnChoiceController
      Altaxo.Gui.GraphSingleGraphPrintOptionsController
      Altaxo.GuiMVCANDControllerEditImmutableDocBaseTModel, TView
      Altaxo.Gui.Science.SignalsPronySeriesRelaxationController
      Altaxo.Gui.Science.SignalsPronySeriesRetardationController
      Altaxo.Gui.Science.Spectroscopy.BaselineEstimationAirPLSController
      Altaxo.Gui.Science.Spectroscopy.BaselineEstimationALSController
      Altaxo.Gui.Science.Spectroscopy.BaselineEstimationArPLSController
      Altaxo.Gui.Science.Spectroscopy.BaselineEstimationBaselineEstimationController
      Altaxo.Gui.Science.Spectroscopy.BaselineEstimationISREAController
      Altaxo.Gui.Science.Spectroscopy.BaselineEstimationPolynomialDetrendingController
      Altaxo.Gui.Science.Spectroscopy.BaselineEstimationSNIP_BaseController
      Altaxo.Gui.Science.Spectroscopy.BaselineEstimationSSProbController
      Altaxo.Gui.Science.Spectroscopy.BaselineEstimationXToXLineController
      Altaxo.Gui.Science.Spectroscopy.BaselineEvaluationBaselineEvaluationController
      Altaxo.Gui.Science.Spectroscopy.CalibrationScalarFunctionController
      Altaxo.Gui.Science.Spectroscopy.CalibrationXCalibrationByDataSourceController
      Altaxo.Gui.Science.Spectroscopy.CalibrationXCalibrationController
      Altaxo.Gui.Science.Spectroscopy.CalibrationYCalibrationByDataSourceController
      Altaxo.Gui.Science.Spectroscopy.CalibrationYCalibrationController
      Altaxo.Gui.Science.Spectroscopy.CalibrationYCalibrationOptionsController
      Altaxo.Gui.Science.Spectroscopy.CroppingCroppingByIndicesController
      Altaxo.Gui.Science.Spectroscopy.CroppingCroppingByXValuesController
      Altaxo.Gui.Science.Spectroscopy.CroppingCroppingController
      Altaxo.Gui.Science.Spectroscopy.DarkSubtractionDarkSubtractionController
      Altaxo.Gui.Science.Spectroscopy.DarkSubtractionSpectrumSubtractionController
      Altaxo.Gui.Science.Spectroscopy.EnsembleMeanScaleEnsembleMeanAndScaleController
      Altaxo.Gui.Science.Spectroscopy.EnsembleMeanScaleMultiplicativeScatterCorrectionController
      Altaxo.Gui.Science.Spectroscopy.NormalizationNormalizationController
      Altaxo.Gui.Science.Spectroscopy.NormalizationNormalizationMinMaxInRangeController
      Altaxo.Gui.Science.Spectroscopy.PeakEnhancementPeakEnhancement2ndDerivativeOfSmoothingSplineController
      Altaxo.Gui.Science.Spectroscopy.PeakEnhancementPeakEnhancementSNIPController
      Altaxo.Gui.Science.Spectroscopy.PeakFittingPeakFittingBaseControllerTModel, TView
      Altaxo.Gui.Science.Spectroscopy.PeakFittingPeakFittingByIncrementalPeakAdditionController
      Altaxo.Gui.Science.Spectroscopy.PeakFittingPeakFittingController
      Altaxo.Gui.Science.Spectroscopy.PeakSearchingPeakSearchingByCwtController
      Altaxo.Gui.Science.Spectroscopy.PeakSearchingPeakSearchingByTopologyController
      Altaxo.Gui.Science.Spectroscopy.PeakSearchingPeakSearchingController
      Altaxo.Gui.Science.SpectroscopyPeakSearchingAndFittingOutputOptionsController
      Altaxo.Gui.Science.Spectroscopy.RamanNeonCalibrationOptionsController
      Altaxo.Gui.Science.Spectroscopy.RamanOptionsAndDestinationTableControllerT
      Altaxo.Gui.Science.Spectroscopy.RamanSiliconCalibrationOptionsController
      Altaxo.Gui.Science.Spectroscopy.ResamplingResamplingByInterpolationController
      Altaxo.Gui.Science.Spectroscopy.ResamplingResamplingController
      Altaxo.Gui.Science.Spectroscopy.SanitizingRemoveZerosController
      Altaxo.Gui.Science.Spectroscopy.SanitizingSanitizingController
      Altaxo.Gui.Science.Spectroscopy.SmoothingSmoothingController
      Altaxo.Gui.Science.SpectroscopySpectralPreprocessingControllerBaseTOptions
      Altaxo.Gui.Science.Spectroscopy.SpikeRemovalSpikeRemovalByPeakEliminationController
      Altaxo.Gui.Science.Spectroscopy.SpikeRemovalSpikeRemovalController
      Altaxo.Gui.Science.ThermorheologyMasterCurveGroupOptionsWithComplexInterpolationController
      Altaxo.Gui.Science.ThermorheologyMasterCurveGroupOptionsWithScalarInterpolationController
      Altaxo.Gui.Science.ThermorheologyMasterCurveTableOutputOptionsController
      Altaxo.Gui.Serialization.AsciiAsciiExportOptionsController
      Altaxo.Gui.Serialization.AsciiFixedColumnWidthWithoutTabSeparationStrategyController
      Altaxo.Gui.Serialization.AsciiFixedColumnWidthWithTabSeparationStrategyController
      Altaxo.Gui.Serialization.AsciiSingleCharSeparationStrategyController
      Altaxo.Gui.Serialization.GalacticGalacticSPCImportOptionsController
      Altaxo.Gui.Serialization.JcampJcampImportOptionsController
      Altaxo.Gui.Serialization.RenishawRenishawImportOptionsController
      Altaxo.Gui.SerializationStorageSettingsController
      Altaxo.Gui.WorksheetPLSPredictValueController
      Altaxo.Gui.WorksheetPLSStartAnalysisController
      Altaxo.Gui.WorksheetSavitzkyGolayParameterController