View Javadoc
1   /*
2    * Copyright (C) 2015 Alberto Irurueta Carro (alberto@irurueta.com)
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *         http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package com.irurueta.ar.epipolar;
17  
18  /**
19   * Handles events produced by a FundamentalMatrixComparator.
20   */
21  public interface FundamentalMatrixComparatorListener {
22  
23      /**
24       * Called when comparison starts.
25       *
26       * @param comparator instance that raised the event.
27       */
28      void onCompareStart(final FundamentalMatrixComparator comparator);
29  
30      /**
31       * Called when comparison finishes.
32       *
33       * @param comparator instance that raised the event.
34       */
35      void onCompareEnd(final FundamentalMatrixComparator comparator);
36  
37      /**
38       * Called when progress of comparison significantly changes.
39       *
40       * @param comparator instance that raised the event.
41       * @param progress   progress of comparison expressed as a value between 0.0
42       *                   and 1.0.
43       */
44      void onCompareProgressChange(final FundamentalMatrixComparator comparator, final float progress);
45  }