ufe 5.5
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 "S:/jenkins/workspace/ECP/ufe/ufe-full-python3.11-windows/ufe/include/material.h"
2#ifndef _ufeMaterial
3#define _ufeMaterial
4// ===========================================================================
5// Copyright 2022 Autodesk, Inc. All rights reserved.
6//
7// Use of this software is subject to the terms of the Autodesk license
8// agreement provided at the time of installation or download, or which
9// otherwise accompanies this software in either electronic or hard copy form.
10// ===========================================================================
11
12#include "sceneItem.h"
13
14#include <vector>
15
17
19
32{
33public:
34 typedef std::shared_ptr<Material> Ptr;
35
43 static Ptr material(const SceneItem::Ptr& item);
44
48 Material(const Material&) = default;
50 virtual ~Material();
51
53 virtual std::vector<SceneItem::Ptr> getMaterials() const = 0;
54
56 virtual bool hasMaterial() const = 0;
57};
58
59}
60
61#endif /* _ufeMaterial */
Abstract base class for Material interface.
Definition: material.h:32
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:34
Material(const Material &)=default
Default copy constructor.
std::shared_ptr< SceneItem > Ptr
Definition: sceneItem.h:44
#define UFE_NS_DEF
Definition: ufe.h:35
#define UFE_SDK_DECL
Definition: ufeExport.h:36