// ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // isotherm_properties_style.h // Neal Binnendyk, nealabq -at- gmail, nealabq.com // Copyright (c) 2010. All rights reserved. // # pragma once # ifndef ISOTHERM_PROPERTIES_STYLE_H # define ISOTHERM_PROPERTIES_STYLE_H // _______________________________________________________________________________________________ // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # include "bool_holder.h" # include "int_holder.h" # include "color_holder.h" // _______________________________________________________________________________________________ class isotherm_properties_style_type : public holder_base_type { Q_OBJECT public: /* ctor */ isotherm_properties_style_type( QObject * p_parent) ; public: void setup_gl( ) const ; public slots: void has_changed__width_or_spacing( ) ; void has_changed__opacity( ) ; void has_changed__offset( ) ; void has_changed__color( ) ; protected: void setup_stripe_color( ) const ; void setup_stripe_place( ) const ; void setup_stripe_look( ) const ; float get_normal_width( ) const ; float get_normal_spacing( ) const ; float get_normal_offset( ) const ; float get_normal_opacity( ) const ; static float get_normal_0_100( float value_0_100) ; static float get_normal_1_100( float value_1_100) ; public: bool_holder * get_is_showing( ) const { return p_is_showing_ ; } int_range_steps_holder * get_width( ) const { return p_width_ ; } int_range_steps_holder * get_spacing( ) const { return p_spacing_ ; } int_range_steps_holder * get_offset( ) const { return p_offset_ ; } color_holder * get_color( ) const { return p_color_ ; } int_range_steps_holder * get_opacity( ) const { return p_opacity_ ; } private: bool_holder * p_is_showing_ ; int_range_steps_holder * p_width_ ; int_range_steps_holder * p_spacing_ ; int_range_steps_holder * p_offset_ ; color_holder * p_color_ ; int_range_steps_holder * p_opacity_ ; }; // _______________________________________________________________________________________________ struct with_isotherm_texture { bool const is_showing_isotherms; with_isotherm_texture( isotherm_properties_style_type const *) ; ~with_isotherm_texture( ) ; }; // _______________________________________________________________________________________________ // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # endif // ifndef ISOTHERM_PROPERTIES_STYLE_H // // isotherm_properties_style.h - End of File // _______________________________________________________________________________________________ // |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||