/usr/include/oce/Visual3d_ViewManager.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 | // 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 _Visual3d_ViewManager_HeaderFile
#define _Visual3d_ViewManager_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineHandle.hxx>
#include <Handle_Visual3d_ViewManager.hxx>
#include <Visual3d_SequenceOfView.hxx>
#include <Handle_Visual3d_Layer.hxx>
#include <Aspect_GenId.hxx>
#include <Handle_Graphic3d_GraphicDriver.hxx>
#include <Standard_Boolean.hxx>
#include <TColStd_MapOfInteger.hxx>
#include <TColStd_SequenceOfInteger.hxx>
#include <Visual3d_MapOfZLayerSettings.hxx>
#include <Graphic3d_StructureManager.hxx>
#include <Handle_Visual3d_HSequenceOfView.hxx>
#include <Standard_Integer.hxx>
#include <Handle_Visual3d_View.hxx>
#include <Handle_Graphic3d_Structure.hxx>
#include <Graphic3d_ZLayerId.hxx>
#include <Graphic3d_ZLayerSettings.hxx>
#include <Aspect_TypeOfHighlightMethod.hxx>
#include <Handle_Aspect_Window.hxx>
#include <Graphic3d_CView.hxx>
#include <Handle_Graphic3d_DataStructureManager.hxx>
class Visual3d_Layer;
class Graphic3d_GraphicDriver;
class Visual3d_View;
class Visual3d_HSequenceOfView;
class Visual3d_SequenceOfView;
class Graphic3d_Structure;
class TColStd_SequenceOfInteger;
class TColStd_Array2OfReal;
class Aspect_Window;
class Graphic3d_DataStructureManager;
//! This class allows the definition of a manager to
//! which the views are associated.
//! It allows them to be globally manipulated.
class Visual3d_ViewManager : public Graphic3d_StructureManager
{
public:
//! Creates a 3D visualizer.
//! Currently creating of more than 100 viewer instances
//! is not supported and leads to InitializationError and
//! initialisation failure.
//! This limitation might be addressed in some future OCCT releases.
//!
//! Category: Methods to modify the class definition
Standard_EXPORT Visual3d_ViewManager(const Handle(Graphic3d_GraphicDriver)& theDriver);
//! Activates all the views of the manager <me>.
Standard_EXPORT void Activate() ;
//! Deactivates all the views of the manager <me>.
Standard_EXPORT void Deactivate() ;
//! Deletes and erases the 3D visualiser <me>.
Standard_EXPORT virtual void Destroy() ;
~Visual3d_ViewManager()
{
Destroy();
}
//! Erases all of the structures displayed in the
//! visualiser <me>.
Standard_EXPORT void Erase() ;
//! Redraws all the displayed structures.
Standard_EXPORT void Redraw() const;
//! Updates layer of immediate presentations.
Standard_EXPORT void RedrawImmediate() const;
//! Invalidates viewer content but does not redraw it.
Standard_EXPORT void Invalidate() const;
//! Deletes and erases the 3D visualiser <me>.
Standard_EXPORT void Remove() ;
//! Updates screen in function of modifications of the structures.
//! Category: Methods to modify the class definition
Standard_EXPORT void Update() const;
//! Returns the group of views activated in the visualiser <me>.
Standard_EXPORT Handle(Visual3d_HSequenceOfView) ActivatedView() const;
//! Returns the group of views defined in the visualiser <me>.
Standard_EXPORT const Visual3d_SequenceOfView& DefinedViews() const;
//! Returns the theoretical maximum number of
//! definable views in the view manager <me>.
//! Warning: It's not possible to accept an infinite
//! number of definable views because each
//! view must have an identification and we
//! have different view managers.
Standard_EXPORT Standard_Integer MaxNumOfViews() const;
//! Returns :
//! a new identification number for a new view
//! in the visualiser.
Standard_EXPORT Standard_Integer Identification (const Handle(Visual3d_View)& AView) ;
//! Release a unique ID of the view reserved for the view on its creation.
Standard_EXPORT void UnIdentification (const Standard_Integer aViewId) ;
//! Returns the structure with the identification number <AId>.
Standard_EXPORT Handle(Graphic3d_Structure) Identification (const Standard_Integer AId) const;
//! Returns the identification number of the visualiser.
Standard_EXPORT Standard_Integer Identification() const;
//! Changes the display priority of the structure <AStructure>.
Standard_EXPORT void ChangeDisplayPriority (const Handle(Graphic3d_Structure)& AStructure, const Standard_Integer OldPriority, const Standard_Integer NewPriority) ;
//! Change Z layer for structure. The layer mechanism allows
//! to display structures in higher layers in overlay of structures in
//! lower layers.
Standard_EXPORT void ChangeZLayer (const Handle(Graphic3d_Structure)& theStructure, const Graphic3d_ZLayerId theLayerId) ;
//! Sets the settings for a single Z layer for all managed views.
Standard_EXPORT void SetZLayerSettings (const Graphic3d_ZLayerId theLayerId, const Graphic3d_ZLayerSettings& theSettings) ;
//! Returns the settings of a single Z layer.
Standard_EXPORT Graphic3d_ZLayerSettings ZLayerSettings (const Graphic3d_ZLayerId theLayerId) ;
//! Add a new top-level Z layer and get its ID as
//! <theLayerId> value. The method returns Standard_False if the layer
//! can not be created. The layer mechanism allows to display
//! structures in higher layers in overlay of structures in lower layers.
Standard_EXPORT Standard_Boolean AddZLayer (Graphic3d_ZLayerId& theLayerId) ;
//! Remove Z layer with ID <theLayerId>. Method returns
//! Standard_False if the layer can not be removed or doesn't exists.
//! By default, there are always default bottom-level layer that can't
//! be removed.
Standard_EXPORT Standard_Boolean RemoveZLayer (const Graphic3d_ZLayerId theLayerId) ;
//! Return all Z layer ids in sequence ordered by overlay level
//! from lowest layer to highest ( foreground ). The first layer ID
//! in sequence is the default layer that can't be removed.
Standard_EXPORT void GetAllZLayers (TColStd_SequenceOfInteger& theLayerSeq) const;
//! Clears the structure <AStructure>.
Standard_EXPORT void Clear (const Handle(Graphic3d_Structure)& AStructure, const Standard_Boolean WithDestruction) ;
//! Connects the structures <AMother> and <ADaughter>.
Standard_EXPORT void Connect (const Handle(Graphic3d_Structure)& AMother, const Handle(Graphic3d_Structure)& ADaughter) ;
//! Disconnects the structures <AMother> and <ADaughter>.
Standard_EXPORT void Disconnect (const Handle(Graphic3d_Structure)& AMother, const Handle(Graphic3d_Structure)& ADaughter) ;
//! Display of the structure <AStructure>.
Standard_EXPORT void Display (const Handle(Graphic3d_Structure)& AStructure) ;
//! Erases the structure <AStructure>.
Standard_EXPORT void Erase (const Handle(Graphic3d_Structure)& AStructure) ;
//! Highlights the structure <AStructure>.
Standard_EXPORT void Highlight (const Handle(Graphic3d_Structure)& AStructure, const Aspect_TypeOfHighlightMethod AMethod) ;
Standard_EXPORT void SetTransform (const Handle(Graphic3d_Structure)& AStructure, const TColStd_Array2OfReal& ATrsf) ;
//! Suppress the highlighting on all the structures.
Standard_EXPORT void UnHighlight() ;
//! Suppress the highlighting on the structure <AStructure>.
Standard_EXPORT void UnHighlight (const Handle(Graphic3d_Structure)& AStructure) ;
//! Returns Standard_True if the view associated to the
//! window <AWindow> exists and is activated.
//! <TheViewId> contains the internal identification of
//! the associated view.
Standard_EXPORT Standard_Boolean ViewExists (const Handle(Aspect_Window)& AWindow, Graphic3d_CView& TheCView) const;
//! Returns the underlay of the viewer <me>.
Standard_EXPORT const Handle(Visual3d_Layer)& UnderLayer() const;
//! Returns the underlay of the viewer <me>.
Standard_EXPORT const Handle(Visual3d_Layer)& OverLayer() const;
//! Forces a new construction of the structure <AStructure>
//! if <AStructure> is displayed and TOS_COMPUTED.
Standard_EXPORT void ReCompute (const Handle(Graphic3d_Structure)& AStructure) ;
//! Forces a new construction of the structure <AStructure>
//! if <AStructure> is displayed in <AProjector> and TOS_COMPUTED.
Standard_EXPORT void ReCompute (const Handle(Graphic3d_Structure)& AStructure, const Handle(Graphic3d_DataStructureManager)& AProjector) ;
//! Returns Standard_True if the zbuffer activity
//! is managed automatically.
//! Default Standard_False
Standard_EXPORT Standard_Boolean ZBufferAuto() const;
//! if <AFlag> is Standard_True then the zbuffer activity
//! is managed automatically.
//! Default Standard_False
Standard_EXPORT void SetZBufferAuto (const Standard_Boolean AFlag) ;
friend class Visual3d_View;
friend class Visual3d_Layer;
DEFINE_STANDARD_RTTI(Visual3d_ViewManager)
protected:
private:
//! Install z layers managed by the view manager into the
//! controlled view. This method used on the view initialization to
//! make the layer lists consistent.
Standard_EXPORT void InstallZLayers (const Handle(Visual3d_View)& theView) const;
//! Adds a new layer in all the views of <me>.
Standard_EXPORT void SetLayer (const Handle(Visual3d_Layer)& ALayer) ;
Visual3d_SequenceOfView MyDefinedView;
Handle(Visual3d_Layer) MyUnderLayer;
Handle(Visual3d_Layer) MyOverLayer;
Aspect_GenId MyViewGenId;
Handle(Graphic3d_GraphicDriver) MyGraphicDriver;
Standard_Boolean MyZBufferAuto;
Aspect_GenId myZLayerGenId;
TColStd_MapOfInteger myLayerIds;
TColStd_SequenceOfInteger myLayerSeq;
Visual3d_MapOfZLayerSettings myMapOfZLayerSettings;
};
#endif // _Visual3d_ViewManager_HeaderFile
|