HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 () noexcept
 Default constructor: Sets counter to 0. More...
 
SYS_FORCE_INLINE UT_IntrusiveRefCounter (const UT_IntrusiveRefCounter &) noexcept
 Copy constructor: Sets counter to 0. More...
 
UT_IntrusiveRefCounteroperator= (const UT_IntrusiveRefCounter &) noexcept
 Assignment operator: Does not modify counter. More...
 
SYS_FORCE_INLINE uint32 use_count () const noexcept
 Return current counter. More...
 
SYS_FORCE_INLINE bool conditionalAddRef () noexcept
 

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 249 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 280 of file GT_AgentSupport.h.

bool GT_AgentColors::hasColor ( ) const
inline

Definition at line 277 of file GT_AgentSupport.h.

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

Definition at line 253 of file GT_AgentSupport.h.


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