Logo Search packages:      
Sourcecode: inkscape version File versions

static void sp_fespotlight_build ( SPObject object,
SPDocument document,
Inkscape::XML::Node repr 
) [static]

Reads the Inkscape::XML::Node, and initializes SPPointLight variables. For this to get called, our name must be associated with a repr via "sp_object_type_register". Best done through sp-object-repr.cpp's repr_name_entries array.

Definition at line 110 of file sp-fespotlight.cpp.

References sp_object_read_attr().

{
    if (((SPObjectClass *) feSpotLight_parent_class)->build) {
        ((SPObjectClass *) feSpotLight_parent_class)->build(object, document, repr);
    }

    //Read values of key attributes from XML nodes into object.
    sp_object_read_attr(object, "x");
    sp_object_read_attr(object, "y");
    sp_object_read_attr(object, "z");
    sp_object_read_attr(object, "pointsAtX");
    sp_object_read_attr(object, "pointsAtY");
    sp_object_read_attr(object, "pointsAtZ");
    sp_object_read_attr(object, "specularExponent");
    sp_object_read_attr(object, "limitingConeAngle");

//is this necessary?
    sp_document_add_resource(document, "fespotlight", object);
}


Generated by  Doxygen 1.6.0   Back to index