planeBase Class Reference

#include <planeBase.h>

Inheritance diagram for planeBase:

Inheritance graph
[legend]
Collaboration diagram for planeBase:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 planeBase ()
 ~planeBase ()
void init (vector< int > cols, Data &dataSet, GLWidget *_parentWidget)
void init ()
void render (float dT)
void renderDepth ()
bool mouseSelectClick (float x, float y)
void mouseDeselect ()
void mouseNavigateDrag (float x, float y)
bool mouseNavigateClickOn (float x, float y, int button=0)
void mouseNavigateClickOff ()
void showNavigators ()
void hideNavigators ()
void setPos (float x, float y, float z)
void setRot (float x, float y)
float getDepth ()
Point getPoint (int _id)
Point getMiddle ()
int getSelectedPoint ()
void animateTo2D ()
void animateTo3D ()
int getCur2D3Dstate ()

Public Attributes

bool needsRenderUpdate
int type
bool deleteMe
planeAdminmasterPlane

Protected Member Functions

virtual void selectClick (float x, float y)=0

Protected Attributes

vector< Point > points
int selectedPoint


Detailed Description

Base class for every visualization type.

Constructor & Destructor Documentation

planeBase::planeBase (  ) 

Constructor

planeBase::~planeBase (  ) 

Destructor


Member Function Documentation

void planeBase::init ( vector< int >  cols,
Data dataSet,
GLWidget _parentWidget 
)

initialize plane with data

Parameters:
cols choosen columns that will be displayed
dataSet loaded data
_parentWidget the widget in which the plane gets displayed

void planeBase::init (  ) 

initialize plane

void planeBase::render ( float  dT  ) 

renders the plane

Parameters:
dT deltaTime to the previous frame

void planeBase::renderDepth (  ) 

renders the plane transparent for the z-Buffer

bool planeBase::mouseSelectClick ( float  x,
float  y 
)

checks if mouseclick happend on plane

Parameters:
x x position of the mouse cursor
y y position of the mouse cursor
Returns:
true, if click is on the plane, false if click is outside of the plane

void planeBase::mouseDeselect (  ) 

deselects all Nodes of the plane

void planeBase::mouseNavigateDrag ( float  x,
float  y 
)

checks mouse movement while the mousebutton is pressed

Parameters:
x x position of the mouse cursor
y y position of the mouse cursor

bool planeBase::mouseNavigateClickOn ( float  x,
float  y,
int  button = 0 
)

indicates that the mouse button is now clicked

Parameters:
x x position of the mouse cursor
y y position of the mouse cursor
button the index of the mousebutton
Returns:
true, if click is on the plane, false if click is outside of the plane

void planeBase::mouseNavigateClickOff (  ) 

indicates taht the mouse button is now released

void planeBase::showNavigators (  ) 

displays the navigators of the plane

void planeBase::hideNavigators (  ) 

hides the navigators of the plane

void planeBase::setPos ( float  x,
float  y,
float  z 
)

sets the position of the plane

Parameters:
x x position
y y position
z z position

void planeBase::setRot ( float  x,
float  y 
)

sets the orientation of the plane

Parameters:
x rotation around x-axis
y rotation around y-axis

float planeBase::getDepth (  ) 

returns the z-Value of the plane

Returns:
z-Value of the plane

Point planeBase::getPoint ( int  _id  ) 

returns the point with the given id

Parameters:
_id index of the point
Returns:
position of the point

Point planeBase::getMiddle (  ) 

returns the middle of the plane

Returns:
middle of the plane

int planeBase::getSelectedPoint (  ) 

returns the index of the selected point

Returns:
index of the selected point

void planeBase::animateTo2D (  ) 

starts animation to 2D view

void planeBase::animateTo3D (  ) 

starts animation to 3D view

int planeBase::getCur2D3Dstate (  ) 

retursn the current view state

virtual void planeBase::selectClick ( float  x,
float  y 
) [protected, pure virtual]

checks if a node has been selected

Parameters:
x x position on the plane
y y position on the plane


Member Data Documentation

bool planeBase::needsRenderUpdate

indicates if the plane has to be redrawn

int planeBase::type

type of the plane

bool planeBase::deleteMe

indicates if the plane has to be deleted

planeAdmin* planeBase::masterPlane

pointer to the planeAdmin

vector<Point> planeBase::points [protected]

linking points on the plane

int planeBase::selectedPoint [protected]

index of the selected node


The documentation for this class was generated from the following files:
Generated on Fri May 29 18:22:30 2009 for VisLink by  doxygen 1.5.4