本文整理汇总了C++中IParamMap2::SetText方法的典型用法代码示例。如果您正苦于以下问题:C++ IParamMap2::SetText方法的具体用法?C++ IParamMap2::SetText怎么用?C++ IParamMap2::SetText使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IParamMap2
的用法示例。
在下文中一共展示了IParamMap2::SetText方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Set
void Set(PB2Value& v, ReferenceMaker* owner, ParamID id, int tabIndex, TimeValue t)
{
VRayCamera *cam = (VRayCamera*)owner;
IParamMap2* pmap = cam->pblock->GetMap();
TSTR p, f, e, name;
switch (id) {
case pb_separation_map: {
if (pmap) {
TSTR sepname(v.bm->bi.Name());
SplitFilename(sepname, &p, &f, &e);
name = f + e;
pmap->SetText(pb_separation_map, name.data());
} break;
}
case pb_head_turn_map: {
if (pmap) {
TSTR sepname(v.bm->bi.Name());
SplitFilename(sepname, &p, &f, &e);
name = f + e;
pmap->SetText(pb_head_turn_map, name.data());
} break;
}
case pb_head_tilt_map: {
if (pmap) {
TSTR sepname(v.bm->bi.Name());
SplitFilename(sepname, &p, &f, &e);
name = f + e;
pmap->SetText(pb_head_tilt_map, name.data());
} break;
}
default: break;
}
}
示例2: SetLeaderNodeText
void FormationBhvr::SetLeaderNodeText()
{
if (!editing) return;
IParamMap2 *pmap = pblock->GetMap();
if (!pmap) return;
INode *node;
node = pblock->GetINode(leader,0,0);
if(node)
pmap->SetText(leader,node->GetName());
else
pmap->SetText(leader,GetString(IDS_NONE));
}
示例3: SetFollowerNodeText
void FormationBhvr::SetFollowerNodeText()
{
if (!editing) return;
IParamMap2 *pmap = pblock->GetMap();
if (!pmap) return;
if (pblock->Count(follower) == 0)
pmap->SetText(follower_single,GetString(IDS_NONE));
else if (pblock->Count(follower) == 1)
{
INode *node;
node = pblock->GetINode(follower,0,0);
if (node) pmap->SetText(follower_single,node->GetName());
}
else pmap->SetText(follower_single,GetString(IDS_MULTIPLE));
}
示例4: UpdateButtonText
void CubeMap::UpdateButtonText()
{
IAutoMParamDlg *dlg = pblock->GetMParamDlg();
IParamMap2 *map = dlg->GetMap();
if(map)
{
TSTR p,f,e,name;
ParamDef &mapdef = pblock->GetParamDef(pb_cubemapfile); //Added to force a filename to be present
mapdef.init_file = cubeMapFile; //Added to force a filename to be present
SplitFilename(cubeMapFile, &p, &f, &e);
name = f+e;
map->SetText(pb_cubemapfile, name.data());
}
}
示例5: UpdateButtonText
void CubeMap::UpdateButtonText()
{
IAutoMParamDlg *dlg = pblock->GetMParamDlg();
IParamMap2 *map = dlg->GetMap();
if(map)
{
TSTR p,f,e,name;
ParamDef &mapdef = pblock->GetParamDef(pb_cubemapfile); //Added to force a filename to be present
static TCHAR cubemapFile[MAX_PATH];
_tcscpy(cubemapFile,cubeMapFileAsset.GetFileName());
mapdef.init_file = cubemapFile; //Added to force a filename to be present
SplitFilename(TSTR(cubemapFile), &p, &f, &e);
name = f+e;
map->SetText(pb_cubemapfile, name);
}
}