This file is indexed.

/usr/include/oce/Graphic3d_AspectFillArea3d.hxx is in liboce-visualization-dev 0.15-5.

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
// 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_AspectFillArea3d_HeaderFile
#define _Graphic3d_AspectFillArea3d_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_Graphic3d_AspectFillArea3d_HeaderFile
#include <Handle_Graphic3d_AspectFillArea3d.hxx>
#endif

#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Handle_Graphic3d_TextureMap_HeaderFile
#include <Handle_Graphic3d_TextureMap.hxx>
#endif
#ifndef _Graphic3d_MaterialAspect_HeaderFile
#include <Graphic3d_MaterialAspect.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Standard_ShortReal_HeaderFile
#include <Standard_ShortReal.hxx>
#endif
#ifndef _Graphic3d_ShaderProgram_Handle_HeaderFile
#include <Graphic3d_ShaderProgram_Handle.hxx>
#endif
#ifndef _Aspect_AspectFillArea_HeaderFile
#include <Aspect_AspectFillArea.hxx>
#endif
#ifndef _Aspect_InteriorStyle_HeaderFile
#include <Aspect_InteriorStyle.hxx>
#endif
#ifndef _Aspect_TypeOfLine_HeaderFile
#include <Aspect_TypeOfLine.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
class Graphic3d_TextureMap;
class Quantity_Color;
class Graphic3d_MaterialAspect;


//! This class permits the creation and updating of <br>
//!          a graphic attribute context for opaque 3d <br>
//!          primitives (polygons, triangles, quadrilaterals) <br>
//!  Keywords: Face, FillArea, Triangle, Quadrangle, Polygon, <br>
//!           TriangleMesh, QuadrangleMesh, Edge, Border, Interior, <br>
//!           Color, Type, Width, Style, Hatch, Material, <br>
//!           BackFaceRemoval, DistinguishMode <br>
class Graphic3d_AspectFillArea3d : public Aspect_AspectFillArea {

public:

  //! Creates a context table for fill area primitives <br>
//!          defined with the following default values: <br>
//! <br>
//!          InteriorStyle       : IS_EMPTY <br>
//!          InteriorColor       : NOC_CYAN1 <br>
//!          EdgeColor           : NOC_WHITE <br>
//!          EdgeLineType        : TOL_SOLID <br>
//!          EdgeWidth           : 1.0 <br>
//!          FrontMaterial       : NOM_BRASS <br>
//!          BackMaterial        : NOM_BRASS <br>
//! <br>
//!          Display of back-facing filled polygons. <br>
//!          No distinction between external and internal <br>
//!          faces of FillAreas. <br>
//!          The edges are not drawn. <br>
//!          Polygon offset parameters: mode = Aspect_POM_None, factor = 1., units = 0. <br>
  Standard_EXPORT   Graphic3d_AspectFillArea3d();
  //! Creates a context table for fill area primitives <br>
//!          defined with the specified values. <br>
//! <br>
//!          Display of back-facing filled polygons. <br>
//!          No distinction between external and internal <br>
//!          faces of FillAreas. <br>
//!          The edges are not drawn. <br>
//!          Polygon offset parameters: mode = Aspect_POM_None, factor = 1., units = 0. <br>
//! Warning <br>
//! EdgeWidth is the "line width scale factor".   The <br>
//! nominal line width is 1 pixel.   The width of the line is <br>
//! determined by applying the line width scale factor to <br>
//! this nominal line width.   The supported line widths <br>
//! vary by 1-pixel units. <br>
  Standard_EXPORT   Graphic3d_AspectFillArea3d(const Aspect_InteriorStyle Interior,const Quantity_Color& InteriorColor,const Quantity_Color& EdgeColor,const Aspect_TypeOfLine EdgeLineType,const Standard_Real EdgeWidth,const Graphic3d_MaterialAspect& FrontMaterial,const Graphic3d_MaterialAspect& BackMaterial);
  //! Allows the display of back-facing filled <br>
//!          polygons. <br>
  Standard_EXPORT     void AllowBackFace() ;
  //! Modifies the surface material of internal faces <br>
  Standard_EXPORT     void SetBackMaterial(const Graphic3d_MaterialAspect& AMaterial) ;
  //! Allows distinction between external and internal <br>
//!          faces of FillAreas. <br>
  Standard_EXPORT     void SetDistinguishOn() ;
  //! Forbids distinction between external and internal <br>
//!          faces of FillAreas. <br>
  Standard_EXPORT     void SetDistinguishOff() ;
  //! The edges of FillAreas are drawn. <br>
  Standard_EXPORT     void SetEdgeOn() ;
  //! The edges of FillAreas are not drawn. <br>
  Standard_EXPORT     void SetEdgeOff() ;
  //! Modifies the surface material of external faces <br>
  Standard_EXPORT     void SetFrontMaterial(const Graphic3d_MaterialAspect& AMaterial) ;
  //! Suppress the display of back-facing filled <br>
//!          polygons. <br>
//!          A back-facing polygon is defined as a polygon whose <br>
//!          vertices are in a clockwise order with respect <br>
//!          to screen coordinates. <br>
  Standard_EXPORT     void SuppressBackFace() ;
  
  Standard_EXPORT     void SetTextureMap(const Handle(Graphic3d_TextureMap)& ATexture) ;
  
  Standard_EXPORT     void SetTextureMapOn() ;
  
  Standard_EXPORT     void SetTextureMapOff() ;
  //! Sets up OpenGL polygon offsets mechanism. <br>
//!          <aMode> parameter can contain various combinations of <br>
//!          Aspect_PolygonOffsetMode enumeration elements (Aspect_POM_None means <br>
//!          that polygon offsets are not changed). <br>
//!          If <aMode> is different from Aspect_POM_Off and Aspect_POM_None, then <aFactor> and <aUnits> <br>
//!          arguments are used by graphic renderer to calculate a depth offset value: <br>
//! <br>
//!          offset = <aFactor> * m + <aUnits> * r, where <br>
//!          m - maximum depth slope for the polygon currently being displayed, <br>
//!          r - minimum window coordinates depth resolution (implementation-specific) <br>
//! <br>
//!          Deafult settings for OCC 3D viewer: mode = Aspect_POM_Fill, factor = 1., units = 0. <br>
//! <br>
//!          Negative offset values move polygons closer to the viewport, <br>
//!          while positive values shift polygons away. <br>
//!          Consult OpenGL reference for details (glPolygonOffset function description). <br>
  Standard_EXPORT     void SetPolygonOffsets(const Standard_Integer aMode,const Standard_ShortReal aFactor = 1.0,const Standard_ShortReal aUnits = 0.0) ;
  //! Sets up OpenGL/GLSL shader program. <br>
  Standard_EXPORT     void SetShaderProgram(const Graphic3d_ShaderProgram_Handle& theProgram) ;
  //! Returns the Back Face Removal status. <br>
//!          Standard_True if SuppressBackFace is activated. <br>
  Standard_EXPORT     Standard_Boolean BackFace() const;
  //! Returns the Distinguish Mode status. <br>
  Standard_EXPORT     Standard_Boolean Distinguish() const;
  //! Returns Standard_True if the edges are drawn and <br>
//!          Standard_False if the edges are not drawn. <br>
  Standard_EXPORT     Standard_Boolean Edge() const;
  //! Returns the surface material of internal faces <br>
  Standard_EXPORT     Graphic3d_MaterialAspect BackMaterial() const;
  //! Returns the surface material of external faces <br>
  Standard_EXPORT     Graphic3d_MaterialAspect FrontMaterial() const;
  
  Standard_EXPORT     Handle_Graphic3d_TextureMap TextureMap() const;
  
  Standard_EXPORT     Standard_Boolean TextureMapState() const;
  //! Returns current polygon offsets settings. <br>
  Standard_EXPORT     void PolygonOffsets(Standard_Integer& aMode,Standard_ShortReal& aFactor,Standard_ShortReal& aUnits) const;
  
  Standard_EXPORT    const Graphic3d_ShaderProgram_Handle& ShaderProgram() const;




  DEFINE_STANDARD_RTTI(Graphic3d_AspectFillArea3d)

protected:




private: 


Standard_Boolean DistinguishModeActive;
Standard_Boolean EdgeModeActive;
Standard_Boolean BackFaceRemovalActive;
Handle_Graphic3d_TextureMap MyTextureMap;
Standard_Boolean MyTextureMapState;
Graphic3d_MaterialAspect MyFrontMaterial;
Graphic3d_MaterialAspect MyBackMaterial;
Standard_Integer MyPolygonOffsetMode;
Standard_ShortReal MyPolygonOffsetFactor;
Standard_ShortReal MyPolygonOffsetUnits;
Graphic3d_ShaderProgram_Handle MyShaderProgram;


};





// other Inline functions and methods (like "C++: function call" methods)


#endif