0030686: Visualization, SelectMgr_ViewerSelector - sorting issues of transformation...
[occt.git] / src / Graphic3d / Graphic3d_CView.hxx
CommitLineData
c357e426 1// Copyright (c) 2015 OPEN CASCADE SAS
b311480e 2//
973c2be1 3// This file is part of Open CASCADE Technology software library.
b311480e 4//
d5f74e42 5// This library is free software; you can redistribute it and/or modify it under
6// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 7// by the Free Software Foundation, with special exception defined in the file
8// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9// distribution for complete text of the license and disclaimer of any warranty.
b311480e 10//
973c2be1 11// Alternatively, this file may be used under the terms of Open CASCADE
12// commercial license or contractual agreement.
b311480e 13
7fd59977 14#ifndef _Graphic3d_CView_HeaderFile
15#define _Graphic3d_CView_HeaderFile
16
c357e426 17#include <Aspect_Handle.hxx>
c357e426 18#include <Aspect_RenderingContext.hxx>
c357e426 19#include <Aspect_Window.hxx>
20#include <Graphic3d_BufferType.hxx>
b5ac8292 21#include <Graphic3d_Camera.hxx>
12381341 22#include <Graphic3d_CLight.hxx>
c357e426 23#include <Graphic3d_CStructure.hxx>
24#include <Graphic3d_DataStructureManager.hxx>
26d9c835 25#include <Graphic3d_DiagnosticInfo.hxx>
c357e426 26#include <Graphic3d_GraduatedTrihedron.hxx>
27#include <Graphic3d_MapOfStructure.hxx>
28#include <Graphic3d_NMapOfTransient.hxx>
c357e426 29#include <Graphic3d_RenderingParams.hxx>
51b10cd4 30#include <Graphic3d_SequenceOfHClipPlane.hxx>
c357e426 31#include <Graphic3d_SequenceOfStructure.hxx>
c357e426 32#include <Graphic3d_Structure.hxx>
c357e426 33#include <Graphic3d_TextureEnv.hxx>
34#include <Graphic3d_TypeOfAnswer.hxx>
35#include <Graphic3d_TypeOfBackfacingModel.hxx>
36#include <Graphic3d_TypeOfShadingModel.hxx>
c357e426 37#include <Graphic3d_TypeOfVisualization.hxx>
38#include <Graphic3d_Vec3.hxx>
39#include <Graphic3d_ZLayerId.hxx>
40#include <Graphic3d_ZLayerSettings.hxx>
41#include <Image_PixMap.hxx>
42#include <Quantity_NameOfColor.hxx>
43#include <Standard_Address.hxx>
44#include <Standard_Transient.hxx>
26d9c835 45#include <TColStd_IndexedDataMapOfStringString.hxx>
c357e426 46
47class Graphic3d_CView;
48class Graphic3d_GraphicDriver;
49class Graphic3d_StructureManager;
50
51DEFINE_STANDARD_HANDLE (Graphic3d_CView, Graphic3d_DataStructureManager)
52
53//! Base class of a graphical view that carries out rendering process for a concrete
54//! implementation of graphical driver. Provides virtual interfaces for redrawing its
55//! contents, management of displayed structures and render settings. The source code
56//! of the class itself implements functionality related to management of
57//! computed (HLR or "view-dependent") structures.
58class Graphic3d_CView : public Graphic3d_DataStructureManager
bf75be98 59{
dc89236f 60 friend class Graphic3d_StructureManager;
61 DEFINE_STANDARD_RTTIEXT(Graphic3d_CView, Graphic3d_DataStructureManager)
bf75be98 62public:
63
c357e426 64 //! Constructor.
65 Standard_EXPORT Graphic3d_CView (const Handle(Graphic3d_StructureManager)& theMgr);
66
67 //! Destructor.
68 Standard_EXPORT virtual ~Graphic3d_CView();
69
70 //! Returns the identification number of the view.
71 Standard_Integer Identification() const { return myId; }
72
46710942 73 //! Activates the view. Maps presentations defined within structure manager onto this view.
c357e426 74 Standard_EXPORT virtual void Activate();
75
46710942 76 //! Deactivates the view. Unmaps presentations defined within structure manager.
77 //! The view in deactivated state will ignore actions on structures such as Display().
c357e426 78 Standard_EXPORT virtual void Deactivate();
79
80 //! Returns the activity flag of the view.
81 Standard_Boolean IsActive() const { return myIsActive; }
82
83 //! Erases the view and removes from graphic driver.
84 //! No more graphic operations are allowed in this view after the call.
85 Standard_EXPORT virtual void Remove();
86
87 //! Returns true if the view was removed.
88 Standard_Boolean IsRemoved() const { return myIsRemoved; }
bf75be98 89
d325cb7f 90 //! Returns camera object of the view.
91 virtual const Handle(Graphic3d_Camera)& Camera() const { return myCamera; }
92
93 //! Sets camera used by the view.
94 virtual void SetCamera (const Handle(Graphic3d_Camera)& theCamera) { myCamera = theCamera; }
95
bf75be98 96public:
97
dc89236f 98 //! Returns default Shading Model of the view; Graphic3d_TOSM_FRAGMENT by default.
99 Graphic3d_TypeOfShadingModel ShadingModel() const { return myShadingModel; }
100
101 //! Sets default Shading Model of the view.
102 //! Will throw an exception on attempt to set Graphic3d_TOSM_DEFAULT.
103 Standard_EXPORT void SetShadingModel (Graphic3d_TypeOfShadingModel theModel);
104
c357e426 105 //! Returns visualization type of the view.
106 Graphic3d_TypeOfVisualization VisualizationType() const { return myVisualization; }
bf75be98 107
c357e426 108 //! Sets visualization type of the view.
109 void SetVisualizationType (const Graphic3d_TypeOfVisualization theType) { myVisualization = theType; }
bf75be98 110
c357e426 111 //! Switches computed HLR mode in the view
112 Standard_EXPORT void SetComputedMode (const Standard_Boolean theMode);
bf75be98 113
c357e426 114 //! Returns the computed HLR mode state
115 Standard_Boolean ComputedMode() const { return myIsInComputedMode; }
bf75be98 116
c357e426 117 //! Computes the new presentation of the structure displayed in this view with the type Graphic3d_TOS_COMPUTED.
118 Standard_EXPORT void ReCompute (const Handle(Graphic3d_Structure)& theStructure);
bf75be98 119
cfece3ef 120 //! Invalidates bounding box of specified ZLayerId.
121 Standard_EXPORT void Update (const Graphic3d_ZLayerId theLayerId = Graphic3d_ZLayerId_UNKNOWN);
122
123 //! Computes the new presentation of the structures displayed in this view with the type Graphic3d_TOS_COMPUTED.
124 Standard_EXPORT void Compute();
bf75be98 125
c357e426 126 //! Returns Standard_True if one of the structures displayed in the view contains Polygons, Triangles or Quadrangles.
127 Standard_EXPORT Standard_Boolean ContainsFacet() const;
bf75be98 128
c357e426 129 //! Returns Standard_True if one of the structures in the set contains Polygons, Triangles or Quadrangles.
130 Standard_EXPORT Standard_Boolean ContainsFacet (const Graphic3d_MapOfStructure& theSet) const;
bf75be98 131
c357e426 132 //! Returns the set of structures displayed in this view.
133 Standard_EXPORT void DisplayedStructures (Graphic3d_MapOfStructure& theStructures) const;
b5ac8292 134
c357e426 135 //! Returns number of displayed structures in the view.
91515621 136 virtual Standard_Integer NumberOfDisplayedStructures() const { return myStructsDisplayed.Extent(); }
bf75be98 137
c357e426 138 //! Returns map of objects hidden within this specific view (not viewer-wise).
139 const Handle(Graphic3d_NMapOfTransient)& HiddenObjects() const { return myHiddenObjects; }
140
141 //! Returns map of objects hidden within this specific view (not viewer-wise).
142 Handle(Graphic3d_NMapOfTransient)& ChangeHiddenObjects() { return myHiddenObjects; }
143
144 //! Returns Standard_True in case if the structure with the given <theStructId> is
145 //! in list of structures to be computed and stores computed struct to <theComputedStruct>.
146 Standard_EXPORT Standard_Boolean IsComputed (const Standard_Integer theStructId,
147 Handle(Graphic3d_Structure)& theComputedStruct) const;
148
50d06d8f 149 //! Returns the bounding box of all structures displayed in the view.
3fe9ce0e 150 //! If theToIncludeAuxiliary is TRUE, then the boundary box also includes minimum and maximum limits
151 //! of graphical elements forming parts of infinite and other auxiliary structures.
152 //! @param theToIncludeAuxiliary consider also auxiliary presentations (with infinite flag or with trihedron transformation persistence)
153 //! @return computed bounding box
91515621 154 Standard_EXPORT virtual Bnd_Box MinMaxValues (const Standard_Boolean theToIncludeAuxiliary = Standard_False) const;
c357e426 155
156 //! Returns the coordinates of the boundary box of all structures in the set <theSet>.
157 //! If <theToIgnoreInfiniteFlag> is TRUE, then the boundary box
158 //! also includes minimum and maximum limits of graphical elements
159 //! forming parts of infinite structures.
160 Standard_EXPORT Bnd_Box MinMaxValues (const Graphic3d_MapOfStructure& theSet,
3fe9ce0e 161 const Standard_Boolean theToIncludeAuxiliary = Standard_False) const;
c357e426 162
163 //! Returns the structure manager handle which manage structures associated with this view.
164 const Handle(Graphic3d_StructureManager)& StructureManager() const { return myStructureManager; }
165
166private:
167
c357e426 168 //! Is it possible to display the structure in the view?
169 Standard_EXPORT Graphic3d_TypeOfAnswer acceptDisplay (const Graphic3d_TypeOfStructure theStructType) const;
170
c357e426 171 //! Clears the structure in this view.
7dd7c146 172 Standard_EXPORT void Clear (Graphic3d_Structure* theStructure,
173 const Standard_Boolean theWithDestruction);
c357e426 174
175 //! Connects the structures.
7dd7c146 176 Standard_EXPORT void Connect (const Graphic3d_Structure* theMother,
177 const Graphic3d_Structure* theDaughter);
c357e426 178
179 //! Disconnects the structures.
7dd7c146 180 Standard_EXPORT void Disconnect (const Graphic3d_Structure* theMother,
181 const Graphic3d_Structure* theDaughter);
c357e426 182
183 //! Displays the structure in the view.
184 Standard_EXPORT void Display (const Handle(Graphic3d_Structure)& theStructure);
185
c357e426 186 //! Erases the structure from the view.
187 Standard_EXPORT void Erase (const Handle(Graphic3d_Structure)& theStructure);
188
c357e426 189 //! Highlights the structure in the view.
8e5fb5ea 190 Standard_EXPORT void Highlight (const Handle(Graphic3d_Structure)& theStructure);
c357e426 191
192 //! Transforms the structure in the view.
193 Standard_EXPORT void SetTransform (const Handle(Graphic3d_Structure)& theStructure,
1f7f5a90 194 const Handle(Geom_Transformation)& theTrsf);
c357e426 195
196 //! Suppress the highlighting on the structure <AStructure>
197 //! in the view <me>.
198 Standard_EXPORT void UnHighlight (const Handle(Graphic3d_Structure)& theStructure);
199
200 //! Returns an index != 0 if the structure have another structure computed for the view <me>.
7dd7c146 201 Standard_EXPORT Standard_Integer IsComputed (const Graphic3d_Structure* theStructure) const;
202
203 Standard_Integer IsComputed (const Handle(Graphic3d_Structure)& theStructure) const { return IsComputed (theStructure.get()); }
c357e426 204
205 //! Returns true if the structure is displayed in the view.
206 Standard_EXPORT Standard_Boolean IsDisplayed (const Handle(Graphic3d_Structure)& theStructure) const;
207
208 //! Changes the display priority of the structure.
209 Standard_EXPORT void ChangePriority (const Handle(Graphic3d_Structure)& theStructure,
210 const Standard_Integer theOldPriority,
211 const Standard_Integer theNewPriority);
212
213 //! Change Z layer of already displayed structure in the view.
214 Standard_EXPORT void ChangeZLayer (const Handle(Graphic3d_Structure)& theStructure,
215 const Graphic3d_ZLayerId theLayerId);
216
217 //! Returns an index != 0 if the structure have the same owner than another structure
218 //! in the sequence of the computed structures.
219 Standard_EXPORT Standard_Integer HaveTheSameOwner (const Handle(Graphic3d_Structure)& theStructure) const;
bf75be98 220
221public:
222
c357e426 223 //! Redraw content of the view.
224 virtual void Redraw() = 0;
225
226 //! Redraw immediate content of the view.
227 virtual void RedrawImmediate() = 0;
228
229 //! Invalidates content of the view but does not redraw it.
230 virtual void Invalidate() = 0;
231
232 //! Return true if view content cache has been invalidated.
233 virtual Standard_Boolean IsInvalidated() = 0;
234
235 //! Handle changing size of the rendering window.
236 virtual void Resized() = 0;
237
238 //! @param theDrawToFrontBuffer Advanced option to modify rendering mode:
239 //! 1. TRUE. Drawing immediate mode structures directly to the front buffer over the scene image.
240 //! Fast, so preferred for interactive work (used by default).
241 //! However these extra drawings will be missed in image dump since it is performed from back buffer.
242 //! Notice that since no pre-buffering used the V-Sync will be ignored and rendering could be seen
243 //! in run-time (in case of slow hardware) and/or tearing may appear.
244 //! So this is strongly recommended to draw only simple (fast) structures.
245 //! 2. FALSE. Drawing immediate mode structures to the back buffer.
246 //! The complete scene is redrawn first, so this mode is slower if scene contains complex data and/or V-Sync
247 //! is turned on. But it works in any case and is especially useful for view dump because the dump image is read
248 //! from the back buffer.
249 //! @return previous mode.
250 virtual Standard_Boolean SetImmediateModeDrawToFront (const Standard_Boolean theDrawToFrontBuffer) = 0;
251
252 //! Creates and maps rendering window to the view.
c357e426 253 //! @param theWindow [in] the window.
254 //! @param theContext [in] the rendering context. If NULL the context will be created internally.
c357e426 255 virtual void SetWindow (const Handle(Aspect_Window)& theWindow,
a521d90d 256 const Aspect_RenderingContext theContext = NULL) = 0;
c357e426 257
258 //! Returns the window associated to the view.
259 virtual Handle(Aspect_Window) Window() const = 0;
260
261 //! Returns True if the window associated to the view is defined.
262 virtual Standard_Boolean IsDefined() const = 0;
263
c357e426 264 //! Dump active rendering buffer into specified memory buffer.
265 virtual Standard_Boolean BufferDump (Image_PixMap& theImage, const Graphic3d_BufferType& theBufferType) = 0;
266
c357e426 267 //! Marks BVH tree and the set of BVH primitives of correspondent priority list with id theLayerId as outdated.
8f138407 268 virtual void InvalidateBVHData (const Graphic3d_ZLayerId theLayerId) = 0;
c357e426 269
270 //! Add a new top-level z layer with ID <theLayerId> for
271 //! the view. Z layers allow drawing structures in higher layers
272 //! in foreground of structures in lower layers. To add a structure
273 //! to desired layer on display it is necessary to set the layer
274 //! ID for the structure.
275 virtual void AddZLayer (const Graphic3d_ZLayerId theLayerId) = 0;
276
50d06d8f 277 //! Returns the maximum Z layer ID.
278 //! First layer ID is Graphic3d_ZLayerId_Default, last ID is ZLayerMax().
279 virtual Standard_Integer ZLayerMax() const = 0;
280
281 //! Returns the bounding box of all structures displayed in the Z layer.
282 virtual void InvalidateZLayerBoundingBox (const Graphic3d_ZLayerId theLayerId) const = 0;
283
284 //! Returns the bounding box of all structures displayed in the Z layer.
3fe9ce0e 285 //! @param theLayerId layer identifier
286 //! @param theCamera camera definition
287 //! @param theWindowWidth viewport width (for applying transformation-persistence)
288 //! @param theWindowHeight viewport height (for applying transformation-persistence)
289 //! @param theToIncludeAuxiliary consider also auxiliary presentations (with infinite flag or with trihedron transformation persistence)
290 //! @return computed bounding box
7c3ef2f7 291 virtual Bnd_Box ZLayerBoundingBox (const Graphic3d_ZLayerId theLayerId,
292 const Handle(Graphic3d_Camera)& theCamera,
293 const Standard_Integer theWindowWidth,
294 const Standard_Integer theWindowHeight,
295 const Standard_Boolean theToIncludeAuxiliary) const = 0;
50d06d8f 296
c357e426 297 //! Remove Z layer from the specified view. All structures
298 //! displayed at the moment in layer will be displayed in default layer
299 //! ( the bottom-level z layer ). To unset layer ID from associated
300 //! structures use method UnsetZLayer (...).
301 virtual void RemoveZLayer (const Graphic3d_ZLayerId theLayerId) = 0;
302
303 //! Sets the settings for a single Z layer of specified view.
304 virtual void SetZLayerSettings (const Graphic3d_ZLayerId theLayerId,
305 const Graphic3d_ZLayerSettings& theSettings) = 0;
306
50d06d8f 307 //! Returns zoom-scale factor.
308 Standard_EXPORT Standard_Real ConsiderZoomPersistenceObjects();
309
c357e426 310 //! Returns pointer to an assigned framebuffer object.
b128c892 311 virtual Handle(Standard_Transient) FBO() const = 0;
c357e426 312
313 //! Sets framebuffer object for offscreen rendering.
b128c892 314 virtual void SetFBO (const Handle(Standard_Transient)& theFbo) = 0;
c357e426 315
316 //! Generate offscreen FBO in the graphic library.
317 //! If not supported on hardware returns NULL.
b128c892 318 virtual Handle(Standard_Transient) FBOCreate (const Standard_Integer theWidth,
319 const Standard_Integer theHeight) = 0;
c357e426 320
321 //! Remove offscreen FBO from the graphic library
b128c892 322 virtual void FBORelease (Handle(Standard_Transient)& theFbo) = 0;
c357e426 323
324 //! Read offscreen FBO configuration.
b128c892 325 virtual void FBOGetDimensions (const Handle(Standard_Transient)& theFbo,
c357e426 326 Standard_Integer& theWidth,
327 Standard_Integer& theHeight,
328 Standard_Integer& theWidthMax,
329 Standard_Integer& theHeightMax) = 0;
330
331 //! Change offscreen FBO viewport.
b128c892 332 virtual void FBOChangeViewport (const Handle(Standard_Transient)& theFbo,
c357e426 333 const Standard_Integer theWidth,
334 const Standard_Integer theHeight) = 0;
bf75be98 335
336public:
337
c357e426 338 //! Copy visualization settings from another view.
339 //! Method is used for cloning views in viewer when its required to create view
340 //! with same view properties.
341 Standard_EXPORT virtual void CopySettings (const Handle(Graphic3d_CView)& theOther);
342
343 //! Returns current rendering parameters and effect settings.
344 const Graphic3d_RenderingParams& RenderingParams() const { return myRenderParams; }
345
346 //! Returns reference to current rendering parameters and effect settings.
347 Graphic3d_RenderingParams& ChangeRenderingParams() { return myRenderParams; }
348
c357e426 349 //! Returns background fill color.
d325cb7f 350 virtual Aspect_Background Background() const { return Aspect_Background (myBgColor.GetRGB()); }
c357e426 351
352 //! Sets background fill color.
d325cb7f 353 virtual void SetBackground (const Aspect_Background& theBackground) { myBgColor.SetRGB (theBackground.Color()); }
c357e426 354
355 //! Returns gradient background fill colors.
356 virtual Aspect_GradientBackground GradientBackground() const = 0;
357
358 //! Sets gradient background fill colors.
359 virtual void SetGradientBackground (const Aspect_GradientBackground& theBackground) = 0;
360
361 //! Returns background image texture file path.
362 virtual TCollection_AsciiString BackgroundImage() = 0;
363
364 //! Sets background image texture file path.
365 virtual void SetBackgroundImage (const TCollection_AsciiString& theFilePath) = 0;
366
367 //! Returns background image fill style.
368 virtual Aspect_FillMethod BackgroundImageStyle() const = 0;
369
370 //! Sets background image fill style.
371 virtual void SetBackgroundImageStyle (const Aspect_FillMethod theFillStyle) = 0;
372
373 //! Returns environment texture set for the view.
374 virtual Handle(Graphic3d_TextureEnv) TextureEnv() const = 0;
375
376 //! Sets environment texture for the view.
377 virtual void SetTextureEnv (const Handle(Graphic3d_TextureEnv)& theTextureEnv) = 0;
378
c357e426 379 //! Return backfacing model used for the view.
380 virtual Graphic3d_TypeOfBackfacingModel BackfacingModel() const = 0;
bf75be98 381
c357e426 382 //! Sets backfacing model for the view.
383 virtual void SetBackfacingModel (const Graphic3d_TypeOfBackfacingModel theModel) = 0;
bf75be98 384
c357e426 385 //! Returns list of lights of the view.
992ed6b3 386 virtual const Handle(Graphic3d_LightSet)& Lights() const = 0;
c357e426 387
388 //! Sets list of lights for the view.
992ed6b3 389 virtual void SetLights (const Handle(Graphic3d_LightSet)& theLights) = 0;
c357e426 390
391 //! Returns list of clip planes set for the view.
3202bf1e 392 virtual const Handle(Graphic3d_SequenceOfHClipPlane)& ClipPlanes() const = 0;
c357e426 393
394 //! Sets list of clip planes for the view.
3202bf1e 395 virtual void SetClipPlanes (const Handle(Graphic3d_SequenceOfHClipPlane)& thePlanes) = 0;
c357e426 396
26d9c835 397 //! Fill in the dictionary with diagnostic info.
398 //! Should be called within rendering thread.
399 //!
400 //! This API should be used only for user output or for creating automated reports.
401 //! The format of returned information (e.g. key-value layout)
402 //! is NOT part of this API and can be changed at any time.
403 //! Thus application should not parse returned information to weed out specific parameters.
404 virtual void DiagnosticInformation (TColStd_IndexedDataMapOfStringString& theDict,
405 Graphic3d_DiagnosticInfo theFlags) const = 0;
406
79b544e6 407 //! Returns string with statistic performance info.
408 virtual TCollection_AsciiString StatisticInformation() const = 0;
409
410 //! Fills in the dictionary with statistic performance info.
411 virtual void StatisticInformation (TColStd_IndexedDataMapOfStringString& theDict) const = 0;
412
d325cb7f 413public: //! @name obsolete Graduated Trihedron functionality
414
415 //! Returns data of a graduated trihedron
416 virtual const Graphic3d_GraduatedTrihedron& GetGraduatedTrihedron() { return myGTrihedronData; }
417
418 //! Displays Graduated Trihedron.
419 virtual void GraduatedTrihedronDisplay (const Graphic3d_GraduatedTrihedron& theTrihedronData) { (void )theTrihedronData; }
420
421 //! Erases Graduated Trihedron.
422 virtual void GraduatedTrihedronErase() {}
423
424 //! Sets minimum and maximum points of scene bounding box for Graduated Trihedron stored in graphic view object.
425 //! @param theMin [in] the minimum point of scene.
426 //! @param theMax [in] the maximum point of scene.
427 virtual void GraduatedTrihedronMinMaxValues (const Graphic3d_Vec3 theMin, const Graphic3d_Vec3 theMax)
428 {
429 (void )theMin;
430 (void )theMax;
431 }
432
c357e426 433private:
434
435 //! Adds the structure to display lists of the view.
436 virtual void displayStructure (const Handle(Graphic3d_CStructure)& theStructure,
437 const Standard_Integer thePriority) = 0;
438
439 //! Erases the structure from display lists of the view.
440 virtual void eraseStructure (const Handle(Graphic3d_CStructure)& theStructure) = 0;
441
442 //! Change Z layer of a structure already presented in view.
443 virtual void changeZLayer (const Handle(Graphic3d_CStructure)& theCStructure,
444 const Graphic3d_ZLayerId theNewLayerId) = 0;
445
446 //! Changes the priority of a structure within its Z layer in the specified view.
447 virtual void changePriority (const Handle(Graphic3d_CStructure)& theCStructure,
448 const Standard_Integer theNewPriority) = 0;
449
50d06d8f 450 //! Returns zoom-scale factor.
451 virtual Standard_Real considerZoomPersistenceObjects (const Graphic3d_ZLayerId theLayerId,
452 const Handle(Graphic3d_Camera)& theCamera,
453 const Standard_Integer theWindowWidth,
3fe9ce0e 454 const Standard_Integer theWindowHeight) const = 0;
c357e426 455
456protected:
457
458 Standard_Integer myId;
459 Graphic3d_RenderingParams myRenderParams;
d325cb7f 460 Quantity_ColorRGBA myBgColor;
c357e426 461 Handle(Graphic3d_StructureManager) myStructureManager;
d325cb7f 462 Handle(Graphic3d_Camera) myCamera;
c357e426 463 Graphic3d_SequenceOfStructure myStructsToCompute;
464 Graphic3d_SequenceOfStructure myStructsComputed;
465 Graphic3d_MapOfStructure myStructsDisplayed;
466 Handle(Graphic3d_NMapOfTransient) myHiddenObjects;
467 Standard_Boolean myIsInComputedMode;
468 Standard_Boolean myIsActive;
469 Standard_Boolean myIsRemoved;
dc89236f 470 Graphic3d_TypeOfShadingModel myShadingModel;
c357e426 471 Graphic3d_TypeOfVisualization myVisualization;
c357e426 472
d325cb7f 473protected:
474
475 Graphic3d_GraduatedTrihedron myGTrihedronData;
476
bf75be98 477};
478
c357e426 479#endif // _Graphic3d_CView_HeaderFile