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


C++ RemapDir类代码示例

本文整理汇总了C++中RemapDir的典型用法代码示例。如果您正苦于以下问题:C++ RemapDir类的具体用法?C++ RemapDir怎么用?C++ RemapDir使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了RemapDir类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: Clone

// --- Methods inherited from ReferenceTarget ---
// This method is called to have the plug-in clone itself.
RefTargetHandle Speckle::Clone(RemapDir &remap) {
	// Create a new instance of the plug-in class
	Speckle *newSpeckle = new Speckle();

	// Copy the superclass stuff
	*((MtlBase *)newSpeckle) = *((MtlBase *)this);

	// Clone the items we reference
	newSpeckle->ReplaceReference(0,remap.CloneRef(xyzGen));
	newSpeckle->ReplaceReference(1,remap.CloneRef(pblock));
	newSpeckle->col[0] = col[0];
	newSpeckle->col[1] = col[1];
	newSpeckle->size = size;
	newSpeckle->texValidity.SetEmpty();	
	newSpeckle->mapValid.SetEmpty();
	for (int i = 0; i < NUM_SUB_TEXMAPS; i++) {
		newSpeckle->subTex[i] = NULL;
		newSpeckle->mapOn[i] = mapOn[i];
		if (subTex[i])
			newSpeckle->ReplaceReference(i+2, remap.CloneRef(subTex[i]));
	}
	BaseClone(this, newSpeckle, remap);
	// Return the new cloned texture
	return (RefTargetHandle)newSpeckle;
}
开发者ID:innovatelogic,项目名称:ilogic-vm,代码行数:27,代码来源:speckle.cpp

示例2:

RefTargetHandle M3Mat::Clone(RemapDir &remap)
	{
	M3Mat *mtl = new M3Mat(FALSE);
	*((MtlBase*)mtl) = *((MtlBase*)this);

	int i;

	for(i=0;i<101;i++)
	{
		if (mTex[i]) mtl->ReplaceReference(i,remap.CloneRef(mTex[i]));
	}

	for (i=0; i<100; i++)
		mtl->mapOn[i] = mapOn[i];

	//mtl->morphp = morphp;
	mtl->ReplaceReference(101,remap.CloneRef(pblockMat));
	mtl->ReplaceReference(102,remap.CloneRef(morphp));
	MorphR3 *mp = (MorphR3 *) mtl->GetReference(102);
	if(mp)	mp->morphmaterial = mtl;

	mtl->obName = obName;

	BaseClone(this, mtl, remap);

	return (RefTargetHandle)mtl;
	}
开发者ID:2asoft,项目名称:xray,代码行数:27,代码来源:wm3_material.cpp

示例3: Clone

RefTargetHandle FExtrudeMod::Clone(RemapDir& remap) {
	FExtrudeMod *mod = new FExtrudeMod();
	mod->ReplaceReference(kFEX_PBLOCK_REF,remap.CloneRef(mp_pblock));
	mod->ReplaceReference(kFEX_POINT_REF,remap.CloneRef(mp_base));	
	BaseClone(this, mod, remap);
	return mod;
}
开发者ID:innovatelogic,项目名称:ilogic-vm,代码行数:7,代码来源:fextrude.cpp

示例4: Clone

// --- Methods inherited from ReferenceTarget ---
// This method is called to have the plug-in clone itself.
RefTargetHandle Water::Clone(RemapDir &remap) {
	// Create a new instance of the plug-in class
	Water *newWater = new Water();

	// Copy superclass stuff
	*((MtlBase *)newWater) = *((MtlBase *)this);

	// Clone the items we reference
	newWater->ReplaceReference(0, remap.CloneRef(xyzGen));
	newWater->ReplaceReference(1, remap.CloneRef(pblock));
	newWater->col[0] = col[0];
	newWater->col[1] = col[1];
	newWater->count = count;
	newWater->size = size;
	newWater->minperiod = minperiod;
	newWater->maxperiod = maxperiod;
	newWater->amp = amp;
	newWater->phase = phase;
	newWater->type = type;
	newWater->randSeed = randSeed;
	newWater->texValidity.SetEmpty();	
	for (int i = 0; i < NUM_SUB_TEXMAPS; i++) {
		newWater->subTex[i] = NULL;
		newWater->mapOn[i] = mapOn[i];
		if (subTex[i])
			newWater->ReplaceReference(i+2, remap.CloneRef(subTex[i]));
	}
	BaseClone(this, newWater, remap);
	// Return the new cloned texture
	return (RefTargetHandle)newWater;
}
开发者ID:artemeliy,项目名称:inf4715,代码行数:33,代码来源:water.cpp

示例5: Clone

//+--------------------------------------------------------------------------+
//|							From ReferenceMaker								 |
//+--------------------------------------------------------------------------+
RefTargetHandle PFOperatorForceSpaceWarp::Clone(RemapDir &remap)
{
	PFOperatorForceSpaceWarp* newOp = new PFOperatorForceSpaceWarp();
	newOp->ReplaceReference(0, remap.CloneRef(pblock()));
	newOp->ReplaceReference(1, remap.CloneRef(scriptPBlock()));
	BaseClone(this, newOp, remap);
	return newOp;
}
开发者ID:artemeliy,项目名称:inf4715,代码行数:11,代码来源:PFOperatorForceSpaceWarp.cpp

示例6: Clone

RefTargetHandle MonoFlector::Clone(RemapDir& remap) 
{
	MonoFlector* newob = new MonoFlector();	
	if (pblock2) newob->ReplaceReference(pbType_subani,remap.CloneRef(pblock2));
	if (pbComplex) newob->ReplaceReference(pbComplex_subani,remap.CloneRef(pbComplex));
	BaseClone(this, newob, remap);
	return newob;
}
开发者ID:artemeliy,项目名称:inf4715,代码行数:8,代码来源:monoflectordialog.cpp

示例7: Clone

//From ReferenceTarget 
RefTargetHandle plStaticEnvLayer::Clone(RemapDir &remap) 
{
    plStaticEnvLayer *mnew = new plStaticEnvLayer();
    *((MtlBase*)mnew) = *((MtlBase*)this); // copy superclass stuff
    mnew->ReplaceReference(kRefBitmap, remap.CloneRef(fBitmapPB));
    mnew->ReplaceReference(kRefUVGen, remap.CloneRef(fUVGen));
    BaseClone(this, mnew, remap);
    return (RefTargetHandle)mnew;
}
开发者ID:Asteral,项目名称:Plasma,代码行数:10,代码来源:plStaticEnvLayer.cpp

示例8: Clone

RefTargetHandle HLSLShaderMaterial::Clone(RemapDir &remap) 
{
	HLSLShaderMaterial *mnew = new HLSLShaderMaterial(FALSE);
	*((MtlBase*)mnew) = *((MtlBase*)this); 
	mnew->ReplaceReference(HLSLShaderMaterial::k_RefParam,remap.CloneRef(m_pblock));
	ReferenceTarget * targ = GetReference(k_RefPhen);
	mnew->ReplaceReference(k_RefPhen,remap.CloneRef(targ));
	BaseClone(this, mnew, remap);
	return (RefTargetHandle)mnew;
}
开发者ID:ZuqiuMao,项目名称:HLSLMaterial,代码行数:10,代码来源:HLSLShaderMaterial.cpp

示例9: Clone

RefTargetHandle CellTex::Clone(RemapDir &remap)
	{
	CellTex *map = new CellTex;
	*((MtlBase*)map) = *((MtlBase*)this);  // copy superclass stuff
	map->ReplaceReference(0,remap.CloneRef(pblock));	
	map->ReplaceReference(1,remap.CloneRef(xyzGen));
	map->ReplaceReference(2,remap.CloneRef(texout));
	for (int i=0; i<NSUBTEX; i++) {
		if (subTex[i]) map->ReplaceReference(3+i,remap.CloneRef(subTex[i]));
		}
	BaseClone(this, map, remap);
	return map;
	}
开发者ID:artemeliy,项目名称:inf4715,代码行数:13,代码来源:celltex.cpp

示例10: Clone

RefTargetHandle Texmaps::Clone(RemapDir &remap) {
	Texmaps *tm = new Texmaps(NULL);
	for (int i = 0; i<STD2_NMAX_TEXMAPS; i++) {
		tm->txmap[i].amount = txmap[i].amount;
		tm->txmap[i].mapOn = txmap[i].mapOn;
		tm->txmap[i].map = NULL;
		if (txmap[i].amtCtrl) 
			tm->ReplaceReference(2*i,remap.CloneRef(txmap[i].amtCtrl));
		if (txmap[i].map) 
			tm->ReplaceReference(2*i+1,remap.CloneRef(txmap[i].map));
		}
	BaseClone(this, tm, remap);
	return tm;
	}
开发者ID:artemeliy,项目名称:inf4715,代码行数:14,代码来源:texmaps.cpp

示例11: Clone

RefTargetHandle Output::Clone(RemapDir &remap) {
	Output *mnew = new Output();
	*((MtlBase*)mnew) = *((MtlBase*)this);  // copy superclass stuff
	mnew->ReplaceReference(1,remap.CloneRef(texout));
	mnew->ivalid.SetEmpty();	
	for (int i = 0; i<NSUBTEX; i++) {
		mnew->subTex[i] = NULL;
		if (subTex[i])
			mnew->ReplaceReference(i,remap.CloneRef(subTex[i]));
		mnew->mapOn[i] = mapOn[i];
		}
	BaseClone(this, mnew, remap);
	return (RefTargetHandle)mnew;
	}
开发者ID:2asoft,项目名称:xray,代码行数:14,代码来源:output.cpp

示例12: Clone

RefTargetHandle StressTexmap::Clone(RemapDir &remap) 
{
	StressTexmap *mnew = new StressTexmap();
	*((MtlBase*)mnew) = *((MtlBase*)this);  // copy superclass stuff
	mnew->ReplaceReference(NSUBTEX,remap.CloneRef(pblock));

	mnew->ivalid.SetEmpty();	
	for (int i = 0; i<NSUBTEX; i++) {
		mnew->subTex[i] = NULL;
		if (subTex[i])
			mnew->ReplaceReference(i,remap.CloneRef(subTex[i]));
		mnew->mapOn[i] = mapOn[i];
		}
	return (RefTargetHandle)mnew;
	}
开发者ID:Mankua,项目名称:stress,代码行数:15,代码来源:Texmap.cpp

示例13: Clone

RefTargetHandle CVDModifier::Clone(RemapDir& remap)
{
    CVDModifier* newmod = new CVDModifier();
    newmod->ReplaceReference(0,remap.CloneRef(pblock));
    BaseClone(this, newmod, remap);
    return(newmod);
}
开发者ID:artemeliy,项目名称:inf4715,代码行数:7,代码来源:customvdata.cpp

示例14: Clone

RefTargetHandle PasteSkinWeights::Clone(RemapDir& remap)
{
	PasteSkinWeights* newmod = new PasteSkinWeights();	
	newmod->ReplaceReference(0,remap.CloneRef(pblock));
	BaseClone(this, newmod, remap);
	return(newmod);
}
开发者ID:artemeliy,项目名称:inf4715,代码行数:7,代码来源:PasteSkinWeights.cpp

示例15: Clone

RefTargetHandle PFOperatorSimpleSpeed::Clone(RemapDir &remap)
{
	PFOperatorSimpleSpeed* newOp = new PFOperatorSimpleSpeed();
	newOp->ReplaceReference(0, remap.CloneRef(pblock()));
	BaseClone(this, newOp, remap);
	return newOp;
}
开发者ID:DimondTheCat,项目名称:xray,代码行数:7,代码来源:PFOperatorSimpleSpeed.cpp


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