Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

CTPoint2D Class Reference

A point 2d = (x, y) Implemented in: tvu_geometry.cpp. More...

#include <tvu_typesdef.h>

Inheritance diagram for CTPoint2D::

CTObject CTPoint3D

Public Methods

 CTPoint2D ()
 CTPoint2D (TPOINT2D p2d)
 CTPoint2D (double _x, double _y)
 DEFINE_ID_FUNCTIONS (CTPoint2D, CTObject, CLASSNAME_TYPE_POINT2D_ID, CLASSNAME_TYPE_POINT2D) public
virtual TPOINT3D GetLocation ()
virtual TBOOL OnSaving (LPCTFile pFile, TINT Marge)
 Save the object. More...

virtual TBOOL OnSaving (TLPSTR pBuffers, TINT Marge)
virtual TBOOL OnLoading (LPTBYTE *lpBuffers)
 Load the object from buffers. More...

virtual TBOOL OnLoading (LPCTFile pFile)
 Load the object a file. More...

virtual CTObjectCalculate (TINT iOperator, CTObject *Object)
 Calculate the mathematical operators: +, -, *, / and the comparing operators: =, <, <=, >, >=. In this case, the returned value is an object of CTInt. More...

virtual CTObjectSetValue (CTList pValues)
 For calculation. More...

TBOOL operator== (TPOINT2D p2d)
 Operations Comparing operations. More...

TBOOL operator== (CTPoint2D &p2d)
TBOOL operator!= (TPOINT2D p2d)
TBOOL operator!= (CTPoint2D &p2d)
CTPoint2D& operator= (CTPoint2D &p2d)
CTPoint2D& operator= (TPOINT2D &p2d)
CTPoint2D& operator-= (CTPoint2D &p2d)
CTPoint2D& operator-= (CTSize2D &s2d)
CTPoint2D& operator+= (CTPoint2D &p2d)
CTPoint2D& operator+= (CTSize2D &s2d)
CTPoint2D& operator *= (CTSize2D &s2d)
CTPoint2D& operator/= (CTSize2D &s2d)
TPOINT2D POINT2D ()
 Convert. More...


Data Fields

double x
 Data. More...

double y
 Data. More...


Detailed Description

A point 2d = (x, y) Implemented in: tvu_geometry.cpp.


Member Function Documentation

CTObject * CTPoint2D::Calculate ( TINT iOperator,
CTObject * Object ) [virtual]
 

Calculate the mathematical operators: +, -, *, / and the comparing operators: =, <, <=, >, >=. In this case, the returned value is an object of CTInt.

Reimplemented from CTObject.

Reimplemented in CTPoint3D.

TBOOL CTPoint2D::OnLoading ( LPCTFile pFile ) [virtual]
 

Load the object a file.

Reimplemented from CTObject.

Reimplemented in CTPoint3D.

TBOOL CTPoint2D::OnLoading ( LPTBYTE * lpBuffers ) [virtual]
 

Load the object from buffers.

Reimplemented from CTObject.

Reimplemented in CTPoint3D.

TBOOL CTPoint2D::OnSaving ( LPCTFile pFile,
TINT Marge ) [virtual]
 

Save the object.

Reimplemented from CTObject.

Reimplemented in CTPoint3D.

TPOINT2D CTPoint2D::POINT2D ( ) [inline]
 

Convert.

01885 { TPOINT2D p2d = {x, y}; return p2d; };

CTObject * CTPoint2D::SetValue ( CTList pValues ) [virtual]
 

For calculation.

Reimplemented from CTObject.

Reimplemented in CTPoint3D.

TBOOL CTPoint2D::operator== ( TPOINT2D p2d ) [inline]
 

Operations Comparing operations.

01864 { return (x == p2d.x) && (y == p2d.y);} ;


Field Documentation

double CTPoint2D::x
 

Data.

double CTPoint2D::y
 

Data.


The documentation for this class was generated from the following file:
Generated at Wed Aug 6 15:59:00 2003 for TVU's libraries for video surveillance: by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001