////////////////////////////////////////////////////////////////////////////// // // Copyright 2026 Autodesk, Inc. All rights reserved. // // Use of this software is subject to the terms of the Autodesk license // agreement provided at the time of installation or download, or which // otherwise accompanies this software. // ////////////////////////////////////////////////////////////////////////////// #pragma once #include "ConstructionPlaneDefinition.h" // THIS CLASS WILL BE VISIBLE TO AN API CLIENT. // THIS HEADER FILE WILL BE GENERATED FROM NIDL. #include "../../Core/OSMacros.h" #ifdef FUSIONXINTERFACE_EXPORTS # ifdef __COMPILING_ADSK_FUSION_CONSTRUCTIONPLANEMIDPLANEDEFINITION_CPP__ # define ADSK_FUSION_CONSTRUCTIONPLANEMIDPLANEDEFINITION_API XI_EXPORT # else # define ADSK_FUSION_CONSTRUCTIONPLANEMIDPLANEDEFINITION_API # endif #else # define ADSK_FUSION_CONSTRUCTIONPLANEMIDPLANEDEFINITION_API XI_IMPORT #endif namespace adsk { namespace fusion { /// ConstructionPlaneMidplaneDefinition defines a ConstructionPlane by... class ConstructionPlaneMidplaneDefinition : public ConstructionPlaneDefinition { public: /// Gets the first planar face or construction plane that defines this ConstructionPlane. core::Ptr planarEntityOne() const; /// Gets the second planar face or construction plane that defines this ConstructionPlane. core::Ptr planarEntityTwo() const; /// Redefines the input geometry of the construction plane. /// planarEntityOne : The first planar face or construction plane that defines this ConstructionPlane. /// planarEntityTwo : The second planar face or construction plane that defines this ConstructionPlane. /// Returns true if the redefinition of the plane is successful. bool redefine(const core::Ptr& planarEntityOne, const core::Ptr& planarEntityTwo); ADSK_FUSION_CONSTRUCTIONPLANEMIDPLANEDEFINITION_API static const char* classType(); ADSK_FUSION_CONSTRUCTIONPLANEMIDPLANEDEFINITION_API const char* objectType() const override; ADSK_FUSION_CONSTRUCTIONPLANEMIDPLANEDEFINITION_API void* queryInterface(const char* id) const override; ADSK_FUSION_CONSTRUCTIONPLANEMIDPLANEDEFINITION_API static const char* interfaceId() { return classType(); } private: // Raw interface virtual core::Base* planarEntityOne_raw() const = 0; virtual core::Base* planarEntityTwo_raw() const = 0; virtual bool redefine_raw(core::Base* planarEntityOne, core::Base* planarEntityTwo) = 0; }; // Inline wrappers inline core::Ptr ConstructionPlaneMidplaneDefinition::planarEntityOne() const { core::Ptr res = planarEntityOne_raw(); return res; } inline core::Ptr ConstructionPlaneMidplaneDefinition::planarEntityTwo() const { core::Ptr res = planarEntityTwo_raw(); return res; } inline bool ConstructionPlaneMidplaneDefinition::redefine(const core::Ptr& planarEntityOne, const core::Ptr& planarEntityTwo) { bool res = redefine_raw(planarEntityOne.get(), planarEntityTwo.get()); return res; } }// namespace fusion }// namespace adsk #undef ADSK_FUSION_CONSTRUCTIONPLANEMIDPLANEDEFINITION_API