本文整理汇总了C++中PropertyList::getInteger方法的典型用法代码示例。如果您正苦于以下问题:C++ PropertyList::getInteger方法的具体用法?C++ PropertyList::getInteger怎么用?C++ PropertyList::getInteger使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PropertyList
的用法示例。
在下文中一共展示了PropertyList::getInteger方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
NORI_NAMESPACE_BEGIN
PerlinTexture::PerlinTexture(const PropertyList &propList) {
m_width = propList.getInteger("width", 256);
m_height = propList.getInteger("height", 128);
m_levels = propList.getInteger("levels", 1);
m_texture.resize(m_height, m_width);
}
示例2: if
Path(const PropertyList &propList) {
m_maxDepth = propList.getInteger("maxDepth", 13);
QString samplePolicy = propList.getString("samplePolicy", "SampleBoth");
if (samplePolicy == "SampleBsdf") {
m_samplePolicy = ESampleBsdf;
} else if (samplePolicy == "sampleLight") {
m_samplePolicy = ESampleLight;
} else {
m_samplePolicy = EMis;
}
}
示例3: StudentsTTest
StudentsTTest(const PropertyList &propList) {
/* The null hypothesis will be rejected when the associated
p-value is below the significance level specified here. */
m_significanceLevel = propList.getFloat("significanceLevel", 0.01f);
/* This parameter specifies a list of incidence angles that will be tested */
std::vector<std::string> angles = tokenize(propList.getString("angles", ""));
for (auto angle : angles)
m_angles.push_back(toFloat(angle));
/* This parameter specifies a list of reference values, one for each angle */
std::vector<std::string> references = tokenize(propList.getString("references", ""));
for (auto angle : references)
m_references.push_back(toFloat(angle));
/* Number of BSDF samples that should be generated (default: 100K) */
m_sampleCount = propList.getInteger("sampleCount", 100000);
}
示例4: Random
Independent(const PropertyList &propList) {
m_sampleCount = (size_t) propList.getInteger("sampleCount", 1);
m_random = new Random();
}
示例5: PhotonMapper
PhotonMapper(const PropertyList &props) {
/* Lookup parameters */
m_photonCount = props.getInteger("photonCount", 1000000);
m_photonRadius = props.getFloat("photonRadius", 0.0f /* Default: automatic */);
m_shootedRays = 0;
}