本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例13: Clone
RefTargetHandle CVDModifier::Clone(RemapDir& remap)
{
CVDModifier* newmod = new CVDModifier();
newmod->ReplaceReference(0,remap.CloneRef(pblock));
BaseClone(this, newmod, remap);
return(newmod);
}
示例14: Clone
RefTargetHandle PasteSkinWeights::Clone(RemapDir& remap)
{
PasteSkinWeights* newmod = new PasteSkinWeights();
newmod->ReplaceReference(0,remap.CloneRef(pblock));
BaseClone(this, newmod, remap);
return(newmod);
}
示例15: Clone
RefTargetHandle PFOperatorSimpleSpeed::Clone(RemapDir &remap)
{
PFOperatorSimpleSpeed* newOp = new PFOperatorSimpleSpeed();
newOp->ReplaceReference(0, remap.CloneRef(pblock()));
BaseClone(this, newOp, remap);
return newOp;
}