ColorComponent

This class represents the concept ColorComponent.

Class

class Appearance
class ColorComponent
   property R
      range double (64 bit), cardinality [1, 1]
   property G
      range double (64 bit), cardinality [1, 1]
   property B
      range double (64 bit), cardinality [1, 1]
   property W
      range double (64 bit), cardinality [1, 1]    

Example

Here you can find code snippits that show how the API call ColorComponent can be used.

__int64 rdfModel = CreateModel();

if (rdfModel) {
    __int64 classColor = GetClassByName(rdfModel, "Color"),
            classColorComponent = GetClassByName(rdfModel, "ColorComponent"),
            classCube = GetClassByName(rdfModel, "Cube"),
            classMaterial = GetClassByName(rdfModel, "Material");

    __int64 propertyAmbient = GetPropertyByName(rdfModel, "ambient"),
            propertyB = GetPropertyByName(rdfModel, "B"),
            propertyColor = GetPropertyByName(rdfModel, "color"),
            propertyDiffuse = GetPropertyByName(rdfModel, "diffuse"),
            propertyEmissive = GetPropertyByName(rdfModel, "emissive"),
            propertyG = GetPropertyByName(rdfModel, "G"),
            propertyLength = GetPropertyByName(rdfModel, "length"),
            propertyMaterial =