/* ** Command & Conquer Renegade(tm) ** Copyright 2025 Electronic Arts Inc. ** ** This program is free software: you can redistribute it and/or modify ** it under the terms of the GNU General Public License as published by ** the Free Software Foundation, either version 3 of the License, or ** (at your option) any later version. ** ** This program is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ** GNU General Public License for more details. ** ** You should have received a copy of the GNU General Public License ** along with this program. If not, see . */ #if !defined(AFX_SPHERECOLORPROPPAGE_H__E86BBE86_F527_11D3_A08F_00104B791122__INCLUDED_) #define AFX_SPHERECOLORPROPPAGE_H__E86BBE86_F527_11D3_A08F_00104B791122__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // SphereColorPropPage.h : header file // #include "resource.h" #include "sphereobj.h" #include "colorbar.h" ///////////////////////////////////////////////////////////////////////////// // // SphereColorPropPageClass // ///////////////////////////////////////////////////////////////////////////// class SphereColorPropPageClass : public CPropertyPage { DECLARE_DYNCREATE(SphereColorPropPageClass) // Construction public: SphereColorPropPageClass (SphereRenderObjClass *sphere = NULL); ~SphereColorPropPageClass (); // Dialog Data //{{AFX_DATA(SphereColorPropPageClass) enum { IDD = IDD_PROP_PAGE_SPHERE_COLOR }; // NOTE - ClassWizard will add data members here. // DO NOT EDIT what you see in these blocks of generated code ! //}}AFX_DATA // Overrides // ClassWizard generate virtual function overrides //{{AFX_VIRTUAL(SphereColorPropPageClass) public: virtual BOOL OnApply(); virtual void OnCancel(); protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult); //}}AFX_VIRTUAL // Implementation protected: // Generated message map functions //{{AFX_MSG(SphereColorPropPageClass) virtual BOOL OnInitDialog(); afx_msg void OnDestroy(); afx_msg void OnOpacityVectorCheck(); afx_msg void OnInvertVectorCheck(); //}}AFX_MSG DECLARE_MESSAGE_MAP() public: ///////////////////////////////////////////////////////// // Public methods ///////////////////////////////////////////////////////// // // Inline accessors // SphereRenderObjClass * Get_Sphere (void) const { return m_RenderObj; } void Set_Sphere (SphereRenderObjClass *sphere) { m_RenderObj = sphere; Initialize (); } bool Is_Data_Valid (void) const { return m_bValid; } protected: ///////////////////////////////////////////////////////// // Protected methods ///////////////////////////////////////////////////////// void Initialize (void); void Update_Colors (void); void Update_Opacities (void); void Update_Vectors (void); void Update_Vector_Bar_Enabled_Status (void); private: ///////////////////////////////////////////////////////// // Private member data ///////////////////////////////////////////////////////// SphereRenderObjClass * m_RenderObj; bool m_bValid; ColorBarClass * m_ColorBar; ColorBarClass * m_OpacityBar; ColorBarClass * m_VectorBar; bool m_EnableOpactiyVector; bool m_InvertVector; SphereColorChannelClass m_ColorChannel; SphereColorChannelClass m_OrigColorChannel; SphereAlphaChannelClass m_AlphaChannel; SphereAlphaChannelClass m_OrigAlphaChannel; SphereVectorChannelClass m_VectorChannel; SphereVectorChannelClass m_OrigVectorChannel; }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_SPHERECOLORPROPPAGE_H__E86BBE86_F527_11D3_A08F_00104B791122__INCLUDED_)