Main Page   Namespace List   Compound List   File List   Compound Members   File Members  

Midpoint Class Reference

Contain the midpoint x,y,z and the line length string. More...

#include <Midpoint.h>

List of all members.

Public Methods

 Midpoint (double imx, double imy, double imz, double ilength)
 the do it yourself constructor. More...

 Midpoint (double x1, double x2, double y1, double y2, double z1, double z2)
 the easier make midpoint from edge points constructor. More...

bool operator== (const Midpoint &obj) const
 simple equivalence test necessary for find operations. More...

Midpoint & operator= (const Midpoint &obj)
 assignment. More...

GLdouble get_mx ()
 get the midpoint x value. More...

void set_mx (GLdouble ix)
 set the midpoint x value. More...

GLdouble get_my ()
 get the midpoint y value. More...

void set_my (GLdouble iy)
 set the midpoint y value. More...

GLdouble get_mz ()
 get the midpoint z value. More...

void set_mz (GLdouble iz)
 set the midpoint z value. More...

char * get_length ()
 get the length string. More...

void set_length (char *inlength)
 set the length string. More...


Private Attributes

double mx
double my
double mz
char length [30]


Detailed Description

Contain the midpoint x,y,z and the line length string.

Midpoint encapsulates the mx,my,mz position of the midpoint of an edge. get_length provides a premade label of the lengthin string form. set_? methods exist for the members but should be avoided unless you're quite careful to adjust the length correctly.

Definition at line 30 of file Midpoint.h.


Constructor & Destructor Documentation

Midpoint::Midpoint double    imx,
double    imy,
double    imz,
double    ilength
[inline]
 

the do it yourself constructor.

Definition at line 37 of file Midpoint.h.

References length, mx, my, and mz.

Midpoint::Midpoint double    x1,
double    x2,
double    y1,
double    y2,
double    z1,
double    z2
[inline]
 

the easier make midpoint from edge points constructor.

Definition at line 43 of file Midpoint.h.

References length, mx, my, and mz.


Member Function Documentation

char* Midpoint::get_length   [inline]
 

get the length string.

Definition at line 102 of file Midpoint.h.

References length.

GLdouble Midpoint::get_mx   [inline]
 

get the midpoint x value.

Definition at line 66 of file Midpoint.h.

Referenced by Timestep::calc_and_move.

GLdouble Midpoint::get_my   [inline]
 

get the midpoint y value.

Definition at line 78 of file Midpoint.h.

Referenced by Timestep::calc_and_move.

GLdouble Midpoint::get_mz   [inline]
 

get the midpoint z value.

Definition at line 90 of file Midpoint.h.

Referenced by Timestep::calc_and_move.

Midpoint& Midpoint::operator= const Midpoint &    obj [inline]
 

assignment.

Definition at line 57 of file Midpoint.h.

References length, mx, my, and mz.

bool Midpoint::operator== const Midpoint &    obj const [inline]
 

simple equivalence test necessary for find operations.

Definition at line 52 of file Midpoint.h.

References mx, my, and mz.

void Midpoint::set_length char *    inlength [inline]
 

set the length string.

Definition at line 108 of file Midpoint.h.

References length.

void Midpoint::set_mx GLdouble    ix [inline]
 

set the midpoint x value.

Definition at line 72 of file Midpoint.h.

References mx.

Referenced by Timestep::calc_and_move.

void Midpoint::set_my GLdouble    iy [inline]
 

set the midpoint y value.

Definition at line 84 of file Midpoint.h.

References my.

Referenced by Timestep::calc_and_move.

void Midpoint::set_mz GLdouble    iz [inline]
 

set the midpoint z value.

Definition at line 96 of file Midpoint.h.

References mz.

Referenced by Timestep::calc_and_move.


Member Data Documentation

char Midpoint::length[30] [private]
 

Definition at line 34 of file Midpoint.h.

Referenced by get_length, Midpoint, operator=, and set_length.

double Midpoint::mx [private]
 

Definition at line 33 of file Midpoint.h.

Referenced by Midpoint, operator=, operator==, and set_mx.

double Midpoint::my [private]
 

Definition at line 33 of file Midpoint.h.

Referenced by Midpoint, operator=, operator==, and set_my.

double Midpoint::mz [private]
 

Definition at line 33 of file Midpoint.h.

Referenced by Midpoint, operator=, operator==, and set_mz.


The documentation for this class was generated from the following file:
Generated on Wed Oct 29 10:01:53 2003 for Tetraviewer by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002