Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

OglGui::Graph Class Reference

#include <Graph.h>

Inheritance diagram for OglGui::Graph:

Inheritance graph
[legend]
Collaboration diagram for OglGui::Graph:

Collaboration graph
[legend]
List of all members.

Public Types

typedef SetGetDimensions2dIntI Node
typedef std::vector< Node * > NodeVector
typedef std::vector< ULONG > ColorVector

Public Member Functions

 Graph (Window *parent, int w, int h, int drawShape=0, strconst txt="")
 Graph (Window *parent, int x, int y, int w, int h, int drawShape=0, strconst txt="")
int NrOfNodes ()
int FindNodeIdx (Node *node)
NodeGetNode (int idx)
int AddNode (Node *node, int scaleOption=0, Graph *graph=0)
int AddNode (Graph *graphWnd, int scaleOption=0)
void RemoveNodeIdx (int idx)
void RemoveNode (Node *node)
void ClearNodes ()
void ConnectNode (Node *fromNode, Node *toNode, ULONG startCol=oglBLACK, ULONG endCol=oglBLACK)
virtual void AlignString (int offsetX=0, int offsetY=0)
void DrawShape ()
void DrawConnections ()
void SetShowContentAt (int minW, int minH)
void HandleShowContent ()
virtual void DisplayFunc ()
void StartScalers ()
void DoScaling (bool passive=false)
void DoPanning ()
virtual void DocX (int x)
virtual void DocY (int y)
virtual void WndMouseFunc (int msg, int btn, int state, int x, int y)
virtual void DocMouseFunc (int msg, int btn, int state, int x, int y)
virtual void MouseFunc (int msg, int btn, int state, int x, int y)
 This function is called by the event handling system everytime the user has moved or clicked the mouse.
void Shape (int shape)
ULONG Shape ()
void ShapeBg (ULONG col)
ULONG ShapeBg ()
void ShapeFg (ULONG col)
ULONG ShapeFg ()
void SetText (std::string text)
std::string GetText () const
void SetTextShadowed (bool mode=true)
void SetShadowColor (ULONG shadCol)
ULONG GetShadowColor () const
void Zoomable (bool mode)
bool Zoomable ()
void Panable (bool mode)
bool Panable ()
void DocLines (bool mode)
bool DocLines ()
void DocBased (bool mode)
bool DocBased ()
int NrNodes ()
void GetAlign (int &hAlign, int &vAlign) const
void SetAlign (int hAlign, int vAlign=oglCenterAlign)
void SetAlignOffsets (int hOff, int vOff)
void SetCentered (bool val)

Static Public Attributes

static const int RECTANGLE = 1
static const int OVAL = 2

Protected Attributes

std::vector< NodeInfomNodes
std::string mText
int mAlignH
int mAlignOffH
int mAlignV
int mAlignOffV
int mDrawShape
ULONG mShapeBg
ULONG mShapeFg
ULONG mShadowColor
float mDocScaleX
float mDocScaleY
float mDocScaleW
float mDocScaleH
bool mTextShadowed
bool mDocBased
bool mDocLines
bool mZoomable
bool mZooming
bool mPanning

Private Member Functions

void Init (int drawShape, strconst txt)

Private Attributes

int mShowContentMinW
int mShowContentMinH
int mLastX
int mLastY
int mStartTopX
int mStartTopY
int mPanDifX
int mPanDifY
float mNormX
float mNormY
LIST * mOldWndList
LIST * mOldObjectList

Classes

struct  NodeInfo

Detailed Description

Definition at line 55 of file Graph.h.


The documentation for this class was generated from the following file:
Generated on Fri Mar 19 12:01:32 2010 for ImpalaSrc by  doxygen 1.5.1