-- Created on: 1991-06-12 -- Created by: NW,JPB,CAL -- Copyright (c) 1991-1999 Matra Datavision -- Copyright (c) 1999-2012 OPEN CASCADE SAS -- -- The content of this file is subject to the Open CASCADE Technology Public -- License Version 6.5 (the "License"). You may not use the content of this file -- except in compliance with the License. Please obtain a copy of the License -- at http://www.opencascade.org and read it completely before using this file. -- -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. -- -- The Original Code and all software distributed under the License is -- distributed on an "AS IS" basis, without warranty of any kind, and the -- Initial Developer hereby disclaims all such warranties, including without -- limitation, any warranties of merchantability, fitness for a particular -- purpose or non-infringement. Please see the License for the specific terms -- and conditions governing the rights and limitations under the License. -- 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, HSequenceOfGroup from Graphic3d, SequenceOfStructure from Graphic3d, HSequenceOfStructure from Graphic3d, MapOfStructure from Graphic3d, Plotter from Graphic3d, StructureManager from Graphic3d, TypeOfComposition from Graphic3d, TypeOfConnection from Graphic3d, TypeOfPrimitive from Graphic3d, TypeOfStructure from Graphic3d, Vector from Graphic3d, VertexNC from Graphic3d, Vertex from Graphic3d, TransModeFlags from Graphic3d, Pnt from gp raises PriorityDefinitionError from Graphic3d, StructureDefinitionError from Graphic3d, TransformError from Graphic3d is ------------------------ -- Category: Constructor ------------------------ Create ( AManager : StructureManager from Graphic3d ) returns mutable Structure from Graphic3d; ---Level: Public ---Purpose: Creates a graphic object in the manager . -- 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. --------------------------------------------------- -- 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. ---Category: Methods to modify the class definition Display ( me : mutable; Priority : Integer from Standard ) ---Level: Public ---Purpose: Displays the structure in all the views of -- the visualiser, while modifying its current priority. -- Note: 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 the drawing order. Open CASCADE -- supports 11 structure display priorities, 0 to 10. -- Warning: Raises PriorityDefinitionError if is -- greater than 10 or a negative value. raises PriorityDefinitionError from Graphic3d is static; 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; Method : TypeOfHighlightMethod from Aspect ) 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 -- (default white) -- TOHM_BLINK = blinking -- TOHM_BOUNDBOX = enclosed by the boundary box -- (default white) -- ---Category: Methods to modify the class definition 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 SetHighlightColor ( me : mutable; AColor : Color from Quantity ) is static; ---Level: Public ---Purpose: Modifies the highlight color for the Highlight method -- with the highlight method TOHM_COLOR or TOHM_BOUNDBOX. ---Category: Methods to modify the class definition SetInfiniteState ( me : mutable; AFlag : Boolean from Standard ) is static; ---Level: Internal ---Purpose: Modifies the coordinates of the boundary box -- of the structure . -- if is Standard_True then is infinite and -- the MinMaxValues method or the MinMaxCoord method return : -- XMin = YMin = ZMin = RealFirst (). -- XMax = YMax = ZMax = 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 : Integer from Standard ) 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 Integer from Standard is static; ---Purpose: Get Z layer ID of displayed structure. The method -- returns -1 if the structure has no ID (deleted from graphic driver). SetPick ( me : mutable; AValue : Boolean from Standard ) is static; ---Level: Public ---Purpose: Modifies the detectability 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 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 SetManager ( me : mutable; AManager : StructureManager from Graphic3d; WithPropagation : Boolean from Standard = Standard_False) is static; ---Level: Public ---Purpose: Moves the graphic object in the manager . -- If is Standard_True then all the connected -- graphic objects to are moved. 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; 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; 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 HighlightColor ( me ) returns Color from Quantity is static; ---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 IsSelectable ( me ) returns Boolean from Standard is static; ---Level: Public ---Purpose: Returns the detectability 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; XMin, YMin, ZMin : out Real from Standard; XMax, YMax, ZMax : out Real from Standard ) is static; ---Level: Public ---Purpose: Returns the coordinates of the boundary box -- of the structure . -- Warning: If the structure is empty or infinite then : -- XMin = YMin = ZMin = RealFirst (). -- XMax = YMax = ZMax = RealLast (). ---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; ---------------------------- -- Category: Private methods ---------------------------- Add ( me : mutable; AGroup : Group from Graphic3d ) is static private; ---Level: Internal ---Purpose: Inserts in the structure , the group . -- It will be erased at the next screen update. ---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 GroupLabels ( me : mutable; LB, LE : in out Integer from Standard ) is static private; ---Level: Internal ---Purpose: Returns the labels for a new group in 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; XMin, YMin, ZMin : out Real from Standard; XMax, YMax, ZMax : out Real from Standard ) is static private; ---Level: Internal ---Purpose: Returns the extreme coordinates found in the -- structure . -- Warning: If the structure is empty or infinite then : -- XMin = YMin = ZMin = RealFirst (). -- XMax = YMax = ZMax = RealLast (). ---Category: Private methods Plot ( me : mutable; aPlotter : Plotter from Graphic3d ) is virtual; ---Level: Internal ---Category: Private methods 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 Remove ( me : mutable; AGroup : Group from Graphic3d ) is static private; ---Level: Internal ---Purpose: Suppress in the structure , the group . -- It will be erased at the next screen update. ---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 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 : mutable ) returns CStructure from Graphic3d is static; ---Level: Internal ---Purpose: Returns the c structure associated to . ---Category: Private methods ---C++: return * 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 C structure MyCStructure : CStructure from Graphic3d; -- the group identifier generator MyGroupGenId : GenId from Aspect; -- the structures to which the structure is attached MyAncestors : SequenceOfAddress from TColStd; -- the structures attached to the structure MyDescendants : SequenceOfAddress from TColStd; -- the sequence of groups MyGroups : SequenceOfGroup from Graphic3d; -- the graphic driver used MyGraphicDriver : GraphicDriver from Graphic3d; -- the highlight method of the structure MyHighlightColor : Color from Quantity; MyHighlightMethod : TypeOfHighlightMethod from Aspect; -- the manager accepting the structure MyPtrStructureManager : Address from Standard is protected; MyFirstPtrStructureManager : Address from Standard 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;