MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / showHelp

Function showHelp

cpp/4_CUDA_Libraries/randomFog/randomFog.cpp:575–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573}
574
575void showHelp(void)
576{
577 using std::left;
578 using std::setw;
579 using std::stringstream;
580
581 stringstream ss;
582
583 ss << "\nRandom number visualization\n\n";
584 ss << "On creation, randomFog generates 200,000 random coordinates in "
585 "spherical coordinate space (radius, angle rho, angle theta) with "
586 "curand's XORWOW algorithm. The coordinates are normalized for a "
587 "uniform distribution through the sphere.\n\n";
588 ss << "The X axis is drawn with blue in the negative direction and yellow "
589 "positive.\n"
590 << "The Y axis is drawn with green in the negative direction and magenta "
591 "positive.\n"
592 << "The Z axis is drawn with red in the negative direction and cyan "
593 "positive.\n\n";
594 ss << "The following keys can be used to control the output:\n\n";
595 ss << left;
596 ss << "\t" << setw(10) << "s"
597 << "Generate a new set of random numbers and display as spherical "
598 "coordinates (Sphere)\n";
599 ss << "\t" << setw(10) << "e"
600 << "Generate a new set of random numbers and display on a spherical "
601 "surface (shEll)\n";
602 ss << "\t" << setw(10) << "b"
603 << "Generate a new set of random numbers and display as cartesian "
604 "coordinates (cuBe/Box)\n";
605 ss << "\t" << setw(10) << "p"
606 << "Generate a new set of random numbers and display on a cartesian plane "
607 "(Plane)\n\n";
608 ss << "\t" << setw(10) << "i,l,j"
609 << "Rotate the negative Z-axis up, right, down and left respectively\n";
610 ss << "\t" << setw(10) << "a"
611 << "Toggle auto-rotation\n";
612 ss << "\t" << setw(10) << "t"
613 << "Toggle 10x zoom\n";
614 ss << "\t" << setw(10) << "z"
615 << "Toggle axes display\n\n";
616 ss << "\t" << setw(10) << "x"
617 << "Select XORWOW generator (default)\n";
618 ss << "\t" << setw(10) << "c"
619 << "Select Sobol' generator\n";
620 ss << "\t" << setw(10) << "v"
621 << "Select scrambled Sobol' generator\n";
622 ss << "\t" << setw(10) << "r"
623 << "Reset XORWOW (i.e. reset to initial seed) and regenerate\n";
624 ss << "\t" << setw(10) << "]"
625 << "Increment the number of Sobol' dimensions and regenerate\n";
626 ss << "\t" << setw(10) << "["
627 << "Reset the number of Sobol' dimensions to 1 and regenerate\n\n";
628 ss << "\t" << setw(10) << "+"
629 << "Increment the number of displayed points by 8,000 (up to maximum "
630 "200,000)\n";
631 ss << "\t" << setw(10) << "-"
632 << "Decrement the number of displayed points by 8,000 (down to minimum "

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected