#include <Node.h>
Collaboration diagram for Node:
Public Member Functions | |
Node () | |
Node (Node *copied_node) | |
virtual | ~Node () |
int | operator== (Node &to_compare_node) |
void | setID (GLuint id) |
GLuint | getID () |
void | setCaption (char const *caption) |
char const * | getCaption () |
void | setPointVector (Vector3D *point_vector) |
Vector3D * | getPointVector () const |
void | setAngularWidth (GLfloat angular_width) |
GLfloat | getAngularWidth () |
void | setRing (GLuint num_ring) |
GLuint | getRing () const |
void | setOneAdjacentNode (Node *node) |
void | deleteOneAdjacentNode (Node *node) |
vector< Node * > * | getListOfAdjacentNodes () |
vector< GLuint > * | getListOfLeafeNodes () |
GLuint | getDegree () |
void | incrNumOfLeafs (Node *root) |
GLuint | getNumLeafs (Node *node) |
GLuint | getTotalNumOfLeafsExceptRoot (Node *root) |
void | eraseNode (Node *node) |
void | drawNode (GLUquadricObj *quadric, bool render_mode, bool caption_mode) |
void | setRadius (GLfloat ring_radius) |
GLfloat | getRadius () const |
void | setNodeRadius (GLfloat node_radius) |
GLfloat | getNodeRadius () const |
void | setAngle (GLfloat polar_phi) |
GLfloat | getAngle () const |
void | setRed (GLuint red) |
void | setGreen (GLuint green) |
void | setBlue (GLuint blue) |
GLuint | getRed () |
GLuint | getGreen () |
GLuint | getBlue () |
void | setLastVisitor (GLint last_visitor) |
GLint | getLastVisitor () |
void | setSelected (bool is_selected) |
void | addAngleOffset (GLfloat additional_angle_offset) |
GLfloat | getAngleOffset () |
void | resetMembers () |
void | setSceneRotation (GLfloat x_rotation, GLfloat y_rotation, GLfloat z_rotation) |
Protected Attributes | |
GLuint | id_ |
The node's id. | |
char const * | caption_ |
The node's caption. | |
Vector3D * | point_vector_ |
The node vector indicating the position on the screen. | |
GLfloat | angular_width_ |
The angular width for this node. | |
GLint | ring_number_ |
The ring number indicating also the number of parents. | |
GLfloat | ring_radius_ |
The ring's radius. | |
GLfloat | polar_phi_ |
The phi angle of the polar coordinates. | |
GLfloat | polar_r_ |
The r (i.e. radius) of the polar coordinates. | |
GLfloat | alpha_ |
The alpha value for transparency. | |
GLfloat | red_ |
The red color in rgb format. | |
GLfloat | green_ |
The green color in rgb format. | |
GLfloat | blue_ |
The blue color in rgb format. | |
GLfloat | node_radius_ |
The radius of the node. | |
vector< Node * > | adjacents_ |
The adjacent nodes to this node. | |
vector< GLuint > | num_leafs_ |
GLint | last_visitor_ |
GLfloat | angle_offset_ |
bool | is_selected_ |
This indicates wheter a node is selected (e.g. by mouse) or not. | |
GLfloat | x_rotation_ |
This holds the x rotation of the entire scene. | |
GLfloat | y_rotation_ |
This holds the y rotation of the entire scene. | |
GLfloat | z_rotation_ |
This holds the z rotation of the entire scene. |
Definition at line 28 of file Node.h.
|
The default constructor. Definition at line 83 of file Node.h. References angle_offset_, last_visitor_, point_vector_, x_rotation_, y_rotation_, and z_rotation_.
|
|
The copy constructor. Definition at line 97 of file Node.h. References angle_offset_, getID(), getPointVector(), id_, last_visitor_, point_vector_, x_rotation_, y_rotation_, and z_rotation_.
Here is the call graph for this function: ![]() |
|
The destructor.
Definition at line 115 of file Node.h. References point_vector_.
|
|
This adds some angle value to the angle offset member.
Referenced by Graph::initStartPositions(). |
|
This deletes one adjacent node.
|
|
This draws thee node into an OpenGL viewport.
|
|
This erases this node. That means that every link to this node is going to be erased.
|
|
This returns the angle of one node
Referenced by NodeAnimation::interpolatePolarCoord(). |
|
This returns the angle offset of the node.
Referenced by Graph::initStartPositions(). |
|
This returns the angular width for the node.
Referenced by Graph::initStartPositions(). |
|
This returns the blue color part of the RGB color of one node
|
|
This returns the caption of the node.
|
|
This returns the degree of the node.
|
|
This returns the green color part of the RGB color of one node
|
|
This returns the ID of one node
Referenced by Graph::initStartPositions(), and Node(). |
|
This returns the last visitor-root during the leaf number actualization process.
|
|
This returns the list (i.e. vector) of adjacent nodes.
Referenced by Graph::initStartPositions(). |
|
This returns the list (i.e. vector) of adjacent nodes.
Referenced by Graph::initStartPositions(). |
|
This returns the radius of one node.
|
|
This returns the number of leafs for the corresponding Node in the adjacent nodes list.
|
|
This returns the point vector which indicates the position of the node in the space.
Referenced by Node(). |
|
This returns the radius of one node
Referenced by NodeAnimation::interpolatePolarCoord(). |
|
This returns the red color part of the RGB color of one node
|
|
This returns the ring on which the node is sitting on.
|
|
This returns the number of leafs for the corresponding Node in the adjacent nodes list and excludes the root.
|
|
This increments the number of leafs which are reachable from this node coming from the specified node (see parameter).
|
|
This compares two nodes and returns 0 if they are not equal (member wise) and 1 else.
|
|
This resets the members of the node to default values. |
|
This sets the angle of one node
Referenced by Graph::initStartPositions(), and NodeAnimation::interpolatePolarCoord(). |
|
This sets the angular width for the node.
|
|
This sets the color of one node
Referenced by NodeAnimation::calculateNodeRadiusAndColor(). |
|
This sets the caption of the node
Referenced by Graph::createGraph(). |
|
This sets the color of one node
Referenced by NodeAnimation::calculateNodeRadiusAndColor(). |
|
This sets the ID of one node
Referenced by Graph::createGraph(). |
|
This sets the last visitor root.
|
|
This sets the radius of one node,
Referenced by NodeAnimation::calculateNodeRadiusAndColor(). |
|
This sets one adjacent node to this node.
Referenced by Graph::createGraph(). |
|
This sets point vector which indicates the position of the node in the space.
Referenced by Graph::createGraph(). |
|
This sets the radius of one node
Referenced by Graph::initStartPositions(), and NodeAnimation::interpolatePolarCoord(). |
|
This sets the color of one node
Referenced by NodeAnimation::calculateNodeRadiusAndColor(). |
|
This sets the ring.
Referenced by Graph::initStartPositions(). |
|
This sets the current rotation of the entire scene.
|
|
This sets a node to be selected (for highlighting).
|
|
The adjacent nodes to this node.
|
|
The alpha value for transparency.
|
|
This holds the current angle offset when calculating the angles for all adjacent nodes. Definition at line 68 of file Node.h. Referenced by Node(). |
|
The angular width for this node.
|
|
The blue color in rgb format.
|
|
The node's caption.
|
|
The green color in rgb format.
|
|
The node's id.
Definition at line 32 of file Node.h. Referenced by Node(). |
|
This indicates wheter a node is selected (e.g. by mouse) or not.
|
|
This stores the last root which visited the current node when increasing the number of leafes. Definition at line 65 of file Node.h. Referenced by Node(). |
|
The radius of the node.
|
|
The list of leafs for each adjacent node. Node on the position 0 in adjacents_ list has a number of leafs (checked on position 0 in num_leafs). |
|
The node vector indicating the position on the screen.
|
|
The phi angle of the polar coordinates.
|
|
The r (i.e. radius) of the polar coordinates.
|
|
The red color in rgb format.
|
|
The ring number indicating also the number of parents.
|
|
The ring's radius.
|
|
This holds the x rotation of the entire scene.
Definition at line 72 of file Node.h. Referenced by Node(). |
|
This holds the y rotation of the entire scene.
Definition at line 74 of file Node.h. Referenced by Node(). |
|
This holds the z rotation of the entire scene.
Definition at line 76 of file Node.h. Referenced by Node(). |