b311480e |
1 | -- Created on: 1997-04-23 |
2 | -- Created by: Alexander BRIVIN |
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. |
7fd59977 |
16 | |
17 | class PointAspect from VrmlConverter inherits TShared from MMgt |
18 | |
19 | ---Purpose: qualifies the aspect properties for |
ff8178ef |
20 | -- the VRML conversation of a Point Set. |
7fd59977 |
21 | |
22 | uses |
23 | |
24 | Material from Vrml |
25 | |
26 | is |
27 | |
28 | Create |
6e33d3ce |
29 | returns PointAspect from VrmlConverter; |
7fd59977 |
30 | |
31 | ---Purpose: create a default PointAspect. |
32 | -- Default value: HasMaterial = False - a line hasn't own material (color) |
33 | |
34 | Create (aMaterial: Material from Vrml; |
35 | OnOff: Boolean from Standard) |
6e33d3ce |
36 | returns PointAspect from VrmlConverter; |
7fd59977 |
37 | |
38 | SetMaterial(me: mutable; aMaterial: Material from Vrml) |
39 | is static; |
40 | |
6e33d3ce |
41 | Material(me) returns Material from Vrml |
7fd59977 |
42 | is static; |
43 | |
44 | SetHasMaterial(me: mutable; OnOff: Boolean from Standard) |
45 | ---Purpose: defines the necessary of writing own Material from Vrml into output OStream. |
46 | -- By default False - the material is not writing into OStream, |
47 | -- True - the material is writing. |
48 | is static; |
49 | |
50 | HasMaterial(me) returns Boolean from Standard |
51 | ---Purpose: returns True if the materials is writing into OStream. |
52 | is static; |
53 | |
54 | |
55 | fields |
56 | |
57 | myMaterial : Material from Vrml; |
58 | myHasMaterial : Boolean from Standard; |
59 | |
60 | end PointAspect; |