VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
makVrv::DtTerrainContentItemKey Class Reference

DtTerrainContentItemKey. More...

Public Member Functions

 DtTerrainContentItemKey ()
 Default CTOR. More...
 
 DtTerrainContentItemKey (int type, int id, const DtTerrainContentItemKey &parentKey)
 CTOR. More...
 
 DtTerrainContentItemKey (int type, const std::string &name, const DtTerrainContentItemKey &parentKey)
 CTOR. More...
 
 DtTerrainContentItemKey (int type, const std::string &name, int parentType, int parentId)
 CTOR. More...
 
 DtTerrainContentItemKey (int type, int id, int parentType, int parentId)
 CTOR. More...
 
void invalid ()
 Invalid the key. More...
 
void setType (int type)
 Sets the type of the key. More...
 
void setId (int id)
 Sets the id of the key. More...
 
void setParentType (int type)
 Sets the type of the parent key. More...
 
void setParentId (int id)
 Sets the id of the parent key. More...
 
void setParentKey (const DtTerrainContentItemKey &parentKey)
 Sets the key of the parent. More...
 

The unique name of the key.

Gets the name of the key.

int myType
 
int myId
 
int myParentType
 
int myParentId
 
bool myUseName
 
std::string myName
 
void setName (const std::string &name)
 
const int type () const
 Gets the type of the key. More...
 
const int id () const
 Gets the id of the key. More...
 
const int parentType () const
 Gets the type of the parent key. More...
 
const int parentId () const
 Gets the id of the parent key. More...
 
std::string name () const
 
const bool useName () const
 Whether this key uses name as comparison instead of id. More...
 
bool operator< (const DtTerrainContentItemKey &) const
 The less operator override. More...
 
bool operator== (const DtTerrainContentItemKey &) const
 The eaqul operator override. More...
 

Detailed Description

DtTerrainContentItemKey.

Key of the terrain content item, represented by the TerrainContentItemType and id(Different meaning depends on the context of different content item type) or TerrainContentItemType and unique name(When there is no meaningful id associated with the item).

Constructor & Destructor Documentation

makVrv::DtTerrainContentItemKey::DtTerrainContentItemKey ( )

Default CTOR.

makVrv::DtTerrainContentItemKey::DtTerrainContentItemKey ( int  type,
int  id,
const DtTerrainContentItemKey parentKey 
)

CTOR.

Parameters
typeTerrainContentItemType enum, the type of the terrain content item.
idThe id of the terrain content item key.
parentKeyThe key of the parent item.
makVrv::DtTerrainContentItemKey::DtTerrainContentItemKey ( int  type,
const std::string &  name,
const DtTerrainContentItemKey parentKey 
)

CTOR.

Parameters
typeTerrainContentItemType enum, the type of the terrain content item.
nameThe unique name of the terrain content item key.
parentKeyThe key of the parent item.
makVrv::DtTerrainContentItemKey::DtTerrainContentItemKey ( int  type,
const std::string &  name,
int  parentType,
int  parentId 
)

CTOR.

Parameters
typeTerrainContentItemType enum, the type of the terrain content item.
nameThe unique name of the terrain content item key.
parentTypeThe type of the parent item.
parentIdThe id of the parent item.
makVrv::DtTerrainContentItemKey::DtTerrainContentItemKey ( int  type,
int  id,
int  parentType,
int  parentId 
)

CTOR.

Parameters
typeTerrainContentItemType enum, the type of the terrain content item.
idThe id of the terrain content item key.
parentTypeThe type of the parent item.
parentIdThe id of the parent item.

Member Function Documentation

void makVrv::DtTerrainContentItemKey::invalid ( )

Invalid the key.

void makVrv::DtTerrainContentItemKey::setType ( int  type)

Sets the type of the key.

Parameters
typeTerrainContentItemType enum, the type of the terrain content item.
void makVrv::DtTerrainContentItemKey::setId ( int  id)

Sets the id of the key.

Parameters
idThe unique index of the key, different meaning depends on the context of different content item type.
void makVrv::DtTerrainContentItemKey::setParentType ( int  type)

Sets the type of the parent key.

Parameters
typeTerrainContentItemType enum, the type of the terrain content item.
void makVrv::DtTerrainContentItemKey::setParentId ( int  id)

Sets the id of the parent key.

Parameters
idThe unique index of the key, different meaning depends on the context of different content item type.
void makVrv::DtTerrainContentItemKey::setParentKey ( const DtTerrainContentItemKey parentKey)

Sets the key of the parent.

Parameters
parentKeyThe key of the parent.
void makVrv::DtTerrainContentItemKey::setName ( const std::string &  name)
const int makVrv::DtTerrainContentItemKey::type ( ) const

Gets the type of the key.

Returns
TerrainContentItemType enum, the type of the terrain content item.
const int makVrv::DtTerrainContentItemKey::id ( ) const

Gets the id of the key.

Returns
The unique index of the key, different meaning depends on the context of different content item type.
const int makVrv::DtTerrainContentItemKey::parentType ( ) const

Gets the type of the parent key.

Returns
TerrainContentItemType enum, the type of the terrain content item.
const int makVrv::DtTerrainContentItemKey::parentId ( ) const

Gets the id of the parent key.

Returns
The unique index of the parent key, different meaning depends on the context of different content item type.
std::string makVrv::DtTerrainContentItemKey::name ( ) const
const bool makVrv::DtTerrainContentItemKey::useName ( ) const

Whether this key uses name as comparison instead of id.

bool makVrv::DtTerrainContentItemKey::operator< ( const DtTerrainContentItemKey ) const

The less operator override.

bool makVrv::DtTerrainContentItemKey::operator== ( const DtTerrainContentItemKey ) const

The eaqul operator override.

Member Data Documentation

int makVrv::DtTerrainContentItemKey::myType
protected
int makVrv::DtTerrainContentItemKey::myId
protected
int makVrv::DtTerrainContentItemKey::myParentType
protected
int makVrv::DtTerrainContentItemKey::myParentId
protected
bool makVrv::DtTerrainContentItemKey::myUseName
protected
std::string makVrv::DtTerrainContentItemKey::myName
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)