当前位置: 首页>>代码示例>>C++>>正文


C++ PropertyList::getInteger方法代码示例

本文整理汇总了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);


}
开发者ID:valdersoul,项目名称:NoriV2,代码行数:11,代码来源:perlinTexture.cpp

示例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;
		}
	}
开发者ID:shen-yang,项目名称:nori,代码行数:11,代码来源:path.cpp

示例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);
    }
开发者ID:Vertexwahn,项目名称:nori,代码行数:18,代码来源:ttest.cpp

示例4: Random

	Independent(const PropertyList &propList) {
		m_sampleCount = (size_t) propList.getInteger("sampleCount", 1);
		m_random = new Random();
	}
开发者ID:Boffee,项目名称:ray-tracing,代码行数:4,代码来源:independent.cpp

示例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;
 }
开发者ID:valdersoul,项目名称:NoriV2,代码行数:6,代码来源:photonmapper.cpp


注:本文中的PropertyList::getInteger方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。