Uses new material system for appearance Each feature object now has a property called ShapeMaterial that describes its physical properties. If it has a shape, it has a material. The ShapeColor attribute is replaced by a ShapeAppearance attribute. This is a material list that describes all appearance properties, not just diffuse color. As a list in can be used for all elements of a shape, such as edges and faces. A new widget is provided to allow the user to select materials in a consistent fashion. It can also launch the material editor with its more advanced capabilities.
46 lines
1.9 KiB
C
46 lines
1.9 KiB
C
/***************************************************************************
|
|
* Copyright (c) 2023 David Carter <dcarter@david.carter.ca> *
|
|
* *
|
|
* This file is part of FreeCAD. *
|
|
* *
|
|
* FreeCAD is free software: you can redistribute it and/or modify it *
|
|
* under the terms of the GNU Lesser General Public License as *
|
|
* published by the Free Software Foundation, either version 2.1 of the *
|
|
* License, or (at your option) any later version. *
|
|
* *
|
|
* FreeCAD is distributed in the hope that it will be useful, but *
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
|
|
* Lesser General Public License for more details. *
|
|
* *
|
|
* You should have received a copy of the GNU Lesser General Public *
|
|
* License along with FreeCAD. If not, see *
|
|
* <https://www.gnu.org/licenses/>. *
|
|
* *
|
|
**************************************************************************/
|
|
|
|
#include <FCGlobal.h>
|
|
|
|
#ifndef MATERIAL_GLOBAL_H
|
|
#define MATERIAL_GLOBAL_H
|
|
|
|
// Material
|
|
#ifndef MaterialsExport
|
|
#ifdef Materials_EXPORTS
|
|
#define MaterialsExport FREECAD_DECL_EXPORT
|
|
#else
|
|
#define MaterialsExport FREECAD_DECL_IMPORT
|
|
#endif
|
|
#endif
|
|
|
|
// MatGui
|
|
#ifndef MatGuiExport
|
|
#ifdef MatGui_EXPORTS
|
|
#define MatGuiExport FREECAD_DECL_EXPORT
|
|
#else
|
|
#define MatGuiExport FREECAD_DECL_IMPORT
|
|
#endif
|
|
#endif
|
|
|
|
#endif // MATERIAL_GLOBAL_H
|