Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

CTSize2D Class Reference

A size 2d = (sx, sy) Popose: for representing a size or a ratio Implemented in: tvu_geometry.cpp. More...

#include <tvu_typesdef.h>

Inheritance diagram for CTSize2D::

CTObject CTSize3D

Public Methods

 CTSize2D ()
 CTSize2D (double _sx, double _sy)
 DEFINE_ID_FUNCTIONS (CTSize2D, CTObject, CLASSNAME_TYPE_SIZE2D_ID, CLASSNAME_TYPE_SIZE2D) public
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 CTObjectSetValue (CTList pValues)
 For calculation. More...

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

TBOOL operator== (TSIZE2D s2d)
 Comparing operations. More...

TBOOL operator== (CTSize2D &s2d)
TBOOL operator!= (TSIZE2D s2d)
TBOOL operator!= (CTSize2D &s2d)
CTSize2D& operator= (CTSize2D &s2d)
TSIZE2D SIZE2D ()
 Convert. More...


Data Fields

double sx
 Data. More...

double sy
 Data. More...


Detailed Description

A size 2d = (sx, sy) Popose: for representing a size or a ratio Implemented in: tvu_geometry.cpp.


Member Function Documentation

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

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

Reimplemented from CTObject.

Reimplemented in CTSize3D.

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

Load the object a file.

Reimplemented from CTObject.

Reimplemented in CTSize3D.

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

Load the object from buffers.

Reimplemented from CTObject.

Reimplemented in CTSize3D.

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

Save the object.

Reimplemented from CTObject.

Reimplemented in CTSize3D.

TSIZE2D CTSize2D::SIZE2D ( ) [inline]
 

Convert.

01782 { TSIZE2D s2d = {sx, sy}; return s2d; };

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

For calculation.

Reimplemented from CTObject.

Reimplemented in CTSize3D.

TBOOL CTSize2D::operator== ( TSIZE2D s2d ) [inline]
 

Comparing operations.

01775 { return (sx == s2d.sx) && (sy == s2d.sy);} ;


Field Documentation

double CTSize2D::sx
 

Data.

double CTSize2D::sy
 

Data.


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