color.c File Reference IntroductionImplementation of the functions working on colors as red/green/blue components. Definition in file color.c.
Function Documentation◆ NewColor()
Creates new color.
Definition at line 16 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(), ReadOFF(), and TriangulateAtlas(). ◆ NewColorWithID()
◆ CopyColor()Creates new color from another color.
Definition at line 59 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(), SimplifyPolyhedron(), and StartNew3dObject(). ◆ NullColor()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 66 of file color.c. References Tcolor::b, Tcolor::g, and Tcolor::r. Referenced by SetColor3dObject(). ◆ SameColor()◆ Add2Color()
◆ ScaleColor()
◆ AccumulateColor()◆ CostColor()
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 99 of file color.c. References Tcolor::b, Tcolor::g, and Tcolor::r. Referenced by PlotChartAsPolygon(), and TriangulateAtlas(). ◆ SetRed()
◆ SetGreen()
◆ SetBlue()
◆ GetRed()
Gets the red component of a color.
Definition at line 132 of file color.c. References Tcolor::r. Referenced by body2SDF(), PrintLink(), PrintPolyhedron(), and SavePolyhedron(). ◆ GetGreen()
Gets the green component of a color.
Definition at line 137 of file color.c. References Tcolor::g. Referenced by body2SDF(), PrintLink(), PrintPolyhedron(), and SavePolyhedron(). ◆ GetBlue()
Gets the blue component of a color.
Definition at line 142 of file color.c. References Tcolor::b. Referenced by body2SDF(), PrintLink(), PrintPolyhedron(), and SavePolyhedron(). ◆ PrintColor()
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 147 of file color.c. References Tcolor::b, Tcolor::g, and Tcolor::r. Referenced by Plot3dObjectWithColor(), Plot3dObjectWithColors(), PlotLine(), PlotSegments(), PlotVect3d(), PrintMechanism(), and SetColor3dObject(). ◆ DeleteColor()
Deletes the information stored in a Tcolor and frees the allocated memory, if any.
Definition at line 152 of file color.c. Referenced by AddLeg2World(), InitWorldFromMolecule(), main(), PlotAtlas(), PlotAtlasRRT(), PlotBifurcations(), PlotConnection(), PlotEnvironment(), PlotForceField(), PlotLink(), PlotQrand(), PlotRRT(), PlotSamples(), and PrintMechanism(). |
Follow us!