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
6 -- This file is part of Open CASCADE Technology software library.
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.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 -- 11/97 ; CAL : gestion du GraphicClear
18 -- 11/97 ; CAL : ajout pointer StructPtr
19 -- 11/97 ; CAL : amelioration de l'effacement SetManager
20 -- 01/98 ; CAL : gestion du HLRValidation
21 -- 05/98 ; CAL : gestion du GraphicConnect et Disconnect
22 -- 02/00 ; GG : Made Transform() methode not mutable.
23 -- 31/05/01 ; GG : Add ResetDisplayPriority() method
25 class Structure from Graphic3d inherits TShared
29 ---Purpose: This class allows the definition a graphic object.
30 -- This graphic structure can be displayed,
31 -- erased, or highlighted.
32 -- This graphic structure can be connected with
33 -- another graphic structure.
34 -- Keywords: Structure, StructureManager, Display, Erase, Highlight,
35 -- UnHighlight, Visible, Priority, Selectable, Visible,
36 -- Visual, Connection, Ancestors, Descendants, Transformation
43 Array2OfReal from TColStd,
44 SequenceOfAddress from TColStd,
49 TypeOfHighlightMethod from Aspect,
51 DataStructureManager from Graphic3d,
52 AspectFillArea3d from Graphic3d,
53 AspectLine3d from Graphic3d,
54 AspectMarker3d from Graphic3d,
55 AspectText3d from Graphic3d,
56 CStructure from Graphic3d,
57 CStructure_Handle from Graphic3d,
58 GraphicDriver from Graphic3d,
60 SequenceOfGroup from Graphic3d,
61 HSequenceOfGroup from Graphic3d,
62 SequenceOfStructure from Graphic3d,
63 HSequenceOfStructure from Graphic3d,
64 MapOfStructure from Graphic3d,
65 Plotter from Graphic3d,
66 StructureManager from Graphic3d,
67 StructureManagerPtr from Graphic3d,
68 TypeOfComposition from Graphic3d,
69 TypeOfConnection from Graphic3d,
70 TypeOfPrimitive from Graphic3d,
71 TypeOfStructure from Graphic3d,
72 Vector from Graphic3d,
73 Vertex from Graphic3d,
74 TransModeFlags from Graphic3d,
76 SequenceOfHClipPlane from Graphic3d
80 PriorityDefinitionError from Graphic3d,
81 StructureDefinitionError from Graphic3d,
82 TransformError from Graphic3d
86 ------------------------
87 -- Category: Constructor
88 ------------------------
90 Create (theManager : StructureManager from Graphic3d)
91 returns mutable Structure from Graphic3d;
93 ---Purpose: Creates a graphic object in the manager theManager.
94 -- It will appear in all the views of the visualiser.
95 -- Warning: The default values AspectLine, AspectFillArea, AspectText and AspectMarker are NOT applied to the structure.
96 -- The structure is not displayed when it is created.
98 Create (theManager : StructureManager from Graphic3d;
99 thePrs : Structure from Graphic3d)
100 returns mutable Structure from Graphic3d;
102 ---Purpose: Creates a shadow link to existing graphic object.
104 ---------------------------------------------------
105 -- Category: Methods to modify the class definition
106 ---------------------------------------------------
108 --------------------------------------------------------
109 -- Summary of Display Priorities --
111 -- Structure display priorities control the order in --
112 -- which structures are redrawn. --
114 -- When you display a structure, you specify its --
115 -- priority. The lower the value, the lower the --
116 -- display priority. When the display is regenerated, --
117 -- the structures with the lowest priority are drawn --
119 -- For structures with the same display priority, --
120 -- the order in which they were displayed determines --
121 -- determines the drawing order. --
123 -- CAS.CADE supports 11 structure display priorities, --
125 --------------------------------------------------------
127 Clear ( me : mutable;
128 WithDestruction : Boolean from Standard = Standard_True )
131 ---Purpose: if WithDestruction == Standard_True then
132 -- suppress all the groups of primitives in the structure.
133 -- and it is mandatory to create a new group in <me>.
134 -- if WithDestruction == Standard_False then
135 -- clears all the groups of primitives in the structure.
136 -- and all the groups are conserved and empty.
137 -- They will be erased at the next screen update.
138 -- The structure itself is conserved.
139 -- The transformation and the attributes of <me> are conserved.
140 -- The childs of <me> are conserved.
141 ---Category: Methods to modify the class definition
143 Destroy ( me : mutable )
146 ---Purpose: Suppresses the structure <me>.
147 -- It will be erased at the next screen update.
148 ---Category: Methods to modify the class definition
151 Display ( me : mutable )
154 ---Purpose: Displays the structure <me> in all the views of
156 ---Category: Methods to modify the class definition
158 Display ( me : mutable;
159 Priority : Integer from Standard )
161 ---Purpose: Displays the structure <me> in all the views of
162 -- the visualiser, while modifying its current priority.
163 -- Note: Display Priorities
164 -- Structure display priorities control the order in which
165 -- structures are redrawn. When you display a
166 -- structure, you specify its priority. The lower the value,
167 -- the lower the display priority. When the display is
168 -- regenerated, the structures with the lowest priority
169 -- are drawn first. For structures with the same display
170 -- priority, the order in which they were displayed
171 -- determines the drawing order. Open CASCADE
172 -- supports 11 structure display priorities, 0 to 10.
173 -- Warning: Raises PriorityDefinitionError if <Priority> is
174 -- greater than 10 or a negative value.
175 raises PriorityDefinitionError from Graphic3d is static;
177 DisplayPriority ( me )
178 returns Integer from Standard
181 ---Purpose: Returns the current display priority for the
183 ---Category: Methods to modify the class definition
185 Erase ( me : mutable )
188 ---Purpose: Erases the structure <me> in all the views
189 -- of the visualiser.
190 ---Category: Methods to modify the class definition
192 Highlight ( me : mutable;
193 Method : TypeOfHighlightMethod from Aspect )
196 ---Purpose: Highlights the structure <me> in all the
197 -- views of the visualiser, using the following methods:
199 -- TOHM_COLOR = drawn in the highlight color
201 -- TOHM_BLINK = blinking
202 -- TOHM_BOUNDBOX = enclosed by the boundary box
205 ---Category: Methods to modify the class definition
207 Remove ( me : mutable )
210 ---Purpose: Suppress the structure <me>.
211 -- It will be erased at the next screen update.
212 -- Warning: No more graphic operations in <me> after this call.
213 -- Category: Methods to modify the class definition
215 SetHighlightColor ( me : mutable;
216 AColor : Color from Quantity )
219 ---Purpose: Modifies the highlight color for the Highlight method
220 -- with the highlight method TOHM_COLOR or TOHM_BOUNDBOX.
221 ---Category: Methods to modify the class definition
223 SetInfiniteState (me : mutable; theToSet : Boolean from Standard) is static;
225 ---Purpose: If <theToSet> is Standard_True then <me> is infinite and
226 -- the MinMaxValues method method return :
227 -- theXMin = theYMin = theZMin = RealFirst().
228 -- theXMax = theYMax = theZMax = RealLast().
229 -- By default, <me> is not infinite but empty.
230 ---Category: Methods to modify the class definition
232 SetDisplayPriority ( me : mutable;
233 Priority : Integer from Standard )
235 ---Purpose: Modifies the order of displaying the structure.
236 -- Values are between 0 and 10.
237 -- Structures are drawn according to their display priorities
238 -- in ascending order.
239 -- A structure of priority 10 is displayed the last and appears over the others.
240 -- The default value is 5.
241 -- Category: Methods to modify the class definition
242 -- Warning: If <me> is displayed then the SetDisplayPriority
243 -- method erase <me> and display <me> with the
245 -- Raises PriorityDefinitionError if <Priority> is
246 -- greater than 10 or a negative value.
247 raises PriorityDefinitionError from Graphic3d is static;
249 ResetDisplayPriority ( me : mutable)
252 ---Purpose: Reset the current priority of the structure to the
253 -- previous priority.
254 -- Category: Methods to modify the class definition
255 -- Warning: If <me> is displayed then the SetDisplayPriority
256 -- method erase <me> and display <me> with the
257 -- previous priority.
259 SetZLayer ( me : mutable;
260 theLayerId : Integer from Standard )
262 ---Purpose: Set Z layer ID for the structure. The Z layer mechanism
263 -- allows to display structures presented in higher layers in overlay
264 -- of structures in lower layers by switching off z buffer depth
265 -- test between layers
268 returns Integer from Standard is static;
269 ---Purpose: Get Z layer ID of displayed structure. The method
270 -- returns -1 if the structure has no ID (deleted from graphic driver).
272 SetClipPlanes (me : mutable; thePlanes : SequenceOfHClipPlane from Graphic3d) is static;
273 ---Purpose: Changes a sequence of clip planes slicing the structure on rendering.
274 -- @param thePlanes [in] the set of clip planes.
276 GetClipPlanes (me) returns SequenceOfHClipPlane from Graphic3d;
277 ---C++: return const&
278 ---Purpose: Get clip planes slicing the structure on rendering.
279 -- @return set of clip planes.
281 SetPick ( me : mutable;
282 AValue : Boolean from Standard )
285 ---Purpose: Modifies the detectability indicator to Standard_True
286 -- or Standard_False for the structure <me>.
287 -- The default value at the definition of <me> is
289 ---Category: Methods to modify the class definition
291 SetPrimitivesAspect ( me : mutable;
292 CTX : AspectLine3d from Graphic3d )
295 ---Purpose: Modifies the default attributes for lines
296 -- in the structure <me>.
297 ---Category: Methods to modify the class definition
299 SetPrimitivesAspect ( me : mutable;
300 CTX : AspectFillArea3d from Graphic3d )
303 ---Purpose: Modifies the default attributes for faces
304 -- in the structure <me>.
305 ---Category: Methods to modify the class definition
307 SetPrimitivesAspect ( me : mutable;
308 CTX : AspectText3d from Graphic3d )
311 ---Purpose: Modifies the default attributes for text
312 -- in the structure <me>.
313 ---Category: Methods to modify the class definition
315 SetPrimitivesAspect ( me : mutable;
316 CTX : AspectMarker3d from Graphic3d )
319 ---Purpose: Modifies the default attributes for markers
320 -- in the structure <me>.
321 ---Category: Methods to modify the class definition
323 SetVisible ( me : mutable;
324 AValue : Boolean from Standard )
327 ---Purpose: Modifies the visibility indicator to Standard_True or
328 -- Standard_False for the structure <me>.
329 -- The default value at the definition of <me> is
331 ---Category: Methods to modify the class definition
333 SetVisual ( me : mutable;
334 AVisual : TypeOfStructure from Graphic3d )
337 ---Purpose: Modifies the visualisation mode for the structure <me>.
338 ---Warning: It is not possible to display a structure with
339 -- an incompatible display mode.
340 -- If the display mode is different from the current one,
341 -- the structure is erased.
343 -- TOS_WIREFRAME for a wireframe visualisation
344 -- TOS_SHADING for a shaded visualisation
345 -- TOS_ALL for all visualisations
346 -- TOS_COMPUTED for a computed visualisation
347 -- The default value is TOS_ALL
349 ---Category: Methods to modify the class definition
351 SetZoomLimit ( me : mutable;
352 LimitInf, LimitSup : Real from Standard )
354 ---Purpose: Modifies the minimum and maximum zoom coefficients
355 -- for the structure <me>.
356 -- The default value at the definition of <me> is unlimited.
357 -- Category: Methods to modify the class definition
358 -- Warning: Raises StructureDefinitionError if <LimitInf> is
359 -- greater than <LimitSup> or if <LimitInf> or
360 -- <LimitSup> is a negative value.
361 raises StructureDefinitionError from Graphic3d is static;
363 UnHighlight ( me : mutable )
366 ---Purpose: Suppresses the highlight for the structure <me>
367 -- in all the views of the visualiser.
368 ---Category: Methods to modify the class definition
370 ----------------------------
371 -- Category: Compute methods
372 ----------------------------
374 Compute (me: mutable)
377 ---Category: Methods to modify the class definition
379 Compute ( me : mutable;
380 aProjector : DataStructureManager from Graphic3d )
381 returns Structure from Graphic3d is virtual;
383 ---Purpose: Returns the new Structure defined for the new visualization
384 ---Category: Methods to modify the class definition
386 Compute ( me : mutable;
387 aProjector : DataStructureManager from Graphic3d;
388 AMatrix : Array2OfReal from TColStd )
389 returns Structure from Graphic3d is virtual;
391 ---Purpose: Returns the new Structure defined for the new visualization
392 ---Category: Methods to modify the class definition
394 Compute ( me : mutable;
395 aProjector : DataStructureManager from Graphic3d;
396 aStructure : in out Structure from Graphic3d )
399 ---Purpose: Returns the new Structure defined for the new visualization
400 ---Category: Methods to modify the class definition
402 Compute ( me : mutable;
403 aProjector : DataStructureManager from Graphic3d;
404 AMatrix : Array2OfReal from TColStd;
405 aStructure : in out Structure from Graphic3d )
408 ---Purpose: Returns the new Structure defined for the new visualization
409 ---Category: Methods to modify the class definition
411 ReCompute ( me : mutable );
413 ---Purpose: Forces a new construction of the structure <me>
414 -- if <me> is displayed and TOS_COMPUTED.
415 ---Category: Methods to modify the class definition
417 ReCompute ( me : mutable;
418 aProjector : DataStructureManager from Graphic3d );
420 ---Purpose: Forces a new construction of the structure <me>
421 -- if <me> is displayed in <aProjetor> and TOS_COMPUTED.
422 ---Category: Methods to modify the class definition
424 ----------------------------
425 -- Category: Inquire methods
426 ----------------------------
429 returns Boolean from Standard
432 ---Purpose: Returns Standard_True if the structure <me> contains
433 -- Polygons, Triangles or Quadrangles.
434 ---Category: Inquire methods
437 FillArea3dAspect ( me )
438 returns AspectFillArea3d from Graphic3d
441 ---Purpose: Returns the values of the current default attributes.
442 ---Category: Inquire methods
445 returns SequenceOfGroup from Graphic3d
447 ---C++: return const &
449 ---Purpose: Returns the groups sequence included in the structure <me> (internal storage).
450 ---Category: Inquire methods
452 NumberOfGroups ( me )
453 returns Integer from Standard
456 ---Purpose: Returns the current number of groups in the
458 ---Category: Inquire methods
460 HighlightColor ( me )
461 returns Color from Quantity
463 ---C++: return const&
465 ---Purpose: Returns the highlight color for the Highlight method
466 -- with the highlight method TOHM_COLOR or TOHM_BOUNDBOX.
467 ---Category: Inquire methods
470 returns Boolean from Standard
473 ---Purpose: Returns Standard_True if the structure <me> is deleted.
474 -- <me> is deleted after the call Remove (me).
475 ---Category: Inquire methods
478 returns Boolean from Standard
481 ---Purpose: Returns the display indicator for the structure <me>.
482 ---Category: Inquire methods
485 returns Boolean from Standard
488 ---Purpose: Returns Standard_True if the structure <me> is empty.
489 -- Warning: A structure is empty if :
490 -- it do not have group or all the groups are empties
491 -- and it do not have descendant or all the descendants
493 ---Category: Inquire methods
496 returns Boolean from Standard
499 ---Purpose: Returns Standard_True if the structure <me> is infinite.
500 ---Category: Inquire methods
503 returns Boolean from Standard
506 ---Purpose: Returns the highlight indicator for the structure <me>.
507 ---Category: Inquire methods
510 returns Boolean from Standard
513 ---Purpose: Returns the detectability indicator for the structure <me>.
514 ---Category: Inquire methods
517 returns Boolean from Standard
520 ---Purpose: Returns Standard_True if the structure <me> is rotated.
521 -- <=> The transformation != Identity, != Scale, != Translation.
522 ---Category: Inquire methods
525 returns Boolean from Standard
528 ---Purpose: Returns Standard_True if the structure <me> is transformed.
529 -- <=> The transformation != Identity.
530 ---Category: Inquire methods
533 returns Boolean from Standard
536 ---Purpose: Returns the visibility indicator for the structure <me>.
537 ---Category: Inquire methods
540 returns AspectLine3d from Graphic3d
543 ---Purpose: Returns the values of the current default attributes.
544 ---Category: Inquire methods
546 Marker3dAspect ( me )
547 returns AspectMarker3d from Graphic3d
549 ---Purpose: Returns the current group of graphic attributes used
550 -- for 3d marker primitives.
553 theXMin, theYMin, theZMin : out Real from Standard;
554 theXMax, theYMax, theZMax : out Real from Standard;
555 theToIgnoreInfiniteFlag : Boolean from Standard = Standard_False)
558 ---Purpose: Returns the coordinates of the boundary box of the structure <me>.
559 -- If <theToIgnoreInfiniteFlag> is TRUE, the method returns actual graphical
560 -- boundaries of the Graphic3d_Group components. Otherwise, the
561 -- method returns boundaries taking into account infinite state
562 -- of the structure. This approach generally used for application
563 -- specific fit operation (e.g. fitting the model into screen,
564 -- not taking into accout infinite helper elements).
565 -- Warning: If the structure <me> is empty or infinite then :
566 -- theXMin = theYMin = theZMin = RealFirst ().
567 -- theXMax = theYMax = theZMax = RealLast ().
568 ---Category: Inquire methods
570 PrimitivesAspect ( me;
571 CTXL : out AspectLine3d from Graphic3d;
572 CTXT : out AspectText3d from Graphic3d;
573 CTXM : out AspectMarker3d from Graphic3d;
574 CTXF : out AspectFillArea3d from Graphic3d )
577 ---Purpose: Returns the current values of the default attributes.
578 ---Category: Inquire methods
581 returns AspectText3d from Graphic3d
584 ---Purpose: Returns the values of the current default attributes.
585 ---Category: Inquire methods
588 returns TypeOfStructure from Graphic3d
591 ---Purpose: Returns the visualisation mode for the structure <me>.
592 ---Category: Inquire methods
594 ----------------------------------------------------
595 -- Category: Methods to manage the structure network
596 ----------------------------------------------------
598 -----------------------------------------------------
599 -- Summary of Structure Hierarchies --
601 -- The root is the top of a structure hierarchy --
602 -- or structure network. --
604 -- The attributes of a parent structure are passed --
605 -- passed to its descendants. --
607 -- The attributes of the descendant structures --
608 -- don't affect the parent. --
610 -- Recursive structure networks are not supported. --
611 -----------------------------------------------------
613 AcceptConnection ( myclass;
614 AStructure1 : Structure from Graphic3d;
615 AStructure2 : Structure from Graphic3d;
616 AType : TypeOfConnection from Graphic3d )
617 returns Boolean from Standard;
619 ---Purpose: Returns Standard_True if the connection is possible between
620 -- <AStructure1> and <AStructure2> without a creation
623 -- It's not possible to call the method
624 -- AStructure1->Connect (AStructure2, TypeOfConnection)
626 -- - the set of all ancestors of <AStructure1> contains
627 -- <AStructure1> and if the
628 -- TypeOfConnection == TOC_DESCENDANT
629 -- - the set of all descendants of <AStructure1> contains
630 -- <AStructure2> and if the
631 -- TypeOfConnection == TOC_ANCESTOR
632 ---Category: Methods to manage the structure network
634 Ancestors ( me; SG: in out MapOfStructure from Graphic3d )
637 ---Purpose: Returns the group of structures to which <me> is connected.
638 ---Category: Methods to manage the structure network
640 Connect ( me : mutable;
641 AStructure : Structure from Graphic3d;
642 AType : TypeOfConnection from Graphic3d;
643 WithCheck : Boolean from Standard = Standard_False );
645 ---Purpose: If Atype is TOC_DESCENDANT then add <AStructure>
646 -- as a child structure of <me>.
647 -- If Atype is TOC_ANCESTOR then add <AStructure>
648 -- as a parent structure of <me>.
649 -- The connection propagates Display, Highlight, Erase,
650 -- Remove, and stacks the transformations.
651 -- No connection if the graph of the structures
652 -- contains a cycle and <WithCheck> is Standard_True;
653 ---Category: Methods to manage the structure network
655 Descendants ( me; SG : in out MapOfStructure from Graphic3d )
658 ---Purpose: Returns the group of structures connected to <me>.
659 ---Category: Methods to manage the structure network
661 Disconnect ( me : mutable;
662 AStructure : Structure from Graphic3d )
665 ---Purpose: Suppress the connection between <AStructure> and <me>.
666 ---Category: Methods to manage the structure network
668 DisconnectAll ( me : mutable;
669 AType : TypeOfConnection from Graphic3d )
672 ---Purpose: If Atype is TOC_DESCENDANT then suppress all
673 -- the connections with the child structures of <me>.
674 -- If Atype is TOC_ANCESTOR then suppress all
675 -- the connections with the parent structures of <me>.
676 ---Category: Methods to manage the structure network
679 AStructure : Structure from Graphic3d;
680 AType : TypeOfConnection from Graphic3d;
681 ASet : in out MapOfStructure from Graphic3d );
683 ---Purpose: Returns <ASet> the group of structures :
684 -- - directly or indirectly connected to <AStructure> if the
685 -- TypeOfConnection == TOC_DESCENDANT
686 -- - to which <AStructure> is directly or indirectly connected
687 -- if the TypeOfConnection == TOC_ANCESTOR
688 ---Category: Methods to manage the structure network
690 SetOwner ( me : mutable;
691 Owner : Address from Standard )
696 returns Address from Standard
700 SetHLRValidation ( me : mutable;
701 AFlag : Boolean from Standard )
706 returns Boolean from Standard
710 -----------------------------------------------------------
711 -- Category: Methods to manage the structure transformation
712 -----------------------------------------------------------
715 returns TypeOfComposition from Graphic3d
718 ---Purpose: Returns the type of composition applied to matrices
719 -- of transformation of <me>.
720 ---Category: Methods to manage the structure transformation
722 SetTransform ( me : mutable;
723 AMatrix : Array2OfReal from TColStd;
724 AType : TypeOfComposition from Graphic3d )
726 ---Purpose: Modifies the current local modelling transformation
727 -- in the structure <me>.
729 -- It is defined as a 4*4 real matrix.
731 -- -------------------
732 -- | a11 a12 a13 t1 |
733 -- | a21 a22 a23 t2 |
734 -- | a31 a32 a33 t3 |
736 -- -------------------
738 -- TypeOfComposition : TOC_REPLACE
739 -- TOC_POSTCONCATENATE
741 -- Then the modified Local Modelling Transformation is composed
742 -- with the current Global Modelling Transformation to create a
743 -- new Composite Modelling Transformation.
745 -- The compose type specifies the role of the current local
746 -- modelling transformation (L) in composing the new value for
747 -- the current local modelling transformation (L'), which is
748 -- then combined with the current global modelling transforma-
749 -- tion (G) to calculate the new composite modelling transfor-
753 -- The transformation matrix (T) replaces the value of
754 -- current local modelling transformation (L).
759 -- TOC_POSTCONCATENATE
760 -- The current local modelling transformation (L) is multiplied
761 -- by the transformation matrix (T):
766 -- Category: Methods to manage the structure transformation
767 -- Warning: Raises TransformError if the matrix is not a 4x4 matrix.
768 raises TransformError from Graphic3d is static;
770 -- Transform ( me : mutable;
772 AMatrix : in out Array2OfReal from TColStd )
775 ---Purpose: Returns the transformation associated with
776 -- the structure <me>.
777 ---Category: Methods to manage the structure transformation
779 SetTransformPersistence( me : mutable;
780 AFlag : TransModeFlags from Graphic3d;
781 APoint : Pnt from gp )
783 ---Purpose: Modifies the current modelling transform persistence (pan, zoom or rotate)
786 SetTransformPersistence( me : mutable;
787 AFlag : TransModeFlags from Graphic3d )
788 -- Calls previous method with point (0,0,0)
792 TransformPersistenceMode( me )
793 returns TransModeFlags from Graphic3d
795 ---Purpose: Get the current modelling transform persistence (pan, zoom or rotate)
798 TransformPersistencePoint( me )
801 ---Purpose: Get the current point of relative modelling transform persistence
804 ----------------------------
805 -- Category: Private methods
806 ----------------------------
809 AGroup : Group from Graphic3d )
812 ---Purpose: Inserts in the structure <me>, the group <G>.
813 -- It will be erased at the next screen update.
814 ---Category: Private methods
817 returns TypeOfStructure from Graphic3d
820 ---Category: Private methods
822 GroupsWithFacet ( me : mutable;
823 ADelta : Integer from Standard )
826 ---Purpose: Manages the number of groups in the structure <me>
827 -- which contains facet.
828 -- Polygons, Triangles or Quadrangles.
829 -- <ADelta> = +1 or -1
830 ---Category: Private methods
832 GraphicClear ( me : mutable;
833 WithDestruction : Boolean from Standard )
836 ---Purpose: Clears the structure <me>.
837 ---Category: Private methods
839 GraphicConnect ( me : mutable;
840 ADaughter : Structure from Graphic3d )
844 ---Category: Private methods
846 GraphicDisconnect ( me : mutable;
847 ADaughter : Structure from Graphic3d )
851 ---Category: Private methods
853 GraphicHighlight ( me : mutable;
854 Method : TypeOfHighlightMethod from Aspect )
857 ---Purpose: Highlights the structure <me>.
858 ---Category: Private methods
860 GraphicTransform ( me : mutable;
861 AMatrix : Array2OfReal from TColStd )
865 ---Category: Private methods
867 GraphicUnHighlight ( me : mutable )
870 ---Purpose: Suppress the highlight for the structure <me>.
871 ---Category: Private methods
873 Identification ( me )
874 returns Integer from Standard
877 ---Purpose: Returns the identification number of the structure <me>.
878 ---Category: Private methods
881 theXMin, theYMin, theZMin : out Real from Standard;
882 theXMax, theYMax, theZMax : out Real from Standard)
885 ---Purpose: Returns the extreme coordinates found in the structure <me>.
886 -- Warning: If the structure <me> is empty or infinite then :
887 -- theXMin = theYMin = theZMin = RealFirst().
888 -- theXMax = theYMax = theZMax = RealLast().
889 ---Category: Private methods
891 MinMaxCoordWithDescendants (me;
892 theXMin, theYMin, theZMin : out Real from Standard;
893 theXMax, theYMax, theZMax : out Real from Standard)
896 ---Purpose: Returns the extreme coordinates found in the structure <me>
897 -- and its descendants with transformation applied.
898 -- Warning: If the structure <me> is empty or infinite then :
899 -- theXMin = theYMin = theZMin = RealFirst().
900 -- theXMax = theYMax = theZMax = RealLast().
901 ---Category: Private methods
904 aPlotter : Plotter from Graphic3d )
907 ---Category: Private methods
909 PrintNetwork ( myclass;
910 AStructure : Structure from Graphic3d;
911 AType : TypeOfConnection from Graphic3d );
913 ---Purpose: Prints informations about the network associated
914 -- with the structure <AStructure>.
915 ---Category: Private methods
917 Remove ( me : mutable;
918 APtr : Address from Standard;
919 AType : TypeOfConnection from Graphic3d )
922 ---Purpose: Suppress the adress <APtr> in the list
923 -- of descendants or in the list of ancestors.
924 ---Category: Private methods
926 Remove ( me : mutable;
927 AGroup : Group from Graphic3d )
930 ---Purpose: Suppress in the structure <me>, the group <AGroup>.
931 -- It will be erased at the next screen update.
932 ---Category: Private methods
934 SetComputeVisual ( me : mutable;
935 AVisual : TypeOfStructure from Graphic3d )
938 ---Category: Private methods
940 StructureManager ( me )
941 returns StructureManager from Graphic3d
944 ---Purpose: Returns the manager to which <me> is associated.
945 ---Category: Private methods
947 Transforms ( myclass;
948 ATrsf : Array2OfReal from TColStd;
949 X, Y, Z : Real from Standard;
950 NewX, NewY, NewZ : out Real from Standard );
952 ---Purpose: Transforms <X>, <Y>, <Z> with the transformation <ATrsf>.
953 ---Category: Private methods
955 Transforms ( myclass;
956 ATrsf : Array2OfReal from TColStd;
957 Coord : Vector from Graphic3d )
958 returns Vector from Graphic3d;
960 ---Purpose: Transforms <Coord> with the transformation <ATrsf>.
961 ---Category: Private methods
963 Transforms ( myclass;
964 ATrsf : Array2OfReal from TColStd;
965 Coord : Vertex from Graphic3d )
966 returns Vertex from Graphic3d;
968 ---Purpose: Transforms <Coord> with the transformation <ATrsf>.
969 ---Category: Private methods
971 TransformBoundaries (myclass;
972 theTrsf : Array2OfReal from TColStd;
973 theXMin, theYMin, theZMin : in out Real from Standard;
974 theXMax, theYMax, theZMax : in out Real from Standard)
977 ---Purpose: Transforms boundaries with <theTrsf> transformation.
978 ---Category: Private methods
983 ---Purpose: Calls the Update method of the StructureManager which
984 -- contains the Structure <me>.
985 ---Category: Private methods
987 UpdateStructure ( me : mutable;
988 CTXL : AspectLine3d from Graphic3d;
989 CTXT : AspectText3d from Graphic3d;
990 CTXM : AspectMarker3d from Graphic3d;
991 CTXF : AspectFillArea3d from Graphic3d )
994 ---Purpose: Updates the c structure associated to <me>.
995 ---Category: Private methods
998 returns CStructure_Handle from Graphic3d
1000 ---Purpose: Returns the c structure associated to <me>.
1001 ---C++: return const &
1006 -- Class : Graphic3d_Structure
1008 -- Purpose : Declaration of variables specific to
1009 -- graphic structures.
1010 -- Reminder : A structure is defined in a manager.
1011 -- It is a sequence of groups of primitives.
1014 -- the associated low-level structure
1015 myCStructure : CStructure_Handle from Graphic3d;
1017 -- the structures to which the structure is attached
1018 myAncestors : SequenceOfAddress from TColStd;
1020 -- the structures attached to the structure
1021 myDescendants : SequenceOfAddress from TColStd;
1023 -- the sequence of groups
1024 myGroups : SequenceOfGroup from Graphic3d;
1026 -- the highlight method of the structure
1027 myHighlightColor : Color from Quantity;
1028 myHighlightMethod : TypeOfHighlightMethod from Aspect;
1030 -- the manager accepting the structure
1031 myStructureManager : StructureManagerPtr from Graphic3d is protected;
1032 myFirstStructureManager : StructureManagerPtr from Graphic3d is protected;
1033 myOwner : Address from Standard;
1035 -- the type of visualisation accepted by the structure
1036 myVisual : TypeOfStructure from Graphic3d;
1037 myComputeVisual : TypeOfStructure from Graphic3d is protected;
1041 -- a lot of methods of Group use the methods of Structure
1042 class Group from Graphic3d