Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
shaderWriter.h
Go to the documentation of this file.
1
//
2
// Copyright 2018 Pixar
3
//
4
// Licensed under the Apache License, Version 2.0 (the "Apache License")
5
// with the following modification; you may not use this file except in
6
// compliance with the Apache License and the following modification to it:
7
// Section 6. Trademarks. is deleted and replaced with:
8
//
9
// 6. Trademarks. This License does not grant permission to use the trade
10
// names, trademarks, service marks, or product names of the Licensor
11
// and its affiliates, except as required to comply with Section 4(c) of
12
// the License and to reproduce the content of the NOTICE file.
13
//
14
// You may obtain a copy of the Apache License at
15
//
16
// http://www.apache.org/licenses/LICENSE-2.0
17
//
18
// Unless required by applicable law or agreed to in writing, software
19
// distributed under the Apache License with the above modification is
20
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21
// KIND, either express or implied. See the Apache License for the specific
22
// language governing permissions and limitations under the Apache License.
23
//
24
#ifndef PXRUSDMAYA_SHADER_WRITER_H
25
#define PXRUSDMAYA_SHADER_WRITER_H
26
28
29
#include "
pxr/pxr.h
"
30
#include "usdMaya/api.h"
31
32
#include "
usdMaya/primWriter.h
"
33
34
#include "
usdMaya/writeJobContext.h
"
35
36
#include "pxr/base/tf/token.h"
37
#include "pxr/usd/sdf/path.h"
38
#include "pxr/usd/usd/property.h"
39
40
#include <maya/MFnDependencyNode.h>
41
42
#include <memory>
43
44
45
PXR_NAMESPACE_OPEN_SCOPE
46
47
50
class
UsdMayaShaderWriter
:
public
UsdMayaPrimWriter
51
{
52
public
:
53
PXRUSDMAYA_API
54
UsdMayaShaderWriter
(
55
const
MFnDependencyNode& depNodeFn,
56
const
SdfPath
& usdPath,
57
UsdMayaWriteJobContext
& jobCtx);
58
71
PXRUSDMAYA_API
72
virtual
TfToken
GetShadingPropertyNameForMayaAttrName
(
73
const
TfToken
& mayaAttrName);
74
85
PXRUSDMAYA_API
86
virtual
UsdProperty
GetShadingPropertyForMayaAttrName
(
87
const
TfToken
& mayaAttrName);
88
};
89
90
typedef
std::shared_ptr<UsdMayaShaderWriter> UsdMayaShaderWriterSharedPtr;
91
92
93
PXR_NAMESPACE_CLOSE_SCOPE
94
95
96
#endif
primWriter.h
UsdMayaWriteJobContext
Provides basic functionality and access to shared data for UsdMayaPrimWriters.
Definition:
writeJobContext.h:57
UsdMayaShaderWriter::GetShadingPropertyForMayaAttrName
virtual PXRUSDMAYA_API UsdProperty GetShadingPropertyForMayaAttrName(const TfToken &mayaAttrName)
Get the USD shading property that corresponds to the Maya attribute named mayaAttrName.
writeJobContext.h
TfToken
Token for efficient comparison, assignment, and hashing of known strings.
Definition:
token.h:89
pxr.h
UsdMayaShaderWriter::GetShadingPropertyNameForMayaAttrName
virtual PXRUSDMAYA_API TfToken GetShadingPropertyNameForMayaAttrName(const TfToken &mayaAttrName)
Get the name of the USD shading property that corresponds to the Maya attribute named mayaAttrName...
SdfPath
A path value used to locate objects in layers or scenegraphs.
Definition:
path.h:287
UsdMayaShaderWriter
Base class for USD prim writers that export Maya shading nodes as USD shader prims.
Definition:
shaderWriter.h:50
UsdProperty
Base class for UsdAttribute and UsdRelationship scenegraph objects.
Definition:
property.h:55
UsdMayaPrimWriter
Base class for all built-in and user-defined prim writers.
Definition:
primWriter.h:64
src
modules
usdMaya
shaderWriter.h
Generated on Thu Oct 24 2019 13:58:46 by
1.8.5