MyPoint Class Reference

MyPoint represents a point in 3D space with some additional information relevat to it. More...

#include <MyPoint.h>

Collaboration diagram for MyPoint:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MyPoint (float inX=0.0, float inY=0.0, float inZ=0.0)
 MyPoint (const MyPoint &a)
 MyPoint (const Coord3df &c)
 explicit conversion from Coord3df.
 ~MyPoint ()
void clear ()
void setp (const Coord3df &c)
uint hash () const
MyPointoperator+= (const MyPoint &a)
MyPointoperator/= (float s)
MyPointoperator *= (float s)
MyPointoperator= (const MyPoint &a)

Public Attributes

Coord3df p
 actual coordinate value
Coord3df n
 normal of this point.
HalfEdgehe
 HalfEdge originating from this point. - used in MyObject::subdivide().
bool touched
 was this point adjusted in the current subdiv iteration? - used in MyObject::subdivide()

Static Public Attributes

static int g_ctorCount
static int g_dtorCount
 keep bookmarking of creation and deletion for debug

Detailed Description

MyPoint represents a point in 3D space with some additional information relevat to it.

objects of this class are used along side with MyPolygon and MyLine in the process of creating the pieces display lists and in the direct rendering of lines. They are used solely with in the 3D solution display engine. instances of this class are usually managed with in a Pool of objects

See also:
PicPainter MyObject MyPolygon MyLine


Constructor & Destructor Documentation

MyPoint::MyPoint ( float  inX = 0.0,
float  inY = 0.0,
float  inZ = 0.0 
) [inline]

MyPoint::MyPoint ( const MyPoint a  )  [inline]

MyPoint::MyPoint ( const Coord3df c  )  [inline, explicit]

explicit conversion from Coord3df.

we don't want to convert it to MyPoint by accident

MyPoint::~MyPoint (  )  [inline]


Member Function Documentation

void MyPoint::clear (  )  [inline]

void MyPoint::setp ( const Coord3df c  )  [inline]

uint MyPoint::hash (  )  const [inline]

MyPoint& MyPoint::operator+= ( const MyPoint a  )  [inline]

MyPoint& MyPoint::operator/= ( float  s  )  [inline]

MyPoint& MyPoint::operator *= ( float  s  )  [inline]

MyPoint& MyPoint::operator= ( const MyPoint a  )  [inline]


Member Data Documentation

actual coordinate value

normal of this point.

HalfEdge originating from this point. - used in MyObject::subdivide().

was this point adjusted in the current subdiv iteration? - used in MyObject::subdivide()

int MyPoint::g_ctorCount [static]

int MyPoint::g_dtorCount [static]

keep bookmarking of creation and deletion for debug


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