////////////////////////////////////////////////////////////////////////////// // // 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 "CurveSelection.h" #include "../CamTypeDefs.h" // THIS CLASS WILL BE VISIBLE TO AN API CLIENT. // THIS HEADER FILE WILL BE GENERATED FROM NIDL. #include "../../Core/OSMacros.h" #ifdef CAMXINTERFACE_EXPORTS # ifdef __COMPILING_ADSK_CAM_FACECONTOURSELECTION_CPP__ # define ADSK_CAM_FACECONTOURSELECTION_API XI_EXPORT # else # define ADSK_CAM_FACECONTOURSELECTION_API # endif #else # define ADSK_CAM_FACECONTOURSELECTION_API XI_IMPORT #endif namespace adsk { namespace cam { /// Represents a face type of curve selection. It allows BRepFace objects for the input geometry. /// Overrides the GeometrySelection's value method to include other faces if the isSelectingSamePlaneFaces property is true and the selection has been applied. /// The result of the value property call may contain duplicates. class FaceContourSelection : public CurveSelection { public: /// Property to get and set the desired loop type. The default is AllLoops. LoopTypes loopType() const; bool loopType(LoopTypes value); /// Property to get and set the desired side type. The default is StartOutside. SideTypes sideType() const; bool sideType(SideTypes value); /// Property to get and set if all planar faces lying in the same plane as the selected face should be automatically selected as well. bool isSelectingSamePlaneFaces() const; bool isSelectingSamePlaneFaces(bool value); ADSK_CAM_FACECONTOURSELECTION_API static const char* classType(); ADSK_CAM_FACECONTOURSELECTION_API const char* objectType() const override; ADSK_CAM_FACECONTOURSELECTION_API void* queryInterface(const char* id) const override; ADSK_CAM_FACECONTOURSELECTION_API static const char* interfaceId() { return classType(); } private: // Raw interface virtual LoopTypes loopType_raw() const = 0; virtual bool loopType_raw(LoopTypes value) = 0; virtual SideTypes sideType_raw() const = 0; virtual bool sideType_raw(SideTypes value) = 0; virtual bool isSelectingSamePlaneFaces_raw() const = 0; virtual bool isSelectingSamePlaneFaces_raw(bool value) = 0; }; // Inline wrappers inline LoopTypes FaceContourSelection::loopType() const { LoopTypes res = loopType_raw(); return res; } inline bool FaceContourSelection::loopType(LoopTypes value) { return loopType_raw(value); } inline SideTypes FaceContourSelection::sideType() const { SideTypes res = sideType_raw(); return res; } inline bool FaceContourSelection::sideType(SideTypes value) { return sideType_raw(value); } inline bool FaceContourSelection::isSelectingSamePlaneFaces() const { bool res = isSelectingSamePlaneFaces_raw(); return res; } inline bool FaceContourSelection::isSelectingSamePlaneFaces(bool value) { return isSelectingSamePlaneFaces_raw(value); } }// namespace cam }// namespace adsk #undef ADSK_CAM_FACECONTOURSELECTION_API