color.h File Reference Detailed Description
Macro Definition Documentation
One of the pre-defined colors: Red. Definition at line 23 of file color.h. Referenced by NewColorWithID().
One of the pre-defined colors: Green. Definition at line 30 of file color.h. Referenced by NewColorWithID().
One of the pre-defined colors: Blue. Definition at line 37 of file color.h. Referenced by NewColorWithID().
One of the pre-defined colors: Black. Definition at line 44 of file color.h. Referenced by NewColorWithID().
One of the pre-defined colors: Grey. Definition at line 51 of file color.h. Referenced by NewColorWithID().
One of the pre-defined colors: White. Definition at line 58 of file color.h. Referenced by NewColorWithID().
One of the pre-defined colors: Yellow. Definition at line 65 of file color.h. Referenced by NewColorWithID().
One of the pre-defined colors: Purple. Definition at line 72 of file color.h. Referenced by NewColorWithID().
One of the pre-defined colors: Gyan. Definition at line 79 of file color.h. Referenced by NewColorWithID(). Function Documentation
Creates new color.
Definition at line 14 of file color.c. References Tcolor::b, Tcolor::g, and Tcolor::r. Referenced by InitPlot3d(), InitPolyhedronFromFile(), InitWorldFromMolecule(), main(), NewColorWithID(), Plot3dObjectWithColors(), PlotAtlas(), PlotAtlasRRT(), PlotBifurcations(), PlotConnection(), PlotEnvironment(), PlotForceField(), PlotLink(), PlotQrand(), PlotRRT(), PlotSamples(), and TriangulateAtlas().
Creates new color from another color.
Definition at line 57 of file color.c. References Tcolor::b, Tcolor::g, and Tcolor::r. Referenced by AddLeg2World(), CopyPolyhedron(), GetPolyhedronColor(), InitPolyhedronFromFile(), InitPolyhedronFromTriangles(), NewBox(), NewCylinder(), NewLine(), NewSegments(), NewSphere(), NewSpring(), NewTriangularPrism(), 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 64 of file color.c. References Tcolor::b, Tcolor::g, and Tcolor::r. Referenced by SetColor3dObject().
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 90 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 123 of file color.c. References Tcolor::r. Referenced by PrintPolyhedron().
Gets the green component of a color.
Definition at line 128 of file color.c. References Tcolor::g. Referenced by PrintPolyhedron().
Gets the blue component of a color.
Definition at line 133 of file color.c. References Tcolor::b. Referenced by 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 138 of file color.c. References Tcolor::b, Tcolor::g, and Tcolor::r. Referenced by Plot3dObjectWithColor(), Plot3dObjectWithColors(), PlotLine(), PlotSegments(), PlotVect3d(), PrintMechanism(), and SetColor3dObject().
Deletes the information stored in a Tcolor and frees the allocated memory, if any.
Definition at line 143 of file color.c. Referenced by AddLeg2World(), InitWorldFromMolecule(), main(), PlotAtlas(), PlotAtlasRRT(), PlotBifurcations(), PlotConnection(), PlotEnvironment(), PlotForceField(), PlotLink(), PlotQrand(), PlotRRT(), PlotSamples(), and PrintMechanism(). |
Follow us!