This file is indexed.

/usr/include/oce/Graphic3d_MaterialAspect.hxx is in liboce-visualization-dev 0.17.2-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _Graphic3d_MaterialAspect_HeaderFile
#define _Graphic3d_MaterialAspect_HeaderFile

#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Macro.hxx>

#include <Standard_ShortReal.hxx>
#include <Quantity_Color.hxx>
#include <Standard_Boolean.hxx>
#include <Graphic3d_TypeOfMaterial.hxx>
#include <Graphic3d_NameOfMaterial.hxx>
#include <TCollection_AsciiString.hxx>
#include <Standard_Real.hxx>
#include <Graphic3d_TypeOfReflection.hxx>
#include <Standard_CString.hxx>
#include <Standard_Integer.hxx>
class Graphic3d_MaterialDefinitionError;
class Standard_OutOfRange;
class Quantity_Color;


//! This class allows the definition of the type of a surface.
//! Aspect attributes of a 3d face.
//! Keywords: Material, FillArea, Shininess, Ambient, Color, Diffuse,
//! Specular, Transparency, Emissive, ReflectionMode,
//! BackFace, FrontFace, Reflection, Absorbtion
class Graphic3d_MaterialAspect 
{
public:

  DEFINE_STANDARD_ALLOC

  
  //! Creates a material from default values.
  Standard_EXPORT Graphic3d_MaterialAspect();
  
  //! Creates a generic material calls <AName>
  Standard_EXPORT Graphic3d_MaterialAspect(const Graphic3d_NameOfMaterial AName);
  
  //! Increases or decreases the luminosity of <me>.
  //! <ADelta> is a signed percentage.
  Standard_EXPORT   void IncreaseShine (const Standard_Real ADelta) ;
  
  //! Modifies the reflection properties of the surface.
  //! Category: Methods to modify the class definition
  //! Warning: Raises MaterialDefinitionError if <AValue> is
  //! a negative value or greater than 1.0.
  Standard_EXPORT   void SetAmbient (const Standard_Real AValue) ;
  
  //! Modifies the reflection properties of the surface.
  //! Category: Methods to modify the class definition
  //! Warning: Raises MaterialDefinitionError if <AValue> is a
  //! negative value or greater than 1.0.
  Standard_EXPORT   void SetDiffuse (const Standard_Real AValue) ;
  
  //! Modifies the reflection properties of the surface.
  //! Category: Methods to modify the class definition
  //! Warning: Raises MaterialDefinitionError if <AValue> is a
  //! negative value or greater than 1.0.
  Standard_EXPORT   void SetEmissive (const Standard_Real AValue) ;
  
  //! Modifies the luminosity of the surface.
  //! Category: Methods to modify the class definition
  //! Warning: Raises MaterialDefinitionError if <AValue> is a
  //! negative value or greater than 1.0.
  Standard_EXPORT   void SetShininess (const Standard_Real AValue) ;
  
  //! Modifies the reflection properties of the surface.
  //! Category: Methods to modify the class definition
  //! Warning: Raises MaterialDefinitionError if <AValue> is a
  //! negative value or greater than 1.0.
  Standard_EXPORT   void SetSpecular (const Standard_Real AValue) ;
  
  //! Modifies the transparency coefficient of the surface.
  //! <AValue> = 0. opaque. (default)
  //! <AValue> = 1. transparent.
  //! Transparency is applicable to materials that have at least
  //! one of reflection modes (ambient, diffuse, specular or emissive)
  //! enabled. See also SetReflectionModeOn() and SetReflectionModeOff() methods.
  //!
  //! NOTE: In order for transparency specified through this method to
  //! take effect, it is necessary to enable transparency
  //! in the viewer. This can be done either directly -
  //! see Visual3d_ViewManager::SetTransparency(Standard_Boolean),
  //! or indirectly - by calling AIS_InteractiveObject::SetTransparency()
  //! before an object is added to an interactive context, or by
  //! calling AIS_InteractiveContext::SetTransparency() for a given
  //! interactive object already displayed.
  //! Category: Methods to modify the class definition
  //! Warning: Raises MaterialDefinitionError if <AValue> is a
  //! negative value or greater than 1.0.
  Standard_EXPORT   void SetTransparency (const Standard_Real AValue) ;
  
  //! Modifies the refraction index of the material.
  //! Category: Methods to modify the class definition
  //! Warning: Raises MaterialDefinitionError if <theValue> is a
  //! lesser than 1.0.
  Standard_EXPORT   void SetRefractionIndex (const Standard_Real theValue) ;
  
  //! Modifies the ambient and diffuse colour of the surface.
  //! Category: Methods to modify the class definition
  Standard_EXPORT   void SetColor (const Quantity_Color& AColor) ;
  
  //! Modifies the ambient colour of the surface.
  Standard_EXPORT   void SetAmbientColor (const Quantity_Color& AColor) ;
  
  //! Modifies the difuse colour of the surface.
  Standard_EXPORT   void SetDiffuseColor (const Quantity_Color& AColor) ;
  
  //! Modifies the specular colour of the surface.
  Standard_EXPORT   void SetSpecularColor (const Quantity_Color& AColor) ;
  
  //! Modifies the emissive colour of the surface.
  Standard_EXPORT   void SetEmissiveColor (const Quantity_Color& AColor) ;
  
  //! Activates the reflective properties of the surface <AType>.
  //!
  //! TypeOfReflection : TOR_AMBIENT
  //! TOR_DIFFUSE
  //! TOR_SPECULAR
  //! TOR_EMISSION
  //! 1, 2, 3 or 4 types of reflection can be set for a given surface.
  Standard_EXPORT   void SetReflectionModeOn (const Graphic3d_TypeOfReflection AType) ;
  
  //! Deactivates the reflective properties of
  //! the surface <AType>.
  //!
  //! TypeOfReflection : TOR_AMBIENT
  //! TOR_DIFFUSE
  //! TOR_SPECULAR
  //! TOR_EMISSION
  //! 1, 2, 3 or 4 types of reflection can be set off for a given surface.
  //! Disabling diffuse and specular reflectance is useful for efficient visualization
  //! of large amounts of data as definition of normals for graphic primitives is not needed
  //! when only "all-directional" reflectance is active.
  //!
  //! NOTE: Disabling all four reflection modes also turns off the following effects:
  //! 1. Lighting. Colors of primitives are not affected by the material properties when lighting is off.
  //! 2. Transparency.
  Standard_EXPORT   void SetReflectionModeOff (const Graphic3d_TypeOfReflection AType) ;
  
  //! Set MyMaterialType to the value of parameter <AType>
  //!
  //! TypeOfMaterial :   MATERIAL_ASPECT
  //! MATERIAL_PHYSIC
  Standard_EXPORT   void SetMaterialType (const Graphic3d_TypeOfMaterial AType) ;
  
  //! The current matarial become a "UserDefined" material.
  //! Set the name of the "UserDefined" material.
  Standard_EXPORT   void SetMaterialName (const Standard_CString AName) ;
  
  Standard_EXPORT   void SetEnvReflexion (const Standard_ShortReal AValue) ;
  
  //! Resets the material with the original values according to
  //! the material name but leave the current color values untouched
  //! for the material of type ASPECT.
  Standard_EXPORT   void Reset() ;
  
  //! Returns the diffuse colour of the surface.
  Standard_EXPORT  const  Quantity_Color& Color()  const;
  
  //! Returns the ambient colour of the surface.
  Standard_EXPORT  const  Quantity_Color& AmbientColor()  const;
  
  //! Returns the diffuse colour of the surface.
  Standard_EXPORT  const  Quantity_Color& DiffuseColor()  const;
  
  //! Returns the specular colour of the surface.
  Standard_EXPORT  const  Quantity_Color& SpecularColor()  const;
  
  //! Returns the emissive colour of the surface.
  Standard_EXPORT  const  Quantity_Color& EmissiveColor()  const;
  
  //! Returns the reflection properties of the surface.
  Standard_EXPORT   Standard_Real Ambient()  const;
  
  //! Returns the reflection properties of the surface.
  Standard_EXPORT   Standard_Real Diffuse()  const;
  
  //! Returns the reflection properties of the surface.
  Standard_EXPORT   Standard_Real Specular()  const;
  
  //! Returns the transparency coefficient of the surface.
  Standard_EXPORT   Standard_Real Transparency()  const;
  
  //! Returns the refraction index of the material
  Standard_EXPORT   Standard_Real RefractionIndex()  const;
  
  //! Returns the emissive coefficient of the surface.
  Standard_EXPORT   Standard_Real Emissive()  const;
  
  //! Returns the luminosity of the surface.
  Standard_EXPORT   Standard_Real Shininess()  const;
  
  //! Returns Standard_True if the reflection mode is active,
  //! Standard_False otherwise.
  Standard_EXPORT   Standard_Boolean ReflectionMode (const Graphic3d_TypeOfReflection AType)  const;
  
  //! Returns Standard_True if MyMaterialType equal the parameter AType,
  //! Standard_False otherwise.
  Standard_EXPORT   Standard_Boolean MaterialType (const Graphic3d_TypeOfMaterial AType)  const;
  
  Standard_EXPORT   Standard_ShortReal EnvReflexion()  const;
  
  //! Returns the material name.
  Standard_EXPORT   Graphic3d_NameOfMaterial Name()  const;
  
  //! Returns Standard_True if the materials <me> and
  //! <Other> are different.
  Standard_EXPORT   Standard_Boolean IsDifferent (const Graphic3d_MaterialAspect& Other)  const;
  Standard_Boolean operator != (const Graphic3d_MaterialAspect& Other)  const
{
  return IsDifferent(Other);
}
  
  //! Returns Standard_True if the materials <me> and
  //! <Other> are identical.
  Standard_EXPORT   Standard_Boolean IsEqual (const Graphic3d_MaterialAspect& Other)  const;
  Standard_Boolean operator == (const Graphic3d_MaterialAspect& Other)  const
{
  return IsEqual(Other);
}
  

  //! Returns the number of predefined textures.
  Standard_EXPORT static   Standard_Integer NumberOfMaterials() ;
  

  //! Returns the name of the predefined material of rank <aRank>
  //! Trigger: when <aRank> is < 1 or > NumberOfMaterials.
  Standard_EXPORT static   Standard_CString MaterialName (const Standard_Integer aRank) ;
  

  //! Returns the name of this material
  Standard_EXPORT   Standard_CString MaterialName()  const;
  

  //! Returns the type of the predefined material of rank <aRank>
  //! Trigger: when <aRank> is < 1 or > NumberOfMaterials.
  Standard_EXPORT static   Graphic3d_TypeOfMaterial MaterialType (const Standard_Integer aRank) ;
  

  //! Returns the material for specified name or Graphic3d_NOM_DEFAULT if name is unknown.
  Standard_EXPORT static   Graphic3d_NameOfMaterial MaterialFromName (const Standard_CString theName) ;




protected:





private:

  
  Standard_EXPORT   void Init (const Graphic3d_NameOfMaterial AName) ;


  Standard_ShortReal myDiffuseCoef;
  Quantity_Color myDiffuseColor;
  Standard_Boolean myDiffuseActivity;
  Standard_ShortReal myAmbientCoef;
  Quantity_Color myAmbientColor;
  Standard_Boolean myAmbientActivity;
  Standard_ShortReal mySpecularCoef;
  Quantity_Color mySpecularColor;
  Standard_Boolean mySpecularActivity;
  Standard_ShortReal myEmissiveCoef;
  Quantity_Color myEmissiveColor;
  Standard_Boolean myEmissiveActivity;
  Standard_ShortReal myTransparencyCoef;
  Standard_ShortReal myRefractionIndex;
  Standard_ShortReal myShininess;
  Standard_ShortReal myEnvReflexion;
  Graphic3d_TypeOfMaterial myMaterialType;
  Graphic3d_NameOfMaterial myMaterialName;
  Graphic3d_NameOfMaterial myRequestedMaterialName;
  TCollection_AsciiString myStringName;


};







#endif // _Graphic3d_MaterialAspect_HeaderFile