Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

PositionDir Class Reference

A child class of position to support directories. More...

#include <positiondir.h>

Inheritance diagram for PositionDir:

Position List of all members.

Public Member Functions

 PositionDir ()
 PositionDir (DirTree *owner)
virtual ~PositionDir ()
virtual void calculatePosition ()
 a virtua; function to calulate the true position of the object

virtual void updateRelations ()
 the virtual function is used to update the positions relations

virtual float getTrueX ()
 a virtual function to calulate and return the true x coordinate value

virtual float getTrueY ()
 a virtual function to calulate and return the true y coordinate value

virtual float getTrueZ ()
 a virtual function to calulate and return the true z coordinate value

void initFilePosInfo ()
int getFileDirection ()
void updateFilePosInfo (int i, int x, int y, int z)
virtual int getTrueSizeX ()
virtual int getTrueSizeY ()
virtual int getTrueSizeZ ()
int getMaxSiblingSizeX ()
int getMaxSiblingSizeY ()
int getMaxChildSizeX ()
int getMaxChildSizeY ()
void addChildDir (PositionDir *newChild)
void setCollapsed ()
void clearCollapsed ()
virtual int getMinTrueSizeX ()
virtual int getMinTrueSizeY ()
virtual int getMinTrueSizeZ ()
virtual int getMaxTrueSizeX ()
virtual int getMaxTrueSizeY ()
virtual int getMaxTrueSizeZ ()
void sizeTouched (int init)

Private Attributes

PositionDirparentLoc
 This is a pointer to the parent position object of this position.

DirTreemyOwner
int numToLeft
int direction
int up1Count
int rightCount
int leftCount
int downCount
int up2Count
int fileDirection
int fileUp1Count
int fileRightCount
int fileLeftCount
int fileDownCount
int fileUp2Count
int trueSizeX
int trueSizeY
int trueSizeZ
char trueSizeXFlags
char trueSizeYFlags
char trueSizeZFlags
char collapsed

Detailed Description

A child class of position to support directories.

PositionDir acts as a frame of reference for positioning files and child directories. All files contained in the directory which controls this position object will have their coordinates relative to this position. Child directory positions are also relative to this position.


Constructor & Destructor Documentation

PositionDir::PositionDir  ) 
 

PositionDir::PositionDir DirTree owner  ) 
 

PositionDir::~PositionDir  )  [virtual]
 


Member Function Documentation

void PositionDir::addChildDir PositionDir newChild  ) 
 

void PositionDir::calculatePosition  )  [virtual]
 

a virtua; function to calulate the true position of the object

this pure virtual function serves are a place holder for a;; child classes version of calulate position

Returns:
nothing

Implements Position.

void PositionDir::clearCollapsed  ) 
 

int PositionDir::getFileDirection  ) 
 

int PositionDir::getMaxChildSizeX  ) 
 

int PositionDir::getMaxChildSizeY  ) 
 

int PositionDir::getMaxSiblingSizeX  ) 
 

int PositionDir::getMaxSiblingSizeY  ) 
 

int PositionDir::getMaxTrueSizeX  )  [virtual]
 

Implements Position.

int PositionDir::getMaxTrueSizeY  )  [virtual]
 

Implements Position.

int PositionDir::getMaxTrueSizeZ  )  [virtual]
 

Implements Position.

int PositionDir::getMinTrueSizeX  )  [virtual]
 

Implements Position.

int PositionDir::getMinTrueSizeY  )  [virtual]
 

Implements Position.

int PositionDir::getMinTrueSizeZ  )  [virtual]
 

Implements Position.

int PositionDir::getTrueSizeX  )  [virtual]
 

Implements Position.

int PositionDir::getTrueSizeY  )  [virtual]
 

Implements Position.

int PositionDir::getTrueSizeZ  )  [virtual]
 

Implements Position.

float PositionDir::getTrueX  )  [virtual]
 

a virtual function to calulate and return the true x coordinate value

this virtual function allows for each decendant of the position class the ability to calulate their x coordinate in their own way

Returns:
a GLfloat value being the true x coordinate

Implements Position.

float PositionDir::getTrueY  )  [virtual]
 

a virtual function to calulate and return the true y coordinate value

this virtual function allows for each decendant of the position class the ability to calulate their y coordinate in their own way

Returns:
a GLfloat value being the true y coordinate

Implements Position.

float PositionDir::getTrueZ  )  [virtual]
 

a virtual function to calulate and return the true z coordinate value

this virtual function allows for each decendant of the position class the ability to calulate their z coordinate in their own way

Returns:
a GLfloat value being the true z coordinate

Implements Position.

void PositionDir::initFilePosInfo  ) 
 

void PositionDir::setCollapsed  ) 
 

void PositionDir::sizeTouched int  init  ) 
 

void PositionDir::updateFilePosInfo int  i,
int  x,
int  y,
int  z
 

void PositionDir::updateRelations  )  [virtual]
 

the virtual function is used to update the positions relations

This pure virtual function serves as a place holder for chold class versions for updating relations

Returns:
nothing

Implements Position.


Member Data Documentation

char PositionDir::collapsed [private]
 

int PositionDir::direction [private]
 

int PositionDir::downCount [private]
 

int PositionDir::fileDirection [private]
 

int PositionDir::fileDownCount [private]
 

int PositionDir::fileLeftCount [private]
 

int PositionDir::fileRightCount [private]
 

int PositionDir::fileUp1Count [private]
 

int PositionDir::fileUp2Count [private]
 

int PositionDir::leftCount [private]
 

DirTree* PositionDir::myOwner [private]
 

int PositionDir::numToLeft [private]
 

PositionDir* PositionDir::parentLoc [private]
 

This is a pointer to the parent position object of this position.

Reimplemented from Position.

int PositionDir::rightCount [private]
 

int PositionDir::trueSizeX [private]
 

char PositionDir::trueSizeXFlags [private]
 

int PositionDir::trueSizeY [private]
 

char PositionDir::trueSizeYFlags [private]
 

int PositionDir::trueSizeZ [private]
 

char PositionDir::trueSizeZFlags [private]
 

int PositionDir::up1Count [private]
 

int PositionDir::up2Count [private]
 


The documentation for this class was generated from the following files:
Generated on Sat Aug 28 10:33:24 2004 by doxygen 1.3.6