# HOpNetwork

## Functions

| `HOpNetwork`
| `~HOpNetwork`
int | `OnLButtonDown`
int | `OnLButtonDownAndMove`
int | `OnLButtonUp`
int | `OnRButtonDown`
int | `OnRButtonDownAndMove`
int | `OnRButtonUp`

## Detailed Description

class `HOpNetwork` : public HBaseOperator

  The HOpNetwork class builds a network of nodes and connections.

  The HOpNetwork class implements the following actions to build a network of nodes and connections:

  1. Left Button Down: Place or select a node under the mouse.
  2. Left Button Down and Drag: Reposition the selected node under the mouse and update its connections.
  3. Left Button Up: Set the operator to a default inactive state.
  4. Right Button Down: Select one node and anchor a connection to it.
  5. Right Button Down and Drag: Reposition the other end of the connection.
  6. Right Button Up: If there’s a node under the connection, anchor the loose end of the connection to it. Otherwise, delete the connection.

  Public Functions

  `HOpNetwork`(HBaseView *view)

    Constructs an HOpNetwork object.

    Parameters: | view – A pointer the HBaseView that this operator is associated with.

  virtual `~HOpNetwork`()
  virtual int `OnLButtonDown`(HEventInfo &hevent)

    This method places and/or select a node. It also sets the operator as active.

    Parameters: | hevent – An HEventInfo object containing information about the current event.
    Returns: | An HOperatorReturn indicating the status of the event.

  virtual int `OnLButtonDownAndMove`(HEventInfo &hevent)

    This method moves the selected node and update its connections.

    Parameters: | hevent – An HEventInfo object containing information about the current event.
    Returns: | An HOperatorReturn indicating the status of the event.

  virtual int `OnLButtonUp`(HEventInfo &hevent)

    This method sets the operator as inactive.

    Parameters: | hevent – An HEventInfo object containing information about the current event.
    Returns: | An HOperatorReturn indicating the status of the event.

  virtual int `OnRButtonDown`(HEventInfo &hevent)

    If there’s a node under the mouse, this method anchors a new connection to it.

    Parameters: | hevent – An HEventInfo object containing information about the current event.
    Returns: | An HOperatorReturn indicating the status of the event.

  virtual int `OnRButtonDownAndMove`(HEventInfo &hevent)

    This method repositions the loose end of the connection.

    Parameters: | hevent – An HEventInfo object containing information about the current event
    Returns: | An HOperatorReturn indicating the status of the event.

  virtual int `OnRButtonUp`(HEventInfo &hevent)

    If there’s a node under the mouse, this method anchors the loose connection to it. If not, then it deletes the connection.

    Parameters: | hevent – An HEventInfo object containing information about the current event.
    Returns: | An HOperatorReturn indicating the status of the event.

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Visualize 3DF or choose a sample question below to start a conversation:

What is HOOPS Visualize 3DF?
What are the latest release notes for HOOPS Visualize 3DF?
How do I start evaluating HOOPS Visualize 3DF?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...