This file is indexed.

/usr/include/oce/PrsMgr_PresentableObject.hxx is in liboce-visualization-dev 0.18.2-2build1.

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 _PrsMgr_PresentableObject_HeaderFile
#define _PrsMgr_PresentableObject_HeaderFile

#include <Standard.hxx>
#include <Standard_DefineHandle.hxx>
#include <Handle_PrsMgr_PresentableObject.hxx>

#include <PrsMgr_Presentations.hxx>
#include <PrsMgr_TypeOfPresentation3d.hxx>
#include <Graphic3d_SequenceOfHClipPlane.hxx>
#include <Graphic3d_CTransPersStruct.hxx>
#include <Standard_Boolean.hxx>
#include <Graphic3d_ZLayerId.hxx>
#include <PrsMgr_PresentableObjectPointer.hxx>
#include <gp_Trsf.hxx>
#include <PrsMgr_ListOfPresentableObjects.hxx>
#include <MMgt_TShared.hxx>
#include <Handle_Graphic3d_Structure.hxx>
#include <Handle_Graphic3d_DataStructureManager.hxx>
#include <PrsMgr_Presentation.hxx>
#include <Handle_Geom_Transformation.hxx>
#include <PrsMgr_PresentationManager3d.hxx>
#include <Handle_Prs3d_Presentation.hxx>
#include <Standard_Integer.hxx>
#include <Handle_Prs3d_Projector.hxx>
#include <Handle_PrsMgr_PresentationManager.hxx>
#include <Handle_PrsMgr_Presentation.hxx>
#include <Graphic3d_TransModeFlags.hxx>
#include <Graphic3d_ClipPlane.hxx>
class Standard_NotImplemented;
class PrsMgr_Presentation;
class PrsMgr_PresentationManager;
class Graphic3d_Structure;
class Graphic3d_DataStructureManager;
class Geom_Transformation;
class Prs3d_Presentation;
class Prs3d_Projector;
class PrsMgr_Presentations;
class gp_Pnt;
class TColStd_ListOfInteger;
class gp_Trsf;


//! A framework to supply the Graphic3d
//! structure of the object to be presented. On the first
//! display request, this structure is created by calling the
//! appropriate algorithm and retaining this frameworkfor
//! further display.
//! This abstract framework is inherited in Application
//! Interactive Services (AIS), notably in:
//! -   AIS_InteractiveObject
//! -   AIS_ConnectedInteractive
//! -   AIS_MultipleConnectedInteractive
//! -   AIS_Shape
//! Consequently, 3D presentation should be handled by
//! the relevant daughter classes and their member
//! functions in AIS. This is particularly true in the
//! creation of new interactive objects.
class PrsMgr_PresentableObject : public MMgt_TShared
{

public:

  
  Standard_EXPORT   PrsMgr_Presentations& Presentations() ;
  
  //! Returns information on whether the object accepts display in HLR mode or not.
  Standard_EXPORT   PrsMgr_TypeOfPresentation3d TypeOfPresentation3d()  const;
  
  //! Sets up Transform Persistence Mode for this object.
  //! This function used to lock in object position, rotation and / or zooming relative to camera position.
  //! Object will be drawn in the origin setted by APoint parameter (except Graphic3d_TMF_TriedronPers flag
  //! - see description later). aFlag should be:
  //! -   Graphic3d_TMF_None - no persistence attributes (reset);
  //! -   Graphic3d_TMF_PanPers - object doesn't move;
  //! -   Graphic3d_TMF_ZoomPers - object doesn't resize;
  //! -   Graphic3d_TMF_RotatePers - object doesn't rotate;
  //! -   Graphic3d_TMF_FullPers - pan, zoom and rotate transform persistence;
  //! -   Graphic3d_TMF_TriedronPers - object behaves like trihedron;
  //! -   combination (Graphic3d_TMF_PanPers | Graphic3d_TMF_ZoomPers);
  //! -   combination (Graphic3d_TMF_PanPers | Graphic3d_TMF_RotatePers);
  //! -   combination (Graphic3d_TMF_ZoomPers | Graphic3d_TMF_RotatePers).
  //! If Graphic3d_TMF_TriedronPers or Graphic3d_TMF_2d persistence mode selected APoint coordinates X and Y means:
  //! -   X = 0.0, Y = 0.0 - center of view window;
  //! -   X > 0.0, Y > 0.0 - right upper corner of view window;
  //! -   X > 0.0, Y < 0.0 - right lower corner of view window;
  //! -   X < 0.0, Y > 0.0 - left  upper corner of view window;
  //! -   X < 0.0, Y < 0.0 - left  lower corner of view window.
  //! And Z coordinate defines the gap from border of view window (except center position).
  Standard_EXPORT virtual   void SetTransformPersistence (const Graphic3d_TransModeFlags& aFlag, const gp_Pnt& APoint) ;
  
  //! Calls previous method  with  point  (0,0,0)
  Standard_EXPORT   void SetTransformPersistence (const Graphic3d_TransModeFlags& aFlag) ;
  
  //! Gets  Transform  Persistence Mode  for  this  object
  Standard_EXPORT   Graphic3d_TransModeFlags GetTransformPersistenceMode()  const;
  
  //! Gets  point  of  transform  persistence for  this  object
  Standard_EXPORT   gp_Pnt GetTransformPersistencePoint()  const;
  
  Standard_EXPORT   void SetTypeOfPresentation (const PrsMgr_TypeOfPresentation3d aType) ;
  
  //! flags the Prs of mode <AMode> to be Updated.
  //! the Update will be done when needed.
  Standard_EXPORT   void SetToUpdate (const Standard_Integer aMode) ;
  
  //! flags all the Presentations to be Updated.
  Standard_EXPORT   void SetToUpdate() ;
  
  //! gives the list of modes which are flagged "to be updated".
  Standard_EXPORT   void ToBeUpdated (TColStd_ListOfInteger& ListOfMode)  const;
  
  //! Sets local transformation to theTransformation.
  Standard_EXPORT virtual   void SetLocalTransformation (const gp_Trsf& theTransformation) ;
  
  //! Returns true if object has a transformation that is different from the identity.
  Standard_EXPORT   Standard_Boolean HasTransformation()  const;
  
     const  gp_Trsf& LocalTransformation()  const;
  
     const  gp_Trsf& Transformation()  const;
  
     const  gp_Trsf& InversedTransformation()  const;
  
  //! resets local transformation to identity.
  Standard_EXPORT virtual   void ResetTransformation() ;
  
  Standard_EXPORT virtual   void UpdateTransformation() ;
  
  Standard_EXPORT virtual   void UpdateTransformation (const Handle(Prs3d_Presentation)& P) ;
  
  //! Set Z layer ID and update all presentations of the presentable object.
  //! The layers mechanism allows drawing objects in higher layers in overlay of objects in lower layers.
  Standard_EXPORT virtual   void SetZLayer (const Graphic3d_ZLayerId theLayerId) ;
  
  //! Get ID of Z layer.
  Standard_EXPORT   Graphic3d_ZLayerId ZLayer()  const;
  
  //! Adds clip plane for graphical clipping for all display mode
  //! presentations. The composition of clip planes truncates the rendering
  //! space to convex volume. Please be aware that number of supported
  //! clip plane is limited. The planes which exceed the limit are ignored.
  //! Besides of this, some planes can be already set in view where the object
  //! is shown: the number of these planes should be substracted from limit
  //! to predict the maximum possible number of object clipping planes.
  //! @param thePlane [in] the clip plane to be appended to map of clip planes.
  Standard_EXPORT virtual   void AddClipPlane (const Handle(Graphic3d_ClipPlane)& thePlane) ;
  
  //! Removes previously added clip plane.
  //! @param thePlane [in] the clip plane to be removed from map of clip planes.
  Standard_EXPORT virtual   void RemoveClipPlane (const Handle(Graphic3d_ClipPlane)& thePlane) ;
  
  //! Set clip planes for graphical clipping for all display mode presentations.
  //! The composition of clip planes truncates the rendering space to convex
  //! volume. Please be aware that number of supported clip plane is limited.
  //! The planes which exceed the limit are ignored. Besides of this, some
  //! planes can be already set in view where the object is shown: the number
  //! of these planes should be substracted from limit to predict the maximum
  //! possible number of object clipping planes.
  Standard_EXPORT virtual   void SetClipPlanes (const Graphic3d_SequenceOfHClipPlane& thePlanes) ;
  
  //! Get clip planes.
  //! @return set of previously added clip planes for all display mode presentations.
     const  Graphic3d_SequenceOfHClipPlane& GetClipPlanes()  const;
  
  //! Sets if the object has mutable nature (content or location will be changed regularly).
  //! This method should be called before object displaying to take effect.
  Standard_EXPORT virtual   void SetMutable (const Standard_Boolean theIsMutable) ;
  
  //! Returns true if object has mutable nature (content or location are be changed regularly).
  //! Mutable object will be managed in different way than static onces (another optimizations).
  Standard_EXPORT  const  Standard_Boolean IsMutable()  const;
  
  //! Makes theObject child of current object in scene hierarchy.
  Standard_EXPORT virtual   void AddChild (const Handle(PrsMgr_PresentableObject)& theObject) ;
  
  //! Removes theObject from children of current object in scene hierarchy.
  Standard_EXPORT virtual   void RemoveChild (const Handle(PrsMgr_PresentableObject)& theObject) ;
  
  //! Returns children of the current object.
  Standard_EXPORT  const  PrsMgr_ListOfPresentableObjects& Children()  const;
  
  //! Returns true if object should have own presentations.
  Standard_EXPORT  const  Standard_Boolean HasOwnPresentations()  const;
  
  //! Returns parent of current object in scene hierarchy.
  Standard_EXPORT  const  PrsMgr_PresentableObjectPointer Parent()  const;


friend class PrsMgr_Presentation;
friend class PrsMgr_PresentationManager;
friend   
  Standard_EXPORT   Handle(Graphic3d_Structure) PrsMgr_Presentation::Compute (const Handle(Graphic3d_DataStructureManager)& theProjector) ;
friend   
  Standard_EXPORT   void PrsMgr_Presentation::Compute (const Handle(Graphic3d_DataStructureManager)& theProjector, const Handle(Graphic3d_Structure)& theGivenStruct) ;
friend   
  Standard_EXPORT   Handle(Graphic3d_Structure) PrsMgr_Presentation::Compute (const Handle(Graphic3d_DataStructureManager)& theProjector, const Handle(Geom_Transformation)& theTrsf) ;
friend   
  Standard_EXPORT   void PrsMgr_Presentation::Compute (const Handle(Graphic3d_DataStructureManager)& theProjector, const Handle(Geom_Transformation)& theTrsf, const Handle(Graphic3d_Structure)& theGivenStruct) ;


  DEFINE_STANDARD_RTTI(PrsMgr_PresentableObject)

protected:

  
  Standard_EXPORT PrsMgr_PresentableObject(const PrsMgr_TypeOfPresentation3d aTypeOfPresentation3d = PrsMgr_TOP_AllView);
Standard_EXPORT virtual ~PrsMgr_PresentableObject();
  
  //! Calculates the 3D view aPresentation and its
  //! updates. The latter are managed by aPresentationManager.
  //! aPresentableObject has the display mode aMode;
  //! this has the default value of 0, that is, the wireframe display mode.
  Standard_EXPORT virtual   void Compute (const Handle(PrsMgr_PresentationManager3d)& aPresentationManager, const Handle(Prs3d_Presentation)& aPresentation, const Standard_Integer aMode = 0) ;
  
  //! Calculates the 3D view aPresentation and its
  //! updates. The latter are managed by
  //! aPresentationManager. Each of the views in the
  //! viewer and every modification such as rotation, for
  //! example, entails recalculation.
  //! It must be redefined to implement hidden line removal
  //! for the object. The user never calls this method
  //! himself. This is done via the InteractiveContext object
  //! and is dependent on the point of view from which the
  //! object is displayed.
  Standard_EXPORT virtual   void Compute (const Handle(Prs3d_Projector)& aProjector, const Handle(Prs3d_Presentation)& aPresentation) ;
  
  //! Calculates the 3D view aPresentation and its
  //! updates. The latter are managed by
  //! aPresentationManager. A point of view is provided
  //! by the projector aProjector, and the geometric
  //! transformation which has transformed associated
  //! presentable objects is specified by aTrsf.
  //! This function is to be used in case where a hidden
  //! line removal display cannot be calculated
  //! automatically. This occurs   when associated
  //! presentable objects have been transformed
  //! geometrically, but not translated.
  //! Warning
  //! The transformation aTrsf must be applied to the
  //! object before computation.
  Standard_EXPORT virtual   void Compute (const Handle(Prs3d_Projector)& aProjector, const Handle(Geom_Transformation)& aTrsf, const Handle(Prs3d_Presentation)& aPresentation) ;
  
  //! recomputes all presentations of the object.
  Standard_EXPORT   void Update (const Standard_Boolean AllModes = Standard_False) ;
  
  //! Recomputes the presentation in the given mode.
  //! If ClearOther is true, other presentation will be cleared.
  Standard_EXPORT   void Update (const Standard_Integer aMode, const Standard_Boolean ClearOther) ;
  
  //! High-level interface for controlling polygon offsets
  Standard_EXPORT virtual   void Fill (const Handle(PrsMgr_PresentationManager)& aPresentationManager, const Handle(PrsMgr_Presentation)& aPresentation, const Standard_Integer aMode = 0) ;
  
  //! Sets myCombinedParentTransform to theTransformation. Thus object receives transformation
  //! from parent node and able to derive its own.
  Standard_EXPORT virtual   void SetCombinedParentTransform (const gp_Trsf& theTransformation) ;
  
  //! General virtual method for internal update of presentation state
  //! when some modifications on list of clip planes occurs. Base
  //! implementation propagate clip planes to every presentation.
  Standard_EXPORT virtual   void UpdateClipping() ;

  PrsMgr_Presentations myPresentations;
  PrsMgr_TypeOfPresentation3d myTypeOfPresentation3d;
  Graphic3d_SequenceOfHClipPlane myClipPlanes;
  Standard_Boolean myIsMutable;
  Graphic3d_ZLayerId myZLayer;
  Standard_Boolean myHasOwnPresentations;


private: 


  Graphic3d_CTransPersStruct myTransformPersistence;
  PrsMgr_PresentableObjectPointer myParent;
  gp_Trsf myLocalTransformation;
  gp_Trsf myTransformation;
  gp_Trsf myInvTransformation;
  gp_Trsf myCombinedParentTransform;
  PrsMgr_ListOfPresentableObjects myChildren;


};


#include <PrsMgr_PresentableObject.lxx>





#endif // _PrsMgr_PresentableObject_HeaderFile