Logo Search packages:      
Sourcecode: inkscape version File versions

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

Reads the Inkscape::XML::Node, and initializes SPFeTurbulence 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 96 of file turbulence.cpp.

References sp_object_read_attr().

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

    /*LOAD ATTRIBUTES FROM REPR HERE*/
    sp_object_read_attr(object, "baseFrequency");
    sp_object_read_attr(object, "numOctaves");
    sp_object_read_attr(object, "seed");
    sp_object_read_attr(object, "stitchTiles");
    sp_object_read_attr(object, "type");
}


Generated by  Doxygen 1.6.0   Back to index