本文整理汇总了C++中MDataHandle::setShort方法的典型用法代码示例。如果您正苦于以下问题:C++ MDataHandle::setShort方法的具体用法?C++ MDataHandle::setShort怎么用?C++ MDataHandle::setShort使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MDataHandle
的用法示例。
在下文中一共展示了MDataHandle::setShort方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: if
bool
OpenSubdivShader::getInternalValueInContext(const MPlug &plug, MDataHandle &handle, MDGContext &)
{
if (plug == aLevel) {
handle.setInt(_level);
} else if (plug == aTessFactor) {
handle.setInt(_tessFactor);
} else if (plug == aScheme) {
handle.setShort(_scheme);
} else if (plug == aKernel) {
handle.setShort(_kernel);
} else if (plug == aInterpolateBoundary) {
handle.setShort(_interpolateBoundary);
} else if (plug == aAdaptive) {
handle.setBool(_adaptive);
} else if (plug == aDiffuseMapFile) {
handle.setString( _diffuseMapFile );
} else if (plug == aUVSet) {
handle.setString( _uvSet );
} else if (plug == aInterpolateUVBoundary) {
handle.setShort(_interpolateUVBoundary);
} else if (plug == aShaderSource) {
handle.setString( _shaderSourceFilename );
}
return false;
}
示例2: if
bool
OpenSubdivPtexShader::getInternalValueInContext(const MPlug &plug, MDataHandle &handle, MDGContext &)
{
if (plug == aLevel) {
handle.setInt(_level);
} else if (plug == aTessFactor) {
handle.setInt(_tessFactor);
} else if (plug == aScheme) {
handle.setShort(_scheme);
} else if (plug == aKernel) {
handle.setShort(_kernel);
} else if (plug == aInterpolateBoundary) {
handle.setShort(_interpolateBoundary);
} else if (plug == aAdaptive) {
handle.setBool(_adaptive);
} else if (plug == aShaderSource) {
handle.setString( _shaderSourceFilename );
} else if (plug == aDiffuseEnvironmentMapFile) {
handle.setString(_diffEnvMapFile);
} else if (plug == aSpecularEnvironmentMapFile) {
handle.setString(_specEnvMapFile);
} else if (plug == aColorFile) {
handle.setString(_colorFile);
} else if (plug == aDisplacementFile) {
handle.setString(_displacementFile);
} else if (plug == aOcclusionFile) {
handle.setString(_occlusionFile);
} else if (plug == aEnableColor) {
handle.setBool(_enableColor);
} else if (plug == aEnableDisplacement) {
handle.setBool(_enableDisplacement);
} else if (plug == aEnableOcclusion) {
handle.setBool(_enableOcclusion);
} else if (plug == aEnableNormal) {
handle.setBool(_enableNormal);
}
return false;
}