File indexing completed on 2024-06-16 04:09:14
0001 /* 0002 * SPDX-FileCopyrightText: 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved. 0003 * 0004 * This file is part of the KD Chart library. 0005 * 0006 * SPDX-License-Identifier: GPL-2.0-or-later 0007 */ 0008 0009 #ifndef KCHART_RADAR_COORDINATEPLANE_H 0010 #define KCHART_RADAR_COORDINATEPLANE_H 0011 0012 #include "KChartPolarCoordinatePlane.h" 0013 0014 namespace KChart { 0015 0016 class Chart; 0017 0018 /** 0019 * @brief Radar coordinate plane 0020 */ 0021 class KCHART_EXPORT RadarCoordinatePlane : public PolarCoordinatePlane 0022 { 0023 Q_OBJECT 0024 0025 Q_DISABLE_COPY( RadarCoordinatePlane ) 0026 KCHART_DECLARE_PRIVATE_DERIVED_PARENT( RadarCoordinatePlane, Chart* ) 0027 0028 public: 0029 0030 explicit RadarCoordinatePlane ( Chart* parent = nullptr ); 0031 ~RadarCoordinatePlane() override; 0032 0033 0034 /** 0035 * Set the attributes to be used for axis captions. 0036 * 0037 * To disable axis captions, for example, your code should like this: 0038 * \code 0039 * TextAttributes ta = plane->textAttributes(); 0040 * ta.setVisible( false ); 0041 * plane-setTextAttributes( ta ); 0042 * \endcode 0043 */ 0044 void setTextAttributes( const TextAttributes & attr ); 0045 0046 /** 0047 * \return The attributes used for axis. 0048 * 0049 * \note This function always returns a valid set of text attributes: 0050 * If no special text attributes was set a default one is 0051 * returned. 0052 * 0053 * \sa setTextAttributes 0054 */ 0055 const TextAttributes textAttributes() const; 0056 0057 }; 0058 0059 } 0060 0061 #endif