-------------------------------------------------------------------------------------- Description: Returns human-readable name for declaration element. Used for Python exposure. Return Value: Human-readable name of particle declaration element. --------------------------------------------------------------------------------------
| 63 | // Human-readable name of particle declaration element. |
| 64 | // -------------------------------------------------------------------------------------- |
| 65 | std::string Tr2ParticleElementDeclarationName::GetName() const |
| 66 | { |
| 67 | if( m_type >= CUSTOM ) |
| 68 | { |
| 69 | return m_name; |
| 70 | } |
| 71 | static const char* typeNames[CUSTOM] = { |
| 72 | "LIFETIME", |
| 73 | "POSITION", |
| 74 | "VELOCITY", |
| 75 | "MASS", |
| 76 | }; |
| 77 | return typeNames[m_type]; |
| 78 | } |
| 79 | |
| 80 | // -------------------------------------------------------------------------------------- |
| 81 | // Description: |
no outgoing calls
no test coverage detected