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/polyline3d.h> 00018 00019 #include <vector> 00020 00021 class PolylinesImporter 00022 { 00023 public: 00024 PolylinesImporter(SegmentOrganizer& segmentOrganizer); 00025 00026 bool Import(SUEntitiesRef& entities); 00027 00028 private: 00029 PolylinesImporter(const PolylinesImporter&); 00030 PolylinesImporter& operator=(const PolylinesImporter&); 00031 00032 bool ImportPolyline(SUPolyline3dRef& suPolyline); 00033 bool ImportPolylineGeometry(SUPolyline3dRef& suPolyline, std::vector<HPoint>& points); 00034 bool InsertPolyline(SUPolyline3dRef& suPolyline, const std::vector<HPoint>& points); 00035 00036 private: 00037 SegmentOrganizer& m_segmentOrganizer; 00038 };