MatOCAD Logo

Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

ItdTreeNode Class Reference

Tree node data container. More...

#include <ItdTreeNode.h>

List of all members.

Public Member Functions

wxWindow * GetObj ()
 Return a pointer to the related object.
void SetObj (wxWindow *obj)
 Set the pointer to the related object.
int GetType ()
 Return the type of the related object.
void SetType (int t)
 Set the type of the related object.
int GetPageN ()
 Return the page of the related object.
void SetPageN (int n)
 Set the page of the related object.
 ItdTreeNode (wxWindow *obj=NULL, int t=-1, int n=-1)
 Constructor.

Private Attributes

wxWindow * object
 Object related to the node.
int type
 Type of the object.
int pagen
 Page number (Only for sheets).


Detailed Description

Tree node data container.

ItdTreeNode is used by PnlObjTree to store information about objects inside each node It derives from wxTreeItemData

Definition at line 24 of file ItdTreeNode.h.


Constructor & Destructor Documentation

ItdTreeNode::ItdTreeNode wxWindow *  obj = NULL,
int  t = -1,
int  n = -1
 

Constructor.

Parameters:
obj Pointer to the related object
t Type of the related object
n Type of the related object

Definition at line 19 of file ItdTreeNode.cpp.

References object, pagen, and type.


Member Function Documentation

wxWindow * ItdTreeNode::GetObj  ) 
 

Return a pointer to the related object.

Returns:
Pointer to the related object
See also:
GetType() , GetPageN()

Definition at line 28 of file ItdTreeNode.cpp.

References object.

Referenced by PnlObjTree::OnItemMenu(), PnlObjTree::OnKeyDown(), and PnlObjTree::OnSelectionChanged().

int ItdTreeNode::GetPageN  ) 
 

Return the page of the related object.

Returns:
Page number of the related object
See also:
GetObj() , GetType()

Definition at line 56 of file ItdTreeNode.cpp.

References pagen.

Referenced by PnlObjTree::OnItemMenu(), PnlObjTree::OnKeyDown(), and PnlObjTree::OnSelectionChanged().

int ItdTreeNode::GetType  ) 
 

Return the type of the related object.

Returns:
Type of the related object
See also:
GetObj() , GetPageN()

Definition at line 35 of file ItdTreeNode.cpp.

References type.

Referenced by PnlObjTree::OnItemMenu(), PnlObjTree::OnKeyDown(), and PnlObjTree::OnSelectionChanged().

void ItdTreeNode::SetObj wxWindow *  obj  ) 
 

Set the pointer to the related object.

Parameters:
obj Pointer to the related object
See also:
SetType() , SetPageN()

Definition at line 42 of file ItdTreeNode.cpp.

References object.

void ItdTreeNode::SetPageN int  n  ) 
 

Set the page of the related object.

Parameters:
n Type of the related object
See also:
GetObj() , GetPageN()

Definition at line 49 of file ItdTreeNode.cpp.

References pagen.

void ItdTreeNode::SetType int  t  ) 
 

Set the type of the related object.

Parameters:
t Type of the related object
See also:
SetObj() , SetPageN()

Definition at line 65 of file ItdTreeNode.cpp.

References type.


Member Data Documentation

wxWindow* ItdTreeNode::object [private]
 

Object related to the node.

Definition at line 81 of file ItdTreeNode.h.

Referenced by GetObj(), ItdTreeNode(), and SetObj().

int ItdTreeNode::pagen [private]
 

Page number (Only for sheets).

Definition at line 87 of file ItdTreeNode.h.

Referenced by GetPageN(), ItdTreeNode(), and SetPageN().

int ItdTreeNode::type [private]
 

Type of the object.

Definition at line 84 of file ItdTreeNode.h.

Referenced by GetType(), ItdTreeNode(), and SetType().


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

 

SourceForge Logo