GraphObjectBase::GraphObjectBase

Description

Default constructor which creates a GraphObjectBase which is not attached to an internal graphic object. It should be initialized using "GraphObjects" method of the Layer class because all the GraphObject's are conatined in layers.


Copy Constructor: The new GrpahObjectBase object created is attached to the internal graphic object goOriginal was attached to. If goOriginal was invalid (not attached) so will be the new object.

Syntax

GraphObjectBase( )

GraphObjectBase( GraphObjectBase & goOriginal )

GraphObjectBase( LPCSTR lpcsz )

Parameters

goOriginal

Return

Examples

EX1

void GraphObjectBase_GraphObjectBase_ex1()
{
    GraphPage gp;
    gp.Create("origin");
    GraphLayer glMyLayer(gp.GetName(), 0);
    
    GraphObjectBase goMyObj = glMyLayer.GraphObjects("YL");
    out_str(goMyObj.GetName());
}


EX2

void GraphObjectBase_GraphObjectBase_ex2()        
{
    GraphPage gp;
    gp.Create("origin");
    GraphLayer glMyLayer(gp.GetName(), 0);
    
    GraphObject goOriginal;
    goOriginal = glMyLayer.GraphObjects("YL");
    GraphObjectBase goNew(goOriginal);
    out_str(goNew.GetName());
}

Remark

See Also

header to Include

origin.h