Class SBGDataGraphNode#
This class is the base class of all data graph nodes' GUIs. More...
#include <SBGDataGraphNode.hpp>
Public Functions#
| Type | Name |
|---|---|
| SBGDataGraphNode () Constructor. |
|
| virtual void | enterEvent (SBNode * node, const SBPosition3 & position) Handles enter event. |
| virtual void | getContextMenuActions (SBVector< SBAction * > & actionVector) Returns the node's context menu actions. |
| virtual void | handleMoveEvent (SBNode * node, const SBPosition3 & position) Handles a move event. |
| virtual void | handlePressEvent (SBNode * node, const SBPosition3 & position) Handles a press event. |
| virtual void | handleReleaseEvent (SBNode * node, const SBPosition3 & position) Handles a release event. |
| virtual bool | isSelectionDependent () const Returns true when the node's context menu actions depend on the current selection. |
| virtual void | keyPressEvent (SBNode * node, QKeyEvent * event, const SBPosition3 & position) Handles key press event. |
| virtual void | keyReleaseEvent (SBNode * node, QKeyEvent * event, const SBPosition3 & position) Handles key release event. |
| virtual void | leaveEvent (SBNode * node, const SBPosition3 & position) Handles leave event. |
| virtual void | mouseDoubleClickEvent (SBNode * node, QMouseEvent * event, const SBPosition3 & pickedPosition) Handles mouse double click event. |
| virtual void | mouseMoveEvent (SBNode * node, QMouseEvent * event, const SBPosition3 & position) Handles mouse move event. |
| virtual void | mousePressEvent (SBNode * node, QMouseEvent * event, const SBPosition3 & pickedPosition) Handles mouse press event. |
| virtual void | mouseReleaseEvent (SBNode * node, QMouseEvent * event, const SBPosition3 & pickedPosition) Handles mouse release event. |
| virtual void | wheelEvent (SBNode * node, QWheelEvent * event, const SBPosition3 & position) Handles wheel event. |
| virtual | ~SBGDataGraphNode () Destructor. |
Detailed Description#
Short name: SBNodeGUI
Public Functions Documentation#
function SBGDataGraphNode#
Constructor.
Constructs a SBGDataGraphNode object.
Initializes the base data graph node GUI.
function enterEvent#
Handles enter event.
Handles an enter event for the node.
Called when the cursor or selection enters the node's area.
Parameters:
nodePointer to the SBNode that generated the event.positionThe position of the event in world coordinates.
function getContextMenuActions#
Returns the node's context menu actions.
Retrieves the node's context menu actions.
Populates the provided vector with pointers to actions that should appear in the node's context menu.
Parameters:
actionVectorReference to a vector that will be filled with action pointers.
function handleMoveEvent#
Handles a move event.
Called when a move interaction is detected on the node.
Parameters:
nodePointer to the SBNode that generated the event.positionThe new position of the node in world coordinates.
function handlePressEvent#
Handles a press event.
Called when a press interaction is detected on the node.
Parameters:
nodePointer to the SBNode that generated the event.positionThe position of the press in world coordinates.
function handleReleaseEvent#
Handles a release event.
Called when a release interaction is detected on the node.
Parameters:
nodePointer to the SBNode that generated the event.positionThe position of the release in world coordinates.
function isSelectionDependent#
Returns true when the node's context menu actions depend on the current selection.
Returns whether the node's context menu actions depend on the current selection.
Indicates if the node's context menu actions vary based on the selection state.
Returns:
true if the context menu actions are selection-dependent; otherwise false.
function keyPressEvent#
Handles key press event.
virtual void SBGDataGraphNode::keyPressEvent (
SBNode * node,
QKeyEvent * event,
const SBPosition3 & position
)
Handles a key press event.
Called when a key is pressed while the node has focus.
Parameters:
nodePointer to the SBNode that generated the event.eventPointer to the QKeyEvent containing details of the key press.positionThe position of the event in world coordinates.
function keyReleaseEvent#
Handles key release event.
virtual void SBGDataGraphNode::keyReleaseEvent (
SBNode * node,
QKeyEvent * event,
const SBPosition3 & position
)
Handles a key release event.
Called when a key is released while the node has focus.
Parameters:
nodePointer to the SBNode that generated the event.eventPointer to the QKeyEvent containing details of the key release.positionThe position of the event in world coordinates.
function leaveEvent#
Handles leave event.
Handles a leave event for the node.
Called when the cursor or selection leaves the node's area.
Parameters:
nodePointer to the SBNode that generated the event.positionThe position of the event in world coordinates.
function mouseDoubleClickEvent#
Handles mouse double click event.
virtual void SBGDataGraphNode::mouseDoubleClickEvent (
SBNode * node,
QMouseEvent * event,
const SBPosition3 & pickedPosition
)
Handles a mouse double-click event.
Called when a mouse button is double-clicked while over the node.
Parameters:
nodePointer to the SBNode that generated the event.eventPointer to the QMouseEvent containing details of the double-click.pickedPositionThe position in the node's coordinate system where the double-click occurred.
function mouseMoveEvent#
Handles mouse move event.
virtual void SBGDataGraphNode::mouseMoveEvent (
SBNode * node,
QMouseEvent * event,
const SBPosition3 & position
)
Handles a mouse move event.
Called when the mouse is moved while over the node.
Parameters:
nodePointer to the SBNode that generated the event.eventPointer to the QMouseEvent containing details of the mouse movement.positionThe current position of the mouse in world coordinates.
function mousePressEvent#
Handles mouse press event.
virtual void SBGDataGraphNode::mousePressEvent (
SBNode * node,
QMouseEvent * event,
const SBPosition3 & pickedPosition
)
Handles a mouse press event.
Called when a mouse button is pressed while over the node.
Parameters:
nodePointer to the SBNode that generated the event.eventPointer to the QMouseEvent containing details of the mouse press.pickedPositionThe position in the node's coordinate system where the press occurred.
function mouseReleaseEvent#
Handles mouse release event.
virtual void SBGDataGraphNode::mouseReleaseEvent (
SBNode * node,
QMouseEvent * event,
const SBPosition3 & pickedPosition
)
Handles a mouse release event.
Called when a mouse button is released while over the node.
Parameters:
nodePointer to the SBNode that generated the event.eventPointer to the QMouseEvent containing details of the mouse release.pickedPositionThe position in the node's coordinate system where the release occurred.
function wheelEvent#
Handles wheel event.
virtual void SBGDataGraphNode::wheelEvent (
SBNode * node,
QWheelEvent * event,
const SBPosition3 & position
)
Handles a wheel event.
Called when a mouse wheel action occurs while over the node.
Parameters:
nodePointer to the SBNode that generated the event.eventPointer to the QWheelEvent containing details of the wheel action.positionThe position of the event in world coordinates.
function ~SBGDataGraphNode#
Destructor.
Destroys the SBGDataGraphNode object.
Performs any necessary cleanup.