StyleRepository3DF.h
1 // Copyright (c) Tech Soft 3D
2 //
3 // The information contained herein is confidential and proprietary to Tech Soft 3D, Inc.,
4 // and considered a trade secret as defined under civil and criminal statutes.
5 // Tech Soft 3D, Inc. shall pursue its civil and criminal remedies in the event of
6 // unauthorized use or misappropriation of its trade secrets. Use of this information
7 // by anyone other than authorized employees of Tech Soft 3D, Inc. is granted only under
8 // a written non-disclosure agreement, expressly prescribing the scope and manner of such use.
9 
10 #pragma once
11 
12 #include "StyleRepository.h"
13 
14 #include <hc.h>
15 
16 class StyleRepository3DF : public StyleRepository
17 {
18 public:
19  StyleRepository3DF(SegmentKey const & includeSegmentKey,
20  TextureWriter& textureWriter, ImageRepository& imageRepository, TextureRepository& textureRepository);
21 
22 private:
24  StyleRepository3DF& operator=(const StyleRepository3DF&);
25 
26  virtual void ApplyLineColor(SegmentKey & segment, SUColor const & color, bool usesOpacity);
27  virtual void ApplyFaceColor(SegmentKey & segment, bool isFront, SUColor const & color, bool usesOpacity);
28  virtual void ApplyFaceTexture(SegmentKey & segment, bool isFront, std::string const & textureName);
29  virtual bool ImportTexture(int32_t textureId, std::size_t parameterOffset, std::string & out_textureName);
30 
31 private:
32  static const std::size_t s_parameterOffset = 3;
33 
34 };
35 
36 bool operator==(const StyleRepository::FaceMaterialAndTextureId& op1,
37  const StyleRepository::FaceMaterialAndTextureId& op2);
38 bool operator<(const StyleRepository::FaceMaterialAndTextureId& op1,
39  const StyleRepository::FaceMaterialAndTextureId& op2);
Definition: StyleRepository3DF.h:16