17#include <pxr/usd/sdf/path.h>
18#include <pxr/base/vt/dictionary.h>
20#include "MaxUsd/Utilities/Logging.h"
21#include "USDIOCallback.h"
23namespace MAXUSD_NS_DEF {
33MaxUSDAPI
bool MergeJobContexts(
bool isExport,
const std::set<std::string>& contexts, pxr::VtDictionary& allContextArgs);
55 MaxUSDAPI
void GetCallBacks(USDIOEventType type, std::vector<std::shared_ptr<USDIOCallback>>& eventCallbacks)
const;
61 MaxUSDAPI
const std::map<USDIOEventType, std::map<std::wstring, std::shared_ptr<USDIOCallback>>>&
GetCallBacks()
73 MaxUSDAPI
void RemoveCallbacks(USDIOEventType type = USDIOEventType::None,
const std::wstring&
id = L
"");
81 MaxUSDAPI
void AddCallback(USDIOEventType type,
const std::wstring&
id, std::shared_ptr<USDIOCallback> callback);
87 std::map<USDIOEventType, std::map<std::wstring, std::shared_ptr<USDIOCallback>>>
callbacks;
Class for getting and setting builder options.
Definition: SceneBuilderOptions.h:39
MaxUSDAPI Log::Options & GetLogOptions()
Returns the builder's logging options.
MaxUSDAPI void GetCallBacks(USDIOEventType type, std::vector< std::shared_ptr< USDIOCallback > > &eventCallbacks) const
Gets all registered callbacks for the given event type.
MaxUSDAPI const std::map< USDIOEventType, std::map< std::wstring, std::shared_ptr< USDIOCallback > > > & GetCallBacks() const
Returns all registered callbacks organized by event types and callback Id.
MaxUSDAPI void RemoveCallbacks(USDIOEventType type=USDIOEventType::None, const std::wstring &id=L"")
Removes callbacks by event type and/or id.
MaxUSDAPI void AddCallback(USDIOEventType type, const std::wstring &id, std::shared_ptr< USDIOCallback > callback)
Registers a new callback.
Log::Options logOptions
Logging options.
Definition: SceneBuilderOptions.h:85
std::map< USDIOEventType, std::map< std::wstring, std::shared_ptr< USDIOCallback > > > callbacks
Registered callbacks.
Definition: SceneBuilderOptions.h:87