0028726: Quantity_NameOfColor should be replaced by Quantity_Color in function input...
[occt.git] / src / V3d / V3d_Viewer.hxx
CommitLineData
42cf5bc1 1// Created on: 1992-01-17
2// Created by: GG
3// Copyright (c) 1992-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _V3d_Viewer_HeaderFile
18#define _V3d_Viewer_HeaderFile
19
c357e426 20#include <Aspect_Background.hxx>
21#include <Aspect_GenId.hxx>
22#include <Aspect_GradientBackground.hxx>
23#include <Aspect_GradientFillMethod.hxx>
24#include <Aspect_GridDrawMode.hxx>
25#include <Aspect_GridType.hxx>
26
27#include <gp_Ax3.hxx>
28#include <Graphic3d_StructureManager.hxx>
29#include <Graphic3d_Vertex.hxx>
30#include <Graphic3d_ZLayerSettings.hxx>
31
42cf5bc1 32#include <Standard.hxx>
c357e426 33#include <Standard_Boolean.hxx>
34#include <Standard_CString.hxx>
35#include <Standard_ExtString.hxx>
36#include <Standard_Integer.hxx>
37#include <Standard_Real.hxx>
42cf5bc1 38#include <Standard_Type.hxx>
39
c357e426 40#include <TColStd_MapOfInteger.hxx>
41#include <TColStd_ListIteratorOfListOfTransient.hxx>
42#include <TColStd_SequenceOfInteger.hxx>
42cf5bc1 43#include <TCollection_AsciiString.hxx>
c357e426 44#include <TCollection_ExtendedString.hxx>
45
6a24c6de 46#include <V3d_ListOfLight.hxx>
47#include <V3d_ListOfView.hxx>
42cf5bc1 48#include <V3d_TypeOfOrientation.hxx>
42cf5bc1 49#include <V3d_TypeOfShadingModel.hxx>
42cf5bc1 50#include <V3d_TypeOfView.hxx>
c357e426 51#include <V3d_TypeOfVisualization.hxx>
52
6a24c6de 53#include <Quantity_Color.hxx>
c357e426 54#include <Quantity_Length.hxx>
42cf5bc1 55#include <Quantity_Parameter.hxx>
c357e426 56#include <Quantity_PlaneAngle.hxx>
57#include <Quantity_TypeOfColor.hxx>
58
59class Aspect_Grid;
60class Graphic3d_AspectMarker3d;
42cf5bc1 61class Graphic3d_GraphicDriver;
42cf5bc1 62class Graphic3d_Group;
c357e426 63class Graphic3d_Structure;
42cf5bc1 64class V3d_BadValue;
c357e426 65class V3d_CircularGrid;
66class V3d_Light;
67class V3d_RectangularGrid;
42cf5bc1 68class V3d_View;
69class Quantity_Color;
42cf5bc1 70
42cf5bc1 71//! Defines services on Viewer type objects.
72//! The methods of this class allow editing and
73//! interrogation of the parameters linked to the viewer
74//! its friend classes (View,light,plane).
6a24c6de 75class V3d_Viewer : public Standard_Transient
42cf5bc1 76{
6a24c6de 77 friend class V3d_View;
78 friend class V3d_Light;
79 DEFINE_STANDARD_RTTIEXT(V3d_Viewer, Standard_Transient)
42cf5bc1 80public:
81
6a24c6de 82 //! Create a Viewer with the given graphic driver and with default parameters:
83 //! - View orientation: V3d_XposYnegZpos
84 //! - View background: Quantity_NOC_GRAY30
85 //! - Shading model: V3d_GOURAUD
86 Standard_EXPORT V3d_Viewer (const Handle(Graphic3d_GraphicDriver)& theDriver);
87
88 //! Returns True if One View more can be defined in this Viewer.
89 Standard_EXPORT Standard_Boolean IfMoreViews() const;
90
91 //! Creates a view in the viewer according to its default parameters.
42cf5bc1 92 Standard_EXPORT Handle(V3d_View) CreateView();
93
6a24c6de 94 //! Activates all of the views of a viewer attached to a window.
42cf5bc1 95 Standard_EXPORT void SetViewOn();
96
6a24c6de 97 //! Activates a particular view in the Viewer.
98 //! Must be call if the Window attached to the view has been Deiconified.
99 Standard_EXPORT void SetViewOn (const Handle(V3d_View)& theView);
100
42cf5bc1 101 //! Deactivates all the views of a Viewer
102 //! attached to a window.
103 Standard_EXPORT void SetViewOff();
104
105 //! Deactivates a particular view in the Viewer.
106 //! Must be call if the Window attached to the view
107 //! has been Iconified .
6a24c6de 108 Standard_EXPORT void SetViewOff (const Handle(V3d_View)& theView);
42cf5bc1 109
110 //! Deprecated, Redraw() should be used instead.
6a24c6de 111 void Update() { Redraw(); }
112
42cf5bc1 113 //! Redraws all the views of the Viewer even if no
114 //! modification has taken place. Must be called if
115 //! all the views of the Viewer are exposed, as for
116 //! example in a global DeIconification.
117 Standard_EXPORT void Redraw() const;
118
119 //! Updates layer of immediate presentations.
120 Standard_EXPORT void RedrawImmediate() const;
121
122 //! Invalidates viewer content but does not redraw it.
123 Standard_EXPORT void Invalidate() const;
124
125 //! Suppresses the Viewer.
126 Standard_EXPORT void Remove();
6a24c6de 127
128 //! Return Graphic Driver instance.
129 const Handle(Graphic3d_GraphicDriver)& Driver() const { return myDriver; }
130
131 //! Returns the structure manager associated to this viewer.
132 Handle(Graphic3d_StructureManager) StructureManager() const { return myStructureManager; }
133
134 //! Return default Rendering Parameters.
135 //! By default these parameters are set in a new V3d_View.
136 const Graphic3d_RenderingParams& DefaultRenderingParams() const { return myDefaultRenderingParams; }
137
138 //! Set default Rendering Parameters.
139 void SetDefaultRenderingParams (const Graphic3d_RenderingParams& theParams) { myDefaultRenderingParams = theParams; }
140
42cf5bc1 141 //! Defines the default background colour of views
42cf5bc1 142 //! attached to the viewer by supplying the color object
6a24c6de 143 void SetDefaultBackgroundColor (const Quantity_Color& theColor) { myBackground.SetColor (theColor); }
144
145 //! Returns the gradient background of the view.
146 const Aspect_GradientBackground& GetGradientBackground() const { return myGradientBackground; }
42cf5bc1 147
148 //! Defines the default gradient background colours of views
149 //! attached to the viewer by supplying the colour objects
6a24c6de 150 void SetDefaultBgGradientColors (const Quantity_Color& theColor1,
151 const Quantity_Color& theColor2,
152 const Aspect_GradientFillMethod theFillStyle = Aspect_GFM_HOR)
153 {
154 myGradientBackground.SetColors (theColor1, theColor2, theFillStyle);
155 }
156
157 //! Returns the default size of the view.
158 Standard_Real DefaultViewSize() const { return myViewSize; }
159
160 //! Gives a default size for the creation of views of the viewer.
161 Standard_EXPORT void SetDefaultViewSize (const Standard_Real theSize);
162
163 //! Returns the default Projection.
164 V3d_TypeOfOrientation DefaultViewProj() const { return myViewProj; }
165
166 //! Sets the default projection for creating views in the viewer.
167 void SetDefaultViewProj (const V3d_TypeOfOrientation theOrientation) { myViewProj = theOrientation; }
168
169 //! Returns the default type of Visualization.
170 V3d_TypeOfVisualization DefaultVisualization() const { return myVisualization; }
171
172 //! Gives the default visualization mode.
173 void SetDefaultVisualization (const V3d_TypeOfVisualization theType) { myVisualization = theType; }
174
175 //! Returns the default type of Shading
176 V3d_TypeOfShadingModel DefaultShadingModel() const { return myShadingModel; }
c357e426 177
42cf5bc1 178 //! Gives the default type of SHADING.
6a24c6de 179 void SetDefaultShadingModel (const V3d_TypeOfShadingModel theType) { myShadingModel = theType; }
180
6a24c6de 181 void SetDefaultTypeOfView (const V3d_TypeOfView theType) { myDefaultTypeOfView = theType; }
182
183 //! Returns the default background colour object.
184 Quantity_Color DefaultBackgroundColor() const { return myBackground.Color(); }
185
186 //! Returns the gradient background colour objects of the view.
187 void DefaultBgGradientColors (Quantity_Color& theColor1, Quantity_Color& theColor2) const { myGradientBackground.Colors (theColor1, theColor2); }
188
189 //! Return all Z layer ids in sequence ordered by overlay level from lowest layer to highest ( foreground ).
190 //! The first layer ID in sequence is the default layer that can't be removed.
191 Standard_EXPORT void GetAllZLayers (TColStd_SequenceOfInteger& theLayerSeq) const;
192
193 //! Add a new top-level Z layer to all managed views and get its ID as <theLayerId> value.
194 //! The Z layers are controlled entirely by viewer, it is not possible to add a layer to a particular view.
195 //! The method returns Standard_False if the layer can not be created.
196 //! The layer mechanism allows to display structures in higher layers in overlay of structures in lower layers.
197 Standard_EXPORT Standard_Boolean AddZLayer (Standard_Integer& theLayerId);
198
199 //! Remove Z layer with ID <theLayerId>.
200 //! Method returns Standard_False if the layer can not be removed or doesn't exists.
201 //! By default, there are always default bottom-level layer that can't be removed.
202 Standard_EXPORT Standard_Boolean RemoveZLayer (const Standard_Integer theLayerId);
203
204 //! Returns the settings of a single Z layer.
205 Standard_EXPORT Graphic3d_ZLayerSettings ZLayerSettings (const Standard_Integer theLayerId);
206
207 //! Sets the settings for a single Z layer.
208 Standard_EXPORT void SetZLayerSettings (const Standard_Integer theLayerId, const Graphic3d_ZLayerSettings& theSettings);
209
210public:
211
212 //! Return an iterator for active views.
213 V3d_ListOfViewIterator ActiveViewIterator() const { return V3d_ListOfViewIterator (myActiveViews); }
214
215 //! Initializes an internal iterator on the active views.
216 void InitActiveViews() { myActiveViewsIterator.Initialize (myActiveViews); }
217
218 //! Returns true if there are more active view(s) to return.
219 Standard_Boolean MoreActiveViews() const { return myActiveViewsIterator.More(); }
220
221 //! Go to the next active view (if there is not, ActiveView will raise an exception)
222 void NextActiveViews() { if (!myActiveViews.IsEmpty()) myActiveViewsIterator.Next(); }
42cf5bc1 223
6a24c6de 224 const Handle(V3d_View)& ActiveView() const { return myActiveViewsIterator.Value(); }
42cf5bc1 225
6a24c6de 226 //! returns true if there is only one active view.
227 Standard_Boolean LastActiveView() const { return myActiveViews.Extent() == 1; }
228
229public:
230
231 //! Return an iterator for defined views.
232 V3d_ListOfViewIterator DefinedViewIterator() const { return V3d_ListOfViewIterator (myDefinedViews); }
233
234 //! Initializes an internal iterator on the Defined views.
235 void InitDefinedViews() { myDefinedViewsIterator.Initialize (myDefinedViews); }
236
237 //! returns true if there are more Defined view(s) to return.
238 Standard_Boolean MoreDefinedViews() const { return myDefinedViewsIterator.More(); }
239
240 //! Go to the next Defined view (if there is not, DefinedView will raise an exception)
241 void NextDefinedViews() { if (!myDefinedViews.IsEmpty()) myDefinedViewsIterator.Next(); }
242
243 const Handle(V3d_View)& DefinedView() const { return myDefinedViewsIterator.Value(); }
244
245public: //! @name lights management
246
247 //! Defines default lights:
248 //! positional-light 0.3 0. 0.
249 //! directional-light V3d_XnegYposZpos
250 //! directional-light V3d_XnegYneg
251 //! ambient-light
252 Standard_EXPORT void SetDefaultLights();
253
42cf5bc1 254 //! Activates MyLight in the viewer.
6a24c6de 255 Standard_EXPORT void SetLightOn (const Handle(V3d_Light)& theLight);
42cf5bc1 256
257 //! Activates all the lights defined in this viewer.
258 Standard_EXPORT void SetLightOn();
259
c357e426 260 //! Deactivates MyLight in this viewer.
6a24c6de 261 Standard_EXPORT void SetLightOff (const Handle(V3d_Light)& theLight);
42cf5bc1 262
263 //! Deactivate all the Lights defined in this viewer.
264 Standard_EXPORT void SetLightOff();
265
266 //! Delete Light in Sequence Of Lights.
6a24c6de 267 Standard_EXPORT void DelLight (const Handle(V3d_Light)& theLight);
42cf5bc1 268
6a24c6de 269 //! Updates the lights of all the views of a viewer.
270 Standard_EXPORT void UpdateLights();
271
42cf5bc1 272 Standard_EXPORT Standard_Boolean IsGlobalLight (const Handle(V3d_Light)& TheLight) const;
6a24c6de 273
274 //! Return an iterator for defined lights.
275 V3d_ListOfLightIterator ActiveLightIterator() const { return V3d_ListOfLightIterator (myActiveLights); }
276
277 //! Initializes an internal iteratator on the active Lights.
278 void InitActiveLights() { myActiveLightsIterator.Initialize (myActiveLights); }
279
280 //! returns true if there are more active Light(s) to return.
281 Standard_Boolean MoreActiveLights() const { return myActiveLightsIterator.More(); }
282
283 //! Go to the next active Light (if there is not, ActiveLight() will raise an exception)
284 void NextActiveLights() { myActiveLightsIterator.Next(); }
285
286 const Handle(V3d_Light)& ActiveLight() const { return myActiveLightsIterator.Value(); }
287
288public:
289
290 //! Return an iterator for defined lights.
291 V3d_ListOfLightIterator DefinedLightIterator() const { return V3d_ListOfLightIterator (myDefinedLights); }
292
293 //! Initializes an internal iterattor on the Defined Lights.
294 void InitDefinedLights() { myDefinedLightsIterator.Initialize (myDefinedLights); }
42cf5bc1 295
6a24c6de 296 //! Returns true if there are more Defined Light(s) to return.
297 Standard_Boolean MoreDefinedLights() const { return myDefinedLightsIterator.More(); }
298
299 //! Go to the next Defined Light (if there is not, DefinedLight() will raise an exception)
300 void NextDefinedLights() { if (!myDefinedLights.IsEmpty()) myDefinedLightsIterator.Next(); }
301
302 const Handle(V3d_Light)& DefinedLight() const { return myDefinedLightsIterator.Value(); }
303
304public: //! @name objects management
305
306 //! Erase all Objects in All the views.
307 Standard_EXPORT void Erase() const;
308
309 //! UnHighlight all Objects in All the views.
310 Standard_EXPORT void UnHighlight() const;
311
312public:
313
42cf5bc1 314 //! returns true if the computed mode can be used.
6a24c6de 315 Standard_Boolean ComputedMode() const { return myComputedMode; }
316
317 //! Set if the computed mode can be used.
318 void SetComputedMode (const Standard_Boolean theMode) { myComputedMode = theMode; }
319
42cf5bc1 320 //! returns true if by default the computed mode must be used.
6a24c6de 321 Standard_Boolean DefaultComputedMode() const { return myDefaultComputedMode; }
322
323 //! Set if by default the computed mode must be used.
324 void SetDefaultComputedMode (const Standard_Boolean theMode) { myDefaultComputedMode = theMode; }
325
326public: //! @name privileged plane management
327
328 Standard_EXPORT gp_Ax3 PrivilegedPlane() const;
329
330 Standard_EXPORT void SetPrivilegedPlane (const gp_Ax3& thePlane);
331
332 Standard_EXPORT void DisplayPrivilegedPlane (const Standard_Boolean theOnOff, const Quantity_Length theSize = 1);
333
334public: //! @name grid management
335
42cf5bc1 336 //! Activates the grid in all views of <me>.
337 Standard_EXPORT void ActivateGrid (const Aspect_GridType aGridType, const Aspect_GridDrawMode aGridDrawMode);
338
339 //! Deactivates the grid in all views of <me>.
340 Standard_EXPORT void DeactivateGrid();
341
342 //! Show/Don't show grid echo to the hit point.
343 //! If TRUE,the grid echo will be shown at ConvertToGrid() time.
344 Standard_EXPORT void SetGridEcho (const Standard_Boolean showGrid = Standard_True);
345
346 //! Show grid echo <aMarker> to the hit point.
347 //! Warning: When the grid echo marker is not set,
348 //! a default marker is build with the attributes:
349 //! marker type : Aspect_TOM_STAR
350 //! marker color : Quantity_NOC_GRAY90
351 //! marker size : 3.0
352 Standard_EXPORT void SetGridEcho (const Handle(Graphic3d_AspectMarker3d)& aMarker);
353
354 //! Returns TRUE when grid echo must be displayed
355 //! at hit point.
356 Standard_EXPORT Standard_Boolean GridEcho() const;
357
358 //! Returns Standard_True if a grid is activated in <me>.
359 Standard_EXPORT Standard_Boolean IsActive() const;
360
361 //! Returns the defined grid in <me>.
362 Standard_EXPORT Handle(Aspect_Grid) Grid() const;
363
364 //! Returns the current grid type defined in <me>.
365 Standard_EXPORT Aspect_GridType GridType() const;
366
367 //! Returns the current grid draw mode defined in <me>.
368 Standard_EXPORT Aspect_GridDrawMode GridDrawMode() const;
369
370 //! Returns the definition of the rectangular grid.
371 Standard_EXPORT void RectangularGridValues (Quantity_Length& XOrigin, Quantity_Length& YOrigin, Quantity_Length& XStep, Quantity_Length& YStep, Quantity_PlaneAngle& RotationAngle) const;
372
373 //! Sets the definition of the rectangular grid.
374 //! <XOrigin>, <YOrigin> defines the origin of the grid.
375 //! <XStep> defines the interval between 2 vertical lines.
376 //! <YStep> defines the interval between 2 horizontal lines.
377 //! <RotationAngle> defines the rotation angle of the grid.
378 Standard_EXPORT void SetRectangularGridValues (const Quantity_Length XOrigin, const Quantity_Length YOrigin, const Quantity_Length XStep, const Quantity_Length YStep, const Quantity_PlaneAngle RotationAngle);
379
380 //! Returns the definition of the circular grid.
381 Standard_EXPORT void CircularGridValues (Quantity_Length& XOrigin, Quantity_Length& YOrigin, Quantity_Length& RadiusStep, Standard_Integer& DivisionNumber, Quantity_PlaneAngle& RotationAngle) const;
382
383 //! Sets the definition of the circular grid.
384 //! <XOrigin>, <YOrigin> defines the origin of the grid.
385 //! <RadiusStep> defines the interval between 2 circles.
386 //! <DivisionNumber> defines the section number of one half circle.
387 //! <RotationAngle> defines the rotation angle of the grid.
388 Standard_EXPORT void SetCircularGridValues (const Quantity_Length XOrigin, const Quantity_Length YOrigin, const Quantity_Length RadiusStep, const Standard_Integer DivisionNumber, const Quantity_PlaneAngle RotationAngle);
389
390 //! Returns the location and the size of the grid.
391 Standard_EXPORT void CircularGridGraphicValues (Quantity_Length& Radius, Quantity_Length& OffSet) const;
392
393 //! Sets the location and the size of the grid.
394 //! <XSize> defines the width of the grid.
395 //! <YSize> defines the height of the grid.
396 //! <OffSet> defines the displacement along the plane normal.
397 Standard_EXPORT void SetCircularGridGraphicValues (const Quantity_Length Radius, const Quantity_Length OffSet);
398
399 //! Returns the location and the size of the grid.
400 Standard_EXPORT void RectangularGridGraphicValues (Quantity_Length& XSize, Quantity_Length& YSize, Quantity_Length& OffSet) const;
401
402 //! Sets the location and the size of the grid.
403 //! <XSize> defines the width of the grid.
404 //! <YSize> defines the height of the grid.
405 //! <OffSet> defines the displacement along the plane normal.
406 Standard_EXPORT void SetRectangularGridGraphicValues (const Quantity_Length XSize, const Quantity_Length YSize, const Quantity_Length OffSet);
407
42cf5bc1 408 //! Display grid echo at requested point in the view.
409 Standard_EXPORT void ShowGridEcho (const Handle(V3d_View)& theView, const Graphic3d_Vertex& thePoint);
42cf5bc1 410
411 //! Temporarly hide grid echo.
412 Standard_EXPORT void HideGridEcho (const Handle(V3d_View)& theView);
c357e426 413
6a24c6de 414public: //! @name deprecated methods
415
416 Standard_DEPRECATED("This constructor is deprecated")
417 Standard_EXPORT V3d_Viewer (const Handle(Graphic3d_GraphicDriver)& theDriver,
418 const Standard_ExtString theName,
419 const Standard_CString theDomain = "",
420 const Quantity_Length theViewSize = 1000.0,
421 const V3d_TypeOfOrientation theViewProj = V3d_XposYnegZpos,
87432b82 422 const Quantity_Color& theViewBackground = Quantity_NOC_GRAY30,
6a24c6de 423 const V3d_TypeOfVisualization theVisualization = V3d_ZBUFFER,
424 const V3d_TypeOfShadingModel theShadingModel = V3d_GOURAUD,
6a24c6de 425 const Standard_Boolean theComputedMode = Standard_True,
426 const Standard_Boolean theDefaultComputedMode = Standard_True);
42cf5bc1 427
6a24c6de 428 //! Defines the default base colour of views attached
429 //! to the Viewer by supplying the type of colour
430 //! definition and the three component values.
431 Standard_DEPRECATED("This method is deprecated - SetDefaultBackgroundColor() taking Quantity_Color should be used instead")
432 void SetDefaultBackgroundColor (const Quantity_TypeOfColor theType,
433 const Quantity_Parameter theV1,
434 const Quantity_Parameter theV2,
435 const Quantity_Parameter theV3)
436 {
437 Standard_Real aV1 = theV1;
438 Standard_Real aV2 = theV2;
439 Standard_Real aV3 = theV3;
440 if (aV1 < 0.0) aV1 = 0.0; else if (aV1 > 1.0) aV1 = 1.0;
441 if (aV2 < 0.0) aV2 = 0.0; else if (aV2 > 1.0) aV2 = 1.0;
442 if (aV3 < 0.0) aV3 = 0.0; else if (aV3 > 1.0) aV3 = 1.0;
443 SetDefaultBackgroundColor (Quantity_Color (aV1, aV2, aV3, theType));
444 }
445
446 Standard_DEPRECATED("This method is deprecated - DefaultBackgroundColor() without arguments should be used instead")
447 void DefaultBackgroundColor (const Quantity_TypeOfColor theType, Quantity_Parameter& theV1, Quantity_Parameter& theV2, Quantity_Parameter& theV3) const
448 {
449 Quantity_Color aColor = DefaultBackgroundColor();
450 aColor.Values (theV1, theV2, theV3, theType) ;
451 }
42cf5bc1 452
42cf5bc1 453private:
454
42cf5bc1 455 //! Returns the default background colour.
6a24c6de 456 const Aspect_Background& GetBackgroundColor() const { return myBackground; }
457
42cf5bc1 458 //! Adds View in Sequence Of Views.
6a24c6de 459 Standard_EXPORT void AddView (const Handle(V3d_View)& theView);
42cf5bc1 460
461 //! Delete View in Sequence Of Views.
6a24c6de 462 Standard_EXPORT void DelView (const Handle(V3d_View)& theView);
42cf5bc1 463
464 //! Adds Light in Sequence Of Lights.
6a24c6de 465 Standard_EXPORT void AddLight (const Handle(V3d_Light)& theLight);
42cf5bc1 466
c357e426 467private:
468
42cf5bc1 469 Handle(Graphic3d_GraphicDriver) myDriver;
c357e426 470 Handle(Graphic3d_StructureManager) myStructureManager;
6a24c6de 471 TColStd_MapOfInteger myLayerIds;
472 Aspect_GenId myZLayerGenId;
473
474 V3d_ListOfView myDefinedViews;
475 V3d_ListOfView myActiveViews;
476 V3d_ListOfLight myDefinedLights;
477 V3d_ListOfLight myActiveLights;
478
479 Aspect_Background myBackground;
480 Aspect_GradientBackground myGradientBackground;
481 Standard_Real myViewSize;
482 V3d_TypeOfOrientation myViewProj;
483 V3d_TypeOfVisualization myVisualization;
484 V3d_TypeOfShadingModel myShadingModel;
485 V3d_TypeOfView myDefaultTypeOfView;
832ae82d 486 Graphic3d_RenderingParams myDefaultRenderingParams;
6a24c6de 487
488 V3d_ListOfView::Iterator myActiveViewsIterator;
489 V3d_ListOfView::Iterator myDefinedViewsIterator;
490 V3d_ListOfLight::Iterator myActiveLightsIterator;
491 V3d_ListOfLight::Iterator myDefinedLightsIterator;
492
42cf5bc1 493 Standard_Boolean myComputedMode;
494 Standard_Boolean myDefaultComputedMode;
6a24c6de 495
42cf5bc1 496 gp_Ax3 myPrivilegedPlane;
497 Handle(Graphic3d_Structure) myPlaneStructure;
498 Standard_Boolean myDisplayPlane;
499 Quantity_Length myDisplayPlaneLength;
6a24c6de 500
42cf5bc1 501 Handle(V3d_RectangularGrid) myRGrid;
502 Handle(V3d_CircularGrid) myCGrid;
503 Aspect_GridType myGridType;
504 Standard_Boolean myGridEcho;
505 Handle(Graphic3d_Structure) myGridEchoStructure;
506 Handle(Graphic3d_Group) myGridEchoGroup;
507 Handle(Graphic3d_AspectMarker3d) myGridEchoAspect;
508 Graphic3d_Vertex myGridEchoLastVert;
6a24c6de 509
42cf5bc1 510};
511
6a24c6de 512DEFINE_STANDARD_HANDLE(V3d_Viewer, Standard_Transient)
513
42cf5bc1 514#endif // _V3d_Viewer_HeaderFile