color.c File Reference Detailed DescriptionImplementation of the functions working on colors as red/green/blue components. Definition in file color.c.
Function Documentation
Creates new color.
Definition at line 14 of file color.c. References Tcolor::b, Tcolor::g, and Tcolor::r. Referenced by InitJoint(), InitPlot3d(), InitPolyhedronFromFile(), InitWorldFromMolecule(), main(), Plot3dObjectWithColors(), PlotAtlas(), PlotAtlasRRT(), PlotBifurcations(), PlotConnection(), PlotEnvironment(), PlotLink(), PlotQrand(), PlotRRT(), PlotSamples(), and TriangulateAtlas(). Creates new color from another color.
Definition at line 21 of file color.c. References Tcolor::b, Tcolor::g, and Tcolor::r. Referenced by CopyJoint(), CopyPolyhedron(), GetPolyhedronColor(), InitPolyhedronFromFile(), InitPolyhedronFromTriangles(), NewBox(), NewCylinder(), NewLine(), NewSegments(), NewSphere(), NewSphPrsSphJoint(), NewSphSphJoint(), PlotJoint(), SetPolyhedronColor(), and StartNew3dObject(). Identifies colors with negative values of red, green or blue. Null-color is used to define a 3d object whose color does not need to be set globally since the elements of in the 3d objec already define its color.
Definition at line 28 of file color.c. References Tcolor::b, Tcolor::g, and Tcolor::r. Referenced by SetColor3dObject().
Creates new color by scaling a existing color. Scale factors larger than one create lighter colors and scale factors below one create darker colors.
Definition at line 33 of file color.c. References Tcolor::b, Tcolor::g, and Tcolor::r. Referenced by PlotJoint().
Defines a color in function of a cost. The lowest cost is plot in black and the rest in a gradient from red to green. This is basically used to color atlas (and atlases triangulations) with associated cost functions.
Definition at line 40 of file color.c. References Tcolor::b, Tcolor::g, and Tcolor::r. Referenced by PlotChartAsPolygon(), and TriangulateAtlas().
Gets the red component of a color.
Definition at line 73 of file color.c. References Tcolor::r. Referenced by PrintJoint(), and PrintPolyhedron().
Gets the green component of a color.
Definition at line 78 of file color.c. References Tcolor::g. Referenced by PrintJoint(), and PrintPolyhedron().
Gets the blue component of a color.
Definition at line 83 of file color.c. References Tcolor::b. Referenced by PrintJoint(), and PrintPolyhedron().
Prints the three components of a color in a file. The componts (red, blue, and green) are printed as doubles, without any separation mark. This is the way in which Geomview uses colors.
Definition at line 88 of file color.c. References Tcolor::b, Tcolor::g, and Tcolor::r. Referenced by Plot3dObjectWithColor(), Plot3dObjectWithColors(), PlotLine(), PlotSegments(), PlotVect3d(), and SetColor3dObject().
Deletes the information stored in a Tcolor and frees the allocated memory, if any.
Definition at line 93 of file color.c. Referenced by DeleteJoint(), InitWorldFromMolecule(), main(), PlotAtlas(), PlotAtlasRRT(), PlotBifurcations(), PlotConnection(), PlotEnvironment(), PlotJoint(), PlotLink(), PlotQrand(), PlotRRT(), and PlotSamples(). |
Follow us!