コード例 #1
0
ファイル: LabelShape.cs プロジェクト: zyouhua/nvwa
 public LabelShape()
 {
     mRectShapes = new List<RectShape>();
     mPullPoint = new Point2I(default(int), default(int));
     mLabelStream = null;
     mLabel = null;
 }
コード例 #2
0
ファイル: LabelShape.cs プロジェクト: zyouhua/weilai
 public LabelShape()
 {
     mRectShapes = new List<RectShape>();
     mPullPoint = new Point2I(default(int), default(int));
     mPullState = PullState_.mNone_;
     mMoveState = MoveState_.mNone_;
     mLabelStream = null;
     mLabel = null;
 }
コード例 #3
0
ファイル: LabelShape.cs プロジェクト: zyouhua/nvwa
 public void _initLabel(ILabel nlabel)
 {
     base._initRect(nlabel);
     base._setLabelShape(this);
     mLabel = nlabel;
     ShapeDescriptorSingleton shapeDescriptorSingleton_ = __singleton<ShapeDescriptorSingleton>._instance();
     mLabelStream = shapeDescriptorSingleton_._labelDescriptor(nlabel._styleName());
     List<IRect> rects_ = nlabel._getRects();
     if (null == rects_)
     {
         return;
     }
     int index_ = 0;
     foreach (IRect i in rects_)
     {
         RectShape rect_ = new RectShape();
         rect_._initRect(i);
         rect_._setLabelShape(this);
         rect_._setIndex(index_);
         mRectShapes.Add(rect_);
         index_++;
     }
 }