1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
|
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _IGESDimen_LeaderArrow_HeaderFile
#define _IGESDimen_LeaderArrow_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineHandle.hxx>
#include <Handle_IGESDimen_LeaderArrow.hxx>
#include <Standard_Real.hxx>
#include <gp_XY.hxx>
#include <Handle_TColgp_HArray1OfXY.hxx>
#include <IGESData_IGESEntity.hxx>
#include <Standard_Integer.hxx>
class TColgp_HArray1OfXY;
class Standard_OutOfRange;
class gp_XY;
class gp_Pnt2d;
class gp_Pnt;
//! defines LeaderArrow, Type <214> Form <1-12>
//! in package IGESDimen
//! Consists of one or more line segments except when
//! leader is part of an angular dimension, with links to
//! presumed text item
class IGESDimen_LeaderArrow : public IGESData_IGESEntity
{
public:
Standard_EXPORT IGESDimen_LeaderArrow();
//! This method is used to set the fields of the class
//! LeaderArrow
//! - height : ArrowHead height
//! - width : ArrowHead width
//! - depth : Z Depth
//! - position : ArrowHead coordinates
//! - segments : Segment tail coordinate pairs
Standard_EXPORT void Init (const Standard_Real height, const Standard_Real width, const Standard_Real depth, const gp_XY& position, const Handle(TColgp_HArray1OfXY)& segments) ;
//! Changes FormNumber (indicates the Shape of the Arrow)
//! Error if not in range [0-12]
Standard_EXPORT void SetFormNumber (const Standard_Integer form) ;
//! returns number of segments
Standard_EXPORT Standard_Integer NbSegments() const;
//! returns ArrowHead height
Standard_EXPORT Standard_Real ArrowHeadHeight() const;
//! returns ArrowHead width
Standard_EXPORT Standard_Real ArrowHeadWidth() const;
//! returns Z depth
Standard_EXPORT Standard_Real ZDepth() const;
//! returns ArrowHead co-ordinates
Standard_EXPORT gp_Pnt2d ArrowHead() const;
//! returns ArrowHead co-ordinates after Transformation
Standard_EXPORT gp_Pnt TransformedArrowHead() const;
//! returns segment tail co-ordinates.
//! raises exception if Index <= 0 or Index > NbSegments
Standard_EXPORT gp_Pnt2d SegmentTail (const Standard_Integer Index) const;
//! returns segment tail co-ordinates after Transformation.
//! raises exception if Index <= 0 or Index > NbSegments
Standard_EXPORT gp_Pnt TransformedSegmentTail (const Standard_Integer Index) const;
DEFINE_STANDARD_RTTI(IGESDimen_LeaderArrow)
protected:
private:
Standard_Real theArrowHeadHeight;
Standard_Real theArrowHeadWidth;
Standard_Real theZDepth;
gp_XY theArrowHead;
Handle(TColgp_HArray1OfXY) theSegmentTails;
};
#endif // _IGESDimen_LeaderArrow_HeaderFile
|