ai_adp.h
Go to the documentation of this file.
1// Copyright 2023 Autodesk, Inc. All rights reserved.
2//
3// Use of this software is subject to the terms of the Autodesk license
4// agreement provided at the time of installation or download, or which
5// otherwise accompanies this software in either electronic or hard copy form.
6
11#pragma once
12#include "ai_api.h"
13#include "ai_map.h"
14#include "ai_string.h"
26#define AI_ADP_HOSTNAME AtString("ADDIN_PARENT_NAME")
27#define AI_ADP_HOSTVERSION AtString("ADDIN_PARENT_VERSION")
28#define AI_ADP_PLUGINNAME AtString("ADDIN_NAME")
29#define AI_ADP_PLUGINVERSION AtString("ADDIN_VERSION")
30
31enum class AtADPDialogMode { ONLY_FIRST_TIME = 1, ALWAYS = 2 };
43AI_API void AiADPDisplayDialogWindow(AtADPDialogMode mode = AtADPDialogMode::ALWAYS);
44
52
56AI_API void AiADPSetOptedIn(bool wants_optin);
57
61AI_API bool AiADPIsOptedIn();
62
76AI_API void AiADPAddProductMetadata(AtString name, AtString value);
77
78/*\}*/
DLL export prefix for API functions (necessary for multi-platform development)
Key/Value storage.
AtString class for fast comparisons.
Arnold String allows for fast string comparisons.
Definition: ai_string.h:54
AI_API void AiADPDisableDialogWindow()
Prevent the dialog window from opening.
AI_API void AiADPSetOptedIn(bool wants_optin)
Set to true if user agreed to optin and false if opted out.
AI_API void AiADPAddProductMetadata(AtString name, AtString value)
Provide additional data to the product analytics, such as information about the client that created t...
AI_API void AiADPDisplayDialogWindow(AtADPDialogMode mode=AtADPDialogMode::ALWAYS)
Display a modal window that lets the user opt-in/out of various analytics.
AI_API bool AiADPIsOptedIn()

© 2023 Autodesk, Inc. · All rights reserved · www.arnoldrenderer.com