Click here to Skip to main content
15,881,803 members
Articles / Desktop Programming / WPF

Integration: Kinematics + Digital Image Processing + 3D Graphics

Rate me:
Please Sign up or sign in to vote.
5.00/5 (4 votes)
9 Sep 2012CPOL12 min read 25.3K   3.4K   18  
Further promotion of integration ideas
using System;
using System.Collections.Generic;
using System.Collections;
using System.Text;

namespace DataPerformer.Interfaces
{


    /// <summary>
    /// Common interface of data transformers
    /// </summary>
    public interface IDataTransformer : IMeasurements, IDataConsumer
    {
    }

        /// <summary>
    /// Factory of data transformers
    /// </summary>
    public interface IDataTransformerFactory
    {
        /// <summary>
        /// Gets data transformer by name
        /// </summary>
        /// <param name="name">The name of data transformer</param>
        /// <returns>Data transformer name</returns>
        IDataTransformer this[string name]
        {
            get;
        }

        /// <summary>
        /// Names of transformers
        /// </summary>
        string[] Transformers
        {
            get;
        }
    }

    /// <summary>
    /// The time dynamical object
    /// </summary>
    public interface IDynamical
    {
        /// <summary>
        /// The time
        /// </summary>
        double Time
        {
            set;
        }
    }

    /// <summary>
    /// Object with arguments
    /// </summary>
    public interface IArguments
    {
        /// <summary>
        /// Arguments
        /// </summary>
        ICollection Arguments
        {
            get;
            set;
        }
    }

    /// <summary>
    /// Step dependend component
    /// </summary>
    public interface IStep
    {
        /// <summary>
        /// Step number
        /// </summary>
        int Step
        {
            get;
            set;
        }
    }

    /// <summary>
    /// The object that should be started
    /// </summary>
    public interface IStarted
    {
        /// <summary>
        /// Starts this object
        /// </summary>
        /// <param name="time">Start time</param>
       void Start(double time);
    }

    /// <summary>
    /// Selection with arguments
    /// </summary>
    public interface IArgumentSelection : IStructuredSelection
    {
        /// <summary>
        /// Count of points
        /// </summary>
        int PointsCount
        {
            get;
        }

        /// <summary>
        /// Free variables
        /// </summary>
        string[] Variables
        {
            get;
        }
        /// <summary>
        /// Dimension of output vector
        /// </summary>
        int VectorDimension
        {
            get;
        }



        /// <summary>
        /// Gets value of variable
        /// </summary>
        double this[int i, string str]
        {
            get;
        }

        /// <summary>
        /// Calculates synchronized selection
        /// </summary>
        /// <param name="selection">The etalon selection</param>
        /// <returns>Synchronized selection</returns>
        IArgumentSelection SynchronizedSelection(IArgumentSelection selection);

    }

    /// <summary>
    /// Collection of structured selections
    /// </summary>
    public interface IStructuredSelectionCollection
    {
        /// <summary>
        /// Count of selections
        /// </summary>
        int Count
        {
            get;
        }

        /// <summary>
        /// The i - th selection
        /// </summary>
        IStructuredSelection this[int i]
        {
            get;
        }
    }

    /// <summary>
    /// Structured selection
    /// </summary>
    public interface IStructuredSelection
    {
        /// <summary>
        /// Dimension of data
        /// </summary>
        int DataDimension
        {
            get;
        }

        /// <summary>
        /// Access to n - th element
        /// </summary>
        double? this[int n]
        {
            get;
        }

        /// <summary>
        /// Weight of n - th element
        /// </summary>
        /// <param name="n">Element number</param>
        /// <returns>The weight</returns>
        double GetWeight(int n);

        /// <summary>
        /// Aprior weight of n - th element
        /// </summary>
        /// <param name="n">Element number</param>
        /// <returns>The weight</returns>
        double GetApriorWeight(int n);

        /// <summary>
        /// Tolerance of it - th element
        /// </summary>
        /// <param name="n">Element number</param>
        /// <returns>Tolerance</returns>
        int GetTolerance(int n);

        /// <summary>
        /// Sets tolerance of n - th element
        /// </summary>
        /// <param name="n">Element number</param>
        /// <param name="tolerance">Tolerance to set</param>
        void SetTolerance(int n, int tolerance);

        /// <summary>
        /// The "is fixed amount" sign
        /// </summary>
        bool HasFixedAmount
        {
            get;
        }

        /// <summary>
        /// Selection name
        /// </summary>
        string Name
        {
            get;
        }
    }

    /// <summary>
    /// Structured calculation
    /// </summary>
    public interface IStructuredCalculation
    {
        /// <summary>
        /// Calculates parameters
        /// </summary>
        /// <param name="x">Input</param>
        /// <param name="selection">Selection</param>
        /// <param name="y">Output</param>
        void Calculate(double[] x, IStructuredSelection selection, double?[] y);

        /// <summary>
        /// Dimension of estimated vector
        /// </summary>
        int Dimension
        {
            get;
        }
    }

    /// <summary>
    /// Updatable selection
    /// </summary>
    public interface IUpdatableSelection
    {
        /// <summary>
        /// Updates selection
        /// </summary>
        void UpdateSelection();
    }


    /// <summary>
    /// Consumer of structured selection
    /// </summary>
    public interface IStructuredSelectionConsumer
    {
        /// <summary>
        /// Adds selection collection
        /// </summary>
        /// <param name="selection">Selection to add</param>
        void Add(IStructuredSelectionCollection selection);

        /// <summary>
        /// Removes selection collecion
        /// </summary>
        /// <param name="selection">Selection to remove</param>
        void Remove(IStructuredSelectionCollection selection);
    }

}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
Russian Federation Russian Federation
Ph. D. Petr Ivankov worked as scientific researcher at Russian Mission Control Centre since 1978 up to 2000. Now he is engaged by Aviation training simulators http://dinamika-avia.com/ . His additional interests are:

1) Noncommutative geometry

http://front.math.ucdavis.edu/author/P.Ivankov

2) Literary work (Russian only)

http://zhurnal.lib.ru/editors/3/3d_m/

3) Scientific articles
http://arxiv.org/find/all/1/au:+Ivankov_Petr/0/1/0/all/0/1

Comments and Discussions