////////////////////////////////////////////////////////////////////////////// // // 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 "ConfigurationTable.h" #include // 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_CONFIGURATIONAPPEARANCETABLE_CPP__ # define ADSK_FUSION_CONFIGURATIONAPPEARANCETABLE_API XI_EXPORT # else # define ADSK_FUSION_CONFIGURATIONAPPEARANCETABLE_API # endif #else # define ADSK_FUSION_CONFIGURATIONAPPEARANCETABLE_API XI_IMPORT #endif namespace adsk { namespace fusion { class ConfigurationAppearanceColumns; class ConfigurationThemeColumn; }} namespace adsk { namespace fusion { /// Represents a configuration table that defines the appearances assigned to bodies and components. class ConfigurationAppearanceTable : public ConfigurationTable { public: /// Returns the collection that provides access to this table's columns and the ability to create new columns. core::Ptr columns() const; /// Clears the content of the appearance table, removes the reference from the top table, and hides it in the user interface. /// Returns true if successful. bool clear(); /// Returns the column in the top table that references this appearance table. core::Ptr parentTableColumn() const; /// Returns the name of the table as seen in the user interface. std::string name() const; ADSK_FUSION_CONFIGURATIONAPPEARANCETABLE_API static const char* classType(); ADSK_FUSION_CONFIGURATIONAPPEARANCETABLE_API const char* objectType() const override; ADSK_FUSION_CONFIGURATIONAPPEARANCETABLE_API void* queryInterface(const char* id) const override; ADSK_FUSION_CONFIGURATIONAPPEARANCETABLE_API static const char* interfaceId() { return classType(); } private: // Raw interface virtual ConfigurationAppearanceColumns* columns_raw() const = 0; virtual bool clear_raw() = 0; virtual ConfigurationThemeColumn* parentTableColumn_raw() const = 0; virtual char* name_raw() const = 0; }; // Inline wrappers inline core::Ptr ConfigurationAppearanceTable::columns() const { core::Ptr res = columns_raw(); return res; } inline bool ConfigurationAppearanceTable::clear() { bool res = clear_raw(); return res; } inline core::Ptr ConfigurationAppearanceTable::parentTableColumn() const { core::Ptr res = parentTableColumn_raw(); return res; } inline std::string ConfigurationAppearanceTable::name() const { std::string res; char* p= name_raw(); if (p) { res = p; core::DeallocateArray(p); } return res; } }// namespace fusion }// namespace adsk #undef ADSK_FUSION_CONFIGURATIONAPPEARANCETABLE_API