0030180: Data Exchange - VrmlAPI_Writer is expected to return export state
[occt.git] / src / Prs3d / Prs3d_Drawer.hxx
CommitLineData
6262338c 1// Copyright (c) 1995-1999 Matra Datavision
2// Copyright (c) 1999-2014 OPEN CASCADE SAS
3//
4// This file is part of Open CASCADE Technology software library.
5//
6// This library is free software; you can redistribute it and/or modify it under
7// the terms of the GNU Lesser General Public License version 2.1 as published
8// by the Free Software Foundation, with special exception defined in the file
9// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10// distribution for complete text of the license and disclaimer of any warranty.
11//
12// Alternatively, this file may be used under the terms of Open CASCADE
13// commercial license or contractual agreement.
14
15#ifndef _Prs3d_Drawer_HeaderFile
16#define _Prs3d_Drawer_HeaderFile
17
18#include <Standard.hxx>
ec357c5c 19#include <Standard_Type.hxx>
6262338c 20
6262338c 21#include <Standard_Integer.hxx>
22#include <Standard_Boolean.hxx>
6262338c 23#include <Aspect_TypeOfDeflection.hxx>
fb66bb28 24#include <Graphic3d_GroupAspect.hxx>
f838dac4 25#include <Graphic3d_PresentationAttributes.hxx>
fb66bb28 26#include <Graphic3d_ShaderProgram.hxx>
6262338c 27#include <Standard_Real.hxx>
6262338c 28#include <Prs3d_VertexDrawMode.hxx>
6262338c 29#include <Prs3d_DimensionUnits.hxx>
30#include <Prs3d_TypeOfHLR.hxx>
25e59720 31#include <Standard_Transient.hxx>
0493ffd0 32#include <GeomAbs_Shape.hxx>
6262338c 33
34class Prs3d_IsoAspect;
35class Prs3d_LineAspect;
36class Prs3d_TextAspect;
37class Prs3d_ShadingAspect;
38class Prs3d_PointAspect;
39class Prs3d_PlaneAspect;
40class Prs3d_ArrowAspect;
41class Prs3d_DatumAspect;
42class Prs3d_DimensionAspect;
43class TCollection_AsciiString;
44
f838dac4 45DEFINE_STANDARD_HANDLE(Prs3d_Drawer, Graphic3d_PresentationAttributes)
6262338c 46
47//! A graphic attribute manager which governs how
48//! objects such as color, width, line thickness and deflection are displayed.
49//! A drawer includes an instance of the Aspect classes with particular default values.
f838dac4 50class Prs3d_Drawer : public Graphic3d_PresentationAttributes
6262338c 51{
f838dac4 52 DEFINE_STANDARD_RTTIEXT(Prs3d_Drawer, Graphic3d_PresentationAttributes)
6262338c 53public:
54
55 //! Default constructor.
56 Standard_EXPORT Prs3d_Drawer();
57
58 //! Sets the type of chordal deflection.
59 //! This indicates whether the deflection value is absolute or relative to the size of the object.
60 Standard_EXPORT void SetTypeOfDeflection (const Aspect_TypeOfDeflection theTypeOfDeflection);
61
62 //! Returns the type of chordal deflection.
63 //! This indicates whether the deflection value is absolute or relative to the size of the object.
64 Aspect_TypeOfDeflection TypeOfDeflection() const
65 {
66 return HasOwnTypeOfDeflection() || myLink.IsNull()
67 ? myTypeOfDeflection
68 : myLink->TypeOfDeflection();
69 }
70
71 //! Returns true if the drawer has a type of deflection setting active.
72 Standard_Boolean HasOwnTypeOfDeflection() const { return myHasOwnTypeOfDeflection; }
73
74 //! Defines the maximal chordial deviation when drawing any curve.
75 //! Even if the type of deviation is set to TOD_Relative, this value is used by:
76 //! Prs3d_DeflectionCurve
77 //! Prs3d_WFDeflectionSurface
78 //! Prs3d_WFDeflectionRestrictedFace
ee2be2a8 79 Standard_EXPORT void SetMaximalChordialDeviation (const Standard_Real theChordialDeviation);
6262338c 80
81 //! Returns the maximal chordal deviation. The default value is 0.1.
82 //! Drawings of curves or patches are made with respect to an absolute maximal chordal deviation.
ee2be2a8 83 Standard_Real MaximalChordialDeviation() const
6262338c 84 {
85 return HasOwnMaximalChordialDeviation() || myLink.IsNull()
86 ? myChordialDeviation
87 : myLink->MaximalChordialDeviation();
88 }
89
90 //! Returns true if the drawer has a maximal chordial deviation setting active.
91 Standard_Boolean HasOwnMaximalChordialDeviation() const { return myHasOwnChordialDeviation; }
92
93 //! Sets the type of HLR algorithm used by drawer's interactive objects
94 Standard_EXPORT void SetTypeOfHLR (const Prs3d_TypeOfHLR theTypeOfHLR);
95
96 //! Returns the type of HLR algorithm currently in use.
97 Standard_EXPORT Prs3d_TypeOfHLR TypeOfHLR();
98
99 //! Returns true if the type of HLR is not equal to Prs3d_TOH_NotSet.
100 Standard_Boolean HasOwnTypeOfHLR() const { return (myTypeOfHLR != Prs3d_TOH_NotSet); }
101
102 //! Defines the maximum value allowed for the first and last
103 //! parameters of an infinite curve.
104 Standard_EXPORT void SetMaximalParameterValue (const Standard_Real theValue);
105
106 //! Sets the maximum value allowed for the first and last
107 //! parameters of an infinite curve. By default, this value is 500000.
108 Standard_Real MaximalParameterValue() const
109 {
110 return HasOwnMaximalParameterValue() || myLink.IsNull()
111 ? myMaximalParameterValue
112 : myLink->MaximalParameterValue();
113 }
114
115 //! Returns true if the drawer has a maximum value allowed for the first and last
116 //! parameters of an infinite curve setting active.
117 Standard_Boolean HasOwnMaximalParameterValue() const { return myHasOwnMaximalParameterValue; }
118
119 //! Sets IsoOnPlane on or off by setting the parameter theIsEnabled to true or false.
120 Standard_EXPORT void SetIsoOnPlane (const Standard_Boolean theIsEnabled);
121
122 //! Returns True if the drawing of isos on planes is enabled.
123 Standard_Boolean IsoOnPlane() const
124 {
125 return HasOwnIsoOnPlane() || myLink.IsNull()
126 ? myIsoOnPlane
127 : myLink->IsoOnPlane();
128 }
129
130 //! Returns true if the drawer has IsoOnPlane setting active.
131 Standard_Boolean HasOwnIsoOnPlane() const { return myHasOwnIsoOnPlane; }
132
5ad8c033 133 //! Returns True if the drawing of isos on triangulation is enabled.
134 Standard_Boolean IsoOnTriangulation() const
135 {
136 return HasOwnIsoOnTriangulation() || myLink.IsNull()
137 ? myIsoOnTriangulation
138 : myLink->IsoOnTriangulation();
139 }
140
141 //! Returns true if the drawer has IsoOnTriangulation setting active.
142 Standard_Boolean HasOwnIsoOnTriangulation() const { return myHasOwnIsoOnTriangulation; }
143
144 //! Enables or disables isolines on triangulation by setting the parameter theIsEnabled to true or false.
145 Standard_EXPORT void SetIsoOnTriangulation (const Standard_Boolean theToEnable);
146
6262338c 147 //! Sets the discretisation parameter theValue.
148 Standard_EXPORT void SetDiscretisation (const Standard_Integer theValue);
149
150 //! Returns the discretisation setting.
151 Standard_Integer Discretisation() const
152 {
153 return HasOwnDiscretisation() || myLink.IsNull()
154 ? myNbPoints
155 : myLink->Discretisation();
156 }
157
158 //! Returns true if the drawer has discretisation setting active.
159 Standard_Boolean HasOwnDiscretisation() const { return myHasOwnNbPoints; }
160
161 //! Sets the deviation coefficient theCoefficient.
162 //! Also sets the hasOwnDeviationCoefficient flag to Standard_True and myPreviousDeviationCoefficient
163 Standard_EXPORT void SetDeviationCoefficient (const Standard_Real theCoefficient);
164
165 //! Returns the deviation coefficient.
166 //! Drawings of curves or patches are made with respect
167 //! to a maximal chordal deviation. A Deviation coefficient
168 //! is used in the shading display mode. The shape is
169 //! seen decomposed into triangles. These are used to
170 //! calculate reflection of light from the surface of the
171 //! object. The triangles are formed from chords of the
172 //! curves in the shape. The deviation coefficient gives
173 //! the highest value of the angle with which a chord can
174 //! deviate from a tangent to a curve. If this limit is
175 //! reached, a new triangle is begun.
176 //! This deviation is absolute and is set through the
177 //! method: SetMaximalChordialDeviation. The default value is 0.001.
178 //! In drawing shapes, however, you are allowed to ask
179 //! for a relative deviation. This deviation will be:
180 //! SizeOfObject * DeviationCoefficient.
181 Standard_Real DeviationCoefficient() const
182 {
183 return HasOwnDeviationCoefficient() || myLink.IsNull()
184 ? myDeviationCoefficient
185 : myLink->DeviationCoefficient();
186 }
187
188 //! Sets the hasOwnDeviationCoefficient flag to Standard_False
189 void SetDeviationCoefficient()
190 {
191 myHasOwnDeviationCoefficient = Standard_False;
192 }
193
194 //! Returns true if there is a local setting for deviation
195 //! coefficient in this framework for a specific interactive object.
196 Standard_Boolean HasOwnDeviationCoefficient() const { return myHasOwnDeviationCoefficient; }
197
198 //! Saves the previous value used for the chordal
199 //! deviation coefficient.
200 Standard_Real PreviousDeviationCoefficient() const
201 {
202 return myHasOwnDeviationCoefficient
203 ? myPreviousDeviationCoefficient
204 : 0.0;
205 }
206
83b0f13a 207 //! Updates the previous value used for the chordal deviation coefficient to the current state.
208 void UpdatePreviousDeviationCoefficient()
209 {
210 if (myHasOwnDeviationCoefficient)
211 {
212 myPreviousDeviationCoefficient = DeviationCoefficient();
213 }
214 }
215
6262338c 216 //! Sets the deviation coefficient aCoefficient for removal
217 //! of hidden lines created by different viewpoints in
218 //! different presentations. The Default value is 0.02.
219 //! Also sets the hasOwnHLRDeviationCoefficient flag to Standard_True and myPreviousHLRDeviationCoefficient
220 Standard_EXPORT void SetHLRDeviationCoefficient (const Standard_Real theCoefficient);
221
222 //! Returns the real number value of the hidden line
223 //! removal deviation coefficient in this framework, if the flag
224 //! hasOwnHLRDeviationCoefficient is true or there is no Link.
225 //! Else the shape's HLR deviation coefficient is used.
226 //! A Deviation coefficient is used in the shading display
227 //! mode. The shape is seen decomposed into triangles.
228 //! These are used to calculate reflection of light from the
229 //! surface of the object.
230 //! The triangles are formed from chords of the curves in
231 //! the shape. The deviation coefficient give the highest
232 //! value of the angle with which a chord can deviate
233 //! from a tangent to a curve. If this limit is reached, a new triangle is begun.
234 //! To find the hidden lines, hidden line display mode
235 //! entails recalculation of the view at each different projector perspective.
236 //! Since hidden lines entail calculations of more than
237 //! usual complexity to decompose them into these
238 //! triangles, a deviation coefficient allowing greater
239 //! tolerance is used. This increases efficiency in calculation.
240 //! The Default value is 0.02.
241 Standard_Real HLRDeviationCoefficient() const
242 {
243 return HasOwnHLRDeviationCoefficient() || myLink.IsNull()
244 ? myHLRDeviationCoefficient
245 : myLink->HLRDeviationCoefficient();
246 }
247
248 //! Sets the hasOwnHLRDeviationCoefficient flag to Standard_False
249 void SetHLRDeviationCoefficient()
250 {
251 myHasOwnHLRDeviationCoefficient = Standard_False;
252 }
253
254 //! Returns true if the there is a setting for HLR deviation
255 //! coefficient in this framework for a specific interactive object.
256 Standard_Boolean HasOwnHLRDeviationCoefficient() const { return myHasOwnHLRDeviationCoefficient; }
257
258 //! Returns the previous value of the hidden line removal deviation coefficient.
259 Standard_Real PreviousHLRDeviationCoefficient() const
260 {
261 return myHasOwnHLRDeviationCoefficient
262 ? myPreviousHLRDeviationCoefficient
263 : 0.0;
264 }
265
266 //! Sets the deviation angle theAngle.
267 //! Also sets the hasOwnDeviationAngle flag to Standard_True, and myPreviousDeviationAngle.
268 Standard_EXPORT void SetDeviationAngle (const Standard_Real theAngle);
269
270 //! Returns the value for deviation angle.
271 Standard_Real DeviationAngle() const
272 {
273 return HasOwnDeviationAngle() || myLink.IsNull()
274 ? myDeviationAngle
275 : myLink->DeviationAngle();
276 }
277
278 //! Sets the hasOwnDeviationAngle flag to Standard_False
279 void SetDeviationAngle()
280 {
281 myHasOwnDeviationAngle = Standard_False;
282 }
283
284 //! Returns true if the there is a local setting for deviation
285 //! angle in this framework for a specific interactive object.
286 Standard_Boolean HasOwnDeviationAngle() const { return myHasOwnDeviationAngle; }
287
288 //! Returns the previous deviation angle
289 Standard_Real PreviousDeviationAngle() const
290 {
291 return myHasOwnDeviationAngle
292 ? myPreviousDeviationAngle
293 : 0.0;
294 }
295
83b0f13a 296 //! Updates the previous deviation angle to the current value
297 void UpdatePreviousDeviationAngle()
298 {
299 if (myHasOwnDeviationAngle)
300 {
301 myPreviousDeviationAngle = DeviationAngle();
302 }
303 }
304
6262338c 305 //! Sets anAngle, the angle of maximum chordal deviation for removal of hidden lines created by
306 //! different viewpoints in different presentations.
307 //! The default value is 20 * M_PI / 180.
308 //! Also sets the hasOwnHLRDeviationAngle flag to Standard_True and myPreviousHLRDeviationAngle.
309 Standard_EXPORT void SetHLRAngle (const Standard_Real theAngle);
310
311 //! Returns the real number value of the deviation angle
312 //! in hidden line removal views. The default value is 20 * M_PI / 180.
313 Standard_Real HLRAngle() const
314 {
315 return HasOwnHLRDeviationAngle() || myLink.IsNull()
316 ? myHLRAngle
317 : myLink->HLRAngle();
318 }
319
320 //! Sets the hasOwnHLRDeviationAngle flag to Standard_False
321 void SetHLRAngle()
322 {
323 myHasOwnHLRDeviationAngle = Standard_False;
324 }
325
326 //! Returns true if the there is a setting for HLR deviation
327 //! angle in this framework for a specific interactive object.
328 Standard_Boolean HasOwnHLRDeviationAngle() const { return myHasOwnHLRDeviationAngle; }
329
330 //! Returns the previous value of the HLR deviation angle.
331 Standard_Real PreviousHLRDeviationAngle() const
332 {
333 return myHasOwnHLRDeviationAngle
334 ? myPreviousHLRDeviationAngle
335 : 0.0;
336 }
337
4c513386 338 //! Sets IsAutoTriangulated on or off by setting the parameter theIsEnabled to true or false.
339 //! If this flag is True automatic re-triangulation with deflection-check logic will be applied.
340 //! Else this feature will be disable and triangulation is expected to be computed by application itself
341 //! and no shading presentation at all if unavailable.
342 Standard_EXPORT void SetAutoTriangulation (const Standard_Boolean theIsEnabled);
343
344 //! Returns True if automatic triangulation is enabled.
345 Standard_Boolean IsAutoTriangulation() const
346 {
347 return HasOwnIsAutoTriangulation() || myLink.IsNull()
348 ? myIsAutoTriangulated
349 : myLink->IsAutoTriangulation();
350 }
351
352 //! Returns true if the drawer has IsoOnPlane setting active.
353 Standard_Boolean HasOwnIsAutoTriangulation() const { return myHasOwnIsAutoTriangulated; }
354
6262338c 355 //! Defines the attributes which are used when drawing an
356 //! U isoparametric curve of a face. Defines the number
357 //! of U isoparametric curves to be drawn for a single face.
358 //! The LineAspect for U isoparametric lines can be edited
359 //! (methods SetColor, SetTypeOfLine, SetWidth, SetNumber)
360 //! The default values are:
361 //! COLOR : Quantity_NOC_GRAY75
362 //! TYPE OF LINE: Aspect_TOL_SOLID
363 //! WIDTH : 0.5
364 //!
365 //! These attributes are used by the following algorithms:
366 //! Prs3d_WFDeflectionSurface
367 //! Prs3d_WFDeflectionRestrictedFace
368 Standard_EXPORT const Handle(Prs3d_IsoAspect)& UIsoAspect();
369
370 Standard_EXPORT void SetUIsoAspect (const Handle(Prs3d_IsoAspect)& theAspect);
371
372 //! Returns true if the drawer has its own attribute for
373 //! UIso aspect that overrides the one in the link.
374 Standard_Boolean HasOwnUIsoAspect() const { return myHasOwnUIsoAspect; }
375
376 //! Defines the attributes which are used when drawing an
377 //! V isoparametric curve of a face. Defines the number
378 //! of V isoparametric curves to be drawn for a single face.
379 //! The LineAspect for V isoparametric lines can be edited
380 //! (methods SetColor, SetTypeOfLine, SetWidth, SetNumber)
381 //! The default values are:
382 //! COLOR : Quantity_NOC_GRAY82
383 //! TYPE OF LINE: Aspect_TOL_SOLID
384 //! WIDTH : 0.5
385 //!
386 //! These attributes are used by the following algorithms:
387 //! Prs3d_WFDeflectionSurface
388 //! Prs3d_WFDeflectionRestrictedFace
389 Standard_EXPORT const Handle(Prs3d_IsoAspect)& VIsoAspect();
390
391 //! Sets the appearance of V isoparameters - theAspect.
392 Standard_EXPORT void SetVIsoAspect (const Handle(Prs3d_IsoAspect)& theAspect);
393
394 //! Returns true if the drawer has its own attribute for
395 //! VIso aspect that overrides the one in the link.
396 Standard_Boolean HasOwnVIsoAspect() const { return myHasOwnVIsoAspect; }
397
398 //! Returns wire aspect settings.
399 //! The LineAspect for the free boundaries can be edited.
400 //! The default values are:
401 //! Color: Quantity_NOC_GREEN
402 //! Type of line: Aspect_TOL_SOLID
403 //! Width: 1.0
404 //! These attributes are used by the algorithm Prs3d_WFShape.
405 Standard_EXPORT const Handle(Prs3d_LineAspect)& WireAspect();
406
407 //! Sets the parameter theAspect for display of wires.
408 Standard_EXPORT void SetWireAspect (const Handle(Prs3d_LineAspect)& theAspect);
409
410 //! Returns true if the drawer has its own attribute for
411 //! wire aspect that overrides the one in the link.
412 Standard_Boolean HasOwnWireAspect() const { return myHasOwnWireAspect; }
413
414 //! Sets WireDraw on or off by setting the parameter theIsEnabled to true or false.
415 Standard_EXPORT void SetWireDraw(const Standard_Boolean theIsEnabled);
416
417 //! Returns True if the drawing of the wire is enabled.
418 Standard_Boolean WireDraw() const
419 {
420 return HasOwnWireDraw() || myLink.IsNull()
421 ? myWireDraw
422 : myLink->WireDraw();
423 }
424
425 //! Returns true if the drawer has its own attribute for
426 //! "draw wires" flag that overrides the one in the link.
427 Standard_Boolean HasOwnWireDraw() const { return myHasOwnWireDraw; }
428
429 //! Returns the point aspect setting. The default values are
430 //! Color: Quantity_NOC_YELLOW
431 //! Type of marker: Aspect_TOM_PLUS
432 //! Scale: 1.0
433 //! These attributes are used by the algorithms Prs3d_Point.
434 Standard_EXPORT const Handle(Prs3d_PointAspect)& PointAspect();
435
436 //! Sets the parameter theAspect for display attributes of points
437 Standard_EXPORT void SetPointAspect (const Handle(Prs3d_PointAspect)& theAspect);
438
439 //! Returns true if the drawer has its own attribute for
440 //! point aspect that overrides the one in the link.
441 Standard_Boolean HasOwnPointAspect() const { return myHasOwnPointAspect; }
442
2a332745 443 //! Sets own point aspect.
444 //! Returns FALSE if the drawer already has its own attribute for point aspect.
445 Standard_EXPORT Standard_Boolean SetupOwnPointAspect (const Handle(Prs3d_Drawer)& theDefaults = Handle(Prs3d_Drawer)());
446
6262338c 447 //! Returns settings for line aspects.
448 //! These settings can be edited. The default values are:
449 //! Color: Quantity_NOC_YELLOW
450 //! Type of line: Aspect_TOL_SOLID
451 //! Width: 1.0
452 //! These attributes are used by the following algorithms:
453 //! Prs3d_Curve
454 //! Prs3d_Line
455 //! Prs3d_HLRShape
456 Standard_EXPORT const Handle(Prs3d_LineAspect)& LineAspect();
457
458 //! Sets the parameter theAspect for display attributes of lines.
459 Standard_EXPORT void SetLineAspect (const Handle(Prs3d_LineAspect)& theAspect);
460
461 //! Returns true if the drawer has its own attribute for
462 //! line aspect that overrides the one in the link.
463 Standard_Boolean HasOwnLineAspect() const { return myHasOwnLineAspect; }
464
2a332745 465 //! Sets own line aspects.
466 //! Returns FALSE if own line aspect are already set.
467 Standard_EXPORT Standard_Boolean SetOwnLineAspects (const Handle(Prs3d_Drawer)& theDefaults = Handle(Prs3d_Drawer)());
468
469 //! Sets own line aspects for datums.
470 //! Returns FALSE if own line for datums are already set.
471 Standard_EXPORT Standard_Boolean SetOwnDatumAspects (const Handle(Prs3d_Drawer)& theDefaults = Handle(Prs3d_Drawer)());
472
6262338c 473 //! Returns settings for text aspect.
474 //! These settings can be edited. The default value is:
475 //! - Color: Quantity_NOC_YELLOW
476 Standard_EXPORT const Handle(Prs3d_TextAspect)& TextAspect();
477
478 //! Sets the parameter theAspect for display attributes of text.
479 Standard_EXPORT void SetTextAspect (const Handle(Prs3d_TextAspect)& theAspect);
480
481 //! Returns true if the drawer has its own attribute for
482 //! text aspect that overrides the one in the link.
483 Standard_Boolean HasOwnTextAspect() const { return myHasOwnTextAspect; }
484
485 //! Returns settings for shading aspects.
486 //! These settings can be edited. The default values are:
487 //! - Color: Quantity_NOC_YELLOW
488 //! - Material: Graphic3d_NOM_BRASS
489 //! Shading aspect is obtained through decomposition of
490 //! 3d faces into triangles, each side of each triangle
491 //! being a chord of the corresponding curved edge in the face.
492 //! Reflection of light in each projector perspective is then calculated for each of the
493 //! resultant triangular planes.
494 Standard_EXPORT const Handle(Prs3d_ShadingAspect)& ShadingAspect();
495
496 //! Sets the parameter theAspect for display attributes of shading.
497 Standard_EXPORT void SetShadingAspect (const Handle(Prs3d_ShadingAspect)& theAspect);
498
499 //! Returns true if the drawer has its own attribute for
500 //! shading aspect that overrides the one in the link.
501 Standard_Boolean HasOwnShadingAspect() const { return myHasOwnShadingAspect; }
502
2a332745 503 //! Sets own shading aspect.
504 //! Returns FALSE if the drawer already has its own attribute for shading aspect.
505 Standard_EXPORT Standard_Boolean SetupOwnShadingAspect (const Handle(Prs3d_Drawer)& theDefaults = Handle(Prs3d_Drawer)());
506
6262338c 507 //! Returns settings for seen line aspects.
508 //! These settings can be edited. The default values are:
509 //! Color: Quantity_NOC_YELLOW
510 //! Type of line: Aspect_TOL_SOLID
511 //! Width: 1.0
512 Standard_EXPORT const Handle(Prs3d_LineAspect)& SeenLineAspect();
513
514 //! Sets the parameter theAspect for the display of seen lines in hidden line removal mode.
515 Standard_EXPORT void SetSeenLineAspect (const Handle(Prs3d_LineAspect)& theAspect);
516
517 //! Returns true if the drawer has its own attribute for
518 //! seen line aspect that overrides the one in the link.
519 Standard_Boolean HasOwnSeenLineAspect() const { return myHasOwnSeenLineAspect; }
520
521 //! Returns settings for the appearance of planes.
522 Standard_EXPORT const Handle(Prs3d_PlaneAspect)& PlaneAspect();
523
524 //! Sets the parameter theAspect for the display of planes.
525 Standard_EXPORT void SetPlaneAspect (const Handle(Prs3d_PlaneAspect)& theAspect);
526
527 //! Returns true if the drawer has its own attribute for
528 //! plane aspect that overrides the one in the link.
529 Standard_Boolean HasOwnPlaneAspect() const { return myHasOwnPlaneAspect; }
530
531 //! Returns the attributes for display of arrows.
532 Standard_EXPORT const Handle(Prs3d_ArrowAspect)& ArrowAspect();
533
534 //! Sets the parameter theAspect for display attributes of arrows.
535 Standard_EXPORT void SetArrowAspect (const Handle(Prs3d_ArrowAspect)& theAspect);
536
537 //! Returns true if the drawer has its own attribute for
538 //! arrow aspect that overrides the one in the link.
539 Standard_Boolean HasOwnArrowAspect() const { return myHasOwnArrowAspect; }
540
541 //! Enables the drawing of an arrow at the end of each line.
542 //! By default the arrows are not drawn.
543 Standard_EXPORT void SetLineArrowDraw (const Standard_Boolean theIsEnabled);
544
545 //! Returns True if drawing an arrow at the end of each edge is enabled
546 //! and False otherwise (the default).
547 Standard_Boolean LineArrowDraw() const
548 {
549 return HasOwnLineArrowDraw() || myLink.IsNull()
550 ? myLineArrowDraw
551 : myLink->LineArrowDraw();
552 }
553
554 //! Returns true if the drawer has its own attribute for
555 //! "draw arrow" flag that overrides the one in the link.
556 Standard_Boolean HasOwnLineArrowDraw() const
557 {
558 return myHasOwnLineArrowDraw;
559 }
560
561 //! Returns settings for hidden line aspects.
562 //! These settings can be edited. The default values are:
563 //! Color: Quantity_NOC_YELLOW
564 //! Type of line: Aspect_TOL_DASH
565 //! Width: 1.0
566 Standard_EXPORT const Handle(Prs3d_LineAspect)& HiddenLineAspect();
567
568 //! Sets the parameter theAspect for the display of hidden lines in hidden line removal mode.
569 Standard_EXPORT void SetHiddenLineAspect (const Handle(Prs3d_LineAspect)& theAspect);
570
571 //! Returns true if the drawer has its own attribute for
572 //! hidden lines aspect that overrides the one in the link.
573 Standard_Boolean HasOwnHiddenLineAspect() const { return myHasOwnHiddenLineAspect; }
574
575 //! Returns Standard_True if the hidden lines are to be drawn.
576 //! By default the hidden lines are not drawn.
577 Standard_Boolean DrawHiddenLine() const
578 {
579 return HasOwnDrawHiddenLine() || myLink.IsNull()
580 ? myDrawHiddenLine
581 : myLink->DrawHiddenLine();
582 }
583
584 //! Enables the DrawHiddenLine function.
585 Standard_EXPORT void EnableDrawHiddenLine();
586
587 //! Disables the DrawHiddenLine function.
588 Standard_EXPORT void DisableDrawHiddenLine();
589
590 //! Returns true if the drawer has its own attribute for
591 //! "draw hidden lines" flag that overrides the one in the link.
592 Standard_Boolean HasOwnDrawHiddenLine() const { return myHasOwnDrawHiddenLine; }
593
594 //! Returns settings for the appearance of vectors.
595 //! These settings can be edited. The default values are:
596 //! Color: Quantity_NOC_SKYBLUE
597 //! Type of line: Aspect_TOL_SOLID
598 //! Width: 1.0
599 Standard_EXPORT const Handle(Prs3d_LineAspect)& VectorAspect();
600
601 //! Sets the modality theAspect for the display of vectors.
602 Standard_EXPORT void SetVectorAspect (const Handle(Prs3d_LineAspect)& theAspect);
603
604 //! Returns true if the drawer has its own attribute for
605 //! vector aspect that overrides the one in the link.
606 Standard_Boolean HasOwnVectorAspect() const { return myHasOwnVectorAspect; }
607
608 //! Sets the mode of visualization of vertices of a TopoDS_Shape instance.
609 //! By default, only stand-alone vertices (not belonging topologically to an edge) are drawn,
610 //! that corresponds to Prs3d_VDM_Standalone mode.
611 //! Switching to Prs3d_VDM_Standalone mode makes all shape's vertices visible.
612 //! To inherit this parameter from the global drawer instance ("the link") when it is present,
613 //! Prs3d_VDM_Inherited value should be used.
614 Standard_EXPORT void SetVertexDrawMode (const Prs3d_VertexDrawMode theMode);
615
616 //! Returns the current mode of visualization of vertices of a TopoDS_Shape instance.
617 Standard_EXPORT Prs3d_VertexDrawMode VertexDrawMode();
618
619 //! Returns true if the vertex draw mode is not equal to <b>Prs3d_VDM_Inherited</b>.
620 //! This means that individual vertex draw mode value (i.e. not inherited from the global
621 //! drawer) is used for a specific interactive object.
622 Standard_Boolean HasOwnVertexDrawMode() const { return (myVertexDrawMode != Prs3d_VDM_Inherited); }
623
624 //! Returns settings for the appearance of datums.
625 //! These settings can be edited. The default values for the three axes are:
626 //! Color: Quantity_NOC_PEACHPUFF
627 //! Type of line: Aspect_TOL_SOLID
628 //! Width: 1.0
629 Standard_EXPORT const Handle(Prs3d_DatumAspect)& DatumAspect();
630
631 //! Sets the modality theAspect for the display of datums.
632 Standard_EXPORT void SetDatumAspect (const Handle(Prs3d_DatumAspect)& theAspect);
633
634 //! Returns true if the drawer has its own attribute for
635 //! datum aspect that overrides the one in the link.
636 Standard_Boolean HasOwnDatumAspect() const { return myHasOwnDatumAspect; }
637
638 //! The LineAspect for the wire can be edited.
639 //! The default values are:
640 //! Color: Quantity_NOC_ORANGE
641 //! Type of line: Aspect_TOL_SOLID
642 //! Width: 1.0
643 //! These attributes are used by the algorithm Prs3d_WFShape.
644 Standard_EXPORT const Handle(Prs3d_LineAspect)& SectionAspect();
645
646 //! Sets the parameter theAspect for display attributes of sections.
647 Standard_EXPORT void SetSectionAspect (const Handle(Prs3d_LineAspect)& theAspect);
648
649 //! Returns true if the drawer has its own attribute for
650 //! section aspect that overrides the one in the link.
651 Standard_Boolean HasOwnSectionAspect() const { return myHasOwnSectionAspect; }
652
653 //! Sets the parameter theAspect for the display of free boundaries.
654 //! The method sets aspect owned by the drawer that will be used during
655 //! visualization instead of the one set in link.
656 Standard_EXPORT void SetFreeBoundaryAspect (const Handle(Prs3d_LineAspect)& theAspect);
657
658 //! Returns the values for presentation of free boundaries,
659 //! in other words, boundaries which are not shared.
660 //! The LineAspect for the free boundaries can be edited.
661 //! The default values are:
662 //! Color: Quantity_NOC_GREEN
663 //! Type of line: Aspect_TOL_SOLID
664 //! Width: 1.0
665 //! These attributes are used by the algorithm Prs3d_WFShape
666 Standard_EXPORT const Handle(Prs3d_LineAspect)& FreeBoundaryAspect();
667
668 //! Returns true if the drawer has its own attribute for
669 //! free boundaries aspect that overrides the one in the link.
670 Standard_Boolean HasOwnFreeBoundaryAspect() const { return myHasOwnFreeBoundaryAspect; }
671
672 //! Enables or disables drawing of free boundaries for shading presentations.
673 //! The method sets drawing flag owned by the drawer that will be used during
674 //! visualization instead of the one set in link.
675 //! theIsEnabled is a boolean flag indicating whether the free boundaries should be
676 //! drawn or not.
677 Standard_EXPORT void SetFreeBoundaryDraw (const Standard_Boolean theIsEnabled);
678
679 //! Returns True if the drawing of the free boundaries is enabled
680 //! True is the default setting.
681 Standard_Boolean FreeBoundaryDraw() const
682 {
683 return HasOwnFreeBoundaryDraw() || myLink.IsNull()
684 ? myFreeBoundaryDraw
685 : myLink->FreeBoundaryDraw();
686 }
687
688 //! Returns true if the drawer has its own attribute for
689 //! "draw free boundaries" flag that overrides the one in the link.
690 Standard_Boolean HasOwnFreeBoundaryDraw() const { return myHasOwnFreeBoundaryDraw; }
691
692 //! Sets the parameter theAspect for the display of shared boundaries.
693 //! The method sets aspect owned by the drawer that will be used during
694 //! visualization instead of the one set in link.
695 Standard_EXPORT void SetUnFreeBoundaryAspect (const Handle(Prs3d_LineAspect)& theAspect);
696
697 //! Returns settings for shared boundary line aspects.
698 //! The LineAspect for the unfree boundaries can be edited.
699 //! The default values are:
700 //! Color: Quantity_NOC_YELLOW
701 //! Type of line: Aspect_TOL_SOLID
702 //! Width: 1.
703 //! These attributes are used by the algorithm Prs3d_WFShape
704 Standard_EXPORT const Handle(Prs3d_LineAspect)& UnFreeBoundaryAspect();
705
706 //! Returns true if the drawer has its own attribute for
707 //! unfree boundaries aspect that overrides the one in the link.
708 Standard_Boolean HasOwnUnFreeBoundaryAspect() const { return myHasOwnUnFreeBoundaryAspect; }
709
710 //! Enables or disables drawing of shared boundaries for shading presentations.
711 //! The method sets drawing flag owned by the drawer that will be used during
712 //! visualization instead of the one set in link.
713 //! theIsEnabled is a boolean flag indicating whether the shared boundaries should be drawn or not.
714 Standard_EXPORT void SetUnFreeBoundaryDraw (const Standard_Boolean theIsEnabled);
715
716 //! Returns True if the drawing of the shared boundaries is enabled.
717 //! True is the default setting.
718 Standard_Boolean UnFreeBoundaryDraw() const
719 {
720 return HasOwnUnFreeBoundaryDraw() || myLink.IsNull()
721 ? myUnFreeBoundaryDraw
722 : myLink->UnFreeBoundaryDraw();
723 }
724
725 //! Returns true if the drawer has its own attribute for
726 //! "draw shared boundaries" flag that overrides the one in the link.
727 Standard_Boolean HasOwnUnFreeBoundaryDraw() const { return myHasOwnUnFreeBoundaryDraw; }
728
729 //! Sets line aspect for face boundaries.
730 //! The method sets line aspect owned by the drawer that will be used during
731 //! visualization instead of the one set in link.
732 //! theAspect is the line aspect that determines the look of the face boundaries.
733 Standard_EXPORT void SetFaceBoundaryAspect (const Handle(Prs3d_LineAspect)& theAspect);
734
735 //! Returns line aspect of face boundaries.
736 Standard_EXPORT const Handle(Prs3d_LineAspect)& FaceBoundaryAspect();
737
738 //! Returns true if the drawer has its own attribute for
739 //! face boundaries aspect that overrides the one in the link.
740 Standard_Boolean HasOwnFaceBoundaryAspect() const { return myHasOwnFaceBoundaryAspect; }
741
0493ffd0 742 //! Sets own face boundary aspect.
743 //! Returns FALSE if the drawer already has its own attribute for face boundary aspect.
744 Standard_EXPORT Standard_Boolean SetupOwnFaceBoundaryAspect (const Handle(Prs3d_Drawer)& theDefaults = Handle(Prs3d_Drawer)());
745
6262338c 746 //! Enables or disables face boundary drawing for shading presentations.
747 //! The method sets drawing flag owned by the drawer that will be used during
748 //! visualization instead of the one set in link.
749 //! theIsEnabled is a boolean flag indicating whether the face boundaries should be drawn or not.
750 Standard_EXPORT void SetFaceBoundaryDraw (const Standard_Boolean theIsEnabled);
751
752 //! Checks whether the face boundary drawing is enabled or not.
753 Standard_Boolean FaceBoundaryDraw() const
754 {
755 return HasOwnFaceBoundaryDraw() || myLink.IsNull()
756 ? myFaceBoundaryDraw
757 : myLink->FaceBoundaryDraw();
758 }
759
760 //! Returns true if the drawer has its own attribute for
761 //! "draw face boundaries" flag that overrides the one in the link.
762 Standard_Boolean HasOwnFaceBoundaryDraw() const { return myHasOwnFaceBoundaryDraw; }
763
0493ffd0 764 //! Returns true if the drawer has its own attribute for face boundaries upper edge continuity class that overrides the one in the link.
765 Standard_Boolean HasOwnFaceBoundaryUpperContinuity() const { return myFaceBoundaryUpperContinuity != -1; }
766
767 //! Get the most edge continuity class; GeomAbs_CN by default (all edges).
768 GeomAbs_Shape FaceBoundaryUpperContinuity() const
769 {
770 return HasOwnFaceBoundaryUpperContinuity()
771 ? (GeomAbs_Shape )myFaceBoundaryUpperContinuity
772 : (!myLink.IsNull()
773 ? myLink->FaceBoundaryUpperContinuity()
774 : GeomAbs_CN);
775 }
776
777 //! Set the most edge continuity class for face boundaries.
778 void SetFaceBoundaryUpperContinuity (GeomAbs_Shape theMostAllowedEdgeClass) { myFaceBoundaryUpperContinuity = theMostAllowedEdgeClass; }
779
780 //! Unset the most edge continuity class for face boundaries.
781 void UnsetFaceBoundaryUpperContinuity() { myFaceBoundaryUpperContinuity = -1; }
782
6262338c 783 //! Returns settings for the appearance of dimensions.
784 Standard_EXPORT const Handle(Prs3d_DimensionAspect)& DimensionAspect();
785
786 //! Sets the settings for the appearance of dimensions.
787 //! The method sets aspect owned by the drawer that will be used during
788 //! visualization instead of the one set in link.
789 Standard_EXPORT void SetDimensionAspect (const Handle(Prs3d_DimensionAspect)& theAspect);
790
791 //! Returns true if the drawer has its own attribute for
792 //! the appearance of dimensions that overrides the one in the link.
793 Standard_Boolean HasOwnDimensionAspect() const { return myHasOwnDimensionAspect; }
794
795 //! Sets dimension length model units for computing of dimension presentation.
796 //! The method sets value owned by the drawer that will be used during
797 //! visualization instead of the one set in link.
798 Standard_EXPORT void SetDimLengthModelUnits (const TCollection_AsciiString& theUnits);
799
800 //! Sets dimension angle model units for computing of dimension presentation.
801 //! The method sets value owned by the drawer that will be used during
802 //! visualization instead of the one set in link.
803 Standard_EXPORT void SetDimAngleModelUnits (const TCollection_AsciiString& theUnits);
804
805 //! Returns length model units for the dimension presentation.
806 const TCollection_AsciiString& DimLengthModelUnits() const
807 {
808 return HasOwnDimLengthModelUnits() || myLink.IsNull()
809 ? myDimensionModelUnits.GetLengthUnits()
810 : myLink->DimLengthModelUnits();
811 }
812
813 //! Returns angle model units for the dimension presentation.
814 const TCollection_AsciiString& DimAngleModelUnits() const
815 {
816 return HasOwnDimAngleModelUnits() || myLink.IsNull()
817 ? myDimensionModelUnits.GetAngleUnits()
818 : myLink->DimAngleModelUnits();
819 }
820
821 //! Returns true if the drawer has its own attribute for
822 //! dimension length model units that overrides the one in the link.
823 Standard_Boolean HasOwnDimLengthModelUnits() const { return myHasOwnDimLengthModelUnits; }
824
825 //! Returns true if the drawer has its own attribute for
826 //! dimension angle model units that overrides the one in the link.
827 Standard_Boolean HasOwnDimAngleModelUnits() const { return myHasOwnDimAngleModelUnits; }
828
829 //! Sets length units in which value for dimension presentation is displayed.
830 //! The method sets value owned by the drawer that will be used during
831 //! visualization instead of the one set in link.
832 Standard_EXPORT void SetDimLengthDisplayUnits (const TCollection_AsciiString& theUnits);
833
834 //! Sets angle units in which value for dimension presentation is displayed.
835 //! The method sets value owned by the drawer that will be used during
836 //! visualization instead of the one set in link.
837 Standard_EXPORT void SetDimAngleDisplayUnits (const TCollection_AsciiString& theUnits);
838
839 //! Returns length units in which dimension presentation is displayed.
840 const TCollection_AsciiString& DimLengthDisplayUnits() const
841 {
842 return HasOwnDimLengthDisplayUnits() || myLink.IsNull()
843 ? myDimensionDisplayUnits.GetLengthUnits()
844 : myLink->DimLengthDisplayUnits();
845 }
846
847 //! Returns angle units in which dimension presentation is displayed.
848 const TCollection_AsciiString& DimAngleDisplayUnits() const
849 {
850 return HasOwnDimAngleDisplayUnits() || myLink.IsNull()
851 ? myDimensionDisplayUnits.GetAngleUnits()
852 : myLink->DimAngleDisplayUnits();
853 }
854
855 //! Returns true if the drawer has its own attribute for
856 //! length units in which dimension presentation is displayed
857 //! that overrides the one in the link.
858 Standard_Boolean HasOwnDimLengthDisplayUnits() const { return myHasOwnDimLengthDisplayUnits; }
859
860 //! Returns true if the drawer has its own attribute for
861 //! angle units in which dimension presentation is displayed
862 //! that overrides the one in the link.
863 Standard_Boolean HasOwnDimAngleDisplayUnits() const { return myHasOwnDimAngleDisplayUnits; }
864
865 //! Returns the drawer to which the current object references.
866 const Handle(Prs3d_Drawer)& Link() { return myLink; }
867
868 //! Returns true if the current object has a link on the other drawer.
869 Standard_Boolean HasLink() const { return !myLink.IsNull(); }
870
871 //! Sets theDrawer as a link to which the current object references.
f838dac4 872 void Link (const Handle(Prs3d_Drawer)& theDrawer) { SetLink (theDrawer); }
873
874 //! Sets theDrawer as a link to which the current object references.
875 void SetLink (const Handle(Prs3d_Drawer)& theDrawer) { myLink = theDrawer; }
6262338c 876
877 //! Removes local attributes.
878 Standard_EXPORT void ClearLocalAttributes();
879
fb66bb28 880 //! Assign shader program for specified type of primitives.
881 //! @param theProgram new program to set (might be NULL)
882 //! @param theAspect the type of primitives
883 //! @param theToOverrideDefaults if true then non-overridden attributes using defaults will be allocated and copied from the Link;
884 //! otherwise, only already customized attributes will be changed
8e0a2b19 885 //! @return TRUE if presentation should be recomputed after creating aspects not previously customized (if theToOverrideDefaults is also TRUE)
886 Standard_EXPORT bool SetShaderProgram (const Handle(Graphic3d_ShaderProgram)& theProgram,
fb66bb28 887 const Graphic3d_GroupAspect theAspect,
888 const bool theToOverrideDefaults = false);
889
dc89236f 890 //! Sets Shading Model type for the shading aspect.
891 Standard_EXPORT bool SetShadingModel (Graphic3d_TypeOfShadingModel theModel,
892 bool theToOverrideDefaults = false);
893
6262338c 894protected:
895
896 Handle(Prs3d_Drawer) myLink;
897
898 Standard_Integer myNbPoints;
899 Standard_Boolean myHasOwnNbPoints;
900 Standard_Real myMaximalParameterValue;
901 Standard_Boolean myHasOwnMaximalParameterValue;
ee2be2a8 902 Standard_Real myChordialDeviation;
6262338c 903 Standard_Boolean myHasOwnChordialDeviation;
904 Aspect_TypeOfDeflection myTypeOfDeflection;
905 Standard_Boolean myHasOwnTypeOfDeflection;
906 Prs3d_TypeOfHLR myTypeOfHLR;
907 Standard_Real myDeviationCoefficient;
908 Standard_Real myPreviousDeviationCoefficient;
909 Standard_Boolean myHasOwnDeviationCoefficient;
910 Standard_Real myHLRDeviationCoefficient;
911 Standard_Boolean myHasOwnHLRDeviationCoefficient;
912 Standard_Real myPreviousHLRDeviationCoefficient;
913 Standard_Real myDeviationAngle;
914 Standard_Boolean myHasOwnDeviationAngle;
915 Standard_Real myPreviousDeviationAngle;
916 Standard_Real myHLRAngle;
917 Standard_Boolean myHasOwnHLRDeviationAngle;
918 Standard_Real myPreviousHLRDeviationAngle;
919 Standard_Boolean myIsoOnPlane;
920 Standard_Boolean myHasOwnIsoOnPlane;
5ad8c033 921 Standard_Boolean myIsoOnTriangulation;
922 Standard_Boolean myHasOwnIsoOnTriangulation;
4c513386 923 Standard_Boolean myIsAutoTriangulated;
924 Standard_Boolean myHasOwnIsAutoTriangulated;
6262338c 925
926 Handle(Prs3d_IsoAspect) myUIsoAspect;
927 Standard_Boolean myHasOwnUIsoAspect;
928 Handle(Prs3d_IsoAspect) myVIsoAspect;
929 Standard_Boolean myHasOwnVIsoAspect;
930 Handle(Prs3d_LineAspect) myWireAspect;
931 Standard_Boolean myHasOwnWireAspect;
932 Standard_Boolean myWireDraw;
933 Standard_Boolean myHasOwnWireDraw;
934 Handle(Prs3d_PointAspect) myPointAspect;
935 Standard_Boolean myHasOwnPointAspect;
936 Handle(Prs3d_LineAspect) myLineAspect;
937 Standard_Boolean myHasOwnLineAspect;
938 Handle(Prs3d_TextAspect) myTextAspect;
939 Standard_Boolean myHasOwnTextAspect;
940 Handle(Prs3d_ShadingAspect) myShadingAspect;
941 Standard_Boolean myHasOwnShadingAspect;
6262338c 942 Handle(Prs3d_PlaneAspect) myPlaneAspect;
943 Standard_Boolean myHasOwnPlaneAspect;
944 Handle(Prs3d_LineAspect) mySeenLineAspect;
945 Standard_Boolean myHasOwnSeenLineAspect;
946 Handle(Prs3d_ArrowAspect) myArrowAspect;
947 Standard_Boolean myHasOwnArrowAspect;
948 Standard_Boolean myLineArrowDraw;
949 Standard_Boolean myHasOwnLineArrowDraw;
950 Handle(Prs3d_LineAspect) myHiddenLineAspect;
951 Standard_Boolean myHasOwnHiddenLineAspect;
952 Standard_Boolean myDrawHiddenLine;
953 Standard_Boolean myHasOwnDrawHiddenLine;
954 Handle(Prs3d_LineAspect) myVectorAspect;
955 Standard_Boolean myHasOwnVectorAspect;
956 Prs3d_VertexDrawMode myVertexDrawMode;
957 Handle(Prs3d_DatumAspect) myDatumAspect;
958 Standard_Boolean myHasOwnDatumAspect;
959 Handle(Prs3d_LineAspect) mySectionAspect;
960 Standard_Boolean myHasOwnSectionAspect;
961
962 Handle(Prs3d_LineAspect) myFreeBoundaryAspect;
963 Standard_Boolean myHasOwnFreeBoundaryAspect;
964 Standard_Boolean myFreeBoundaryDraw;
965 Standard_Boolean myHasOwnFreeBoundaryDraw;
966 Handle(Prs3d_LineAspect) myUnFreeBoundaryAspect;
967 Standard_Boolean myHasOwnUnFreeBoundaryAspect;
968 Standard_Boolean myUnFreeBoundaryDraw;
969 Standard_Boolean myHasOwnUnFreeBoundaryDraw;
970 Handle(Prs3d_LineAspect) myFaceBoundaryAspect;
0493ffd0 971 Standard_Integer myFaceBoundaryUpperContinuity; //!< the most edge continuity class (GeomAbs_Shape) to be included to face boundaries presentation, or -1 if undefined
6262338c 972 Standard_Boolean myHasOwnFaceBoundaryAspect;
973 Standard_Boolean myFaceBoundaryDraw;
974 Standard_Boolean myHasOwnFaceBoundaryDraw;
975
976 Handle(Prs3d_DimensionAspect) myDimensionAspect;
977 Standard_Boolean myHasOwnDimensionAspect;
978 Prs3d_DimensionUnits myDimensionModelUnits;
979 Standard_Boolean myHasOwnDimLengthModelUnits;
980 Standard_Boolean myHasOwnDimAngleModelUnits;
981 Prs3d_DimensionUnits myDimensionDisplayUnits;
982 Standard_Boolean myHasOwnDimLengthDisplayUnits;
983 Standard_Boolean myHasOwnDimAngleDisplayUnits;
6262338c 984};
985
f838dac4 986Standard_DEPRECATED("Class name is deprecated - use Prs3d_Drawer instead")
987typedef Prs3d_Drawer Graphic3d_HighlightStyle;
988
6262338c 989#endif // _Prs3d_Drawer_HeaderFile