Web Analytics Made Easy - Statcounter
Skip to content

Class SBGDataGraphNode#

ClassList > 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.

SBGDataGraphNode::SBGDataGraphNode () 

Constructs a SBGDataGraphNode object.

Initializes the base data graph node GUI.


function enterEvent#

Handles enter event.

virtual void SBGDataGraphNode::enterEvent (
    SBNode * node,
    const SBPosition3 & position
) 

Handles an enter event for the node.

Called when the cursor or selection enters the node's area.

Parameters:

  • node Pointer to the SBNode that generated the event.
  • position The position of the event in world coordinates.

function getContextMenuActions#

Returns the node's context menu actions.

virtual void SBGDataGraphNode::getContextMenuActions (
    SBVector< SBAction * > & actionVector
) 

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:

  • actionVector Reference to a vector that will be filled with action pointers.

function handleMoveEvent#

Handles a move event.

virtual void SBGDataGraphNode::handleMoveEvent (
    SBNode * node,
    const SBPosition3 & position
) 

Called when a move interaction is detected on the node.

Parameters:

  • node Pointer to the SBNode that generated the event.
  • position The new position of the node in world coordinates.

function handlePressEvent#

Handles a press event.

virtual void SBGDataGraphNode::handlePressEvent (
    SBNode * node,
    const SBPosition3 & position
) 

Called when a press interaction is detected on the node.

Parameters:

  • node Pointer to the SBNode that generated the event.
  • position The position of the press in world coordinates.

function handleReleaseEvent#

Handles a release event.

virtual void SBGDataGraphNode::handleReleaseEvent (
    SBNode * node,
    const SBPosition3 & position
) 

Called when a release interaction is detected on the node.

Parameters:

  • node Pointer to the SBNode that generated the event.
  • position The position of the release in world coordinates.

function isSelectionDependent#

Returns true when the node's context menu actions depend on the current selection.

virtual bool SBGDataGraphNode::isSelectionDependent () const

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:

  • node Pointer to the SBNode that generated the event.
  • event Pointer to the QKeyEvent containing details of the key press.
  • position The 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:

  • node Pointer to the SBNode that generated the event.
  • event Pointer to the QKeyEvent containing details of the key release.
  • position The position of the event in world coordinates.

function leaveEvent#

Handles leave event.

virtual void SBGDataGraphNode::leaveEvent (
    SBNode * node,
    const SBPosition3 & position
) 

Handles a leave event for the node.

Called when the cursor or selection leaves the node's area.

Parameters:

  • node Pointer to the SBNode that generated the event.
  • position The 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:

  • node Pointer to the SBNode that generated the event.
  • event Pointer to the QMouseEvent containing details of the double-click.
  • pickedPosition The 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:

  • node Pointer to the SBNode that generated the event.
  • event Pointer to the QMouseEvent containing details of the mouse movement.
  • position The 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:

  • node Pointer to the SBNode that generated the event.
  • event Pointer to the QMouseEvent containing details of the mouse press.
  • pickedPosition The 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:

  • node Pointer to the SBNode that generated the event.
  • event Pointer to the QMouseEvent containing details of the mouse release.
  • pickedPosition The 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:

  • node Pointer to the SBNode that generated the event.
  • event Pointer to the QWheelEvent containing details of the wheel action.
  • position The position of the event in world coordinates.

function ~SBGDataGraphNode#

Destructor.

virtual SBGDataGraphNode::~SBGDataGraphNode () 

Destroys the SBGDataGraphNode object.

Performs any necessary cleanup.