00001 // Copyright (c) 1998-2014 by Tech Soft 3D, Inc. 00002 // 00003 // The information contained herein is confidential and proprietary to Tech Soft 3D, Inc., 00004 // and considered a trade secret as defined under civil and criminal statutes. 00005 // Tech Soft 3D, Inc. shall pursue its civil and criminal remedies in the event of 00006 // unauthorized use or misappropriation of its trade secrets. Use of this information 00007 // by anyone other than authorized employees of Tech Soft 3D, Inc. is granted only under 00008 // a written non-disclosure agreement, expressly prescribing the scope and manner of such use. 00009 00010 #pragma once 00011 00012 #include "SegmentOrganizer.h" 00013 00014 #include <HUtility.h> 00015 00016 #include <slapi/model/entities.h> 00017 #include <slapi/model/edge.h> 00018 00019 #include <vector> 00020 00021 class LinesImporter 00022 { 00023 public: 00024 LinesImporter(SegmentOrganizer& SegmentOrganizer); 00025 00026 bool Import(SUEntitiesRef& entities); 00027 00028 private: 00029 LinesImporter(const LinesImporter&); 00030 LinesImporter& operator=(const LinesImporter&); 00031 00032 bool ImportEdge(SUEdgeRef& suEdge); 00033 bool ImportEdgeGeometry(SUEdgeRef& suEdge, HPoint& pointA, HPoint& pointB); 00034 bool InsertLine(SUEdgeRef& suEdge, const HPoint& pointA, const HPoint& pointB); 00035 00036 private: 00037 SegmentOrganizer& m_segmentOrganizer; 00038 };