-
首页
-
C4D R23.110 C++ SDK
#include <c4d_graphview.h>
详细描述
GV node GUI helper class. Cannot be instantiated.
构造函数 & 析构函数文档编制
◆
GvNodeGUI()
◆
~GvNodeGUI()
成员函数文档编制
◆
Attach()
Attaches the node GUI to
dialog
and
master
.
-
注意
-
Normally you do not need to call this function.
-
参数
-
[in]
|
dialog
|
A dialog. The caller owns the pointed dialog.
|
[in]
|
master
|
A node master. The caller owns the pointed node master.
|
-
返回
-
true
if successful, otherwise
false
.
◆
Detach()
Detaches the node GUI.
-
注意
-
Normally you do not need to call this function.
◆
MouseDown()
Handles mouse down messages routed from the user area.
-
参数
-
[in]
|
x
|
The X coordinate.
|
[in]
|
y
|
The Y coordinate.
|
[in]
|
chn
|
The channel.
|
[in]
|
qa
|
The qualifiers.
|
[in]
|
msg
|
The message container.
|
◆
Message()
Handles messages routed from the user area.
-
参数
-
[in]
|
msg
|
The message container.
|
[in]
|
result
|
A container to place results in.
|
-
返回
-
true
if the message was handled, otherwise
false
.
◆
Command()
Handles commands routed from the user area.
-
参数
-
-
返回
-
The command result.
◆
Draw()
Draws the window content. Called by
GeUserArea::DrawMsg()
.
◆
Redraw()
Redraws the node GUI and calls all draw hooks attached to the node master. Called by
GvNodeMaster
.
◆
GetUserArea()
Gets the user area for the node GUI.
-
返回
-
The user area. The node GUI owns the pointed user area.
◆
GetMaster()
Gets the node master for the node GUI.
-
返回
-
The node master. The node GUI owns the pointed node master.
◆
GetDialog()
Gets the dialog for the node GUI.
-
返回
-
The dialog. The node GUI owns the pointed dialog.
◆
SelectAllNodes()
void SelectAllNodes
|
(
|
GvNode
*
|
node
,
|
|
|
Bool
|
select_state
,
|
|
|
Bool
|
add_to_selection
=
false
|
|
)
|
|
|
Selects all nodes.
-
参数
-
[in]
|
node
|
The node. The caller owns the pointed node.
|
[in]
|
select_state
|
The selection state.
|
[in]
|
add_to_selection
|
若
true
the node is added to the selection.
|
◆
RemoveAllSelectedNodes()
void RemoveAllSelectedNodes
|
(
|
GvNode
*
|
node
|
)
|
|
Removes all selected nodes.
-
参数
-
[in]
|
node
|
The node. The caller owns the pointed node.
|
◆
SelectNode()
void SelectNode
|
(
|
GvNode
*
|
node
,
|
|
|
Bool
|
select_state
,
|
|
|
Bool
|
add_to_selection
=
false
,
|
|
|
Bool
|
send_message
=
true
|
|
)
|
|
|
Selects a node.
-
参数
-
[in]
|
node
|
The node to select. The caller owns the pointed node.
|
[in]
|
select_state
|
The selection state.
|
[in]
|
add_to_selection
|
若
true
the node is added to the selection.
|
[in]
|
send_message
|
若
true
a message is sent about the selection.
|
◆
DisableSelected()
void DisableSelected
|
(
|
GvNode
*
|
node
,
|
|
|
Bool
|
disable_state
|
|
)
|
|
|
Disables or enables a node.
-
参数
-
[in]
|
node
|
The node to disable or enable. The caller owns the pointed node.
|
[in]
|
disable_state
|
true
means disabled,
false
means enabled.
|
◆
SetFocus()
Sets the focus to
node
.
-
参数
-
[in]
|
node
|
The node to focus. The caller owns the pointed node.
|
[in]
|
activate
|
true
to activate the node,
false
to deactivate.
|
◆
GetNodeGlobal()
Gets the node at the global position (
x
,
y
).
-
参数
-
[in]
|
x
|
The X coordinate.
|
[in]
|
y
|
The Y coordinate.
|
-
返回
-
The found node, or
nullptr
if there was no match. The node GUI owns the pointed node.
◆
GetNodeLocal()
Gets the node at the local position (
x
,
y
).
-
参数
-
[in]
|
node
|
The node for the local coordinates. The caller owns the pointed node.
|
[in]
|
x
|
The X coordinate.
|
[in]
|
y
|
The Y coordinate.
|
-
返回
-
The found node, or
nullptr
if there was no match. The node GUI owns the pointed node.
◆
IsInNodeBody()
Checks if the position (
x
,
y
) is inside the body of
node
.
-
参数
-
[in]
|
node
|
The node. The caller owns the pointed node.
|
[in]
|
x
|
The X coordinate.
|
[in]
|
y
|
The Y coordinate.
|
-
返回
-
true
if the position is in the body, otherwise
false
.
◆
IsInNodeHead()
Checks if the position (
x
,
y
) is inside the head of
node
.
-
参数
-
[in]
|
node
|
The node. The caller owns the pointed node.
|
[in]
|
x
|
The X coordinate.
|
[in]
|
y
|
The Y coordinate.
|
-
返回
-
true
if the position is in the head, otherwise
false
.
◆
SetPrefs()
Sets the preferences for the node GUI.
-
参数
-
◆
GetPrefs()
Gets the preferences for the node GUI.
-
参数
-
[out]
|
bc
|
Filled with the current preferences. Use these container IDs:
GvGuiConfigIDs
|
◆
SetNodePosGlobal()
Sets the global position of
node
to (
x
,
y
).
-
参数
-
[in]
|
node
|
The node. The caller owns the pointed node.
|
[in]
|
x
|
The X coordinate.
|
[in]
|
y
|
The Y coordinate.
|
[in]
|
center
|
若
true
the node is centered.
|
◆
SetNodePos()
Sets the position of
node
to (
x
,
y
).
-
参数
-
[in]
|
node
|
The node. The caller owns the pointed node.
|
[in]
|
x
|
The X coordinate.
|
[in]
|
y
|
The Y coordinate.
|
◆
SetNodeSize()
Sets the size of
node
.
-
参数
-
[in]
|
node
|
The node. The caller owns the pointed node.
|
[in]
|
width
|
The width.
|
[in]
|
height
|
The height.
|
◆
OptimizeNode()
void OptimizeNode
|
(
|
GvNode
*
|
node
|
)
|
|
Optimizes the size of
node
.
-
参数
-
[in]
|
node
|
The node. The caller owns the pointed node.
|
◆
ShowAllNodes()
void ShowAllNodes
|
(
|
GvNode
*
|
node
|
)
|
|
Shows all nodes.
-
参数
-
[in]
|
node
|
The node. The caller owns the pointed node.
|
◆
CenterNodes()
void CenterNodes
|
(
|
GvNode
*
|
node
|
)
|
|
Centers nodes.
-
参数
-
[in]
|
node
|
The node. The caller owns the pointed node.
|
◆
AlignNodesToUpperLeft()
void AlignNodesToUpperLeft
|
(
|
GvNode
*
|
node
|
)
|
|
Aligns all nodes to the upper left.
-
参数
-
[in]
|
node
|
The node. The caller owns the pointed node.
|
◆
GetZoom()
Gets the zoom of
node
.
-
参数
-
[in]
|
node
|
The node. The caller owns the pointed node.
|
[out]
|
zoom
|
This value is multiplied by the zoom factor.
|
◆
InitShapes()
Initializes the node GUI shapes.
-
返回
-
true
if successful, otherwise
false
.
◆
NodeContextMenu()
Opens the context menu of node.
-
参数
-
[in]
|
node
|
The node. The caller owns the pointed node.
|
-
返回
-
true
if successful, otherwise
false
.