本文整理汇总了C++中TextNode::addString方法的典型用法代码示例。如果您正苦于以下问题:C++ TextNode::addString方法的具体用法?C++ TextNode::addString怎么用?C++ TextNode::addString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TextNode
的用法示例。
在下文中一共展示了TextNode::addString方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AddSFString
void AddSFString(char *string)
{
switch (GetCurrentNodeType()) {
case VRML_NODETYPE_ANCHOR_PARAMETER:
{
((AnchorNode *)GetCurrentNodeObject())->addParameter(string);
}
break;
case VRML_NODETYPE_ANCHOR_URL:
{
((AnchorNode *)GetCurrentNodeObject())->addUrl(string);
}
break;
case VRML_NODETYPE_INLINE_URL:
{
((InlineNode *)GetCurrentNodeObject())->addUrl(string);
}
break;
case VRML_NODETYPE_AUDIOCLIP_URL:
{
AudioClipNode *aclip = (AudioClipNode *)GetCurrentNodeObject();
aclip->addUrl(string);
}
break;
case VRML_NODETYPE_BACKGROUND_BACKURL:
{
BackgroundNode *bg = (BackgroundNode *)GetCurrentNodeObject();
bg->addBackUrl(string);
}
break;
case VRML_NODETYPE_BACKGROUND_BOTTOMURL:
{
BackgroundNode *bg = (BackgroundNode *)GetCurrentNodeObject();
bg->addBottomUrl(string);
}
break;
case VRML_NODETYPE_BACKGROUND_FRONTURL:
{
BackgroundNode *bg = (BackgroundNode *)GetCurrentNodeObject();
bg->addFrontUrl(string);
}
break;
case VRML_NODETYPE_BACKGROUND_LEFTURL:
{
BackgroundNode *bg = (BackgroundNode *)GetCurrentNodeObject();
bg->addLeftUrl(string);
}
break;
case VRML_NODETYPE_BACKGROUND_RIGHTURL:
{
BackgroundNode *bg = (BackgroundNode *)GetCurrentNodeObject();
bg->addRightUrl(string);
}
break;
case VRML_NODETYPE_BACKGROUND_TOPURL:
{
BackgroundNode *bg = (BackgroundNode *)GetCurrentNodeObject();
bg->addTopUrl(string);
}
break;
case VRML_NODETYPE_FONTSTYLE_JUSTIFY:
{
FontStyleNode *fs = (FontStyleNode *)GetCurrentNodeObject();
fs->addJustify(string);
}
break;
case VRML_NODETYPE_IMAGETEXTURE_URL:
{
ImageTextureNode *image = (ImageTextureNode *)GetCurrentNodeObject();
image->addUrl(string);
}
break;
case VRML_NODETYPE_MOVIETEXTURE_URL:
{
MovieTextureNode *image = (MovieTextureNode *)GetCurrentNodeObject();
image->addUrl(string);
}
break;
case VRML_NODETYPE_NAVIGATIONINFO_TYPE:
{
NavigationInfoNode *navInfo = (NavigationInfoNode *)GetCurrentNodeObject();
navInfo->addType(string);
}
break;
case VRML_NODETYPE_SCRIPT_URL:
{
ScriptNode *script = (ScriptNode *)GetCurrentNodeObject();
script->addUrl(string);
}
break;
case VRML_NODETYPE_TEXT_STRING:
{
TextNode *text = (TextNode *)GetCurrentNodeObject();
text->addString(string);
}
break;
case VRML_NODETYPE_WORLDINFO_INFO:
{
WorldInfoNode *worldInfo = (WorldInfoNode *)GetCurrentNodeObject();
worldInfo->addInfo(string);
//.........这里部分代码省略.........