|
|
plot3d.c File ReferenceImplementation of the functions operating on Tplot3d. More... #include "plot3d.h" #include "error.h" #include <stdlib.h> #include <string.h> #include <math.h> Go to the source code of this file.
Detailed DescriptionImplementation of the functions to generate 3d plots. Definition in file plot3d.c. Function DocumentationDefinition at line 34 of file plot3d.c. References Tplot3d::color, DCP3D_G, DCP3D_R, Error(), Tplot3d::f, FALSE, Tplot3d::fileName, Tplot3d::inObject, NEW, NewColor(), and Tplot3d::nobj. Referenced by AnimateWorld(), and main().
Here is the call graph for this function:
Here is the caller graph for this function:
Starts a block of commands that have to be executed simultaneously. Commands are, for instance, the generation of new geometry of the transformation/deletion of existing objects.
Definition at line 117 of file plot3d.c. References Tplot3d::f. Referenced by AnimateWorld(), MoveMechanism(), and PlotMechanism().
Here is the caller graph for this function:
Ends a block of commands that have to be executed simultaneously.
Definition at line 122 of file plot3d.c. References Tplot3d::f. Referenced by AnimateWorld(), MoveMechanism(), and PlotMechanism().
Here is the caller graph for this function:
Deletes a previously created geometric object. This is used when creating animations.
Definition at line 128 of file plot3d.c. References Tplot3d::f, and Tplot3d::fileName. Start the definition of a geometric object composed by one or more basic geometric elements.
Definition at line 133 of file plot3d.c. References Close3dObject(), Tplot3d::color, CopyColor(), Tplot3d::f, Tplot3d::fileName, Tplot3d::inObject, Tplot3d::nobj, and TRUE. Referenced by main(), PlotCPolyhedron(), PlotJoint(), and PlotLink().
Here is the call graph for this function:
Here is the caller graph for this function:
Ends the definition of a geometric object composed by many basic geometric elements.
Definition at line 147 of file plot3d.c. References Tplot3d::color, Tplot3d::f, FALSE, Tplot3d::fileName, Tplot3d::inObject, Tplot3d::nobj, and SetColor3dObject(). Referenced by ClosePlot3d(), PlotCPolyhedron(), PlotJoint(), PlotLink(), and StartNew3dObject().
Here is the call graph for this function:
Here is the caller graph for this function:
Changes the color of an object.
Definition at line 160 of file plot3d.c. References Tplot3d::f, Tplot3d::fileName, Tplot3d::inObject, and PrintColor(). Referenced by Close3dObject().
Here is the call graph for this function:
Here is the caller graph for this function:
Introduces a delay in the generation of the geometry. Used for animations.
Definition at line 172 of file plot3d.c. References Tplot3d::f. Referenced by AnimateWorld().
Here is the caller graph for this function:
Moves a 3d object.
Definition at line 178 of file plot3d.c. References Tplot3d::f, Tplot3d::fileName, and HTransformPrintT(). Referenced by MoveCPolyhedron(), MoveJoint(), and MoveLink().
Here is the call graph for this function:
Here is the caller graph for this function:
Adds an axis aligned box to the current object. This command can only be used in between a call to StartNew3dObject and the corresponding call to Close3dObject.
Definition at line 185 of file plot3d.c. References Error(), Tplot3d::f, and Tplot3d::inObject. Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:
Adds triangle to the current object. This command can only be used in between a call to StartNew3dObject and the corresponding call to Close3dObject.
Definition at line 217 of file plot3d.c. References Error(), Tplot3d::f, and Tplot3d::inObject.
Here is the call graph for this function:
Adds polytope to the current object. This command can only be used in between a call to StartNew3dObject and the corresponding call to Close3dObject. What we denote as polytope are geomview OFFs.
Definition at line 237 of file plot3d.c. References Error(), Tplot3d::f, and Tplot3d::inObject. Referenced by PlotCPolyhedron().
Here is the call graph for this function:
Here is the caller graph for this function:
Adds sphere to the current object. This command can only be used in between a call to StartNew3dObject and the corresponding call to Close3dObject.
Definition at line 265 of file plot3d.c. References Error(), Tplot3d::f, and Tplot3d::inObject. Referenced by PlotCPolyhedron(), and PlotJoint().
Here is the call graph for this function:
Here is the caller graph for this function:
Adds cylinder to the current object. This command can only be used in between a call to StartNew3dObject and the corresponding call to Close3dObject.
Definition at line 273 of file plot3d.c. References Error(), Tplot3d::f, HTransformDelete(), HTransformPrintT(), HTransformX2Vect(), and Tplot3d::inObject. Referenced by PlotCPolyhedron(), and PlotJoint().
Here is the call graph for this function:
Here is the caller graph for this function:
Adds polyline (i.e., a collection of concatenated lines) to the current object. This command can only be used in between a call to StartNew3dObject and the corresponding call to Close3dObject.
Definition at line 291 of file plot3d.c. References Tplot3d::color, Error(), Tplot3d::f, Tplot3d::inObject, and PrintColor(). Referenced by PlotLink().
Here is the call graph for this function:
Here is the caller graph for this function:
Takes a screenshot of the geometry. Used to create videos from animations. The screenshot format are .ppm files that can be browsed/manipulated easily.
Definition at line 312 of file plot3d.c. References Tplot3d::f.
Closes a 3d plot. Before closing the file, all geometric objects are offset by (average_x,average_y,average_z). This is used to center the scene in the (0,0,0) and facilitates the on-line manipulation (rotations, translations,...) using geomview.
Definition at line 318 of file plot3d.c. References Close3dObject(), Tplot3d::f, Tplot3d::fileName, and Tplot3d::nobj. Referenced by AnimateWorld(), and main().
Here is the call graph for this function:
Here is the caller graph for this function:
|