| 1 |
/* File: test_data_evaluation.h; Copyright and License: see below */ |
| 2 |
|
| 3 |
#ifndef TEST_DATA_EVALUATION_H |
| 4 |
#define TEST_DATA_EVALUATION_H |
| 5 |
|
| 6 |
/* public file for the doxygen documentation: */ |
| 7 |
/*! |
| 8 |
* \file |
| 9 |
* \brief Stores the layout data for input data. |
| 10 |
*/ |
| 11 |
|
| 12 |
#include "geometry/geometry_connector.h" |
| 13 |
#include "geometry/geometry_rectangle.h" |
| 14 |
#include "layout/layout_diagram.h" |
| 15 |
#include "layout/layout_feature.h" |
| 16 |
#include "layout/layout_relationship.h" |
| 17 |
#include "layout/layout_visible_classifier.h" |
| 18 |
#include "layout/layout_visible_set.h" |
| 19 |
#include "filter/pencil_visibility.h" |
| 20 |
#include "set/data_visible_set.h" |
| 21 |
#include "set/data_stat.h" |
| 22 |
#include "data_rules.h" |
| 23 |
#include <cairo.h> |
| 24 |
#include <stdint.h> |
| 25 |
#include <stdbool.h> |
| 26 |
|
| 27 |
/*! |
| 28 |
* \brief attributes of the test_data_evaluation_t |
| 29 |
* |
| 30 |
* test_data_evaluation_t analyzes the quality of a layout_visible_set_t: |
| 31 |
*/ |
| 32 |
struct test_data_evaluation_struct |
| 33 |
{ |
| 34 |
data_rules_t filter_rules; /*!< own instance of uml and sysml consistency rules */ |
| 35 |
}; |
| 36 |
|
| 37 |
typedef struct test_data_evaluation_struct test_data_evaluation_t; |
| 38 |
|
| 39 |
/*! |
| 40 |
* \brief initializes the painter input data layout |
| 41 |
* |
| 42 |
* \param this_ pointer to own object attributes |
| 43 |
*/ |
| 44 |
void test_data_evaluation_init( test_data_evaluation_t *this_ ); |
| 45 |
|
| 46 |
/*! |
| 47 |
* \brief destroys the painter input data layout |
| 48 |
* |
| 49 |
* \param this_ pointer to own object attributes |
| 50 |
*/ |
| 51 |
void test_data_evaluation_destroy( test_data_evaluation_t *this_ ); |
| 52 |
|
| 53 |
|
| 54 |
/*! |
| 55 |
* \brief analyzes test_data_evaluation: gets statistics and calls back a function in case of overlaps |
| 56 |
* |
| 57 |
* \note |
| 58 |
* The analyze function to evaluate test results must not use the evaluation functions |
| 59 |
* of the layout_quality class. Otherwise the layouting quality is determined by the same |
| 60 |
* methods that produce the layout - which is not a comparable, objective result. |
| 61 |
* |
| 62 |
* \param this_ pointer to own object attributes |
| 63 |
* \param input_layout pointer to the data that was layouted |
| 64 |
* \param io_layout_stat pointer to already initialized statistics object where layouting statistics are added |
| 65 |
* \param overlap_callback pointer to a function that is called in case of overlaps |
| 66 |
* \param data pointer that is passed to overlap_callback |
| 67 |
*/ |
| 68 |
void test_data_evaluation_analyze ( const test_data_evaluation_t *this_, |
| 69 |
const layout_visible_set_t *input_layout, |
| 70 |
data_stat_t *io_layout_stat, |
| 71 |
void (*overlap_callback)(void *data, const geometry_rectangle_t *a, const geometry_rectangle_t *b), |
| 72 |
void *data |
| 73 |
); |
| 74 |
|
| 75 |
#endif /* TEST_DATA_EVALUATION_H */ |
| 76 |
|
| 77 |
|
| 78 |
/* |
| 79 |
Copyright 2017-2026 Andreas Warnke |
| 80 |
|
| 81 |
Licensed under the Apache License, Version 2.0 (the "License"); |
| 82 |
you may not use this file except in compliance with the License. |
| 83 |
You may obtain a copy of the License at |
| 84 |
|
| 85 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 86 |
|
| 87 |
Unless required by applicable law or agreed to in writing, software |
| 88 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 89 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 90 |
See the License for the specific language governing permissions and |
| 91 |
limitations under the License. |
| 92 |
*/ |