b311480e |
1 | -- Created on: 1997-07-28 |
2 | -- Created by: Pierre CHALAMET |
3 | -- Copyright (c) 1997-1999 Matra Datavision |
973c2be1 |
4 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | -- |
973c2be1 |
6 | -- This file is part of Open CASCADE Technology software library. |
b311480e |
7 | -- |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
13 | -- |
973c2be1 |
14 | -- Alternatively, this file may be used under the terms of Open CASCADE |
15 | -- commercial license or contractual agreement. |
b311480e |
16 | |
bf75be98 |
17 | class TextureEnv from Graphic3d |
7fd59977 |
18 | |
bf75be98 |
19 | inherits TextureRoot from Graphic3d |
7fd59977 |
20 | |
bf75be98 |
21 | ---Purpose: This class provides environment texture usable only in Visual3d_ContextView |
7fd59977 |
22 | |
bf75be98 |
23 | uses |
24 | |
25 | NameOfTextureEnv from Graphic3d, |
26 | AsciiString from TCollection |
7fd59977 |
27 | |
28 | raises |
bf75be98 |
29 | |
30 | OutOfRange from Standard |
31 | |
32 | is |
33 | |
34 | Create (theFileName : AsciiString from TCollection) returns mutable TextureEnv from Graphic3d; |
35 | ---Purpose: Creates an environment texture from a file. |
36 | |
37 | Create (theName : NameOfTextureEnv from Graphic3d) returns mutable TextureEnv from Graphic3d; |
38 | ---Purpose: Creates an environment texture from a predefined texture name set. |
39 | |
40 | Name (me) returns NameOfTextureEnv from Graphic3d; |
41 | ---Purpose: |
42 | -- Returns the name of the predefined textures or NOT_ENV_UNKNOWN |
43 | -- when the name is given as a filename. |
44 | ---Level: Public |
45 | |
46 | NumberOfTextures (myclass) returns Integer from Standard; |
47 | ---Purpose: |
48 | -- Returns the number of predefined textures. |
49 | ---Level: Public |
50 | |
51 | TextureName (myclass; theRank: Integer from Standard) |
52 | returns AsciiString from TCollection |
53 | raises OutOfRange from Standard; |
54 | ---Purpose: |
55 | -- Returns the name of the predefined texture of rank <aRank> |
56 | ---Trigger: when <aRank> is < 1 or > NumberOfTextures. |
57 | ---Level: Public |
7fd59977 |
58 | |
59 | fields |
7fd59977 |
60 | |
bf75be98 |
61 | myName : NameOfTextureEnv from Graphic3d; |
62 | |
63 | end TextureEnv; |