本文整理汇总了C++中BaseClone函数的典型用法代码示例。如果您正苦于以下问题:C++ BaseClone函数的具体用法?C++ BaseClone怎么用?C++ BaseClone使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了BaseClone函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: WindMod
RefTargetHandle WindMod::Clone(RemapDir& remap)
{
WindMod *newob = new WindMod(nodeRef,(WindObject*)obRef);
newob->SimpleWSMModClone(this, remap);
BaseClone(this, newob, remap);
return newob;
}
开发者ID:artemeliy,项目名称:inf4715,代码行数:7,代码来源:wind.cpp
示例2: SmoothMod
RefTargetHandle SmoothMod::Clone(RemapDir& remap) {
SmoothMod* newmod = new SmoothMod();
newmod->ReplaceReference (REF_SMOOTH_PBLOCK, remap.CloneRef(pblock));
newmod->version = version;
BaseClone(this, newmod, remap);
return newmod;
}
开发者ID:innovatelogic,项目名称:ilogic-vm,代码行数:7,代码来源:surfmod.cpp
示例3: BaseClone
ReferenceTarget *CubeMap::Clone(RemapDir &remap)
{
CubeMap *pnew = new CubeMap;
pnew->ReplaceReference(0,pblock->Clone(remap));
BaseClone(this, pnew, remap);
return pnew;
}
开发者ID:2asoft,项目名称:xray,代码行数:7,代码来源:CubeMap.cpp
示例4: TriPatchObject
RefTargetHandle TriPatchObject::Clone(RemapDir& remap) {
TriPatchObject* newob = new TriPatchObject();
newob->ReplaceReference(0,pblock->Clone(remap));
newob->ivalid.SetEmpty();
BaseClone(this, newob, remap);
return(newob);
}
开发者ID:DimondTheCat,项目名称:xray,代码行数:7,代码来源:tripatch.cpp
示例5: StretchMod
RefTargetHandle StretchMod::Clone(RemapDir& remap) {
StretchMod* newmod = new StretchMod();
newmod->ReplaceReference(SIMPMOD_PBLOCKREF, pblock->Clone(remap));
newmod->SimpleModClone(this);
BaseClone(this, newmod, remap);
return(newmod);
}
开发者ID:2asoft,项目名称:xray,代码行数:7,代码来源:stretch.cpp
示例6: PFTestSplitBySource
//+--------------------------------------------------------------------------+
//| From ReferenceMaker |
//+--------------------------------------------------------------------------+
RefTargetHandle PFTestSplitBySource::Clone(RemapDir &remap)
{
PFTestSplitBySource* newTest = new PFTestSplitBySource();
newTest->ReplaceReference(0, remap.CloneRef(pblock()));
BaseClone(this, newTest, remap);
return newTest;
}
开发者ID:DimondTheCat,项目名称:xray,代码行数:10,代码来源:PFTestSplitBySource.cpp
示例7: PFOperatorSimpleSpeed
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
示例8: FExtrudeMod
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
示例9: PatchDeformPW
RefTargetHandle PatchDeformPW::Clone(RemapDir& remap)
{
PatchDeformPW* newmod = new PatchDeformPW();
newmod->ReplaceReference(PBLOCK_REF,remap.CloneRef(pblock));
BaseClone(this, newmod, remap);
return(newmod);
}
开发者ID:innovatelogic,项目名称:ilogic-vm,代码行数:7,代码来源:SkinWrapPatch.cpp
示例10: RelaxMod
RefTargetHandle RelaxMod::Clone(RemapDir& remap) {
RelaxMod* newmod = new RelaxMod();
newmod->ReplaceReference(0,remap.CloneRef(pblock));
newmod->version = version;
BaseClone(this, newmod, remap);
return(newmod);
}
开发者ID:innovatelogic,项目名称:ilogic-vm,代码行数:7,代码来源:relax.cpp
示例11: PasteSkinWeights
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
示例12: PFOperatorComments
RefTargetHandle PFOperatorComments::Clone(RemapDir &remap)
{
PFOperatorComments* newOp = new PFOperatorComments();
newOp->ReplaceReference(0, remap.CloneRef(pblock()));
BaseClone(this, newOp, remap);
return newOp;
}
开发者ID:whztt07,项目名称:OgreGameProject,代码行数:7,代码来源:PFOperatorComments.cpp
示例13: SymmetryMod
RefTargetHandle SymmetryMod::Clone(RemapDir& remap) {
SymmetryMod *mod = new SymmetryMod();
mod->ReplaceReference(kSYM_PBLOCK_REF,remap.CloneRef(mp_pblock));
mod->ReplaceReference(kSYM_MIRROR_REF,remap.CloneRef(mp_mirror));
BaseClone(this, mod, remap);
return mod;
}
开发者ID:innovatelogic,项目名称:ilogic-vm,代码行数:7,代码来源:Symmetry.cpp
示例14: SelectByChannel
RefTargetHandle SelectByChannel::Clone(RemapDir& remap)
{
SelectByChannel* newmod = new SelectByChannel();
newmod->ReplaceReference(PBLOCK_REF,remap.CloneRef(pblock));
BaseClone(this, newmod, remap);
return(newmod);
}
开发者ID:innovatelogic,项目名称:ilogic-vm,代码行数:7,代码来源:SelectByChannel.cpp
示例15: OptMod
RefTargetHandle OptMod::Clone(RemapDir& remap)
{
OptMod* newmod = new OptMod();
newmod->ReplaceReference(0,pblock->Clone(remap));
BaseClone(this, newmod, remap);
return newmod;
}
开发者ID:2asoft,项目名称:xray,代码行数:7,代码来源:optmod.cpp
示例16: BaseClone
RefTargetHandle FloatMC::Clone(RemapDir& remap)
{
FloatMC *c = new FloatMC;
c->MCControlClone(this,remap);
BaseClone(this, c, remap);
return c;
}
开发者ID:2asoft,项目名称:xray,代码行数:7,代码来源:floatmc.cpp
示例17: BendMod
// --- Interhited virtual methods of ReferenceTarget
// This method makes a new BendMod and copies the state of this modifier
// to the new modifier.
// This method is called when the user makes a copy of
// an object in the scene or when they press the make unique
// button in the modfier stack rollup page.
RefTargetHandle BendMod::Clone(RemapDir& remap) {
BendMod* newmod = new BendMod();
newmod->ReplaceReference(SIMPMOD_PBLOCKREF,remap.CloneRef(pblock2));
newmod->SimpleModClone(this, remap);
BaseClone(this, newmod, remap);
return(newmod);
}
开发者ID:artemeliy,项目名称:inf4715,代码行数:13,代码来源:bendmod.cpp
示例18: BaseClone
RefTargetHandle RotationMC::Clone(RemapDir& remap)
{
RotationMC *c = new RotationMC;
c->MCControlClone(this,remap);
BaseClone(this, c, remap);
return c;
}
开发者ID:2asoft,项目名称:xray,代码行数:7,代码来源:rotmc.cpp
示例19: Planet
// --- Methods inherited from ReferenceTarget ---
// This method is called to have the plug-in clone itself.
RefTargetHandle Planet::Clone(RemapDir &remap) {
// Create a new instance of the plug-in class
Planet *newPlanet = new Planet();
// Copy superclass stuff
*((MtlBase *)newPlanet) = *((MtlBase *)this);
// Clone the items we reference
newPlanet->ReplaceReference(0, remap.CloneRef(xyzGen));
newPlanet->ReplaceReference(1, remap.CloneRef(pblock));
newPlanet->col[0] = col[0];
newPlanet->col[1] = col[1];
newPlanet->col[2] = col[2];
newPlanet->col[3] = col[3];
newPlanet->col[4] = col[4];
newPlanet->col[5] = col[5];
newPlanet->col[6] = col[6];
newPlanet->col[7] = col[7];
newPlanet->size = size;
newPlanet->island = island;
newPlanet->percent = percent;
newPlanet->seed = seed;
newPlanet->texValidity.SetEmpty();
BaseClone(this, newPlanet, remap);
// Return the new cloned texture
return (RefTargetHandle)newPlanet;
}
开发者ID:2asoft,项目名称:xray,代码行数:29,代码来源:planet.cpp
示例20: Water
// --- 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
注:本文中的BaseClone函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论