Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

GenericNode Class Reference

The GenericNode is the root of the node class hierarchy. More...

Inheritance diagram for GenericNode:

AtomNode ConjunctionNode DisjunctionNode FeatvalNode FunctionNode ListNode ReentNode RefNode RelationNode RestNode SetNode StrucNode TailNode TreeNode TypeNode List of all members.

Public Member Functions

virtual void hideUnhideChildNodes (Canvas *canvas, NodeAddress &na, bool hide)
 Sets or clears the NODEFLAG_SHOWHIDDEN flag on a node.

virtual void unhideChildNode (Canvas *canvas, NodeAddress &addr, int index)
 Sets the NODEFLAG_SHOWHIDDEN flag on one child node.


Public Attributes

unsigned long flags
 The node flags.

unsigned int nodetype
 The nodetype.

char id [ID_LENGTH]
 The node ID as a string.


Detailed Description

The GenericNode is the root of the node class hierarchy.

Any object that can be displayed by Grisu and that users can interact with is a node.

The GenericNode class provides all properties common to all node types.


Member Function Documentation

void GenericNode::hideUnhideChildNodes Canvas canvas,
NodeAddress na,
bool  hide
[virtual]
 

Sets or clears the NODEFLAG_SHOWHIDDEN flag on a node.

If the flag is set, and the node is hidden, the node is drawn grayed out even if the global "show hidden" option is not set.

Reimplemented in StrucNode.

void GenericNode::unhideChildNode Canvas canvas,
NodeAddress addr,
int  index
[virtual]
 

Sets the NODEFLAG_SHOWHIDDEN flag on one child node.

Parameters:
canvas the Canvas object that displays the node.
addr the node's address
index the index of the child node. Only nodes count with NODEFLAG_HIDDEN set and NODEFLAG_SHOWHIDDEN not set.

Reimplemented in StrucNode.


Member Data Documentation

unsigned long GenericNode::flags
 

The node flags.

A combination of NODEFLAG_xxxx values.

char GenericNode::id[ID_LENGTH]
 

The node ID as a string.

unsigned int GenericNode::nodetype
 

The nodetype.

One of the NODETYPE_xxxx values.


Generated on Sun Apr 27 18:26:58 2003 for Grisu by doxygen1.3