-- Created on: 1991-06-12 -- Created by: NW,JPB,CAL -- Copyright (c) 1991-1999 Matra Datavision -- Copyright (c) 1999-2014 OPEN CASCADE SAS -- -- This file is part of Open CASCADE Technology software library. -- -- This library is free software; you can redistribute it and/or modify it under -- the terms of the GNU Lesser General Public License version 2.1 as published -- by the Free Software Foundation, with special exception defined in the file -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT -- distribution for complete text of the license and disclaimer of any warranty. -- -- Alternatively, this file may be used under the terms of Open CASCADE -- commercial license or contractual agreement. -- 11/97 ; CAL : gestion du GraphicClear -- 11/97 ; CAL : ajout pointer StructPtr -- 11/97 ; CAL : amelioration de l'effacement SetManager -- 01/98 ; CAL : gestion du HLRValidation -- 05/98 ; CAL : gestion du GraphicConnect et Disconnect -- 02/00 ; GG : Made Transform() methode not mutable. -- 31/05/01 ; GG : Add ResetDisplayPriority() method class Structure from Graphic3d inherits TShared ---Version: ---Purpose: This class allows the definition a graphic object. -- This graphic structure can be displayed, -- erased, or highlighted. -- This graphic structure can be connected with -- another graphic structure. -- Keywords: Structure, StructureManager, Display, Erase, Highlight, -- UnHighlight, Visible, Priority, Selectable, Visible, -- Visual, Connection, Ancestors, Descendants, Transformation ---Warning: ---References: uses Array2OfReal from TColStd, SequenceOfAddress from TColStd, Color from Quantity, GenId from Aspect, TypeOfHighlightMethod from Aspect, DataStructureManager from Graphic3d, AspectFillArea3d from Graphic3d, AspectLine3d from Graphic3d, AspectMarker3d from Graphic3d, AspectText3d from Graphic3d, CStructure from Graphic3d, GraphicDriver from Graphic3d, Group from Graphic3d, SequenceOfGroup from Graphic3d, SequenceOfStructure from Graphic3d, HSequenceOfStructure from Graphic3d, MapOfStructure from Graphic3d, IndexedMapOfAddress from Graphic3d, StructureManager from Graphic3d, StructureManagerPtr from Graphic3d, TypeOfComposition from Graphic3d, TypeOfConnection from Graphic3d, TypeOfPrimitive from Graphic3d, TypeOfStructure from Graphic3d, Vector from Graphic3d, Vertex from Graphic3d, TransModeFlags from Graphic3d, ZLayerId from Graphic3d, Pnt from gp, SequenceOfHClipPlane from Graphic3d, BndBox4f from Graphic3d, BndBox4d from Graphic3d, Box from Bnd raises PriorityDefinitionError from Graphic3d, StructureDefinitionError from Graphic3d, TransformError from Graphic3d is ------------------------ -- Category: Constructor ------------------------ Create (theManager : StructureManager from Graphic3d) returns Structure from Graphic3d; ---Level: Public ---Purpose: Creates a graphic object in the manager theManager. -- It will appear in all the views of the visualiser. -- Warning: The default values AspectLine, AspectFillArea, AspectText and AspectMarker are NOT applied to the structure. -- The structure is not displayed when it is created. Create (theManager : StructureManager from Graphic3d; thePrs : Structure from Graphic3d) returns Structure from Graphic3d; ---Level: Public ---Purpose: Creates a shadow link to existing graphic object. --------------------------------------------------- -- Category: Methods to modify the class definition --------------------------------------------------- -------------------------------------------------------- -- Summary of Display Priorities -- -- -- -- Structure display priorities control the order in -- -- which structures are redrawn. -- -- -- -- When you display a structure, you specify its -- -- priority. The lower the value, the lower the -- -- display priority. When the display is regenerated, -- -- the structures with the lowest priority are drawn -- -- first. -- -- For structures with the same display priority, -- -- the order in which they were displayed determines -- -- determines the drawing order. -- -- -- -- CAS.CADE supports 11 structure display priorities, -- -- 0 to 10. -- -------------------------------------------------------- Clear ( me : mutable; WithDestruction : Boolean from Standard = Standard_True ) is virtual; ---Level: Public ---Purpose: if WithDestruction == Standard_True then -- suppress all the groups of primitives in the structure. -- and it is mandatory to create a new group in . -- if WithDestruction == Standard_False then -- clears all the groups of primitives in the structure. -- and all the groups are conserved and empty. -- They will be erased at the next screen update. -- The structure itself is conserved. -- The transformation and the attributes of are conserved. -- The childs of are conserved. ---Category: Methods to modify the class definition Destroy ( me : mutable ) is virtual; ---Level: Public ---Purpose: Suppresses the structure . -- It will be erased at the next screen update. ---Category: Methods to modify the class definition ---C++: alias ~ Display ( me : mutable ) is virtual; ---Level: Public ---Purpose: Displays the structure in all the views of the visualiser. DisplayPriority ( me ) returns Integer from Standard is static; ---Level: Public ---Purpose: Returns the current display priority for the -- structure . ---Category: Methods to modify the class definition Erase ( me : mutable ) is virtual; ---Level: Public ---Purpose: Erases the structure in all the views -- of the visualiser. ---Category: Methods to modify the class definition Highlight ( me : mutable; theMethod : TypeOfHighlightMethod from Aspect; theColor : Color from Quantity; theToUpdateMgr : Boolean from Standard = Standard_True) is static; ---Level: Public ---Purpose: Highlights the structure in all the views of the visualiser, using the following methods: -- TOHM_COLOR = drawn in the highlight color -- TOHM_BOUNDBOX = enclosed by the boundary box Remove ( me : mutable ) is static; ---Level: Public ---Purpose: Suppress the structure . -- It will be erased at the next screen update. -- Warning: No more graphic operations in after this call. -- Category: Methods to modify the class definition CalculateBoundBox ( me : mutable ) is static; ---Level: Public ---Purpose: Computes axis-aligned bounding box of a structure. -- Category: Methods to modify the class definition SetInfiniteState (me : mutable; theToSet : Boolean from Standard) is static; ---Level: Internal ---Purpose: If is Standard_True then is infinite and -- the MinMaxValues method method return : -- theXMin = theYMin = theZMin = RealFirst(). -- theXMax = theYMax = theZMax = RealLast(). -- By default, is not infinite but empty. ---Category: Methods to modify the class definition SetDisplayPriority ( me : mutable; Priority : Integer from Standard ) ---Level: Public ---Purpose: Modifies the order of displaying the structure. -- Values are between 0 and 10. -- Structures are drawn according to their display priorities -- in ascending order. -- A structure of priority 10 is displayed the last and appears over the others. -- The default value is 5. -- Category: Methods to modify the class definition -- Warning: If is displayed then the SetDisplayPriority -- method erase and display with the -- new priority. -- Raises PriorityDefinitionError if is -- greater than 10 or a negative value. raises PriorityDefinitionError from Graphic3d is static; ResetDisplayPriority ( me : mutable) is static; ---Level: Public ---Purpose: Reset the current priority of the structure to the -- previous priority. -- Category: Methods to modify the class definition -- Warning: If is displayed then the SetDisplayPriority -- method erase and display with the -- previous priority. SetZLayer ( me : mutable; theLayerId : ZLayerId from Graphic3d ) is static; ---Purpose: Set Z layer ID for the structure. The Z layer mechanism -- allows to display structures presented in higher layers in overlay -- of structures in lower layers by switching off z buffer depth -- test between layers GetZLayer ( me ) returns ZLayerId from Graphic3d is static; ---Purpose: Get Z layer ID of displayed structure. The method -- returns -1 if the structure has no ID (deleted from graphic driver). SetClipPlanes (me : mutable; thePlanes : SequenceOfHClipPlane from Graphic3d) is static; ---Purpose: Changes a sequence of clip planes slicing the structure on rendering. -- @param thePlanes [in] the set of clip planes. GetClipPlanes (me) returns SequenceOfHClipPlane from Graphic3d; ---C++: return const& ---Purpose: Get clip planes slicing the structure on rendering. -- @return set of clip planes. SetPrimitivesAspect ( me : mutable; CTX : AspectLine3d from Graphic3d ) is static; ---Level: Public ---Purpose: Modifies the default attributes for lines -- in the structure . ---Category: Methods to modify the class definition SetPrimitivesAspect ( me : mutable; CTX : AspectFillArea3d from Graphic3d ) is static; ---Level: Public ---Purpose: Modifies the default attributes for faces -- in the structure . ---Category: Methods to modify the class definition SetPrimitivesAspect ( me : mutable; CTX : AspectText3d from Graphic3d ) is static; ---Level: Public ---Purpose: Modifies the default attributes for text -- in the structure . ---Category: Methods to modify the class definition SetPrimitivesAspect ( me : mutable; CTX : AspectMarker3d from Graphic3d ) is static; ---Level: Public ---Purpose: Modifies the default attributes for markers -- in the structure . ---Category: Methods to modify the class definition SetVisible ( me : mutable; AValue : Boolean from Standard ) is static; ---Level: Public ---Purpose: Modifies the visibility indicator to Standard_True or -- Standard_False for the structure . -- The default value at the definition of is -- Standard_True. ---Category: Methods to modify the class definition SetVisual ( me : mutable; AVisual : TypeOfStructure from Graphic3d ) is virtual; ---Level: Public ---Purpose: Modifies the visualisation mode for the structure . ---Warning: It is not possible to display a structure with -- an incompatible display mode. -- If the display mode is different from the current one, -- the structure is erased. -- -- TOS_WIREFRAME for a wireframe visualisation -- TOS_SHADING for a shaded visualisation -- TOS_ALL for all visualisations -- TOS_COMPUTED for a computed visualisation -- The default value is TOS_ALL -- ---Category: Methods to modify the class definition SetZoomLimit ( me : mutable; LimitInf, LimitSup : Real from Standard ) ---Level: Internal ---Purpose: Modifies the minimum and maximum zoom coefficients -- for the structure . -- The default value at the definition of is unlimited. -- Category: Methods to modify the class definition -- Warning: Raises StructureDefinitionError if is -- greater than or if or -- is a negative value. raises StructureDefinitionError from Graphic3d is static; SetIsForHighlight ( me : mutable; isForHighlight : Boolean from Standard ) is static; ---Level: Internal ---Purpose: marks the structure representing wired structure needed for -- highlight only so it won't be added to BVH tree. -- Category: Methods to modify the class definition UnHighlight ( me : mutable ) is static; ---Level: Public ---Purpose: Suppresses the highlight for the structure -- in all the views of the visualiser. ---Category: Methods to modify the class definition ---------------------------- -- Category: Compute methods ---------------------------- Compute (me: mutable) is virtual; ---Level: Advanced ---Category: Methods to modify the class definition Compute ( me : mutable; aProjector : DataStructureManager from Graphic3d ) returns Structure from Graphic3d is virtual; ---Level: Advanced ---Purpose: Returns the new Structure defined for the new visualization ---Category: Methods to modify the class definition Compute ( me : mutable; aProjector : DataStructureManager from Graphic3d; AMatrix : Array2OfReal from TColStd ) returns Structure from Graphic3d is virtual; ---Level: Advanced ---Purpose: Returns the new Structure defined for the new visualization ---Category: Methods to modify the class definition Compute ( me : mutable; aProjector : DataStructureManager from Graphic3d; aStructure : in out Structure from Graphic3d ) is virtual; ---Level: Advanced ---Purpose: Returns the new Structure defined for the new visualization ---Category: Methods to modify the class definition Compute ( me : mutable; aProjector : DataStructureManager from Graphic3d; AMatrix : Array2OfReal from TColStd; aStructure : in out Structure from Graphic3d ) is virtual; ---Level: Advanced ---Purpose: Returns the new Structure defined for the new visualization ---Category: Methods to modify the class definition ReCompute ( me : mutable ); ---Level: Advanced ---Purpose: Forces a new construction of the structure -- if is displayed and TOS_COMPUTED. ---Category: Methods to modify the class definition ReCompute ( me : mutable; aProjector : DataStructureManager from Graphic3d ); ---Level: Advanced ---Purpose: Forces a new construction of the structure -- if is displayed in and TOS_COMPUTED. ---Category: Methods to modify the class definition ---------------------------- -- Category: Inquire methods ---------------------------- ContainsFacet ( me ) returns Boolean from Standard is static; ---Level: Public ---Purpose: Returns Standard_True if the structure contains -- Polygons, Triangles or Quadrangles. ---Category: Inquire methods FillArea3dAspect ( me ) returns AspectFillArea3d from Graphic3d is static; ---Level: Public ---Purpose: Returns the values of the current default attributes. ---Category: Inquire methods Groups ( me ) returns SequenceOfGroup from Graphic3d is static; ---C++: return const & ---Level: Internal ---Purpose: Returns the groups sequence included in the structure (internal storage). ---Category: Inquire methods NumberOfGroups ( me ) returns Integer from Standard is static; ---Level: Public ---Purpose: Returns the current number of groups in the -- structure . ---Category: Inquire methods NewGroup ( me : mutable ) returns Group from Graphic3d is static; ---Level: Public ---Purpose: Append new group to this structure. Remove ( me : mutable; theGroup : Group from Graphic3d ) is static private; ---Purpose: Suppress in the structure , the group theGroup. -- It will be erased at the next screen update. HighlightColor ( me ) returns Color from Quantity is static; ---C++: return const& ---Level: Public ---Purpose: Returns the highlight color for the Highlight method -- with the highlight method TOHM_COLOR or TOHM_BOUNDBOX. ---Category: Inquire methods IsDeleted ( me ) returns Boolean from Standard is static; ---Level: Public ---Purpose: Returns Standard_True if the structure is deleted. -- is deleted after the call Remove (me). ---Category: Inquire methods IsDisplayed ( me ) returns Boolean from Standard is virtual; ---Level: Public ---Purpose: Returns the display indicator for the structure . ---Category: Inquire methods IsEmpty ( me ) returns Boolean from Standard is static; ---Level: Public ---Purpose: Returns Standard_True if the structure is empty. -- Warning: A structure is empty if : -- it do not have group or all the groups are empties -- and it do not have descendant or all the descendants -- are empties. ---Category: Inquire methods IsInfinite ( me ) returns Boolean from Standard is static; ---Level: Internal ---Purpose: Returns Standard_True if the structure is infinite. ---Category: Inquire methods IsHighlighted ( me ) returns Boolean from Standard is virtual; ---Level: Public ---Purpose: Returns the highlight indicator for the structure . ---Category: Inquire methods IsRotated ( me ) returns Boolean from Standard is static; ---Level: Public ---Purpose: Returns Standard_True if the structure is rotated. -- <=> The transformation != Identity, != Scale, != Translation. ---Category: Inquire methods IsTransformed ( me ) returns Boolean from Standard is static; ---Level: Public ---Purpose: Returns Standard_True if the structure is transformed. -- <=> The transformation != Identity. ---Category: Inquire methods IsVisible ( me ) returns Boolean from Standard is static; ---Level: Public ---Purpose: Returns the visibility indicator for the structure . ---Category: Inquire methods Line3dAspect ( me ) returns AspectLine3d from Graphic3d is static; ---Level: Public ---Purpose: Returns the values of the current default attributes. ---Category: Inquire methods Marker3dAspect ( me ) returns AspectMarker3d from Graphic3d is static; ---Purpose: Returns the current group of graphic attributes used -- for 3d marker primitives. MinMaxValues (me; theToIgnoreInfiniteFlag : Boolean from Standard = Standard_False) returns Box from Bnd is static; ---Level: Public ---Purpose: Returns the coordinates of the boundary box of the structure . -- If is TRUE, the method returns actual graphical -- boundaries of the Graphic3d_Group components. Otherwise, the -- method returns boundaries taking into account infinite state -- of the structure. This approach generally used for application -- specific fit operation (e.g. fitting the model into screen, -- not taking into accout infinite helper elements). -- Warning: If the structure is empty then the empty box is returned, -- If the structure is infinite then the whole box is returned. ---Category: Inquire methods PrimitivesAspect ( me; CTXL : out AspectLine3d from Graphic3d; CTXT : out AspectText3d from Graphic3d; CTXM : out AspectMarker3d from Graphic3d; CTXF : out AspectFillArea3d from Graphic3d ) is static; ---Level: Public ---Purpose: Returns the current values of the default attributes. ---Category: Inquire methods Text3dAspect ( me ) returns AspectText3d from Graphic3d is static; ---Level: Public ---Purpose: Returns the values of the current default attributes. ---Category: Inquire methods Visual ( me ) returns TypeOfStructure from Graphic3d is static; ---Level: Public ---Purpose: Returns the visualisation mode for the structure . ---Category: Inquire methods ---------------------------------------------------- -- Category: Methods to manage the structure network ---------------------------------------------------- ----------------------------------------------------- -- Summary of Structure Hierarchies -- -- -- -- The root is the top of a structure hierarchy -- -- or structure network. -- -- -- -- The attributes of a parent structure are passed -- -- passed to its descendants. -- -- -- -- The attributes of the descendant structures -- -- don't affect the parent. -- -- -- -- Recursive structure networks are not supported. -- ----------------------------------------------------- AcceptConnection ( myclass; AStructure1 : Structure from Graphic3d; AStructure2 : Structure from Graphic3d; AType : TypeOfConnection from Graphic3d ) returns Boolean from Standard; ---Level: Internal ---Purpose: Returns Standard_True if the connection is possible between -- and without a creation -- of a cycle. -- -- It's not possible to call the method -- AStructure1->Connect (AStructure2, TypeOfConnection) -- if -- - the set of all ancestors of contains -- and if the -- TypeOfConnection == TOC_DESCENDANT -- - the set of all descendants of contains -- and if the -- TypeOfConnection == TOC_ANCESTOR ---Category: Methods to manage the structure network Ancestors ( me; SG: in out MapOfStructure from Graphic3d ) is static; ---Level: Internal ---Purpose: Returns the group of structures to which is connected. ---Category: Methods to manage the structure network Connect ( me : mutable; AStructure : Structure from Graphic3d; AType : TypeOfConnection from Graphic3d; WithCheck : Boolean from Standard = Standard_False ); ---Level: Public ---Purpose: If Atype is TOC_DESCENDANT then add -- as a child structure of . -- If Atype is TOC_ANCESTOR then add -- as a parent structure of . -- The connection propagates Display, Highlight, Erase, -- Remove, and stacks the transformations. -- No connection if the graph of the structures -- contains a cycle and is Standard_True; ---Category: Methods to manage the structure network Descendants ( me; SG : in out MapOfStructure from Graphic3d ) is static; ---Level: Internal ---Purpose: Returns the group of structures connected to . ---Category: Methods to manage the structure network Disconnect ( me : mutable; AStructure : Structure from Graphic3d ) is static; ---Level: Public ---Purpose: Suppress the connection between and . ---Category: Methods to manage the structure network DisconnectAll ( me : mutable; AType : TypeOfConnection from Graphic3d ) is static; ---Level: Public ---Purpose: If Atype is TOC_DESCENDANT then suppress all -- the connections with the child structures of . -- If Atype is TOC_ANCESTOR then suppress all -- the connections with the parent structures of . ---Category: Methods to manage the structure network Network ( myclass; AStructure : Structure from Graphic3d; AType : TypeOfConnection from Graphic3d; ASet : in out MapOfStructure from Graphic3d ); ---Level: Internal ---Purpose: Returns the group of structures : -- - directly or indirectly connected to if the -- TypeOfConnection == TOC_DESCENDANT -- - to which is directly or indirectly connected -- if the TypeOfConnection == TOC_ANCESTOR ---Category: Methods to manage the structure network SetOwner ( me : mutable; Owner : Address from Standard ) is static; ---Level: Advanced Owner ( me ) returns Address from Standard is static; ---Level: Advanced SetHLRValidation ( me : mutable; AFlag : Boolean from Standard ) is static; ---Level: Advanced HLRValidation ( me ) returns Boolean from Standard is static; ---Level: Advanced ----------------------------------------------------------- -- Category: Methods to manage the structure transformation ----------------------------------------------------------- Composition ( me ) returns TypeOfComposition from Graphic3d is static; ---Level: Public ---Purpose: Returns the type of composition applied to matrices -- of transformation of . ---Category: Methods to manage the structure transformation SetTransform ( me : mutable; AMatrix : Array2OfReal from TColStd; AType : TypeOfComposition from Graphic3d ) ---Level: Public ---Purpose: Modifies the current local modelling transformation -- in the structure . -- -- It is defined as a 4*4 real matrix. -- -- ------------------- -- | a11 a12 a13 t1 | -- | a21 a22 a23 t2 | -- | a31 a32 a33 t3 | -- | 0 0 0 1 | -- ------------------- -- -- TypeOfComposition : TOC_REPLACE -- TOC_POSTCONCATENATE -- -- Then the modified Local Modelling Transformation is composed -- with the current Global Modelling Transformation to create a -- new Composite Modelling Transformation. -- -- The compose type specifies the role of the current local -- modelling transformation (L) in composing the new value for -- the current local modelling transformation (L'), which is -- then combined with the current global modelling transforma- -- tion (G) to calculate the new composite modelling transfor- -- mation (C). -- -- TOC_REPLACE -- The transformation matrix (T) replaces the value of -- current local modelling transformation (L). -- -- L' <- T -- C <- G x L' -- -- TOC_POSTCONCATENATE -- The current local modelling transformation (L) is multiplied -- by the transformation matrix (T): -- -- L' <- T x L -- C <- G x L' -- -- Category: Methods to manage the structure transformation -- Warning: Raises TransformError if the matrix is not a 4x4 matrix. raises TransformError from Graphic3d is static; -- Transform ( me : mutable; Transform ( me; AMatrix : in out Array2OfReal from TColStd ) is static; ---Level: Public ---Purpose: Returns the transformation associated with -- the structure . ---Category: Methods to manage the structure transformation SetTransformPersistence( me : mutable; AFlag : TransModeFlags from Graphic3d; APoint : Pnt from gp ) ---Level: Public ---Purpose: Modifies the current modelling transform persistence (pan, zoom or rotate) is static; SetTransformPersistence( me : mutable; AFlag : TransModeFlags from Graphic3d ) -- Calls previous method with point (0,0,0) is static; TransformPersistenceMode( me ) returns TransModeFlags from Graphic3d ---Level: Public ---Purpose: Get the current modelling transform persistence (pan, zoom or rotate) is static; TransformPersistencePoint( me ) returns Pnt from gp ---Level: Public ---Purpose: Get the current point of relative modelling transform persistence is static; SetMutable ( me : mutable; theIsMutable : Boolean from Standard ) is static; ---Purpose: Sets if the structure location has mutable nature (content or location will be changed regularly). IsMutable ( me ) returns Boolean from Standard is static; ---Purpose: Returns true if structure has mutable nature (content or location are be changed regularly). -- Mutable structure will be managed in different way than static onces. ---------------------------- -- Category: Private methods ---------------------------- ComputeVisual ( me ) returns TypeOfStructure from Graphic3d is static; ---Level: Internal ---Category: Private methods GroupsWithFacet ( me : mutable; ADelta : Integer from Standard ) is static private; ---Level: Internal ---Purpose: Manages the number of groups in the structure -- which contains facet. -- Polygons, Triangles or Quadrangles. -- = +1 or -1 ---Category: Private methods GraphicClear ( me : mutable; WithDestruction : Boolean from Standard ) is static; ---Level: Internal ---Purpose: Clears the structure . ---Category: Private methods GraphicConnect ( me : mutable; ADaughter : Structure from Graphic3d ) is static; ---Level: Internal ---Purpose: ---Category: Private methods GraphicDisconnect ( me : mutable; ADaughter : Structure from Graphic3d ) is static; ---Level: Internal ---Purpose: ---Category: Private methods GraphicHighlight ( me : mutable; Method : TypeOfHighlightMethod from Aspect ) is static; ---Level: Internal ---Purpose: Highlights the structure . ---Category: Private methods GraphicTransform ( me : mutable; AMatrix : Array2OfReal from TColStd ) is static; ---Level: Internal ---Purpose: ---Category: Private methods GraphicUnHighlight ( me : mutable ) is static; ---Level: Internal ---Purpose: Suppress the highlight for the structure . ---Category: Private methods Identification ( me ) returns Integer from Standard is static; ---Level: Internal ---Purpose: Returns the identification number of the structure . ---Category: Private methods minMaxCoord (me) returns BndBox4f from Graphic3d is static private; ---Purpose: Returns the extreme coordinates found in the structure without transformation applied. getBox (me; theBox : out BndBox4d from Graphic3d; theToIgnoreInfiniteFlag : Boolean from Standard = Standard_False) is static private; ---Purpose: Gets untransformed bounding box from structure. addTransformed (me; theBox : out BndBox4d from Graphic3d; theToIgnoreInfiniteFlag : Boolean from Standard = Standard_False) is static private; ---Purpose: Adds transformed (with myCStructure->Transformation) bounding box of structure to theBox. PrintNetwork ( myclass; AStructure : Structure from Graphic3d; AType : TypeOfConnection from Graphic3d ); ---Level: Internal ---Purpose: Prints informations about the network associated -- with the structure . ---Category: Private methods Remove ( me : mutable; APtr : Address from Standard; AType : TypeOfConnection from Graphic3d ) is static; ---Level: Internal ---Purpose: Suppress the adress in the list -- of descendants or in the list of ancestors. ---Category: Private methods SetComputeVisual ( me : mutable; AVisual : TypeOfStructure from Graphic3d ) is static; ---Level: Internal ---Category: Private methods StructureManager ( me ) returns StructureManager from Graphic3d is static private; ---Level: Internal ---Purpose: Returns the manager to which is associated. ---Category: Private methods Transforms ( myclass; ATrsf : Array2OfReal from TColStd; X, Y, Z : Real from Standard; NewX, NewY, NewZ : out Real from Standard ); ---Level: Internal ---Purpose: Transforms , , with the transformation . ---Category: Private methods Transforms ( myclass; ATrsf : Array2OfReal from TColStd; Coord : Vector from Graphic3d ) returns Vector from Graphic3d; ---Level: Internal ---Purpose: Transforms with the transformation . ---Category: Private methods Transforms ( myclass; ATrsf : Array2OfReal from TColStd; Coord : Vertex from Graphic3d ) returns Vertex from Graphic3d; ---Level: Internal ---Purpose: Transforms with the transformation . ---Category: Private methods TransformBoundaries (myclass; theTrsf : Array2OfReal from TColStd; theXMin, theYMin, theZMin : in out Real from Standard; theXMax, theYMax, theZMax : in out Real from Standard) is protected; ---Level: Internal ---Purpose: Transforms boundaries with transformation. ---Category: Private methods Update ( me ) is static private; ---Level: Internal ---Purpose: Calls the Update method of the StructureManager which -- contains the Structure . ---Category: Private methods UpdateStructure ( me : mutable; CTXL : AspectLine3d from Graphic3d; CTXT : AspectText3d from Graphic3d; CTXM : AspectMarker3d from Graphic3d; CTXF : AspectFillArea3d from Graphic3d ) is static private; ---Level: Internal ---Purpose: Updates the c structure associated to . ---Category: Private methods CStructure (me) returns CStructure from Graphic3d is static; ---Purpose: Returns the low-level structure ---C++: return const & ---C++: inline AppendDescendant (me : mutable; theDescendant : Address from Standard) returns Boolean from Standard is protected; ---Level: Internal ---Purpose: Appends new descendant structure. ---Category: Private methods RemoveDescendant (me : mutable; theDescendant : Address from Standard) returns Boolean from Standard is protected; ---Level: Internal ---Purpose: Removes the given descendant structure. ---Category: Private methods AppendAncestor (me : mutable; theAncestor : Address from Standard) returns Boolean from Standard is protected; ---Level: Internal ---Purpose: Appends new ancestor structure. ---Category: Private methods RemoveAncestor (me : mutable; theAncestor : Address from Standard) returns Boolean from Standard is protected; ---Level: Internal ---Purpose: Removes the given ancestor structure. ---Category: Private methods fields -- -- Class : Graphic3d_Structure -- -- Purpose : Declaration of variables specific to -- graphic structures. -- Reminder : A structure is defined in a manager. -- It is a sequence of groups of primitives. -- -- the associated low-level structure myCStructure : CStructure from Graphic3d; -- the structures to which the structure is attached myAncestors : SequenceOfAddress from TColStd; -- the structures attached to the structure myDescendants : SequenceOfAddress from TColStd; -- the map of structures to which the structure is attached myAncestorMap : IndexedMapOfAddress from Graphic3d; -- the map of structures attached to the structure myDescendantMap : IndexedMapOfAddress from Graphic3d; -- the highlight method of the structure myHighlightColor : Color from Quantity; myHighlightMethod : TypeOfHighlightMethod from Aspect; -- the manager accepting the structure myStructureManager : StructureManagerPtr from Graphic3d is protected; myFirstStructureManager : StructureManagerPtr from Graphic3d is protected; myOwner : Address from Standard; -- the type of visualisation accepted by the structure myVisual : TypeOfStructure from Graphic3d; myComputeVisual : TypeOfStructure from Graphic3d is protected; friends -- a lot of methods of Group use the methods of Structure class Group from Graphic3d end Structure;