source: cpp/frams/model/similarity/measure-mds-based.h @ 1329

Last change on this file since 1329 was 1048, checked in by Maciej Komosinski, 4 years ago

SimilMeasure? -> SimilMeasureBase?; introduced a new class (SimilMeasure?) that allows scripts to access all similarity measures; a number of minor fixes and improvements

File size: 957 bytes
Line 
1// This file is a part of Framsticks SDK.  http://www.framsticks.com/
2// Copyright (C) 1999-2020  Maciej Komosinski and Szymon Ulatowski.
3// See LICENSE.txt for details.
4
5#ifndef _SIMIL_MEASURE_MDS_BASED_H
6#define _SIMIL_MEASURE_MDS_BASED_H
7
8#include "simil-measure-base.h"
9
10class SimilMeasureMDSBased : public SimilMeasureBase
11{
12public:
13        SimilMeasureMDSBased();
14        virtual ~SimilMeasureMDSBased(){};
15        virtual int setParams(std::vector<double> params)=0;
16        bool with_alignment;
17        bool save_matching;
18        int fixedZaxis;
19        int wMDS;
20protected:
21        double getDistance();
22        virtual void prepareData()=0;
23        virtual void beforeTransformation()=0;
24        virtual double distanceForTransformation()=0;
25        virtual double distanceWithoutAlignment()=0;
26        int getPartPositions();
27        bool computePartsPositionsByMDS();
28        virtual void copyMatching()=0;
29        virtual void cleanData()=0;
30        int m_iSmaller;
31        /// Positions of Parts of both of the compared structures.
32        Pt3D *coordinates[2];
33};
34
35#endif
36
Note: See TracBrowser for help on using the repository browser.