/** * @file XTPChartOpenGLTransformationDeviceCommand.h * * @copyright * (c) 1998-2025 Codejock Software, All Rights Reserved. * * This source file is the property of Codejock Software and must not be * redistributed by any means without the explicit written permission of * Codejock Software. * * The use of this source code is governed by the terms and conditions specified * in the Toolkit Pro license agreement. Codejock Software grants you, as a * single software developer, the limited right to use this software on one * computer only. * * Contact Information: * support@codejock.com * http://www.codejock.com * */ /** @cond */ #if !defined(__XTPCHARTOPENGLTRANSFORMATIONDEVICECOMMAND_H__) # define __XTPCHARTOPENGLTRANSFORMATIONDEVICECOMMAND_H__ # if _MSC_VER >= 1000 # pragma once # endif // _MSC_VER >= 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" template class CXTPMatrix; class CXTPChart3dRotation; class _XTP_EXT_CLASS CXTPChartOpenGLSaveMatrixDeviceCommand : public CXTPChart3dDeviceCommand { public: CXTPChartOpenGLSaveMatrixDeviceCommand(); public: virtual void BeforeExecute(CXTPChartDeviceContext* pDC); virtual void AfterExecute(CXTPChartDeviceContext* pDC); }; class _XTP_EXT_CLASS CXTPChartOpenGLLoadIdentityDeviceCommand : public CXTPChart3dDeviceCommand { public: CXTPChartOpenGLLoadIdentityDeviceCommand(); public: virtual void ExecuteOverride(CXTPChartDeviceContext* pDC); }; class _XTP_EXT_CLASS CXTPChartOpenGLMultiplyMatrixDeviceCommand : public CXTPChart3dDeviceCommand { public: CXTPChartOpenGLMultiplyMatrixDeviceCommand(const CXTPMatrix& matrix, BOOL bPushMatrix); ~CXTPChartOpenGLMultiplyMatrixDeviceCommand(); public: virtual void BeforeExecute(CXTPChartDeviceContext* pDC); virtual void ExecuteOverride(CXTPChartDeviceContext* pDC); virtual void AfterExecute(CXTPChartDeviceContext* pDC); private: CXTPMatrix* m_pMatrix; BOOL m_bPushMatrix; }; /** * @brief * This class abstracts a rotation device command, which does rotation * transformations. This is a kind of CXTPChartDeviceCommand. */ class _XTP_EXT_CLASS CXTPChartOpenGLRotateDeviceCommand : public CXTPChart3dRotateDeviceCommand { public: /** * @brief * Constructs a CXTPChartOpenGLRotateDeviceCommand object. * * @param fAngle The angle of rotation. */ CXTPChartOpenGLRotateDeviceCommand(const CXTPChart3dRotation& rotation); public: /** * @brief * This is a virtual function override of base class CXTPChartDeviceContext. This * function acts polymorphically to do the actual drawing of the chart element * to which this device command is associated with. * * @param pDC A pointer to the chart device context. */ virtual void ExecuteOverride(CXTPChartDeviceContext* pDC); }; /** * @brief * This class abstracts a rotation device command, which does translation * on vertices.This is a kind of CXTPChartDeviceCommand. */ class _XTP_EXT_CLASS CXTPChartOpenGLTranslateDeviceCommand : public CXTPChart3dTranslateDeviceCommand { public: /** * @brief * Constructs a CXTPChartOpenGLTranslateDeviceCommand object. * * @param dx The change in X direction. * @param dy The change in Y direction. */ CXTPChartOpenGLTranslateDeviceCommand(double dx, double dy, double dz); public: /** * @brief * This is a virtual function override of base class CXTPChartDeviceContext. This * function acts polymorphically to do the actual drawing of the chart element * to which this device command is associated with. * * @param pDC A pointer to the chart device context. */ virtual void ExecuteOverride(CXTPChartDeviceContext* pDC); }; # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif //#if !defined(__XTPCHARTOPENGLTRANSFORMATIONDEVICECOMMAND_H__) /** @endcond */