GraphicsColorMapper Object
Description
The GraphicsColorMapper object maps scalar values to colors. Use methods provided on the object to define the scalar values and colors. The same object can be used to define the mapping for multiple graphics primitives using the ColorMapper property on the primitives.
Methods
Delete |
Method that deletes the GraphicsColorMapper object. |
GetColors |
Method that gets all of the colors in the map. |
GetValues |
Method that gets all of the values in the map. |
PutColors |
Method that sets all of the colors in the map. This will replace all existing colors currently defined for the map. |
PutValues |
Method that sets all of the values in the map. This will replace all existing values currently defined for the map. |
Properties
Color |
Read-write property that gets and sets the color at a given index in the set. |
ColorCount |
Property that returns the number of colors defined within the set. |
MappedColor |
Property that returns the color at a given value in the map. This property is informational only and need not be used when assigning a color map to a primitive. |
Type |
Returns an ObjectTypeEnum indicating this object's type. |
Value |
Read-write property that gets and sets the value at a given index in the set. |
ValueCount |
Property that returns the number of values defined within the set. |
Accessed From
GraphicsDataSets.CreateColorMapper,
TriangleFanGraphics.ColorMapper,
TriangleGraphics.ColorMapper,
TriangleStripGraphics.ColorMapper
Samples
Client graphics texture-based color mapping |
This test applies texture coordinates expressing distance from the origin to 'the triangle mesh of whatever Part you have open. It then creates either a discrete-band or continuous color mapper and allows you to adjust the values of the mapper to change the range of values that map to various colors. |
Version
Introduced in version 2010