Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

static void sp_fepointlight_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 100 of file pointlight.cpp.

References sp_object_read_attr().

    if (((SPObjectClass *) fePointLight_parent_class)->build) {
        ((SPObjectClass *) fePointLight_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");

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

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index