0024056: error LNK2019: unresolved external symbol
[occt.git] / src / Graphic3d / Graphic3d_Structure.hxx
CommitLineData
42cf5bc1 1// Created on: 1991-06-12
2// Created by: NW,JPB,CAL
3// Copyright (c) 1991-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 _Graphic3d_Structure_HeaderFile
18#define _Graphic3d_Structure_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <Graphic3d_CStructure.hxx>
24#include <Graphic3d_IndexedMapOfAddress.hxx>
25#include <Quantity_Color.hxx>
26#include <Aspect_TypeOfHighlightMethod.hxx>
27#include <Graphic3d_StructureManagerPtr.hxx>
28#include <Standard_Address.hxx>
29#include <Graphic3d_TypeOfStructure.hxx>
30#include <MMgt_TShared.hxx>
31#include <Standard_Boolean.hxx>
32#include <Standard_Integer.hxx>
33#include <Graphic3d_ZLayerId.hxx>
34#include <Graphic3d_SequenceOfHClipPlane.hxx>
35#include <Standard_Real.hxx>
36#include <TColStd_Array2OfReal.hxx>
37#include <Graphic3d_SequenceOfGroup.hxx>
38#include <Graphic3d_TypeOfConnection.hxx>
39#include <Graphic3d_MapOfStructure.hxx>
40#include <Graphic3d_TypeOfComposition.hxx>
825aa485 41#include <Graphic3d_TransformPers.hxx>
42cf5bc1 42#include <Graphic3d_TransModeFlags.hxx>
43#include <Graphic3d_BndBox4f.hxx>
44#include <Graphic3d_BndBox4d.hxx>
45#include <Graphic3d_Vertex.hxx>
46class Graphic3d_PriorityDefinitionError;
47class Graphic3d_StructureDefinitionError;
48class Graphic3d_TransformError;
49class Graphic3d_Group;
50class Graphic3d_StructureManager;
51class Quantity_Color;
42cf5bc1 52class Graphic3d_DataStructureManager;
53class Bnd_Box;
54class gp_Pnt;
55class Graphic3d_Vector;
56
57
58class Graphic3d_Structure;
59DEFINE_STANDARD_HANDLE(Graphic3d_Structure, MMgt_TShared)
60
61//! This class allows the definition a graphic object.
62//! This graphic structure can be displayed,
63//! erased, or highlighted.
64//! This graphic structure can be connected with
65//! another graphic structure.
66//! Keywords: Structure, StructureManager, Display, Erase, Highlight,
67//! UnHighlight, Visible, Priority, Selectable, Visible,
68//! Visual, Connection, Ancestors, Descendants, Transformation
69class Graphic3d_Structure : public MMgt_TShared
70{
71
72public:
73
74
75 //! Creates a graphic object in the manager theManager.
76 //! It will appear in all the views of the visualiser.
42cf5bc1 77 //! The structure is not displayed when it is created.
78 Standard_EXPORT Graphic3d_Structure(const Handle(Graphic3d_StructureManager)& theManager);
79
80 //! Creates a shadow link to existing graphic object.
81 Standard_EXPORT Graphic3d_Structure(const Handle(Graphic3d_StructureManager)& theManager, const Handle(Graphic3d_Structure)& thePrs);
82
83 //! if WithDestruction == Standard_True then
84 //! suppress all the groups of primitives in the structure.
85 //! and it is mandatory to create a new group in <me>.
86 //! if WithDestruction == Standard_False then
87 //! clears all the groups of primitives in the structure.
88 //! and all the groups are conserved and empty.
89 //! They will be erased at the next screen update.
90 //! The structure itself is conserved.
91 //! The transformation and the attributes of <me> are conserved.
92 //! The childs of <me> are conserved.
93 Standard_EXPORT virtual void Clear (const Standard_Boolean WithDestruction = Standard_True);
94
95 //! Suppresses the structure <me>.
96 //! It will be erased at the next screen update.
e6f550da 97 Standard_EXPORT ~Graphic3d_Structure();
42cf5bc1 98
99 //! Displays the structure <me> in all the views of the visualiser.
100 Standard_EXPORT virtual void Display();
101
102 //! Returns the current display priority for the
103 //! structure <me>.
104 Standard_EXPORT Standard_Integer DisplayPriority() const;
105
106 //! Erases the structure <me> in all the views
107 //! of the visualiser.
108 Standard_EXPORT virtual void Erase();
109
110 //! Highlights the structure <me> in all the views of the visualiser, using the following methods:
111 //! TOHM_COLOR = drawn in the highlight color
112 //! TOHM_BOUNDBOX = enclosed by the boundary box
113 Standard_EXPORT void Highlight (const Aspect_TypeOfHighlightMethod theMethod, const Quantity_Color& theColor, const Standard_Boolean theToUpdateMgr = Standard_True);
114
115 //! Suppress the structure <me>.
116 //! It will be erased at the next screen update.
117 //! Warning: No more graphic operations in <me> after this call.
118 //! Category: Methods to modify the class definition
119 Standard_EXPORT void Remove();
120
121 //! Computes axis-aligned bounding box of a structure.
770fa4d4 122 Standard_EXPORT virtual void CalculateBoundBox();
42cf5bc1 123
124 //! If <theToSet> is Standard_True then <me> is infinite and
125 //! the MinMaxValues method method return :
126 //! theXMin = theYMin = theZMin = RealFirst().
127 //! theXMax = theYMax = theZMax = RealLast().
128 //! By default, <me> is not infinite but empty.
129 Standard_EXPORT void SetInfiniteState (const Standard_Boolean theToSet);
130
131 //! Modifies the order of displaying the structure.
132 //! Values are between 0 and 10.
133 //! Structures are drawn according to their display priorities
134 //! in ascending order.
135 //! A structure of priority 10 is displayed the last and appears over the others.
136 //! The default value is 5.
137 //! Category: Methods to modify the class definition
138 //! Warning: If <me> is displayed then the SetDisplayPriority
139 //! method erase <me> and display <me> with the
140 //! new priority.
141 //! Raises PriorityDefinitionError if <Priority> is
142 //! greater than 10 or a negative value.
143 Standard_EXPORT void SetDisplayPriority (const Standard_Integer Priority);
144
145 //! Reset the current priority of the structure to the
146 //! previous priority.
147 //! Category: Methods to modify the class definition
148 //! Warning: If <me> is displayed then the SetDisplayPriority
149 //! method erase <me> and display <me> with the
150 //! previous priority.
151 Standard_EXPORT void ResetDisplayPriority();
152
153 //! Set Z layer ID for the structure. The Z layer mechanism
154 //! allows to display structures presented in higher layers in overlay
155 //! of structures in lower layers by switching off z buffer depth
156 //! test between layers
157 Standard_EXPORT void SetZLayer (const Graphic3d_ZLayerId theLayerId);
158
159 //! Get Z layer ID of displayed structure. The method
160 //! returns -1 if the structure has no ID (deleted from graphic driver).
161 Standard_EXPORT Graphic3d_ZLayerId GetZLayer() const;
162
163 //! Changes a sequence of clip planes slicing the structure on rendering.
164 //! @param thePlanes [in] the set of clip planes.
165 Standard_EXPORT void SetClipPlanes (const Graphic3d_SequenceOfHClipPlane& thePlanes);
166
167 //! Get clip planes slicing the structure on rendering.
168 //! @return set of clip planes.
169 Standard_EXPORT const Graphic3d_SequenceOfHClipPlane& GetClipPlanes() const;
2831708b 170
42cf5bc1 171 //! Modifies the visibility indicator to Standard_True or
172 //! Standard_False for the structure <me>.
173 //! The default value at the definition of <me> is
174 //! Standard_True.
175 Standard_EXPORT void SetVisible (const Standard_Boolean AValue);
176
177 //! Modifies the visualisation mode for the structure <me>.
178 Standard_EXPORT virtual void SetVisual (const Graphic3d_TypeOfStructure AVisual);
179
180 //! Modifies the minimum and maximum zoom coefficients
181 //! for the structure <me>.
182 //! The default value at the definition of <me> is unlimited.
183 //! Category: Methods to modify the class definition
184 //! Warning: Raises StructureDefinitionError if <LimitInf> is
185 //! greater than <LimitSup> or if <LimitInf> or
186 //! <LimitSup> is a negative value.
187 Standard_EXPORT void SetZoomLimit (const Standard_Real LimitInf, const Standard_Real LimitSup);
188
189 //! marks the structure <me> representing wired structure needed for
190 //! highlight only so it won't be added to BVH tree.
191 //! Category: Methods to modify the class definition
192 Standard_EXPORT void SetIsForHighlight (const Standard_Boolean isForHighlight);
193
194 //! Suppresses the highlight for the structure <me>
195 //! in all the views of the visualiser.
196 Standard_EXPORT void UnHighlight();
197
198 Standard_EXPORT virtual void Compute();
199
200 //! Returns the new Structure defined for the new visualization
201 Standard_EXPORT virtual Handle(Graphic3d_Structure) Compute (const Handle(Graphic3d_DataStructureManager)& aProjector);
202
203 //! Returns the new Structure defined for the new visualization
204 Standard_EXPORT virtual Handle(Graphic3d_Structure) Compute (const Handle(Graphic3d_DataStructureManager)& aProjector, const TColStd_Array2OfReal& AMatrix);
205
206 //! Returns the new Structure defined for the new visualization
207 Standard_EXPORT virtual void Compute (const Handle(Graphic3d_DataStructureManager)& aProjector, Handle(Graphic3d_Structure)& aStructure);
208
209 //! Returns the new Structure defined for the new visualization
210 Standard_EXPORT virtual void Compute (const Handle(Graphic3d_DataStructureManager)& aProjector, const TColStd_Array2OfReal& AMatrix, Handle(Graphic3d_Structure)& aStructure);
211
212 //! Forces a new construction of the structure <me>
213 //! if <me> is displayed and TOS_COMPUTED.
214 Standard_EXPORT void ReCompute();
215
216 //! Forces a new construction of the structure <me>
217 //! if <me> is displayed in <aProjetor> and TOS_COMPUTED.
218 Standard_EXPORT void ReCompute (const Handle(Graphic3d_DataStructureManager)& aProjector);
219
220 //! Returns Standard_True if the structure <me> contains
221 //! Polygons, Triangles or Quadrangles.
222 Standard_EXPORT Standard_Boolean ContainsFacet() const;
2831708b 223
42cf5bc1 224 //! Returns the groups sequence included in the structure <me> (internal storage).
225 Standard_EXPORT const Graphic3d_SequenceOfGroup& Groups() const;
226
227 //! Returns the current number of groups in the
228 //! structure <me>.
229 Standard_EXPORT Standard_Integer NumberOfGroups() const;
230
231 //! Append new group to this structure.
232 Standard_EXPORT Handle(Graphic3d_Group) NewGroup();
233
234 //! Returns the highlight color for the Highlight method
235 //! with the highlight method TOHM_COLOR or TOHM_BOUNDBOX.
236 Standard_EXPORT const Quantity_Color& HighlightColor() const;
237
238 //! Returns Standard_True if the structure <me> is deleted.
239 //! <me> is deleted after the call Remove (me).
240 Standard_EXPORT Standard_Boolean IsDeleted() const;
241
242 //! Returns the display indicator for the structure <me>.
243 Standard_EXPORT virtual Standard_Boolean IsDisplayed() const;
244
245 //! Returns Standard_True if the structure <me> is empty.
246 //! Warning: A structure is empty if :
247 //! it do not have group or all the groups are empties
248 //! and it do not have descendant or all the descendants
249 //! are empties.
250 Standard_EXPORT Standard_Boolean IsEmpty() const;
251
252 //! Returns Standard_True if the structure <me> is infinite.
253 Standard_EXPORT Standard_Boolean IsInfinite() const;
254
255 //! Returns the highlight indicator for the structure <me>.
256 Standard_EXPORT virtual Standard_Boolean IsHighlighted() const;
257
42cf5bc1 258 //! Returns Standard_True if the structure <me> is transformed.
259 //! <=> The transformation != Identity.
260 Standard_EXPORT Standard_Boolean IsTransformed() const;
261
262 //! Returns the visibility indicator for the structure <me>.
263 Standard_EXPORT Standard_Boolean IsVisible() const;
2831708b 264
42cf5bc1 265 //! Returns the coordinates of the boundary box of the structure <me>.
266 //! If <theToIgnoreInfiniteFlag> is TRUE, the method returns actual graphical
267 //! boundaries of the Graphic3d_Group components. Otherwise, the
268 //! method returns boundaries taking into account infinite state
269 //! of the structure. This approach generally used for application
270 //! specific fit operation (e.g. fitting the model into screen,
271 //! not taking into accout infinite helper elements).
272 //! Warning: If the structure <me> is empty then the empty box is returned,
273 //! If the structure <me> is infinite then the whole box is returned.
274 Standard_EXPORT Bnd_Box MinMaxValues (const Standard_Boolean theToIgnoreInfiniteFlag = Standard_False) const;
2831708b 275
42cf5bc1 276 //! Returns the visualisation mode for the structure <me>.
277 Standard_EXPORT Graphic3d_TypeOfStructure Visual() const;
278
279 //! Returns Standard_True if the connection is possible between
280 //! <AStructure1> and <AStructure2> without a creation
281 //! of a cycle.
282 //!
283 //! It's not possible to call the method
284 //! AStructure1->Connect (AStructure2, TypeOfConnection)
285 //! if
286 //! - the set of all ancestors of <AStructure1> contains
287 //! <AStructure1> and if the
288 //! TypeOfConnection == TOC_DESCENDANT
289 //! - the set of all descendants of <AStructure1> contains
290 //! <AStructure2> and if the
291 //! TypeOfConnection == TOC_ANCESTOR
292 Standard_EXPORT static Standard_Boolean AcceptConnection (const Handle(Graphic3d_Structure)& AStructure1, const Handle(Graphic3d_Structure)& AStructure2, const Graphic3d_TypeOfConnection AType);
293
294 //! Returns the group of structures to which <me> is connected.
295 Standard_EXPORT void Ancestors (Graphic3d_MapOfStructure& SG) const;
296
297 //! If Atype is TOC_DESCENDANT then add <AStructure>
298 //! as a child structure of <me>.
299 //! If Atype is TOC_ANCESTOR then add <AStructure>
300 //! as a parent structure of <me>.
301 //! The connection propagates Display, Highlight, Erase,
302 //! Remove, and stacks the transformations.
303 //! No connection if the graph of the structures
304 //! contains a cycle and <WithCheck> is Standard_True;
305 Standard_EXPORT void Connect (const Handle(Graphic3d_Structure)& AStructure, const Graphic3d_TypeOfConnection AType, const Standard_Boolean WithCheck = Standard_False);
306
307 //! Returns the group of structures connected to <me>.
308 Standard_EXPORT void Descendants (Graphic3d_MapOfStructure& SG) const;
309
310 //! Suppress the connection between <AStructure> and <me>.
311 Standard_EXPORT void Disconnect (const Handle(Graphic3d_Structure)& AStructure);
312
313 //! If Atype is TOC_DESCENDANT then suppress all
314 //! the connections with the child structures of <me>.
315 //! If Atype is TOC_ANCESTOR then suppress all
316 //! the connections with the parent structures of <me>.
317 Standard_EXPORT void DisconnectAll (const Graphic3d_TypeOfConnection AType);
318
319 //! Returns <ASet> the group of structures :
320 //! - directly or indirectly connected to <AStructure> if the
321 //! TypeOfConnection == TOC_DESCENDANT
322 //! - to which <AStructure> is directly or indirectly connected
323 //! if the TypeOfConnection == TOC_ANCESTOR
324 Standard_EXPORT static void Network (const Handle(Graphic3d_Structure)& AStructure, const Graphic3d_TypeOfConnection AType, Graphic3d_MapOfStructure& ASet);
325
326 Standard_EXPORT void SetOwner (const Standard_Address Owner);
327
328 Standard_EXPORT Standard_Address Owner() const;
329
330 Standard_EXPORT void SetHLRValidation (const Standard_Boolean AFlag);
331
332 Standard_EXPORT Standard_Boolean HLRValidation() const;
6bd94e0d 333
42cf5bc1 334 //! Modifies the current local modelling transformation
335 //! in the structure <me>.
336 //!
337 //! It is defined as a 4*4 real matrix.
338 //!
339 //! -------------------
340 //! | a11 a12 a13 t1 |
341 //! | a21 a22 a23 t2 |
342 //! | a31 a32 a33 t3 |
343 //! | 0 0 0 1 |
344 //! -------------------
345 //!
346 //! TypeOfComposition : TOC_REPLACE
347 //! TOC_POSTCONCATENATE
348 //!
349 //! Then the modified Local Modelling Transformation is composed
350 //! with the current Global Modelling Transformation to create a
351 //! new Composite Modelling Transformation.
352 //!
353 //! The compose type specifies the role of the current local
354 //! modelling transformation (L) in composing the new value for
355 //! the current local modelling transformation (L'), which is
356 //! then combined with the current global modelling transforma-
357 //! tion (G) to calculate the new composite modelling transfor-
358 //! mation (C).
359 //!
360 //! TOC_REPLACE
361 //! The transformation matrix (T) replaces the value of
362 //! current local modelling transformation (L).
363 //!
364 //! L' <- T
365 //! C <- G x L'
366 //!
367 //! TOC_POSTCONCATENATE
368 //! The current local modelling transformation (L) is multiplied
369 //! by the transformation matrix (T):
370 //!
371 //! L' <- T x L
372 //! C <- G x L'
373 //!
374 //! Category: Methods to manage the structure transformation
375 //! Warning: Raises TransformError if the matrix is not a 4x4 matrix.
376 Standard_EXPORT void SetTransform (const TColStd_Array2OfReal& AMatrix, const Graphic3d_TypeOfComposition AType);
377
378 //! Returns the transformation associated with
379 //! the structure <me>.
380 Standard_EXPORT void Transform (TColStd_Array2OfReal& AMatrix) const;
381
382 //! Modifies the current modelling transform persistence (pan, zoom or rotate)
383 Standard_EXPORT void SetTransformPersistence (const Graphic3d_TransModeFlags& AFlag, const gp_Pnt& APoint);
384
385 Standard_EXPORT void SetTransformPersistence (const Graphic3d_TransModeFlags& AFlag);
386
387 //! Get the current modelling transform persistence (pan, zoom or rotate)
388 Standard_EXPORT Graphic3d_TransModeFlags TransformPersistenceMode() const;
389
390 //! Get the current point of relative modelling transform persistence
391 Standard_EXPORT gp_Pnt TransformPersistencePoint() const;
825aa485 392
393 //! @return transform persistence of the presentable object.
394 const Graphic3d_TransformPers& TransformPersistence() const;
395
42cf5bc1 396 //! Sets if the structure location has mutable nature (content or location will be changed regularly).
397 Standard_EXPORT void SetMutable (const Standard_Boolean theIsMutable);
398
399 //! Returns true if structure has mutable nature (content or location are be changed regularly).
400 //! Mutable structure will be managed in different way than static onces.
401 Standard_EXPORT Standard_Boolean IsMutable() const;
402
403 Standard_EXPORT Graphic3d_TypeOfStructure ComputeVisual() const;
404
405 //! Clears the structure <me>.
406 Standard_EXPORT void GraphicClear (const Standard_Boolean WithDestruction);
407
408 Standard_EXPORT void GraphicConnect (const Handle(Graphic3d_Structure)& ADaughter);
409
410 Standard_EXPORT void GraphicDisconnect (const Handle(Graphic3d_Structure)& ADaughter);
411
412 //! Highlights the structure <me>.
413 Standard_EXPORT void GraphicHighlight (const Aspect_TypeOfHighlightMethod Method);
414
415 Standard_EXPORT void GraphicTransform (const TColStd_Array2OfReal& AMatrix);
416
417 //! Suppress the highlight for the structure <me>.
418 Standard_EXPORT void GraphicUnHighlight();
419
420 //! Returns the identification number of the structure <me>.
421 Standard_EXPORT Standard_Integer Identification() const;
422
423 //! Prints informations about the network associated
424 //! with the structure <AStructure>.
425 Standard_EXPORT static void PrintNetwork (const Handle(Graphic3d_Structure)& AStructure, const Graphic3d_TypeOfConnection AType);
426
427 //! Suppress the adress <APtr> in the list
428 //! of descendants or in the list of ancestors.
429 Standard_EXPORT void Remove (const Standard_Address APtr, const Graphic3d_TypeOfConnection AType);
430
431 Standard_EXPORT void SetComputeVisual (const Graphic3d_TypeOfStructure AVisual);
432
433 //! Transforms <X>, <Y>, <Z> with the transformation <ATrsf>.
434 Standard_EXPORT static void Transforms (const TColStd_Array2OfReal& ATrsf, const Standard_Real X, const Standard_Real Y, const Standard_Real Z, Standard_Real& NewX, Standard_Real& NewY, Standard_Real& NewZ);
435
436 //! Transforms <Coord> with the transformation <ATrsf>.
437 Standard_EXPORT static Graphic3d_Vector Transforms (const TColStd_Array2OfReal& ATrsf, const Graphic3d_Vector& Coord);
438
439 //! Transforms <Coord> with the transformation <ATrsf>.
440 Standard_EXPORT static Graphic3d_Vertex Transforms (const TColStd_Array2OfReal& ATrsf, const Graphic3d_Vertex& Coord);
441
442 //! Returns the low-level structure
443 const Handle(Graphic3d_CStructure)& CStructure() const;
444
445friend class Graphic3d_Group;
446
447
92efcf78 448 DEFINE_STANDARD_RTTIEXT(Graphic3d_Structure,MMgt_TShared)
42cf5bc1 449
450protected:
451
452
453 //! Transforms boundaries with <theTrsf> transformation.
454 Standard_EXPORT static void TransformBoundaries (const TColStd_Array2OfReal& theTrsf, Standard_Real& theXMin, Standard_Real& theYMin, Standard_Real& theZMin, Standard_Real& theXMax, Standard_Real& theYMax, Standard_Real& theZMax);
455
456 //! Appends new descendant structure.
457 Standard_EXPORT Standard_Boolean AppendDescendant (const Standard_Address theDescendant);
458
459 //! Removes the given descendant structure.
460 Standard_EXPORT Standard_Boolean RemoveDescendant (const Standard_Address theDescendant);
461
462 //! Appends new ancestor structure.
463 Standard_EXPORT Standard_Boolean AppendAncestor (const Standard_Address theAncestor);
464
465 //! Removes the given ancestor structure.
466 Standard_EXPORT Standard_Boolean RemoveAncestor (const Standard_Address theAncestor);
467
468 Graphic3d_StructureManagerPtr myStructureManager;
469 Graphic3d_StructureManagerPtr myFirstStructureManager;
470 Graphic3d_TypeOfStructure myComputeVisual;
471
472
473private:
474
475
476 //! Suppress in the structure <me>, the group theGroup.
477 //! It will be erased at the next screen update.
478 Standard_EXPORT void Remove (const Handle(Graphic3d_Group)& theGroup);
479
480 //! Manages the number of groups in the structure <me>
481 //! which contains facet.
482 //! Polygons, Triangles or Quadrangles.
483 //! <ADelta> = +1 or -1
484 Standard_EXPORT void GroupsWithFacet (const Standard_Integer ADelta);
485
486 //! Returns the extreme coordinates found in the structure <me> without transformation applied.
487 Standard_EXPORT Graphic3d_BndBox4f minMaxCoord() const;
488
489 //! Gets untransformed bounding box from structure.
490 Standard_EXPORT void getBox (Graphic3d_BndBox4d& theBox, const Standard_Boolean theToIgnoreInfiniteFlag = Standard_False) const;
491
492 //! Adds transformed (with myCStructure->Transformation) bounding box of structure to theBox.
493 Standard_EXPORT void addTransformed (Graphic3d_BndBox4d& theBox, const Standard_Boolean theToIgnoreInfiniteFlag = Standard_False) const;
494
495 //! Returns the manager to which <me> is associated.
496 Standard_EXPORT Handle(Graphic3d_StructureManager) StructureManager() const;
497
50d06d8f 498 //! Calls the Update method of the StructureManager which contains the Structure <me>.
499 //! If theUpdateLayer is true then invalidates bounding box of ZLayer.
500 Standard_EXPORT void Update (const bool theUpdateLayer = false) const;
2831708b 501
502protected:
42cf5bc1 503
504 Handle(Graphic3d_CStructure) myCStructure;
505 Graphic3d_IndexedMapOfAddress myAncestors;
506 Graphic3d_IndexedMapOfAddress myDescendants;
507 Quantity_Color myHighlightColor;
508 Aspect_TypeOfHighlightMethod myHighlightMethod;
509 Standard_Address myOwner;
510 Graphic3d_TypeOfStructure myVisual;
511
512
513};
514
515
516#include <Graphic3d_Structure.lxx>
517
518
519
520
521
522#endif // _Graphic3d_Structure_HeaderFile