/* File: pencil_relationship_1d_layouter.h; Copyright and License: see below */ #ifndef PENCIL_RELATIONSHIP_1D_LAYOUTER_H #define PENCIL_RELATIONSHIP_1D_LAYOUTER_H /* public file for the doxygen documentation: */ /*! * \file * \brief Calculates positions of relationships in a diagram */ #include "pencil_size.h" #include "layout/layout_visible_set.h" #include "pencil_relationship_painter.h" #include "geometry/geometry_rectangle.h" #include "geometry/geometry_non_linear_scale.h" #include "set/data_profile_part.h" #include "set/data_small_set.h" #include "set/data_visible_set.h" #include "entity/data_diagram.h" #include "entity/data_id.h" #include "u8list/universal_array_index_sorter.h" #include "u8/u8_error.h" #include #include /*! * \brief attributes of the relationship layouter * * \note This class is stateless. Only the layout_data, pencil_size and profile objects are stateful. * It may either be instantiated once and used many times or be instantiated per use. */ struct pencil_relationship_1d_layouter_struct { layout_visible_set_t *layout_data; /* pointer to an instance of layout data */ const data_profile_part_t *profile; /*!< pointer to an external stereotype-image cache */ const pencil_size_t *pencil_size; /*!< pointer to an instance of a pencil_size_t object, defining pen sizes, gap sizes, font sizes and colors */ pencil_relationship_painter_t relationship_painter; /*!< own instance of a painter object to ask for display dimensions */ }; typedef struct pencil_relationship_1d_layouter_struct pencil_relationship_1d_layouter_t; /*! * \brief initializes the layouter * * \param this_ pointer to own object attributes * \param layout_data pointer to the layout information to be used and modified * \param profile pointer to the profile-part that provides the stereotypes of the elements to be layouted * \param pencil_size pointer to the pencil_size_t object */ void pencil_relationship_1d_layouter_init( pencil_relationship_1d_layouter_t *this_, layout_visible_set_t *layout_data, const data_profile_part_t *profile, const pencil_size_t *pencil_size ); /*! * \brief destroys the layouter * * \param this_ pointer to own object attributes */ void pencil_relationship_1d_layouter_destroy( pencil_relationship_1d_layouter_t *this_ ); /*! * \brief make all relationships visible. * * Sets either normal visibility or grayed out status. * * \param this_ pointer to own object attributes */ void pencil_relationship_1d_layouter_private_make_all_visible ( pencil_relationship_1d_layouter_t *this_ ); /*! * \brief defines the shapes of relationships in sequence diagrams * * Shows only relationships that are associated to a lifeline because a sequence diagram * shows only an example sequence of messages, not all dependencies. * * \param this_ pointer to own object attributes */ void pencil_relationship_1d_layouter_layout_for_sequence( pencil_relationship_1d_layouter_t *this_ ); /*! * \brief defines the shapes of relationships in timing diagrams * * Shows only relationships that are associated to a lifeline because a timing diagram * shows only an example timing-sequence of messages, not all dependencies. * * \param this_ pointer to own object attributes */ void pencil_relationship_1d_layouter_layout_for_timing( pencil_relationship_1d_layouter_t *this_ ); #endif /* PENCIL_RELATIONSHIP_1D_LAYOUTER_H */ /* Copyright 2017-2026 Andreas Warnke Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */