MCPcopy Create free account
hub / github.com/carbonengine/trinity / SelectAxis

Method SelectAxis

trinity/Tr2ManipulationTool.cpp:211–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211void Tr2ManipulationTool::SelectAxis( std::string axisName )
212{
213 bool validName = false;
214 for( PrimitiveIterator it = m_primitives.begin(); it != m_primitives.end(); ++it )
215 {
216 if( ( *it )->m_name == axisName )
217 {
218 validName = true;
219 }
220 }
221
222 if( !validName )
223 return;
224
225 ResetPrimitiveColors();
226 for( PrimitiveIterator it = m_primitives.begin(); it != m_primitives.end(); ++it )
227 {
228 if( ( *it )->m_name == axisName )
229 {
230 ( *it )->SetCurrentColor( (Color&)v4Yellow );
231 }
232 }
233 m_selectedAxis = axisName;
234}
235
236// Utility functions for creating geometry to either render or to act as a collision geometry
237Vector3* Tr2ManipulationTool::GetTrianglesAroundLine( const Vector3& start, const Vector3& end, float radius, int* numVectors )

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
SetCurrentColorMethod · 0.45

Tested by

no test coverage detected