Functions | |
void | Show_Color (char *color_spec) |
void | Show_Color_By_Index (char *types, int *index) |
void | Show_Color_By_Value (char *types, char *colorspace, float *a, float *b, float *c) |
void | PShow_Net_Color (int count, const HC_KEY *keys, char *color_spec) |
void Show_Color | ( | char * | color_spec | ) |
Returns the named color(s) used to render the contents of the currently open segment.
color_spec | - A specification for the desired color setting. Passed by reference. Returned to user. |
The Show Color routines will complain if they're called and the attribute is not actually set in the segment. Use Show_Existence() to avoid this, if necessary.
The internal RGB-to-HLS and HLS-to-RGB routines are not exactly inverse. This might cause Show_Color_By_Value() not to give results matching the loaded values.
void Show_Color_By_Index | ( | char * | types, | |
int * | index | |||
) |
Returns the color map indices used to render the contents of the currently open segment.
types | - A list of geometry types. Passed by reference. Returned to user. | |
index | - The offset in the applicable color map in which the colors are found. The very first entry is at offset zero. Passed by reference. Returned to user. |
void Show_Color_By_Value | ( | char * | types, | |
char * | colorspace, | |||
float * | a, | |||
float * | b, | |||
float * | c | |||
) |
Returns the numerically-defined colors of objects in the currently open segment.
types | - A list of geometry types. Passed by reference. Returned to user. | |
colorspace | - Special constant---either "HLS", "HSV", "HIC", or "RGB". Passed by reference. Returned to user. | |
a | - The location in the given color space. Passed by reference. Returned to user. | |
b | - | |
c | - |
void PShow_Net_Color | ( | int | count, | |
const HC_KEY * | keys, | |||
char * | color_spec | |||
) |
Similar to Show_Color(), but returns the net effective settings along a discrete path of segments.
count | The size of keys | |
keys | An array of HC_KEY's delineating a path of segments. | |
color_spec | A specification for the desired color setting. Passed by reference. Returned to user. |
By default, HOOPS will determine the Net attribute from the last specified key all the way to the root. If you add -1 at the end of the array, the PShow_Net routines will not proceed beyond the end of the last specified key.