节点组。 更多...
#include <APIGroupSceneNode.h>
Public 成员函数 | |
void | AddNode (const SceneNode &pNode) |
void | RemoveNode (const ElementId &nId) |
SceneNode | FindNode (const ElementId &nId) const |
SceneNode | GetNodeByIndex (long idx) const |
SceneNodeIterator | NewSceneNodeIterator () const |
long | GetCount () const |
void | ClearAll () |
void | SetAnimator (const Animator &pAnimator) |
Animator | GetAnimator () const |
virtual void | ResetShapeFilter (int nFilter) |
Public 成员函数 继承自 AnyCAD::API::SceneNode | |
ElementId | GetId () const |
void | SetId (const ElementId &nId) |
String | GetName () const |
void | SetName (const String &name) |
void | SetVisible (bool bVisible) |
bool | IsVisible () const |
bool | IsPickable () const |
void | SetPickable (bool enabled) |
bool | IsFilterable () const |
void | SetFilterable (bool enabled) |
bool | IsFixedSize () const |
void | SetFixedSize (bool enabled) |
void | SetBBox (const AABox &bbox) |
AABox | GetBBox () const |
void | SetTransform (const Matrix4 &trf) |
Matrix4 | GetTransform () const |
void | SetPointStyle (const PointStyle &pointStyle) |
PointStyle | GetPointStyle () const |
void | SetLineStyle (const LineStyle &lineStyle) |
LineStyle | GetLineStyle () const |
void | SetFaceStyle (const FaceStyle &faceStyle) |
FaceStyle | GetFaceStyle () const |
void | SetRenderOrder (int order) |
int | GetRenderOrder () const |
Public 成员函数 继承自 AnyCAD::API::Object | |
String | GetObjectClassId () const |
StringList | ListParentClassIds () const |
节点组。
使用节点组可以构造树形场景。
void AnyCAD::API::GroupSceneNode::AddNode | ( | const SceneNode & | pNode | ) |
添加子节点。
pNode | 子节点。 |
void AnyCAD::API::GroupSceneNode::ClearAll | ( | ) |
清空所有子节点。
根据ID查找子节点。
nId | 节点ID。 |
Animator AnyCAD::API::GroupSceneNode::GetAnimator | ( | ) | const |
获取动画器。
long AnyCAD::API::GroupSceneNode::GetCount | ( | ) | const |
获取子节点的个数。
SceneNode AnyCAD::API::GroupSceneNode::GetNodeByIndex | ( | long | idx | ) | const |
根据索引查找子节点。
idx | the index. |
SceneNodeIterator AnyCAD::API::GroupSceneNode::NewSceneNodeIterator | ( | ) | const |
创建遍历子节点的迭代器。
void AnyCAD::API::GroupSceneNode::RemoveNode | ( | const ElementId & | nId | ) |
根据ID删除子节点
nId | 节点的ID |
|
virtual |
void AnyCAD::API::GroupSceneNode::SetAnimator | ( | const Animator & | pAnimator | ) |
设置动画器。
pAnimator | the animator |