2.2.4.40.4 Scale::Scale

Description

Default constructor which constructs an unattached Scale object. The member function IsValid() of the base class OriginObject can be used to determine if the object is valid (attached to an internal Origin axis)


Copy constructor which constructs a Scale object from another Scale object.

Syntax

Scale( )


Scale( Scale & scale )

Parameters

scale
[input] the source scale object

Return

Examples

EX1

void    Scale_Scale_ex1()
{
    GraphPage gp;
    gp.Create("origin");

    GraphLayer     gl(gp.GetName(),0);
       
    // Intialize a Scale object from the X-axis scale of the GraphLayer
    // (gl.X is the X-axis scale for the layer attched to "gl").
    Scale            s(gl.X);
    
    // Display the "From" property:
    out_double("From = ", s.From);
}

Remark

See Also

Header to Include

origin.h