| /NW4C-1.2.23/tools/DccPlugin/Maya/scripts/ |
| D | NW4C_SetMaterialAttr.mel | 75 global proc int nw4cSetMaterialAttr_Get_FaceCulling(string $node) 77 return (`attributeQuery -n $node -ex "nw4cFaceCulling"`) ? 78 `getAttr ($node + ".nw4cFaceCulling")` : 1; 81 global proc nw4cSetMaterialAttr_Add_FaceCulling(string $node) 83 if (!`attributeQuery -n $node -ex "nw4cFaceCulling"`) 86 -en "Front Face=0:Back Face=1:Always=2:Never=3" -dv 1 -h 1 $node; 90 global proc nw4cSetMaterialAttr_Set_FaceCulling(string $node, int $val) 92 nw4cSetMaterialAttr_Add_FaceCulling($node); 93 setAttr ($node + ".nw4cFaceCulling") $val; 96 proc SetJob_FaceCulling(string $node) [all …]
|
| D | NW4C_SetNoCompressNode.mel | 5 Description: set no compress node 17 proc int IsSceneAnimObject(string $node) 19 string $type = nodeType($node); 20 string $childs[] = `listRelatives -pa -s $node`; 32 return node size 39 for ($node in $nodes) 41 if (!IsSceneAnimObject($node)) 43 $xforms[size($xforms)] = $node; 53 global proc int nw4cSetNoCompressNode_Get_NoCompress(string $node) 55 return (`attributeQuery -n $node -ex "nw4cNoCompressNode"`) ? [all …]
|
| D | NW4C_SetBillboard.mel | 17 proc int IsSceneAnimObject(string $node) 19 string $type = nodeType($node); 20 string $childs[] = `listRelatives -pa -s $node`; 32 return node size 39 for ($node in $nodes) 41 if (!IsSceneAnimObject($node)) 43 $xforms[size($xforms)] = $node; 53 global proc int nw4cSetBillboard_Get_Billboard(string $node) 55 return (`attributeQuery -n $node -ex "nw4cBillboard"`) ? 56 `getAttr ($node + ".nw4cBillboard")` : 0; [all …]
|
| D | NW4C_SetFrameExtensionList.mel | 5 Description: set frame extension list to file node 15 global proc string nw4cSetFrameExtensionList_Get_FrameExtensionList(string $node) 17 string $val = (`attributeQuery -n $node -ex "nw4cFeList"`) ? 18 (string)`getAttr ($node + ".nw4cFeList")` : ""; 22 global proc nw4cSetFrameExtensionList_Add_FrameExtensionList(string $node) 24 if (!`attributeQuery -n $node -ex "nw4cFeList"`) 26 addAttr -ln "nw4cFeList" -dt "string" -h 1 $node; 30 global proc nw4cSetFrameExtensionList_Set_FrameExtensionList(string $node, string $val) 32 nw4cSetFrameExtensionList_Add_FrameExtensionList($node); 33 setAttr ($node + ".nw4cFeList") -typ "string" $val; [all …]
|
| D | NW4C_SetUserData.mel | 18 global proc int nw4cSetUserData_Get_UserDataSize(string $node) 20 return (`attributeQuery -n $node -ex "nw4cUserDataSize"`) ? 21 `getAttr ($node + ".nw4cUserDataSize")` : 0; 24 global proc nw4cSetUserData_Add_UserDataSize(string $node) 26 if (!`attributeQuery -n $node -ex "nw4cUserDataSize"`) 28 addAttr -ln "nw4cUserDataSize" -at "short" -dv 0 -h 1 $node; 32 global proc nw4cSetUserData_Set_UserDataSize(string $node, int $val) 34 nw4cSetUserData_Add_UserDataSize($node); 35 setAttr ($node + ".nw4cUserDataSize") $val; 41 global proc string nw4cSetUserData_Get_UserDataValue(string $node, int $index) [all …]
|
| D | NW4C_SetCombineGroup.mel | 17 proc int IsSceneAnimObject(string $node) 19 string $type = nodeType($node); 20 string $childs[] = `listRelatives -pa -s $node`; 32 return node size 39 for ($node in $nodes) 41 if (!IsSceneAnimObject($node)) 43 $xforms[size($xforms)] = $node; 53 global proc int nw4cSetCombineGroup_Get_UseCombineGroup(string $node) 55 return (`attributeQuery -n $node -ex "nw4cUseCombineGroup"`) ? 56 `getAttr ($node + ".nw4cUseCombineGroup")` : 0; [all …]
|
| D | NW4C_SetCameraFovy.mel | 17 proc int IsCameraTransform(string $node) 19 string $childs[] = `listRelatives -pa -s $node`; 24 get selected camera node 26 return node size 59 proc SetJob_Fovy(string $node) 61 string $cmd = "floatSliderGrp -e -v `camera -q -vfv " + $node + 64 scriptJob -p nw4cSetCameraFovy_Fovy -rp -ac ($node + ".focalLength") $cmd; 65 scriptJob -p nw4cSetCameraFovy_ApertureV -rp -ac ($node + ".verticalFilmAperture") $cmd; 77 for ($node in $cams) 79 camera -e -vfv $val $node; [all …]
|
| D | NW4C_SetRenderPriority.mel | 58 global proc int nw4cSetRenderPriority_Get_UseRenderPriority(string $node) 60 return (`attributeQuery -n $node -ex "nw4cUseRenderPriority"`) ? 61 `getAttr ($node + ".nw4cUseRenderPriority")` : 0; 64 global proc nw4cSetRenderPriority_Add_UseRenderPriority(string $node) 66 if (!`attributeQuery -n $node -ex "nw4cUseRenderPriority"`) 68 addAttr -ln "nw4cUseRenderPriority" -at "bool" -dv 0 -h 1 $node; 72 global proc nw4cSetRenderPriority_Set_UseRenderPriority(string $node, int $val) 74 nw4cSetRenderPriority_Add_UseRenderPriority($node); 75 setAttr ($node + ".nw4cUseRenderPriority") $val; 78 proc SetJob_UseRenderPriority(string $node) [all …]
|
| D | NW4C_CreateMenu.mel | 84 -ann "Set material attributes of selected shadingEngine (material) node" 90 -ann "Set render priority of selected shadingEngine (material) node" 96 // -ann "Set normal mapping attributes of selected file node" 102 // no compress node 104 -ann "Set no compress flag of selected transform node" 110 -ann "Set billboard mode of selected transform node" 116 -ann "Set combine group of selected transform node" 136 // -ann "Set shape anim attributes of selected blendShape (transform) node" 144 -ann "Set camera fovy of selected camera (transform) node" 152 -ann "Set user data of selected transform node & shadingEngine (material) node"
|
| /NW4C-1.2.23/sources/libraries/gfx/ |
| D | gfx_SceneBuilder.cpp | 98 SceneNode* node = SceneNode::Create( in BuildSceneObject() local 100 object = node; in BuildSceneObject() 113 TransformNode* node = TransformNode::Create( in BuildSceneObject() local 118 object = node; in BuildSceneObject() 134 Model* node = Model::Create( in BuildSceneObject() local 139 object = node; in BuildSceneObject() 145 SkeletalModel* node = SkeletalModel::Builder() in BuildSceneObject() local 154 object = node; in BuildSceneObject() 175 ParticleModel* node = ParticleModel::Create( in BuildSceneObject() local 181 object = node; in BuildSceneObject() [all …]
|
| D | gfx_ParticleCollection.cpp | 560 ParticleCollection* node = new(nodeMemory) ParticleCollection( in Create() local 568 node->m_Capacity = capacity; in Create() 570 node->m_ParticleShape = shape; in Create() 577 node->m_IsStream[usage] = true; in Create() 580 node->m_StreamPtr[usage][i] = shape->GetPrimitiveStreamPtr((ParticleBuffer)i); in Create() 581 node->m_StreamStride[usage] = 2; in Create() 592 … &node->m_ParticleAttribute[usage], static_cast<ParticleUsage>(usage), capacity, &nodeMemory); in Create() 594 node->m_IsStream[usage] = true; in Create() 597 node->m_StreamPtr[usage][i] = node->m_ParticleAttribute[usage].m_Stream; in Create() 598 node->m_StreamStride[usage] = 2; in Create() [all …]
|
| D | gfx_ParticleModel.cpp | 140 ParticleModel* node = new(memory) ParticleModel( in Create() local 146 Result result = node->Initialize(mainAllocator); in Create() 149 SafeDestroy(node); in Create() 178 node->AttachParticleShape(shapeNode); in Create() 186 node, in Create() 199 node->AttachParticleSet(setNode); in Create() 204 for (int i = 0; i < node->m_MaximumParticleSet; ++i) // TBD in Create() 206 if (node->m_ParticleSets[i] != NULL) in Create() 208 SafeDestroy(node->m_ParticleSets[i]); in Create() 209 node->m_ParticleSets[i] = NULL; in Create() [all …]
|
| D | gfx_SceneNode.cpp | 43 SceneNode* node = new(memory) SceneNode( in Create() local 46 Result result = node->Initialize(allocator); in Create() 50 return node; in Create() 70 SceneNode* node = new(memory) SceneNode( in Create() local 73 Result result = node->Initialize(allocator); in Create() 79 bool isAttached = parent->AttachChild(node); in Create() 82 return node; in Create()
|
| D | gfx_TransformNode.cpp | 65 TransformNode* node = new(memory) TransformNode( in Create() local 70 Result result = node->Initialize(allocator); in Create() 74 return node; in Create() 93 TransformNode* node = new(memory) TransformNode( in Create() local 98 Result result = node->Initialize(allocator); in Create() 104 bool isAttached = parent->AttachChild(node); in Create() 107 return node; in Create()
|
| D | gfx_SceneUpdater.cpp | 163 for (SceneNodeArray::iterator node = sceneContext->GetSceneNodesBegin(); node != end; ++node) in UpdateTransformNode() local 165 (*node)->PreUpdateSignal()(*node, sceneContext); in UpdateTransformNode() 168 (*node)->InheritTraversalResults(); in UpdateTransformNode() 170 (*node)->UpdateTransform(this->m_WorldMatrixUpdater.Get(), sceneContext); in UpdateTransformNode()
|
| /NW4C-1.2.23/include/nw/font/ |
| D | font_PackedFont.h | 315 const OrderNode& node = GetNode(index); in IsLocked() local 316 return IsLockedNode(node); in IsLocked() 322 bool IsLockedNode(const OrderNode& node) const in IsLockedNode() argument 324 NN_ASSERT( ! (node.prevIndex == LOCKED_INDEX) ^ (node.nextIndex == LOCKED_INDEX) ); in IsLockedNode() 325 return (node.prevIndex == LOCKED_INDEX); in IsLockedNode() 328 void MarkLocked(OrderNode& node) const in MarkLocked() argument 330 node.prevIndex = LOCKED_INDEX; in MarkLocked() 331 node.nextIndex = LOCKED_INDEX; in MarkLocked() 334 void Unlink(OrderNode& node) in Unlink() argument 336 OrderNode& prev = GetNode(node.prevIndex); in Unlink() [all …]
|
| /NW4C-1.2.23/demos/gfx/ParticleLowLayerDemo/sources/ |
| D | ParticleLowLayerDemo.cpp | 111 void UpdateNode(nw::gfx::TransformNode* node); 353 nw::gfx::SceneNode* node = CreateSceneNode(*modelResource); in BuildResources() local 354 NW_NULL_ASSERT(node); in BuildResources() 356 sceneNodeArray.push_back(node); in BuildResources() 358 if (nw::ut::IsTypeOf<nw::gfx::ParticleModel>(node)) in BuildResources() 360 s_ParticleModels.push_back(static_cast<nw::gfx::ParticleModel*>(node)); in BuildResources() 363 static_cast<nw::gfx::ParticleModel*>(node); in BuildResources() 376 nw::gfx::SceneNode* node = CreateSceneNode(*emitterResource); in BuildResources() local 377 NW_NULL_ASSERT(node); in BuildResources() 379 sceneNodeArray.push_back(node); in BuildResources() [all …]
|
| /NW4C-1.2.23/sources/libraries/demo/ |
| D | demo_Particle.cpp | 54 ParticleNode* node = new(memory) ParticleNode( in Create() local 60 gfx::Result result = node->Initialize(allocator); in Create() 63 SafeDestroy(node); in Create() 68 return node; in Create() 228 nw::gfx::SceneNode* node = nw::ut::DynamicCast<nw::gfx::SceneNode*>(sceneObject); in Allocate() local 229 sceneNodeArray.PushBack(node); in Allocate() 231 nw::gfx::ParticleModel* model = nw::ut::DynamicCast<nw::gfx::ParticleModel*>(node); in Allocate() 242 nw::gfx::SceneNode* node = nw::ut::DynamicCast<nw::gfx::SceneNode*>(sceneObject); in Allocate() local 243 sceneNodeArray.PushBack(node); in Allocate() 245 nw::gfx::ParticleEmitter* emitter = nw::ut::DynamicCast<nw::gfx::ParticleEmitter*>(node); in Allocate() [all …]
|
| /NW4C-1.2.23/include/nw/ut/ |
| D | ut_LinkList.h | 710 Node* node = ( p == NULL )? baseNode : GetNodeFromPointer( p ); in GetPrev() local 711 node = node->GetPrev(); in GetPrev() 712 return ( node == baseNode )? NULL : GetPointerFromNode( node ); in GetPrev() 718 const Node* node = ( p == NULL )? baseNode : GetNodeFromPointer( p ); in GetPrev() local 719 node = node->GetPrev(); in GetPrev() 720 return ( node == baseNode )? NULL : GetPointerFromNode( node ); in GetPrev() 733 Node* node = ( p == NULL )? baseNode : GetNodeFromPointer( p ); in GetNext() local 734 node = node->GetNext(); in GetNext() 735 return ( node == baseNode )? NULL : GetPointerFromNode( node ); in GetNext() 741 const Node* node = ( p == NULL )? baseNode : GetNodeFromPointer( p ); in GetNext() local [all …]
|
| /NW4C-1.2.23/demos/gfx/MultiAnimationDemo/sources/ |
| D | MultiAnimationDemo.cpp | 337 nw::gfx::SceneNode* node = nw::demo::Utility::CreateSceneNode( in BuildResources() local 341 NW_NULL_ASSERT(node); in BuildResources() 342 sceneNodeArray.push_back(node); in BuildResources() 344 s_AnimTargets.push_back(node); in BuildResources() 352 nw::gfx::SceneNode* node = nw::demo::Utility::CreateSceneNode( in BuildResources() local 356 NW_NULL_ASSERT(node); in BuildResources() 357 sceneNodeArray.push_back(node); in BuildResources() 359 s_AnimTargets.push_back(node); in BuildResources() 367 nw::gfx::SceneNode* node = nw::demo::Utility::CreateSceneNode( in BuildResources() local 371 NW_NULL_ASSERT(node); in BuildResources() [all …]
|
| /NW4C-1.2.23/include/nw/gfx/ |
| D | gfx_SceneNode.h | 434 void CopyTraversalResults(const SceneNode* node) in CopyTraversalResults() argument 436 if (node != NULL) in CopyTraversalResults() 438 this->m_TraversalResults = node->GetTraversalResults(); in CopyTraversalResults() 617 TNode*& node in SafeDestroyBranch() argument 620 if (node == NULL) { return; } in SafeDestroyBranch() 621 node->DestroyBranch(); in SafeDestroyBranch() 622 node = NULL; in SafeDestroyBranch() 634 void operator()(TNode& node) const in operator() 636 SafeDestroyBranch(node); in operator()
|
| /NW4C-1.2.23/include/nw/demo/ |
| D | demo_Particle.h | 505 ParticleNode* node = this->m_FreeInstances.Back(); in LeaseInstance() local 507 this->m_ActiveInstances.PushBack(node); in LeaseInstance() 509 this->ResetParticle(node); in LeaseInstance() 511 return node; in LeaseInstance() 516 void ReleaseInstance(gfx::SceneNode* node) in ReleaseInstance() argument 518 ParticleNode* topNode = ut::DynamicCast<ParticleNode*>(node); in ReleaseInstance() 607 ParticleNode* node = this->Allocate(); in AddPool() local 608 this->m_FreeInstances.push_back(node); in AddPool() 617 ParticleNode* node = this->m_FreeInstances.Back(); in FreePool() local 619 DestroyParticleNode(node); in FreePool() [all …]
|
| /NW4C-1.2.23/demos/gfx/ParticleMultiModelDemo/sources/ |
| D | ParticleMultiModelDemo.cpp | 260 nw::gfx::SceneNode* node = nw::demo::Utility::CreateSceneNode( in BuildResources() local 265 if (node != NULL) in BuildResources() 267 nw::gfx::ParticleModel* model = nw::ut::DynamicCast<nw::gfx::ParticleModel*>(node); in BuildResources() 272 sceneNodeArray.push_back(node); in BuildResources() 280 nw::gfx::SceneNode* node = nw::demo::Utility::CreateSceneNode( in BuildResources() local 285 if (node != NULL) in BuildResources() 287 … nw::gfx::ParticleEmitter* emitter = nw::ut::DynamicCast<nw::gfx::ParticleEmitter*>(node); in BuildResources() 292 sceneNodeArray.push_back(node); in BuildResources() 316 nw::gfx::SceneNode* node = nw::demo::Utility::CreateSceneNode( in BuildResources() local 320 NW_NULL_ASSERT(node); in BuildResources() [all …]
|
| /NW4C-1.2.23/demos/gfx/LowLayerDemo/sources/ |
| D | LowLayerDemo.cpp | 103 void UpdateNode(nw::gfx::TransformNode* node); 334 nw::gfx::SceneNode* node = CreateSceneNode(*modelResource); in BuildResources() local 335 NW_NULL_ASSERT(node); in BuildResources() 337 s_Models.push_back(static_cast<nw::gfx::Model*>(node)); in BuildResources() 344 nw::gfx::SceneNode* node = CreateSceneNode(*lightResource); in BuildResources() local 345 NW_NULL_ASSERT(node); in BuildResources() 346 NW_ASSERT(nw::ut::IsTypeOf<nw::gfx::FragmentLight>(node)); in BuildResources() 348 s_FragmentLights.push_back(static_cast<nw::gfx::FragmentLight*>(node)); in BuildResources() 453 UpdateNode(nw::gfx::TransformNode* node) in UpdateNode() argument 457 if (node->Transform().IsEnabledFlags(nw::gfx::CalculatedTransform::FLAG_IS_DIRTY)) in UpdateNode() [all …]
|
| /NW4C-1.2.23/demos/gfx/ConstraintDemo/sources/ |
| D | ConstraintDemo.cpp | 496 nw::gfx::SceneNode* node = nw::demo::Utility::CreateSceneNode( in BuildResources() local 500 NW_NULL_ASSERT(node); in BuildResources() 501 sceneNodeArray.push_back(node); in BuildResources() 503 s_AnimTargets.push_back(node); in BuildResources() 505 nw::gfx::SkeletalModel* skeletalModel = nw::ut::DynamicCast<nw::gfx::SkeletalModel*>(node); in BuildResources() 517 nw::gfx::SceneNode* node = nw::demo::Utility::CreateSceneNode( in BuildResources() local 521 NW_NULL_ASSERT(node); in BuildResources() 522 sceneNodeArray.push_back(node); in BuildResources() 524 s_AnimTargets.push_back(node); in BuildResources() 526 s_Light = nw::ut::DynamicCast<nw::gfx::Light*>(node); in BuildResources() [all …]
|