Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages | Examples

LineWeight.cpp

#include "whiptk/whip_toolkit.h"

extern WT_File whip_file; //Assume this has been opened for writing elsewhere.

WT_Result LineWeight()
{
    //Store the previous line weight.
    WT_Line_Weight previous_weight = whip_file.desired_rendition().line_weight();
    //Set the new line weight.
    whip_file.desired_rendition().line_weight() = 100;
    //Create some geometry.
    int x=0,y=0;
    WT_Logical_Point vP[2];
    vP[0] = WT_Logical_Point(x,y);
    vP[1] = WT_Logical_Point(x+100,y);
    WT_Polyline p1 (2, vP, WD_True);
    //Serialize it.
    WD_CHECK(p1.serialize (whip_file));
    
    //Restore the previous weight.
    whip_file.desired_rendition().line_weight() = previous_weight;
    return WT_Result::Success;
}

Generated on Mon May 9 23:16:54 2005 for Autodesk DWF Toolkit by  doxygen 1.4.1