这篇教程C++ CreateNode函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中CreateNode函数的典型用法代码示例。如果您正苦于以下问题:C++ CreateNode函数的具体用法?C++ CreateNode怎么用?C++ CreateNode使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了CreateNode函数的29个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: CreateNode// we do not register the parent node; we register only the childrenCTrieNodeBuild* CMorphAutomatBuilder::AddSuffix(CTrieNodeBuild* pParentNodeNo, const char* WordForm){ // save current char BYTE RelationChar = (BYTE)*WordForm; WordForm++; // adding new node child CTrieNodeBuild* pChildNode = CreateNode(); // adding the rest of the suffix if (*WordForm) AddSuffix(pChildNode, WordForm); // making it final if (*WordForm == 0) pChildNode->SetFinal( true ) ; // replace or register (the children should be already registered) pChildNode = ReplaceOrRegister(pChildNode); // adding this child to the parent { assert (!pParentNodeNo->m_bRegistered); pParentNodeNo->AddChild(pChildNode, m_Alphabet2Code[RelationChar]); } return pChildNode;};
开发者ID:dkrotx,项目名称:gogo_lemmatizer,代码行数:29,
示例2: CreateVoidListNode *create_scene_city_bmap() { // casita3/house01 // casa5/wachhaus // dom/dom Node * aux; list *gObj_list; Node *myNode; static trfm3D TT; gObj_list = CreateVoidList(); AddLast(gObj_list, SceneRegisterGObject( "./obj/casita3/", "house01.obj")); AddLast(gObj_list, SceneRegisterGObject( "./obj/casa5/", "wachhaus.obj")); AddLast(gObj_list, SceneRegisterGObject( "./obj/dom/", "dom.obj")); aux = create_city(500, gObj_list); SetTransTrfm3D(&TT, 0, -5, 00); //SetTransTrfm3D(&TT, 0, 0, 0); myNode = CreateNode("root"); SetTrfmNode(myNode, &TT); //SetShaderNode(myNode, SceneFindShader("pervertex")); SetShaderNode(myNode, SceneFindShader("perfragment")); AttachNodeScene(myNode); AttachNode(myNode, aux); aux = create_floor_city( "./obj/floor/", "cityfloor_grass.obj"); SetShaderNode(aux, SceneFindShader("bump")); AttachNode(myNode, aux); // takes ownership return aux;}
开发者ID:xetxeberria,项目名称:VEV2,代码行数:33,
示例3: _defaultTypeName/* static */boolPxrUsdMayaTranslatorUtil::CreateTransformNode( const UsdPrim& usdPrim, MObject& parentNode, const PxrUsdMayaPrimReaderArgs& args, PxrUsdMayaPrimReaderContext* context, MStatus* status, MObject* mayaNodeObj){ static const MString _defaultTypeName("transform"); if (not usdPrim or not usdPrim.IsA<UsdGeomXformable>()) { return false; } if (not CreateNode(usdPrim, _defaultTypeName, parentNode, context, status, mayaNodeObj)) { return false; } // Read xformable attributes from the UsdPrim on to the transform node. UsdGeomXformable xformable(usdPrim); PxrUsdMayaTranslatorXformable::Read(xformable, *mayaNodeObj, args, context); return true;}
开发者ID:400dama,项目名称:USD,代码行数:31,
示例4: ClearBuildNodesvoid CMorphAutomatBuilder::InitTrie(){ ClearBuildNodes(); m_pRoot = CreateNode(); ClearRegister(); };
开发者ID:dkrotx,项目名称:gogo_lemmatizer,代码行数:7,
|