ArcItem Class

 
Declaration
class ArcItem : public GeomItemBase
 
Description
The arc item.
 
Namespace
NP::NestKernel::Data::GeometryItem
 
Include File
ArcItem.h
 
Operations implements NPData interface
      Clone                                     Clone the arc item.
 
Operations implements GeomItem interface
      GetType                                 Get the type of the geometry item.
      GetStartPoint                       Get the start point of the geometry item.
      SetStartPoint                       Set the start point of the geometry item.
        GetEndPoint                        Get the end point of the geometry item.
        GetPointByPercent           Get the point on the geometry item by the percent.
        GetPercentByPoint           Get the percent by the point on the geometry item.
        Transform                       Transform the geometry item.
        Reverse                                Reverse the geometry item, actually the shape is same, we only change the direction.
        Distance                               Get the distance from the geometry item to point.
    GetRectBox                         Get the boundary rect of the geometry item.
 
Other Operations
     IsCircle                           whether this arc is a circle.
        SetBaseAngle                    Set the start angle of the arc item.
      GetBaseAngle/GetStartAngle       Get the start angle of the arc item.
      GetRadius                            Get the radius of the arc item.
      SetRadius                            Set the radius of the arc item.
      GetSweepAngle                 Get the sweep angle of the arc item.
      SetSweepAngle                 Set the sweep angle of the arc item.
      LikeLine                                Whether the arc item like a line.
      GetArcAngle                       Get the arc angle.
     ExplodeLineNum               Explode the arc item to line items.
 

Copyright © 2005-2013 by TAOSoft Corporation, All rights reserved.