NX Open C++ Reference Guide
|
Represents the node created and utilized by BlockStyler::Tree . More...
Public Types | |
enum | DragType { DragTypeNone, DragTypeAll } |
Represents the drag type. More... | |
enum | DropType { DropTypeNone, DropTypeOn, DropTypeBefore, DropTypeAfter, DropTypeBeforeAndAfter } |
Represents the drop type. More... | |
enum | ExpandOption { ExpandOptionCollapse, ExpandOptionExpand, ExpandOptionToggle } |
Represents the Expand/Collapse option. More... | |
enum | Scroll { ScrollCenter, ScrollLeastScroll, ScrollMostScroll } |
Represents the scroll position to be applied on node. More... | |
Public Member Functions | |
bool | CrossSelection () |
返回指示是否允许横截面的标志。 . | |
NXString | DisplayIcon () |
返回显示图标. | |
NXString | DisplayText () |
返回节点的显示文本。 . | |
void | Expand (NXOpen::BlockStyler::Node::ExpandOption expandOption) |
展开/折叠节点 Created in NX7.5.0. | |
NXOpen::BlockStyler::Node * | FirstChildNode () |
返回第一个子节点。 | |
int | ForegroundColor () |
返回节点的文本颜色。 | |
NXString | GetColumnDisplayText (int columnID) |
获取给定列的文本。 | |
NXOpen::DataContainer * | GetNodeData () |
获取包含唯一名称值对形式的数据的节点数据。 | |
int | GetState () |
Gets the node state associated with node state icon. | |
bool | IsExpanded () |
返回指示节点是否处于展开状态的标志。 Created in NX7.5.3. | |
bool | IsInserted () |
返回指示节点是否插入的标志。 in BlockStyler::Tree Created in NX7.5.0. | |
bool | IsSelected () |
返回指示节点是否处于选定状态的标志。 Created in NX7.5.3. | |
NXOpen::BlockStyler::Node * | NextNode () |
返回可能不属于同一层次结构的下一个节点。 | |
NXOpen::BlockStyler::Node * | NextSelectedNode () |
返回整个树层次结构中的下一个选定节点。 | |
NXOpen::BlockStyler::Node * | NextSiblingNode () |
返回下一个节点属于同一层次。 | |
NXOpen::BlockStyler::Node * | ParentNode () |
返回父节点。 | |
NXOpen::BlockStyler::Node * | PreviousNode () |
返回可能不属于同一层次结构的前一个节点。 | |
NXOpen::BlockStyler::Node * | PreviousSelectedNode () |
返回先前选定的节点在整个树的层次结构。 | |
NXOpen::BlockStyler::Node * | PreviousSiblingNode () |
返回属于同一层次结构的前一个节点。 | |
void | ScrollTo (int columnID, NXOpen::BlockStyler::Node::Scroll visibleOption) |
水平和垂直滚动,使节点的特定列出现在树窗口上。 | |
NXString | SelectedIcon () |
返回选定的图标。 | |
void | SetColumnDisplayText (int columnID, const NXString &columnDisplayText) |
在对应于给定的列设置文本 | |
void | SetColumnDisplayText (int columnID, const char *columnDisplayText) |
Sets the text in the column which corresponds to given columnId. | |
void | SetCrossSelection (bool crossSelection) |
设置表示是否允许横截面的标志。 | |
void | SetDisplayIcon (const NXString &icon) |
设置显示图标。 | |
void | SetDisplayIcon (const char *icon) |
Sets the display icon. | |
void | SetDisplayText (const NXString &displayTest) |
设置节点的显示文本。 | |
void | SetDisplayText (const char *displayTest) |
Sets the display text of node. | |
void | SetForegroundColor (int nodeForgroundColor) |
设置节点的文本颜色。 | |
void | SetSelectedIcon (const NXString &icon) |
设置选定的图标。 | |
void | SetSelectedIcon (const char *icon) |
设置选定的图标。 | |
void | SetState (int state) |
设置与节点状态图标相关联的节点状态。 | |
![]() | |
tag_t | GetTag () const |
<b>Deprecated</b>:<br> Use Tag instead. | |
tag_t | Tag () const |
Returns the tag of this object. | |
Represents the node created and utilized by BlockStyler::Tree .
The node represents the single row of the tree.
Created in NX7.5.0.
Represents the scroll position to be applied on node.
Use one of these options to make the node appear in tree window.
bool NXOpen::BlockStyler::Node::CrossSelection | ( | ) |
Returns the flag indicating whether cross section is allowed.
It is useful when the node contains @link DisplayableObject DisplayableObject@endlink as data. If the flag is true then the @link DisplayableObject DisplayableObject@endlink is highlighted, else not. The default value is True
Created in NX7.5.0.
License requirements : None
NXString NXOpen::BlockStyler::Node::DisplayIcon | ( | ) |
Returns the display icon.
This is normal icon positioned before the node text and is displayed when the node is in unselected state.
Created in NX7.5.0.
License requirements : None
NXString NXOpen::BlockStyler::Node::DisplayText | ( | ) |
Returns the display text of node.
This is same as 0th column text of this node. Use BlockStyler::Node::SetColumnDisplayText to fetch the text of other column of the same node.
Created in NX7.5.0.
License requirements : None
void NXOpen::BlockStyler::Node::Expand | ( | NXOpen::BlockStyler::Node::ExpandOption | expandOption | ) |
Expands/collapses the node
Created in NX7.5.0.
License requirements : None
expandOption | Expand option |
NXOpen::BlockStyler::Node* NXOpen::BlockStyler::Node::FirstChildNode | ( | ) |
Returns the first child node.
Returns NULL if child node is not present.
Created in NX7.5.0.
License requirements : None
int NXOpen::BlockStyler::Node::ForegroundColor | ( | ) |
Returns the text color of the node.
The color is applicable for whole row.
Created in NX7.5.0.
License requirements : None
NXString NXOpen::BlockStyler::Node::GetColumnDisplayText | ( | int | columnID | ) |
Gets the column text for the given columnId.
The text is interpreted as icon if the column display type is @link BlockStyler::Tree::ColumnDisplayIcon BlockStyler::Tree::ColumnDisplayIcon@endlink . @return Text associated with column.
Created in NX7.5.0.
License requirements : None
columnID | Unique column id of the column. |
NXOpen::DataContainer* NXOpen::BlockStyler::Node::GetNodeData | ( | ) |
Gets node data which contains the data in the form of unique name-value pairs.
In this context unique name is termed as property name. There could me more than one such property name - value pair, but the property name of the primary data should be named "Data" (case-sensitive). For instance, if a @link BlockStyler::Node BlockStyler::Node@endlink represents a feature object then property name should be "Data" and the value should be feature object. The primary data is used by NX for some operations such cross selection. <br> Initialy the container or list is empty and it is expected that data would be added to it. Additional property name - value pair can be added to the container or list, but it should be made sure that there is no dublicate property name exists in the container or list. The additional data can be seen as book keeping information for node. At any point the node data can be fetched and value can be extracted using the corresponding property name. Refer to @link DataContainer DataContainer@endlink on how property name-value pair is added to the container or list. <br> @return Node data which is list of property name - value pair. New property name - value pair can be added to it and existing value can be fetched using corresponding property name.
Created in NX7.5.0.
License requirements : None
int NXOpen::BlockStyler::Node::GetState | ( | ) |
Gets the node state associated with node state icon.
Node state is an iconic representation, e.g., checked/unchecked icons for corresponding state. Node state value 1 and 2 represents the standard checked and unchecked state respectively.
bool NXOpen::BlockStyler::Node::IsExpanded | ( | ) |
Returns the flag indicating whether the node is in expanded state
Created in NX7.5.3.
License requirements : None
bool NXOpen::BlockStyler::Node::IsInserted | ( | ) |
Returns the flag indicating whether the node is inserted in BlockStyler::Tree
Created in NX7.5.0.
License requirements : None
bool NXOpen::BlockStyler::Node::IsSelected | ( | ) |
Returns the flag indicating whether the node is in selected state
Created in NX7.5.3.
License requirements : None
NXOpen::BlockStyler::Node* NXOpen::BlockStyler::Node::NextNode | ( | ) |
Returns the next node which might not belong to the same hierarchy.
The next node either is a sibling node or belongs to other root node. Returns NULL if next node is not present
Created in NX7.5.0.
License requirements : None
NXOpen::BlockStyler::Node* NXOpen::BlockStyler::Node::NextSelectedNode | ( | ) |
Returns the next selected node in the whole tree hierarchy.
The node on which this method is called does not have to be selected. Returns NULL if none of the next nodes are selected.
Created in NX7.5.0.
License requirements : None
NXOpen::BlockStyler::Node* NXOpen::BlockStyler::Node::NextSiblingNode | ( | ) |
Returns the next node which belongs to the same hierarchy.
Returns NULL null if next sibling node is not present.
Created in NX7.5.0.
License requirements : None
NXOpen::BlockStyler::Node* NXOpen::BlockStyler::Node::ParentNode | ( | ) |
Returns the parent node.
Returns NULL if parent node is not present
Created in NX7.5.0.
License requirements : None
NXOpen::BlockStyler::Node* NXOpen::BlockStyler::Node::PreviousNode | ( | ) |
Returns the previous node which might not belong to the same hierarchy.
Returns NULL null if previous node is not present
Created in NX7.5.0.
License requirements : None
NXOpen::BlockStyler::Node* NXOpen::BlockStyler::Node::PreviousSelectedNode | ( | ) |
Returns the previous selected node in the whole tree hierarchy.
The node on which this method is called does not have to be selected. Returns NULL if none of the previous nodes are selected.
Created in NX7.5.0.
License requirements : None
NXOpen::BlockStyler::Node* NXOpen::BlockStyler::Node::PreviousSiblingNode | ( | ) |
Returns the previous node which belongs to the same hierarchy.
Returns NULL if previous sibling node is not present.
Created in NX7.5.0.
License requirements : None
void NXOpen::BlockStyler::Node::ScrollTo | ( | int | columnID, |
NXOpen::BlockStyler::Node::Scroll | visibleOption | ||
) |
Scrolls horizontally and vertically to make the specific column of node appear on the tree window.
Created in NX7.5.0.
License requirements : None
columnID | ColumnId of the column to which tree window scrolls horizontally. |
visibleOption | Option to scroll the tree window vertically. |
NXString NXOpen::BlockStyler::Node::SelectedIcon | ( | ) |
Returns the selected icon.
This icon appears on node selection and is positioned before the node text replacing the BlockStyler::Node::DisplayIcon and BlockStyler::Node::SetDisplayIcon .
Created in NX7.5.0.
License requirements : None
void NXOpen::BlockStyler::Node::SetColumnDisplayText | ( | int | columnID, |
const NXString & | columnDisplayText | ||
) |
Sets the text in the column which corresponds to given columnId.
The text is interpreted as icon if the column display type is @link BlockStyler::Tree::ColumnDisplayIcon BlockStyler::Tree::ColumnDisplayIcon@endlink .
Created in NX7.5.0.
License requirements : None
columnID | Unique coulmn id of the column. |
columnDisplayText | Text associated with column |
void NXOpen::BlockStyler::Node::SetColumnDisplayText | ( | int | columnID, |
const char * | columnDisplayText | ||
) |
Sets the text in the column which corresponds to given columnId.
The text is interpreted as icon if the column display type is @link BlockStyler::Tree::ColumnDisplayIcon BlockStyler::Tree::ColumnDisplayIcon@endlink .
Created in NX7.5.0.
License requirements : None
columnID | Unique coulmn id of the column. |
columnDisplayText | Text associated with column |
void NXOpen::BlockStyler::Node::SetCrossSelection | ( | bool | crossSelection | ) |
Sets the flag indicating whether cross section is allowed.
It is useful when the node contains @link DisplayableObject DisplayableObject@endlink as data. If the flag is true then the @link DisplayableObject DisplayableObject@endlink is highlighted, else not. The default value is True
Created in NX7.5.0.
License requirements : None
crossSelection | Flag indicating whether cross selection is allowed. |
void NXOpen::BlockStyler::Node::SetDisplayIcon | ( | const NXString & | icon | ) |
Sets the display icon.
This is normal icon positioned before the node text and is displayed when the node is in unselected state.
Created in NX7.5.0.
License requirements : None
icon | Icon. |
void NXOpen::BlockStyler::Node::SetDisplayIcon | ( | const char * | icon | ) |
Sets the display icon.
This is normal icon positioned before the node text and is displayed when the node is in unselected state.
Created in NX7.5.0.
License requirements : None
icon | Icon. |
void NXOpen::BlockStyler::Node::SetDisplayText | ( | const NXString & | displayTest | ) |
Sets the display text of node.
This is same as 0th column text of this node. Use BlockStyler::Node::SetColumnDisplayText to fetch the text of other column of the same node.
Created in NX7.5.0.
License requirements : None
displayTest | Display text |
void NXOpen::BlockStyler::Node::SetDisplayText | ( | const char * | displayTest | ) |
Sets the display text of node.
This is same as 0th column text of this node. Use BlockStyler::Node::SetColumnDisplayText to fetch the text of other column of the same node.
Created in NX7.5.0.
License requirements : None
displayTest | Display text |
void NXOpen::BlockStyler::Node::SetForegroundColor | ( | int | nodeForgroundColor | ) |
Sets the text color of the node.
The color is applicable for whole row.
Created in NX7.5.0.
License requirements : None
nodeForgroundColor | Foreground color. |
void NXOpen::BlockStyler::Node::SetSelectedIcon | ( | const NXString & | icon | ) |
Sets the selected icon.
This icon appears on node selection and is positioned before the node text replacing the BlockStyler::Node::DisplayIcon and BlockStyler::Node::SetDisplayIcon .
Created in NX7.5.0.
License requirements : None
icon | Icon. |
void NXOpen::BlockStyler::Node::SetSelectedIcon | ( | const char * | icon | ) |
Sets the selected icon.
This icon appears on node selection and is positioned before the node text replacing the BlockStyler::Node::DisplayIcon and BlockStyler::Node::SetDisplayIcon .
Created in NX7.5.0.
License requirements : None
icon | Icon. |
void NXOpen::BlockStyler::Node::SetState | ( | int | state | ) |
Sets the node state which is associated with node state icon.
Node state is an iconic representation, e.g., checked/unchecked state. Setting node state to value other than 1 and 2 calls BlockStyler.Tree.StateIconName callback to fetch the icon name. Node state can be set only after the node has been added to TreeList.
Created in NX7.5.0.
License requirements : None
state | Node state |