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
nodeDefHandler.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/nodeDefHandler.h"
2#ifndef UFE_NODEDEFHANDLER_H
3#define UFE_NODEDEFHANDLER_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 "common/ufeExport.h"
14#include "rtid.h"
15#include "sceneItem.h"
16#include "nodeDef.h"
17
18#include <memory>
19
21
23
38{
39public:
40 typedef std::shared_ptr<NodeDefHandler> Ptr;
41
42 static constexpr char kNodeDefCategoryAll[] = "All";
43
47 NodeDefHandler(const NodeDefHandler&) = default;
49 virtual ~NodeDefHandler();
50
52 // nullptr if no such node definition can be found.
53 virtual Ufe::NodeDef::Ptr definition(const Ufe::SceneItem::Ptr& item) const = 0;
55 // if no such node definition can be found.
56 virtual Ufe::NodeDef::Ptr definition(const std::string& type) const = 0;
58 virtual Ufe::NodeDefs definitions(const std::string& category=kNodeDefCategoryAll) const = 0;
59};
60
61}
62
63#endif /* UFE_NODEDEFHANDLER_H */
Base class for NodeDefHandler interface.
NodeDefHandler()
Constructor.
NodeDefHandler(const NodeDefHandler &)=default
Default copy constructor.
virtual Ufe::NodeDefs definitions(const std::string &category=kNodeDefCategoryAll) const =0
Returns the available node definitions for the provided category.
std::shared_ptr< NodeDefHandler > Ptr
virtual Ufe::NodeDef::Ptr definition(const std::string &type) const =0
Returns the node definition interface for a provided type. Returns a nullptr.
virtual ~NodeDefHandler()
Destructor.
virtual Ufe::NodeDef::Ptr definition(const Ufe::SceneItem::Ptr &item) const =0
Returns the node definition interface for a provided SceneItem. Returns a.
std::shared_ptr< NodeDef > Ptr
Definition: nodeDef.h:39
std::shared_ptr< SceneItem > Ptr
Definition: sceneItem.h:45
std::string string(const Path &path)
std::vector< NodeDef::Ptr > NodeDefs
Definition: nodeDef.h:141
#define UFE_NS_DEF
Definition: ufe.h:36
Definition of macros for symbol visibility.
#define UFE_SDK_DECL
Definition: ufeExport.h:35