xmsgridtrace  1.0
XmGridTraceUnitTests Class Reference

Tests functionality of XmGridTrace. More...

Inheritance diagram for XmGridTraceUnitTests:

Public Member Functions

void testBasicTracePoint ()
 test the basic functionality of trace point
 
void testMaxChangeDistance ()
 Speed is limited to .25. It doesnt reach the edge because it goes below min delta time.
 
void testSmallScalarsTracePoint ()
 test with small scalars to create more points
 
void testStrongDirectionChange ()
 test behavior when having large changes in direction
 
void testMaxTracingTime ()
 test setting max tracing time
 
void testMaxTracingDistance ()
 test setting the max tracing distance
 
void testStartOutOfCell ()
 test behavior when starting point is out of the cell
 
void testDotProduct ()
 test the angle function
 
void testBeyondTimestep ()
 test behavior when starting beyond the second time step
 
void testBeforeTimestep ()
 test the behavior when starting before the first timestep
 
void testVectorMultiplier ()
 test behavior of the vector multiplier
 
void testMultiCell ()
 test behavior of multiple cells
 
void testMaxChangeVelocity ()
 Testing what happens when the maximum change in velocity is low / It reaches a point of high acceleration, and then the delta time / decreases until it goes below the minimum delta time.
 
void testUniqueTimeSteps ()
 Test behavior for unique timesteps.
 
void testInactiveCell ()
 2nd cell is inactive in the 2nd time step. // Thus it does not pull as hard. Also once the point reaches the 2nd cell // It stops entirely.
 
void testStartInactiveCell ()
 The point starts in an inactive cell, and doesnt move.
 
void testTutorial ()
 2nd cell is inactive in the 2nd time step. // Thus it does not pull as hard. Also once the point reaches the 2nd cell // It stops entirely. More...
 

Detailed Description

Tests functionality of XmGridTrace.

Definition at line 21 of file XmGridTrace.t.h.

Member Function Documentation

◆ testTutorial()

void XmGridTraceUnitTests::testTutorial ( )

2nd cell is inactive in the 2nd time step. // Thus it does not pull as hard. Also once the point reaches the 2nd cell // It stops entirely.

[snip_test_Example_XmGridTrace]

Definition at line 1381 of file XmGridTrace.cpp.

References xms::XmUGrid::New(), xms::XmGridTrace::New(), TS_ASSERT_DELTA_VEC, TS_ASSERT_DELTA_VECPT3D, and XM_PI.


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