LineItem Class

 
Declaration
class LineItem : public GeomItemBase
 
Description
The line item.
 
Namespace
NP::NestKernel::Data::GeometryItem
 
Include File
LineItem.h
 
Operations implements NPData interface
      Clone                                     Clone the line 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
      SetEndPoint                        Set the end point of the line item.
      GetLength                            Get the length of the line item.
      SetLength                            Set the length of the line item.
      GetBaseAngle                    Get the angle of the line item.
      SetBaseAngle                     Set the angle of the line item.
      GetDX                                    Get the X offset of the line item.
      GetDX                                    Get the Y offset of the line item.
      InnerCrossWithLine          Whether these two line items inner-cross with each other.
      CrossWithLine                    Whether these two line items cross with each other.
      CheckSide                           Check the position relationship with the point.
      GetDistance                        Get the distance to the point.
      GetVerticalPoint                Get the project point with the point.
      MoveTowardLeft               Move the line along its left side.
       CoincideWith                      Whether two line items coincide.
 

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