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 "ImageRepository.h" 00013 00014 #include <slapi/model/image.h> 00015 00016 #include <hc.h> 00017 00018 #include <string> 00019 00020 class ImageTexturedShellImporter 00021 { 00022 public: 00023 ImageTexturedShellImporter(ImageRepository& imageRepository); 00024 00025 HC_KEY Import(SUImageRef& image); 00026 00027 private: 00028 ImageTexturedShellImporter(const ImageTexturedShellImporter&); 00029 ImageTexturedShellImporter& operator=(const ImageTexturedShellImporter&); 00030 00031 HC_KEY CreateShellForImage(SUImageRef& image); 00032 void ApplyLocalTexture(HC_KEY shellKey, const std::string& imageName); 00033 00034 private: 00035 ImageRepository& m_imageRepository; 00036 };