HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GT_AgentColors Class Reference

Contains colors for each agent. More...

#include <GT_AgentSupport.h>

+ Inheritance diagram for GT_AgentColors:

Public Member Functions

void setColors (const GT_DataArrayHandle &colors, GT_Owner owner, exint num_agents)
 
bool hasColor () const
 
void fetchColor (exint agent_idx, uint8 *data) const
 Fetch the (4 uint8) color for an agent. More...
 
- Public Member Functions inherited from UT_IntrusiveRefCounter< GT_AgentColors >
SYS_FORCE_INLINE UT_IntrusiveRefCounter ()
 Default constructor: Sets counter to 0. More...
 
SYS_FORCE_INLINE UT_IntrusiveRefCounter (const UT_IntrusiveRefCounter &)
 Copy constructor: Sets counter to 0. More...
 
UT_IntrusiveRefCounteroperator= (const UT_IntrusiveRefCounter &)
 Assignment operator: Does not modify counter. More...
 
SYS_FORCE_INLINE uint32 use_count () const
 Return current counter. More...
 

Additional Inherited Members

- Protected Member Functions inherited from UT_IntrusiveRefCounter< GT_AgentColors >
SYS_FORCE_INLINE ~UT_IntrusiveRefCounter ()
 Destructor: Only derived classes can destruct this. More...
 

Detailed Description

Contains colors for each agent.

Definition at line 189 of file GT_AgentSupport.h.

Member Function Documentation

void GT_AgentColors::fetchColor ( exint  agent_idx,
uint8 data 
) const
inline

Fetch the (4 uint8) color for an agent.

Definition at line 220 of file GT_AgentSupport.h.

bool GT_AgentColors::hasColor ( ) const
inline

Definition at line 217 of file GT_AgentSupport.h.

void GT_AgentColors::setColors ( const GT_DataArrayHandle colors,
GT_Owner  owner,
exint  num_agents 
)
inline

Definition at line 193 of file GT_AgentSupport.h.


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