+ wxPoint2DDouble* todraw = new wxPoint2DDouble[5];
+ todraw[0].m_x=-30;
+ todraw[0].m_y=-20;
+ todraw[1].m_x=100;
+ todraw[1].m_y=0;
+ todraw[2].m_x=100;
+ todraw[2].m_y=100;
+ todraw[3].m_x=50;
+ todraw[3].m_y=150;
+ todraw[4].m_x=0;
+ todraw[4].m_y=100;
+
+ wxCanvasPolygon* poly= new wxCanvasPolygon(5,todraw);
+ poly->SetBrush(wxBrush(wxColour(100,17,255),wxCROSSDIAG_HATCH ));
+ poly->SetPen(wxPen(wxColour(9,115,64 ),4,wxSOLID));
+ group1->Prepend( poly );
+
+ wxPoint2DDouble* todraw4 = new wxPoint2DDouble[4];
+
+ todraw4[0].m_x=-50;
+ todraw4[0].m_y=-30;
+ todraw4[1].m_x=-50;
+ todraw4[1].m_y=70;
+ todraw4[2].m_x=150;
+ todraw4[2].m_y=70;
+ todraw4[3].m_x=150;
+ todraw4[3].m_y=-30;
+
+ wxCanvasPolygon* poly5= new wxCanvasPolygon(4,todraw4);
+ poly5->SetBrush(wxBrush(wxColour(100,17,255),wxCROSSDIAG_HATCH ));
+// poly5->SetBrush(wxBrush(wxColour(100,17,255),wxSOLID ));
+// poly5->SetPen(wxPen(wxColour(9,115,64 ),1,wxSOLID));
+ poly5->SetPen(wxPen(wxColour(9,115,64 ),4,wxSOLID));
+ wxCanvasObjectGroup* group3 = new wxCanvasObjectGroup(0,0);
+ group3->Prepend( poly5 );
+
+ wxList* pointlist = new wxList();
+ wxPoint2DDouble* point = new wxPoint2DDouble(0,0);
+ pointlist->Append((wxObject*)point);
+ point = new wxPoint2DDouble(-300,100);
+ pointlist->Append((wxObject*)point);
+ point = new wxPoint2DDouble(-100,100);
+ pointlist->Append((wxObject*)point);
+ point = new wxPoint2DDouble(-100,0);
+ pointlist->Append((wxObject*)point);
+ point = new wxPoint2DDouble(-200,50);
+ pointlist->Append((wxObject*)point);
+
+ wxCanvasPolygonL* poly15= new wxCanvasPolygonL(pointlist,TRUE);
+ poly15->SetColour1(wxColour(250,78,216 ));
+ poly15->SetColour2(*wxRED);
+ poly15->SetBrush(wxBrush(gs_bmp36_mono));
+ poly15->SetTransParent(TRUE);
+ poly15->SetPen(wxPen(*wxRED,4,wxSOLID));
+ group1->Prepend( poly15 );
+
+ wxList* pointlist2 = new wxList();
+ wxPoint2DDouble* point2 = new wxPoint2DDouble(-400,100);
+ pointlist2->Append((wxObject*)point2);
+ point2 = new wxPoint2DDouble(-400,200);
+ pointlist2->Append((wxObject*)point2);
+ point2 = new wxPoint2DDouble(0,200);
+ pointlist2->Append((wxObject*)point2);
+ point2 = new wxPoint2DDouble(0,100);
+ pointlist2->Append((wxObject*)point2);
+ point2 = new wxPoint2DDouble(-200,175);
+ pointlist2->Append((wxObject*)point2);
+
+ wxCanvasPolylineL* poly16= new wxCanvasPolylineL(pointlist2,TRUE);
+ poly16->SetPen(wxPen(wxColour(9,115,64 ),4,wxSOLID));
+ m_datatree->Prepend( poly16 );
+
+
+ wxPoint2DDouble* todraw6 = new wxPoint2DDouble[5];
+ todraw6[0].m_x=50;
+ todraw6[0].m_y=305;
+ todraw6[1].m_x=-200;
+ todraw6[1].m_y=200;
+ todraw6[2].m_x=0;
+ todraw6[2].m_y=500;
+ todraw6[3].m_x=300;
+ todraw6[3].m_y=200;
+ todraw6[4].m_x=-300;
+ todraw6[4].m_y=-300;
+
+ wxCanvasPolygon* poly17= new wxCanvasPolygon(5,todraw6,TRUE);
+ poly17->SetBrush(wxBrush(wxColour(100,17,255),wxSOLID));
+ poly17->SetPen(wxPen(wxColour(10,17,25),16,wxLONG_DASH ));
+ poly17->SetColour1(*wxGREEN);
+ poly17->SetColour2(*wxRED);
+ poly17->SetGradient(TRUE,wxPen(wxColour(0,0,0),0,wxSOLID),0);
+ wxCanvasObjectRef* m_refc = new wxCanvasObjectRef(0,-200, poly17);
+ m_refc->SetRotation(90);
+ m_datatree->Prepend( m_refc );
+ wxCanvasObjectRef* m_refd = new wxCanvasObjectRef(200,-50, poly17);
+ m_refd->SetRotation(0);
+ m_datatree->Append( m_refd );
+
+ //now make two references to group1 into root group of the canvas
+ m_ref = new MywxCanvasObjectRef(350,-200, group1);
+ m_ref->SetRotation(25);
+ //TODO if rotation is 0 scaling is weird
+// m_ref->SetScale(2,3.2);
+ m_datatree->Append( m_ref );
+
+ group3->Prepend( m_ref );