Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

CTPrimitiveObject Class Reference

General definition of a primitive object. Primitive object is used to construct the objects of the world. More...

#include <tvu_primitive_objects.h>

Inheritance diagram for CTPrimitiveObject::

CTObject CTParallelepiped CTSphere CTTruncateCone

Public Types

enum  { FACE_MAXPOINTS = 16 }

Public Methods

 CTPrimitiveObject ()
 Contructors/Destructors. More...

virtual ~CTPrimitiveObject ()
 DEFINE_ID_FUNCTIONS (CTPrimitiveObject, CTObject, CLASSNAME_PRIM_OBJECT_ID, CLASSNAME_PRIM_OBJECT) public
virtual TBOOL IsMobileObject ()
virtual TPOINT3D GetLocation ()
virtual CTList GetSaveLoadObjects (TBOOL bOnLoad=TTRUE)
 The children to save/load. More...

virtual TBOOL Display (THFILE lpDevice=TNULL)
 Display to a device (a file), lpFile == NULL means that the device is GEOMVIEW This fonction may be used for writing the object to a file oogl. More...

virtual TBOOL OnDisplaying (THFILE lpDevice)
 Will be called for displaying. More...

virtual TBOOL Move ()
 Moving, rotating. More...

virtual TBOOL Rotate ()
virtual TBOOL Project ()
virtual TBOOL BuildObject ()
 Create the shape ==> list of points/faces. More...

virtual TBOOL OnBuildObject ()
virtual TBOOL GetBoundary (BOUNDARY &Boundary)
 Get the boundary of the object. More...

virtual void Delete ()
 For deleting the object. More...

virtual CTPrimitiveObject& operator= (CTPrimitiveObject &AnObject)
 Operations. More...

CTRGBGetRGB ()
 For private data Color. More...

CTPoint3DGetPosition ()
 Position, angles and size. More...

CTAnglesGetAngles ()
CTSize3DGetSize ()
CTSize3DGetCurrentSize ()
TBOOL GetPoint (TINT nIndex, LPTPOINT3D lpPoint)
 Get the point of index. More...


Protected Types

typedef struct CTPrimitiveObject::tagFACE  FACE
 Private data struct Face = Number of points + list of index of points. More...

typedef struct CTPrimitiveObject::tagFACELPFACE
 Private data struct Face = Number of points + list of index of points. More...

typedef struct CTPrimitiveObject::tagPRIVATEDATA  PRIVATEDATA
typedef struct CTPrimitiveObject::tagPRIVATEDATA * LPPRIVATEDATA

Protected Methods

virtual TBOOL AllocateBuffers ()
virtual TINT GetPointsCount ()
virtual TINT GetFacesCount ()

Protected Attributes

CTRGB m_RGB
 Data Color. More...

CTPoint3D m_Position
 Position and size. More...

CTAngles m_Angles
CTSize3D m_Size
CTSize3D m_CurrentSize
LPTBYTE m_Buffers
 Private pointer to a LPPRIVATEDATA structure. More...


Detailed Description

General definition of a primitive object. Primitive object is used to construct the objects of the world.


Member Typedef Documentation

typedef struct CTPrimitiveObject::tagFACE CTPrimitiveObject::FACE [protected]
 

Private data struct Face = Number of points + list of index of points.

typedef struct CTPrimitiveObject::tagFACE * CTPrimitiveObject::LPFACE [protected]
 

Private data struct Face = Number of points + list of index of points.


Constructor & Destructor Documentation

CTPrimitiveObject::CTPrimitiveObject ( )
 

Contructors/Destructors.


Member Function Documentation

TBOOL CTPrimitiveObject::BuildObject ( ) [virtual]
 

Create the shape ==> list of points/faces.

void CTPrimitiveObject::Delete ( ) [virtual]
 

For deleting the object.

TBOOL CTPrimitiveObject::Display ( THFILE lpDevice = TNULL ) [virtual]
 

Display to a device (a file), lpFile == NULL means that the device is GEOMVIEW This fonction may be used for writing the object to a file oogl.

Reimplemented from CTObject.

TBOOL CTPrimitiveObject::GetBoundary ( BOUNDARY & Boundary ) [virtual]
 

Get the boundary of the object.

Reimplemented from CTObject.

TBOOL CTPrimitiveObject::GetPoint ( TINT nIndex,
LPTPOINT3D lpPoint )
 

Get the point of index.

CTPoint3D & CTPrimitiveObject::GetPosition ( ) [inline]
 

Position, angles and size.

00086 { return m_Position; };

CTRGB & CTPrimitiveObject::GetRGB ( ) [inline]
 

For private data Color.

00084 { return m_RGB; };

CTList CTPrimitiveObject::GetSaveLoadObjects ( TBOOL bOnLoad = TTRUE ) [virtual]
 

The children to save/load.

Reimplemented from CTObject.

TBOOL CTPrimitiveObject::Move ( ) [virtual]
 

Moving, rotating.

TBOOL CTPrimitiveObject::OnDisplaying ( THFILE lpDevice ) [virtual]
 

Will be called for displaying.

CTPrimitiveObject & CTPrimitiveObject::operator= ( CTPrimitiveObject & AnObject ) [virtual]
 

Operations.


Field Documentation

LPTBYTE CTPrimitiveObject::m_Buffers [protected]
 

Private pointer to a LPPRIVATEDATA structure.

CTPoint3D CTPrimitiveObject::m_Position [protected]
 

Position and size.

CTRGB CTPrimitiveObject::m_RGB [protected]
 

Data Color.


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