0027961: Visualization - remove unused and no more working OpenGl_AVIWriter
[occt.git] / src / Graphic3d / Graphic3d_TextureMap.hxx
1 // Created on: 1997-07-28
2 // Created by: Pierre CHALAMET
3 // Copyright (c) 1997-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #ifndef _Graphic3d_TextureMap_HeaderFile
18 #define _Graphic3d_TextureMap_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22
23 #include <Graphic3d_TextureRoot.hxx>
24 #include <Graphic3d_TypeOfTexture.hxx>
25 #include <Standard_Boolean.hxx>
26 #include <Graphic3d_LevelOfTextureAnisotropy.hxx>
27 class TCollection_AsciiString;
28
29
30 class Graphic3d_TextureMap;
31 DEFINE_STANDARD_HANDLE(Graphic3d_TextureMap, Graphic3d_TextureRoot)
32
33 //! This is an abstract class for managing texture applyable on polygons.
34 class Graphic3d_TextureMap : public Graphic3d_TextureRoot
35 {
36
37 public:
38
39   
40
41   //! enable texture smoothing
42   Standard_EXPORT void EnableSmooth();
43   
44
45   //! Returns TRUE if the texture is smoothed.
46   Standard_EXPORT Standard_Boolean IsSmoothed() const;
47   
48
49   //! disable texture smoothing
50   Standard_EXPORT void DisableSmooth();
51   
52
53   //! enable texture modulate mode.
54   //! the image is modulate with the shading of the surface.
55   Standard_EXPORT void EnableModulate();
56   
57
58   //! disable texture modulate mode.
59   //! the image is directly decal on the surface.
60   Standard_EXPORT void DisableModulate();
61   
62
63   //! Returns TRUE if the texture is modulate.
64   Standard_EXPORT Standard_Boolean IsModulate() const;
65   
66
67   //! use this methods if you want to enable
68   //! texture repetition on your objects.
69   Standard_EXPORT void EnableRepeat();
70   
71
72   //! use this methods if you want to disable
73   //! texture repetition on your objects.
74   Standard_EXPORT void DisableRepeat();
75   
76
77   //! Returns TRUE if the texture repeat is enable.
78   Standard_EXPORT Standard_Boolean IsRepeat() const;
79   
80   //! @return level of anisontropy texture filter.
81   //! Default value is Graphic3d_LOTA_OFF.
82   Standard_EXPORT Graphic3d_LevelOfTextureAnisotropy AnisoFilter() const;
83   
84   //! @param theLevel level of anisontropy texture filter.
85   Standard_EXPORT void SetAnisoFilter (const Graphic3d_LevelOfTextureAnisotropy theLevel);
86
87
88
89
90   DEFINE_STANDARD_RTTIEXT(Graphic3d_TextureMap,Graphic3d_TextureRoot)
91
92 protected:
93
94   
95   Standard_EXPORT Graphic3d_TextureMap(const TCollection_AsciiString& theFileName, const Graphic3d_TypeOfTexture theType);
96   
97   Standard_EXPORT Graphic3d_TextureMap(const Handle(Image_PixMap)& thePixMap, const Graphic3d_TypeOfTexture theType);
98
99
100
101 private:
102
103
104
105
106 };
107
108
109
110
111
112
113
114 #endif // _Graphic3d_TextureMap_HeaderFile