QGIS API Documentation  2.99.0-Master (a411669)
Public Member Functions | Protected Attributes | List of all members
Node Class Reference

Node is a class used by Line3D. More...

#include <Node.h>

Public Member Functions

 Node ()
 
 Node (const Node &n)
 
 ~Node ()
 
NodegetNext () const
 Returns a pointer to the next element in the linked list. More...
 
QgsPointgetPoint () const
 Returns a pointer to the QgsPoint object associated with the node. More...
 
Nodeoperator= (const Node &n)
 
void setNext (Node *n)
 Sets the pointer to the next node. More...
 
void setPoint (QgsPoint *p)
 Sets a new pointer to an associated QgsPoint object. More...
 

Protected Attributes

NodemNext = nullptr
 Pointer to the next Node in the linked list. More...
 
QgsPointmPoint = nullptr
 Pointer to the QgsPoint object associated with the node. More...
 

Detailed Description

Node is a class used by Line3D.

It represents a node in the single directed linked list. Associated QgsPoint objects are deleted when the node is deleted.

Note
Not available in Python bindings

Definition at line 30 of file Node.h.

Constructor & Destructor Documentation

◆ Node() [1/2]

Node::Node ( )
inline

Definition at line 55 of file Node.h.

◆ Node() [2/2]

Node::Node ( const Node n)

Definition at line 19 of file Node.cpp.

◆ ~Node()

Node::~Node ( )
inline

Definition at line 60 of file Node.h.

Member Function Documentation

◆ getNext()

Node * Node::getNext ( ) const
inline

Returns a pointer to the next element in the linked list.

Definition at line 65 of file Node.h.

◆ getPoint()

QgsPoint * Node::getPoint ( ) const
inline

Returns a pointer to the QgsPoint object associated with the node.

Definition at line 70 of file Node.h.

◆ operator=()

Node & Node::operator= ( const Node n)

Definition at line 35 of file Node.cpp.

◆ setNext()

void Node::setNext ( Node n)
inline

Sets the pointer to the next node.

Definition at line 75 of file Node.h.

◆ setPoint()

void Node::setPoint ( QgsPoint p)
inline

Sets a new pointer to an associated QgsPoint object.

Definition at line 80 of file Node.h.

Member Data Documentation

◆ mNext

Node* Node::mNext = nullptr
protected

Pointer to the next Node in the linked list.

Definition at line 36 of file Node.h.

◆ mPoint

QgsPoint* Node::mPoint = nullptr
protected

Pointer to the QgsPoint object associated with the node.

Definition at line 34 of file Node.h.


The documentation for this class was generated from the following files: