/////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance"). // All rights reserved. // // This software and its documentation and related materials are owned by // the Alliance. The software may only be incorporated into application // programs owned by members of the Alliance, subject to a signed // Membership Agreement and Supplemental Software License Agreement with the // Alliance. The structure and organization of this software are the valuable // trade secrets of the Alliance and its suppliers. The software is also // protected by copyright law and international treaty provisions. Application // programs incorporating this software must include the following statement // with their copyright notices: // // This application incorporates Open Design Alliance software pursuant to a license // agreement with Open Design Alliance. // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance. // All rights reserved. // // By use of this software, its documentation or related materials, you // acknowledge and accept the above terms. /////////////////////////////////////////////////////////////////////////////// #ifndef _ODGSENVIRONMENTBACKGROUNDIMPL_H_INCLUDED_ #define _ODGSENVIRONMENTBACKGROUNDIMPL_H_INCLUDED_ #include "GsBackgroundImpl.h" #include "Gi/GiImage.h" #include "Gi/GiMaterialItem.h" #include "TD_PackPush.h" class OdRxThreadPoolService; // Forward declaration typedef OdSmartPtr OdRxThreadPoolServicePtr; /** Description: Library: Gs {group:OdGs_Classes} */ class OdGsEnvironmentBackgroundImpl : public OdGsWNestedBackgroundImpl, protected OdGsBackgroundImpl { protected: OdGiRasterImagePtr raster; OdGiMaterialTexturePtr texture; OdGiMaterialTextureEntryPtr textureData; OdGiImageBGRA32 source, dest; struct Params { OdGeVector3d m_dir, m_upVector, m_xVector; double m_fov, m_aspect, m_longAng, m_latAng; Params() : m_fov(0.0), m_aspect(0.0), m_longAng(0.0), m_latAng(0.0) { } Params(const OdGeVector3d &dir, const OdGeVector3d &upVector, const OdGeVector3d &xVector, double fov, double aspect, double longAng, double latAng) : m_dir(dir), m_upVector(upVector), m_xVector(xVector), m_fov(fov), m_aspect(aspect), m_longAng(longAng), m_latAng(latAng) { } bool operator !=(const Params &parms2) const { return !m_dir.isEqualTo(parms2.m_dir) || !m_upVector.isEqualTo(parms2.m_upVector) || !m_xVector.isEqualTo(parms2.m_xVector) || !OdEqual(m_fov, parms2.m_fov) || !OdEqual(m_aspect, parms2.m_aspect) || !OdEqual(m_longAng, parms2.m_longAng) || !OdEqual(m_latAng, parms2.m_latAng); } } params; friend struct OdGsEnvironmentBackgroundContext; OdRxThreadPoolServicePtr threadPool; public: OdGsEnvironmentBackgroundImpl(const OdGsBackgroundModule *pModule); ~OdGsEnvironmentBackgroundImpl() override; BackgroundType type() const override { return kEnvironmentBackground; } void display(OdGsBaseVectorizer& view, const OdGiDrawable *pDrawable, OdGiBackgroundTraitsData* pBackgroundTraits, OdGsPropertiesDirectRenderOutput *pdro = NULL) override; }; #include "TD_PackPop.h" #endif // _ODGSENVIRONMENTBACKGROUNDIMPL_H_INCLUDED_