ufe 7.0
Universal Front End is a DCC-agnostic component that will allow a DCC to browse and edit data in multiple data models
material.h
Go to the documentation of this file.
1#line 1 "D:/Jenkins/workspace/EMS/ECG/ufe/full/ufe-full-python3.13-windows/ufe/include/material.h"
2#ifndef UFE_MATERIAL_H
3#define UFE_MATERIAL_H
4
5// ===========================================================================
6// Copyright 2025 Autodesk, Inc. All rights reserved.
7//
8// The use of this software is subject to the Autodesk Terms of Use or other
9// license agreement provided at the time of installation or download, or
10// which otherwise accompanies this software.
11// ===========================================================================
12
13#include "sceneItem.h"
14
15#include <vector>
16
18
20
33{
34public:
35 typedef std::shared_ptr<Material> Ptr;
36
44 static Ptr material(const SceneItem::Ptr& item);
45
49 Material(const Material&) = default;
51 virtual ~Material();
52
54 virtual std::vector<SceneItem::Ptr> getMaterials() const = 0;
55
57 virtual bool hasMaterial() const = 0;
58};
59
60}
61
62#endif /* UFE_MATERIAL_H */
Abstract base class for Material interface.
Definition: material.h:33
Material()
Constructor.
virtual ~Material()
Destructor.
static Ptr material(const SceneItem::Ptr &item)
virtual bool hasMaterial() const =0
Returns true if any material is assigned to this scene item.
virtual std::vector< SceneItem::Ptr > getMaterials() const =0
Returns all the materials assigned to this scene item.
std::shared_ptr< Material > Ptr
Definition: material.h:35
Material(const Material &)=default
Default copy constructor.
std::shared_ptr< SceneItem > Ptr
Definition: sceneItem.h:45
#define UFE_NS_DEF
Definition: ufe.h:36
#define UFE_SDK_DECL
Definition: ufeExport.h:35