3ds Max USD API Reference
Loading...
Searching...
No Matches
USDIOCallback.h
1#pragma once
2
3//**************************************************************************/
4// Copyright (c) 1998-2020 Autodesk, Inc.
5// 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// DESCRIPTION: USD IO callback definition.
12// AUTHOR: Autodesk Inc.
13//***************************************************************************/
14
15#include "MaxUsd/MaxUSDAPI.h"
16
17#include <maxscript/foundation/name.h>
18#include <maxscript/foundation/ValueHolderMember.h>
19
20#include "MaxUsd.h"
21
22namespace MAXUSD_NS_DEF {
23
24enum class USDIOEventType
25{
26 None,
27 OnCompletion,
28};
29
34{
35public:
41 MaxUSDAPI USDIOCallback(std::shared_ptr<ValueHolderMember> callbackFunction);
42
47 MaxUSDAPI Value* GetCallback() const;
48
54 MaxUSDAPI void Execute(Value** args, int argCount);
55
56protected:
57 std::shared_ptr<ValueHolderMember> callbackFunction;
58};
59}
Callback related methods.
Definition: USDIOCallback.h:34
MaxUSDAPI Value * GetCallback() const
Get the callback as a Value type.
MaxUSDAPI USDIOCallback(std::shared_ptr< ValueHolderMember > callbackFunction)
Constructor.
MaxUSDAPI void Execute(Value **args, int argCount)
Executes the callback.