1#line 1 "W:/bifrost-maya-plugin/src/bifrost-plugin/src/bifrostboard-plugin/hostdata/HostData.h"
18#ifndef MAYA_HOST_DATA_H_
19#define MAYA_HOST_DATA_H_
23#include <maya/MDagModifier.h>
24#include <maya/MDataBlock.h>
25#include <maya/MObject.h>
26#include <maya/MPlug.h>
27#include <maya/MTypeId.h>
39namespace MayaTranslation {
62 Amino::MetadataItem
const* inputPathOpts =
nullptr)
66 m_inputPathOpts(inputPathOpts),
67 m_extraHandle(extraHandle),
68 m_cachedValue(cachedValue) {}
82 inline const MPlug& getPlug()
const {
return m_plug; }
102 const Amino::MetadataItem* m_inputPathOpts;
105 void*& m_extraHandle;
131 m_object(other.m_object),
177 MDGModifier& modifier,
179 :
PortData(translationData), m_modifier(modifier), m_conversionData(conversionData) {}
191 MDGModifier& m_modifier;
219 MObject const m_object;
#define MAYA_HOST_DATA_SHARED_DECL
Smart pointers used to allow custom user classes (opaque classes) to be used within Amino graphs....
BifrostGraph Executor TypeTranslation.
Translation data used to pass Maya data between compute node and converter.
const Amino::MetadataItem * getInputPathOptions() const
~ValueData() final
Destructor always called by maya. User should not destroy the object itself.
const Amino::Ptr< Amino::Any > & getCachedValue() const
void *& getExtraHandle() const
MDataBlock & getDataBlock() const
ValueData(MPlug const &plug, MDataBlock &block, void *&extraHandle, Amino::Ptr< Amino::Any > const &cachedValue, Amino::MetadataItem const *inputPathOpts=nullptr)
Constructor always called by maya. User should not create the object itself.
Translation data used to create the Maya attribute when a graph I/O (top level compound) is added.
MObject const m_object
The maya dependency node.
PortData(MObject const &object, MTypeId const &id)
Constructor always called by maya. User should not create the object itself.
PortData(PortData const &other)
Copy constructor.
MTypeId const m_id
The MTypeId of m_object.
~PortData() override
Destructor always called by maya. User should not destroy the object itself.
Translation data used to create Maya ports. This will be created by Maya.
PortCreationData(PortData const &translationData, MDGModifier &modifier, ConversionData const &conversionData)
Constructor always called by maya. User should not create the object itself.
~PortCreationData() final
Destructor always called by maya. User should not destroy the object itself.
ConversionMode
Mode to know if we are converting and to what.
To know if we are converting and to what.
Data used to initialize translation tables against the plugin. This will be created by Maya.
~PluginHostData() final
Destructor always called by maya. User should not destroy the object itself.
PluginHostData(MObject &object)
Constructor always called by maya. User should not create the object itself.
The string class used by Amino.
The host data for translating values from/to host/Amino.
The host data for creating host ports.